/* ============================================================
   CHIETA Mobile App — styles.css
   Professional government-style design
   Mobile-first, responsive
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Brand: Bossanova (purple) + Putty (gold) — matching logo */
  --color-primary: #723794; /* bossanova-700 */
  --color-primary-light: #8946b3; /* bossanova-600 */
  --color-primary-dark: #442454; /* bossanova-900 */
  --color-primary-mid: #5e2f79; /* bossanova-800 */
  --color-accent: #d69339; /* putty-500 (logo gold) */
  --color-accent-light: #e7c785; /* putty-300 */
  --color-accent-dark: #a66128; /* putty-700 */
  --color-text: #311240; /* bossanova-950 */
  --color-text-muted: #62748e; /* slate-500 */
  --color-text-light: #90a1b9; /* slate-400 */
  --color-bg: #ffffff;
  --color-bg-alt: #faf6fd; /* bossanova-50 */
  --color-bg-dark: #311240; /* bossanova-950 */
  --color-bg-card: #f4ecfb; /* bossanova-100 */
  --color-border: #e8d9f5; /* bossanova-200 */
  --color-success: #00bc7d; /* emerald-500 */
  --color-warning: #d08700; /* yellow-600 */

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-sans:
    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  --nav-height: 70px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Accessibility utilities ─────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}
:focus:not(:focus-visible) {
  outline: none;
}

section[id] {
  scroll-margin-top: var(--nav-height);
}

/* ── Typography ─────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}
h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}
h3 {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.text-accent {
  color: var(--color-accent);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary-light);
  color: #fff;
  border-color: var(--color-primary-light);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(114, 57, 148, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary-light);
  border-color: var(--color-primary-light);
}
.btn-outline:hover {
  background: var(--color-primary-light);
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* ── Section Shared Styles ──────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-badge {
  display: inline-block;
  background: var(--color-bg-alt);
  color: var(--color-primary-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
  border: 1px solid #d7baed;
}

.section-title {
  color: var(--color-text);
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Scroll Animations ──────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay {
  transition-delay: 0.2s;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.navbar-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(
    135deg,
    var(--color-primary-light),
    var(--color-accent)
  );
  color: #fff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}

.logo-text {
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition:
    color var(--transition),
    background var(--transition);
}
.nav-link:hover {
  color: var(--color-primary-light);
  background: var(--color-bg-alt);
}
.nav-link.active {
  color: var(--color-primary-light);
}

.nav-btn {
  margin-left: 8px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hamburger:hover {
  background: var(--color-bg-alt);
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition),
    width var(--transition);
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(
    to right,
    var(--color-primary-dark) 0%,
    var(--color-primary-mid) 45%,
    #ffffff 100%
  );
}

.hero-bg-shape {
  position: absolute;
  top: -180px;
  right: -200px;
  width: 680px;
  height: 680px;
  background: radial-gradient(
    circle,
    rgba(137, 70, 179, 0.12) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 80px;
}

@media (min-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr auto;
    gap: 64px;
    padding-top: 80px;
    padding-bottom: 100px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #d7baed;
  color: var(--color-primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  border-radius: 50%;
}

.hero-title {
  margin-bottom: 16px;
  color: #ffffff;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--color-accent-light);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

/* Hero CTA button overrides (on dark gradient bg) */
.hero-actions .btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg-dark);
}
.hero-actions .btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}
.hero-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 16px;
}

/* Hero app image (replaces CSS phone mockup) */
.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-app-img {
  width: 480px;
  height: auto;
  display: block;
  filter: drop-shadow(0 32px 48px rgba(94, 47, 121, 0.38));
  animation: float 5s ease-in-out infinite;
  flex: 1;
}

.app-card {
  background: linear-gradient(135deg, var(--color-bg-alt), #e8d9f5);
  border-radius: 12px;
  flex: 1;
  min-height: 60px;
}

.app-card.app-card-sm {
  flex: 0.6;
  min-height: 40px;
  background: var(--color-bg-card);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 96px 0;
  background: var(--color-bg);
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .about-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #d7baed;
}

.about-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  color: var(--color-primary-light);
}

.about-card h3 {
  margin-bottom: 10px;
  color: var(--color-primary-dark);
}

.about-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 96px 0;
  background: var(--color-bg-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: #c191e1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--color-bg-alt), #e8d9f5);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.feature-list li {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding-left: 18px;
  position: relative;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* ============================================================
   SCREENSHOTS — real app marketing cards
   ============================================================ */
.screenshots {
  padding: 96px 0;
  background: var(--color-bg-alt);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 899px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .screenshots-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 12px;
  }
  .screenshot-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
  }
}

.screenshot-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  background: var(--color-bg);
}
.screenshot-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 28px 52px rgba(114, 57, 148, 0.18);
}
.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.download {
  padding: 96px 0;
  background: linear-gradient(
    135deg,
    #311240 0%,
    #442454 30%,
    #8946b3 70%,
    #d69339 100%
  );
  position: relative;
  overflow: hidden;
}

.download::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.download::after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: -60px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.download-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.download-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 14px;
}

.download-content p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  transition:
    background var(--transition),
    transform var(--transition),
    border-color var(--transition);
  min-width: 180px;
}
.store-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-3px);
}

.store-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  opacity: 0.8;
}
.store-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 96px 0;
  background: var(--color-bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 840px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #d7baed;
}

.contact-icon {
  width: 52px;
  height: 52px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
  margin: 0 auto 16px;
}

.contact-card h3 {
  margin-bottom: 8px;
  color: var(--color-primary-dark);
  font-size: 1rem;
}

.contact-card a,
.contact-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.contact-card a:hover {
  color: var(--color-primary-light);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-bg-dark);
  color: #cbd5e1;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 48px;
}

@media (min-width: 640px) {
  .footer-container {
    grid-template-columns: 1fr auto;
  }
}

.footer-brand {
  max-width: 340px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: #475569;
  text-align: center;
}

/* ============================================================
   LEGAL PAGES (privacy & terms)
   ============================================================ */
.legal-page {
  padding-top: var(--nav-height);
  background: var(--color-bg);
}

.legal-hero {
  background: linear-gradient(
    135deg,
    var(--color-primary-dark),
    var(--color-primary-light)
  );
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.legal-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 10px;
}

.legal-hero p {
  font-size: 0.95rem;
  opacity: 0.75;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 20px 96px;
}

.legal-toc {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 56px;
}

.legal-toc h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.legal-toc ol {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-toc a {
  font-size: 0.9rem;
  color: var(--color-primary-light);
  transition: color var(--transition);
}
.legal-toc a:hover {
  color: var(--color-primary-dark);
}

.legal-section {
  margin-bottom: 52px;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.legal-section h2 {
  font-size: 1.3rem;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-bg-alt);
}

.legal-section p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 0.97rem;
}

.legal-section ul,
.legal-section ol {
  padding-left: 22px;
  color: var(--color-text-muted);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.legal-section ul {
  list-style: disc;
}
.legal-section ol {
  list-style: decimal;
}

.legal-section strong {
  color: var(--color-text);
  font-weight: 600;
}

.legal-section a {
  color: var(--color-primary-light);
  text-decoration: underline;
}
.legal-section a:hover {
  color: var(--color-primary-dark);
}

.legal-highlight {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   NAV OVERLAY (mobile menu backdrop)
   ============================================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: rgba(49, 18, 64, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.nav-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 899px) {
  /* Hamburger — visually prominent, accessible tap target */
  .hamburger {
    display: flex;
    background: rgba(114, 57, 148, 0.08);
    border: 1.5px solid var(--color-border);
  }
  .hamburger:hover {
    background: rgba(114, 57, 148, 0.15);
    border-color: #c191e1;
  }
  .hamburger span {
    background: var(--color-primary-dark);
  }

  /* Mobile nav panel */
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 28px;
    gap: 2px;
    border-bottom: 3px solid var(--color-primary-light);
    box-shadow: 0 16px 40px rgba(68, 36, 84, 0.22);
    transform: translateY(-110%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    z-index: 999;
  }
  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
  }

  /* Divider before the Download App CTA */
  .nav-links li:last-child {
    border-top: 1px solid var(--color-border);
    margin-top: 10px;
    padding-top: 10px;
  }

  /* Nav items — left-accent style */
  .nav-link {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    transition:
      color var(--transition),
      background var(--transition),
      border-color var(--transition);
  }
  .nav-link:hover {
    color: var(--color-primary-light);
    background: var(--color-bg-alt);
    border-left-color: var(--color-primary-light);
  }
  .nav-link.active {
    color: var(--color-primary-light);
    background: var(--color-bg-card);
    border-left-color: var(--color-primary-light);
    font-weight: 600;
  }

  /* Download App button in mobile menu */
  .nav-btn {
    margin-left: 0;
    text-align: center;
    justify-content: center;
    padding: 14px 22px;
    margin-top: 0;
    border-left: none;
  }

  .hero-mockup {
    display: none;
  }

  .stat-divider {
    display: none;
  }
  .hero-stats {
    gap: 24px;
  }

  .footer-links {
    gap: 32px;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-height: 64px;
  }
  .about {
    padding: 64px 0;
  }
  .features {
    padding: 64px 0;
  }
  .screenshots {
    padding: 64px 0;
  }
  .download {
    padding: 64px 0;
  }
  .contact {
    padding: 64px 0;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 24px;
  }
  .hero-app-img {
    width: 220px;
  }
  .screenshots-grid {
    gap: 16px;
  }
}

/* ============================================================
   FLOAT ANIMATION (hero phone)
   ============================================================ */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* ============================================================
   FOOTER — initials logo
   ============================================================ */
.footer-initials-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.logo-icon-lg {
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
  border-radius: 12px;
}

/* Mobile: flip gradient to top-to-bottom so text stays on dark bg */
@media (max-width: 899px) {
  .hero {
    background: linear-gradient(
      to bottom,
      var(--color-primary-dark) 0%,
      var(--color-primary-mid) 55%,
      #ffffff 100%
    );
  }
}

/* ============================================================
   REDUCED MOTION — respect user preference
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}
