/* === Reset & Base === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #120d26;
  --bg-deep: #110c22;
  --card: #1e1738;
  --accent: #f2c759;
  --accent-dim: rgba(242, 199, 89, 0.15);
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --teal: #5ac8c8;
  --purple: #a855f7;
  --amber: #d4a030;
  --radius: 16px;
  --font-display: "Playfair Display", "Didot", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === Nav === */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-right: auto;
}

.nav-logo img {
  border-radius: 8px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text);
}

/* === Buttons === */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: var(--bg-deep);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 80px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(242, 199, 89, 0.3);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.25rem;
  border-radius: 80px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 60% 50% at 50% 0%,
      rgba(242, 199, 89, 0.08) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 80% 60% at 30% 20%,
      rgba(90, 50, 180, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 40% at 70% 30%,
      rgba(90, 200, 200, 0.06) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem 6rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text) 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* === Section titles === */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 3.5rem;
}

/* === Features === */
.features {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: rgba(242, 199, 89, 0.2);
  transform: translateY(-4px);
}

.feature-icon {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* === Health === */
.health {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.health-intro {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 600px;
  margin: -2rem auto 3.5rem;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.health-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--card);
}

.health-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.25rem;
}

.health-card:nth-child(1) .health-icon { color: var(--teal); }
.health-card:nth-child(2) .health-icon { color: var(--purple); }
.health-card:nth-child(3) .health-icon { color: var(--amber); }

.health-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.health-source {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.health-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === Screenshots === */
.screenshots {
  padding: 6rem 0;
  overflow: hidden;
}

.screenshots-scroll {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 0 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.screenshot-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.screenshot-item img {
  width: 260px;
  height: auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s;
}

.screenshot-item:hover img {
  transform: scale(1.03);
}

.screenshot-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* === CTA === */
.cta {
  text-align: center;
  padding: 6rem 2rem 5rem;
  max-width: 600px;
  margin: 0 auto;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.footer p {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.25rem;
    gap: 1rem;
  }

  .nav-link:not(.btn-outline) {
    display: none;
  }

  .hero-content {
    padding: 2rem 1.5rem 4rem;
  }

  .features {
    padding: 4rem 1.25rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-item img {
    width: 240px;
  }

  .screenshots-scroll {
    padding: 0 1.25rem;
    gap: 1.25rem;
  }

  .health-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}
