:root {
  --navy: #0d1b2e;
  --navy-light: #16283f;
  --orange: #ff6a13;
  --blue-mid: #3d7cc9;
  --text: #f4f6f8;
  --text-muted: #b7c2cf;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Clash Display', var(--font-body);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.how-eyebrow,
.how-label {
  font-family: var(--font-display);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ── Ambient background glow ────────────────────────────────────── */

.ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  max-width: 140vw;
  max-height: 140vw;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.15;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  animation: glow-pulse 10s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.15; }
  50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 0.22; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-glow {
    animation: none;
  }
}

/* ── Grain texture ──────────────────────────────────────────────── */

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.03;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ── Top bar / logo ─────────────────────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  padding: 20px 24px;
}

.logo-link {
  display: inline-flex;
}

.logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy-light);
  overflow: hidden;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Hero ────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 40px 24px 64px;
  max-width: 1360px;
  margin: 0 auto;
}

.hero-text {
  text-align: center;
  max-width: 520px;
}

.hero-headline {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero-subhead {
  margin-top: 20px;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(255, 106, 19, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-store:hover,
.btn-store:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 106, 19, 0.35);
}

.hero-visual {
  width: 100%;
  max-width: 360px;
  display: flex;
  justify-content: center;
}

.hero-phone {
  width: 100%;
  transform: rotate(-6deg);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50%      { transform: rotate(-6deg) translateY(-14px); }
}

/* ── Responsive: side-by-side on wider viewports ───────────────────── */

@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding-top: 80px;
    padding-bottom: 100px;
  }

  .hero-text {
    flex: 0 1 420px;
    text-align: left;
  }

  .hero-visual {
    flex: 1 1 680px;
    max-width: 800px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-phone {
    animation: none;
  }
}

/* ── Scroll reveal ──────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── "How it works" 3-step ──────────────────────────────────────── */

.how {
  padding: 96px 24px;
}

.how-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.how-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--orange);
  margin-bottom: 48px;
}

.how-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.how-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--orange);
}

.how-label {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.how-connector {
  flex-shrink: 0;
  width: 2px;
  height: 48px;
}

.how-connector .line-h,
.how-connector .line-v {
  stroke: var(--orange);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1s ease 0.3s;
}

.how-connector .line-v { display: block; }
.how-connector .line-h { display: none; }

.how.visible .how-connector .line-v,
.how.visible .how-connector .line-h {
  stroke-dashoffset: 0;
}

@media (min-width: 768px) {
  .how-steps {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
  }

  .how-connector {
    width: auto;
    height: 2px;
    flex: 1;
    max-width: 120px;
    margin-top: 27px;
  }

  .how-connector .line-v { display: none; }
  .how-connector .line-h { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .how-connector .line-h,
  .how-connector .line-v {
    transition: none;
    stroke-dashoffset: 0;
  }
}

/* ── Industry stats ─────────────────────────────────────────────── */

.stats {
  position: relative;
  overflow: hidden;
  padding: 96px 24px;
}

.stats-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.stats-headline {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 56px;
}

.stat-chart {
  margin-bottom: 56px;
}

.stat-bar {
  width: 100%;
  height: 40px;
  display: block;
}

.bar-track {
  fill: rgba(255, 255, 255, 0.08);
}

.bar-seg {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s ease-out;
}

.bar-seg-noai    { fill: var(--text-muted); }
.bar-seg-pilot   { fill: var(--blue-mid); }
.bar-seg-adopted { fill: var(--orange); }

.stats.visible .bar-seg-noai    { clip-path: inset(0 0% 0 0); transition-delay: 0s; }
.stats.visible .bar-seg-pilot   { clip-path: inset(0 0% 0 0); transition-delay: 0.15s; }
.stats.visible .bar-seg-adopted { clip-path: inset(0 0% 0 0); transition-delay: 0.3s; }

.stat-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

.stat-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot-noai    { background: var(--text-muted); }
.legend-dot-pilot   { background: var(--blue-mid); }
.legend-dot-adopted { background: var(--orange); }

.legend-pct {
  font-weight: 700;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.stats.visible .legend-pct-noai    { opacity: 1; transition-delay: 1s; }
.stats.visible .legend-pct-pilot   { opacity: 1; transition-delay: 1.15s; }
.stats.visible .legend-pct-adopted { opacity: 1; transition-delay: 1.3s; }

.stat-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.stat-secondary-text {
  color: var(--text);
  font-size: 1rem;
  max-width: 380px;
  text-align: left;
}

.sparkline {
  width: 110px;
  height: 36px;
  flex-shrink: 0;
}

.sparkline-path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.2s ease-out;
  transition-delay: 0.3s;
}

.stats.visible .sparkline-path {
  stroke-dashoffset: 0;
}

.stat-citation {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .bar-seg,
  .legend-pct,
  .sparkline-path {
    transition: none;
    clip-path: inset(0 0% 0 0);
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

/* ── Support / FAQ ──────────────────────────────────────────────── */

.support {
  position: relative;
  padding: 96px 24px;
  background-image: linear-gradient(rgba(13, 27, 46, 0.85), rgba(13, 27, 46, 0.85)), url('assets/section-bg.jpg');
  background-size: cover;
  background-position: center;
}

.support-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.support-heading {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.support-contact {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 56px;
}

.accent-link {
  color: var(--orange);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.accent-link:hover,
.accent-link:focus-visible {
  opacity: 0.75;
}

.faq {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-toggle:hover,
.faq-toggle:focus-visible {
  color: var(--orange);
}

.faq-icon {
  flex-shrink: 0;
  display: flex;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-toggle[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-answer-wrap {
  overflow: hidden;
}

.faq-item.open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-answer {
  padding: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Closing App Store CTA ──────────────────────────────────────── */

.cta {
  position: relative;
  overflow: hidden;
  padding: 120px 24px;
  text-align: center;
}

.cta-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.cta-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.cta-subtext {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.2s ease;
}

.app-store-badge:hover,
.app-store-badge:focus-visible {
  transform: translateY(-2px);
}

/* ── Footer ─────────────────────────────────────────────────────── */

.site-footer {
  padding: 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-logo {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.2s ease;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  order: 3;
  width: 100%;
  text-align: center;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-logo:hover,
.footer-logo:focus-visible,
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--orange);
}

@media (min-width: 640px) {
  .footer-copy {
    order: 0;
    width: auto;
    text-align: left;
  }
}

/* ── Legal pages (privacy, terms) ──────────────────────────────────── */

.legal {
  padding: 96px 24px 120px;
}

.legal-inner {
  max-width: 700px;
  margin: 0 auto;
}

.legal-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 48px;
}

.legal-inner h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-inner h2:first-of-type {
  margin-top: 0;
}

.legal-inner h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-inner p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-inner ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-muted);
  line-height: 1.8;
}

.legal-inner li {
  margin-bottom: 6px;
}
