/* Typography & base */
:root {
  --accent: #4c8cff;
  --bg-dark: #0e0f13;
  --bg-light: #ffffff;
  --text-dark: #111;
  --text-light: #fafafa;
  --panel: rgba(255, 255, 255, 0.06);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

/* Hero section */
.hero {
  position: relative;
  text-align: center;
  padding: 6rem 1rem 5rem;
  background: radial-gradient(circle at 30% 20%, #284aff 0%, #111 70%);
  overflow: hidden;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInHero 1.2s ease-out;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.tagline {
  font-size: 1.2rem;
  opacity: 0.85;
}

nav {
  margin-top: 1.5rem;
}

nav a {
  color: var(--text-light);
  margin: 0 0.8rem;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

nav a:hover,
nav a.active {
  opacity: 1;
}

/* Main content */
main {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.intro h2 {
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--text-light);
  text-align: center;
}

.intro p {
  text-align: center;
  color: #d1d1d1;
  max-width: 650px;
  margin: 1rem auto 2rem;
}

.featured h3 {
  text-align: center;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #fff;
}

/* App grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.app-card {
  background: var(--panel);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.app-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.app-info {
  padding: 1.5rem;
}

.app-info h4 a {
  color: var(--accent);
  text-decoration: none;
}

.app-info h4 a:hover {
  text-decoration: underline;
}

.app-info p {
  color: #d8d8d8;
  margin-top: 0.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #aaa;
  font-size: 0.9rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; transform: none; }
}

@keyframes fadeInHero {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: none; }
}

/* Improve link visibility on dark background */
a {
  color: #64aaff; /* lighter, accessible blue */
  text-decoration: none;
}

a:hover {
  color: #90c2ff;
  text-decoration: underline;
}

.tagline {
  font-size: 0.7rem;
  opacity: 0.85;
}
