/* AdsCoach Landing — global styles + design tokens */

:root {
  --bg-primary: 220 13% 8%;
  --bg-secondary: 220 13% 11%;
  --bg-card: 220 13% 13%;
  --bg-elevated: 220 13% 16%;

  --border: 220 9% 20%;
  --border-strong: 220 9% 28%;
  --border-subtle: 220 9% 15%;

  --text-primary: 0 0% 96%;
  --text-secondary: 220 9% 70%;
  --text-muted: 220 9% 48%;
  --text-faint: 220 9% 35%;

  --accent: 188 88% 56%;
  --accent-strong: 188 92% 50%;
  --accent-foreground: 220 30% 8%;

  --red: 0 75% 62%;
  --orange: 28 90% 60%;
  --yellow: 45 95% 60%;
  --green: 152 65% 52%;
  --blue: 215 90% 65%;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --shadow: 0 4px 16px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5), 0 2px 4px rgba(0,0,0,.4);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: hsl(var(--bg-primary));
  color: hsl(var(--text-primary));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ── Layout helpers ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 16px 0;
  background: hsl(var(--bg-primary) / .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border-subtle));
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: hsl(var(--text-primary)); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: hsl(var(--text-secondary));
  text-decoration: none; transition: color .15s;
}
.nav-links a:hover { color: hsl(var(--text-primary)); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-mobile-toggle { display: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 500; font-size: 14px; line-height: 1;
  padding: 10px 14px; border-radius: var(--r); border: 1px solid transparent;
  cursor: pointer; transition: all .15s ease; user-select: none;
  white-space: nowrap; text-decoration: none;
}
.btn:focus-visible { outline: 2px solid hsl(var(--accent) / .5); outline-offset: 2px; }
.btn-primary { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); font-weight: 600; }
.btn-primary:hover { background: hsl(var(--accent-strong)); }
.btn-secondary { background: hsl(var(--bg-elevated)); color: hsl(var(--text-primary)); border-color: hsl(var(--border)); }
.btn-secondary:hover { background: hsl(220 13% 19%); border-color: hsl(var(--border-strong)); }
.btn-ghost { background: transparent; color: hsl(var(--text-secondary)); }
.btn-ghost:hover { background: hsl(var(--bg-elevated)); color: hsl(var(--text-primary)); }
.btn-sm { padding: 7px 10px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: var(--r-lg); }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 9999px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.badge-accent { background: hsl(var(--accent) / .14); color: hsl(var(--accent)); border-color: hsl(var(--accent) / .3); }
.badge-gray { background: hsl(var(--bg-elevated)); color: hsl(var(--text-secondary)); border-color: hsl(var(--border)); }
.badge-red { background: hsl(var(--red) / .14); color: hsl(var(--red)); border-color: hsl(var(--red) / .25); }
.badge-orange { background: hsl(var(--orange) / .14); color: hsl(var(--orange)); border-color: hsl(var(--orange) / .25); }
.badge-green { background: hsl(var(--green) / .14); color: hsl(var(--green)); border-color: hsl(var(--green) / .25); }
.badge-blue { background: hsl(var(--blue) / .14); color: hsl(var(--blue)); border-color: hsl(var(--blue) / .25); }

/* ── Cards ── */
.card {
  background: hsl(var(--bg-card));
  border: 1px solid hsl(var(--border-subtle));
  border-radius: var(--r-lg);
  padding: 24px;
}

/* ── Hero ── */
.hero {
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 75% 30%, hsl(var(--accent) / .14), transparent 50%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 9999px;
  background: hsl(var(--accent) / .1);
  border: 1px solid hsl(var(--accent) / .25);
  font-size: 12px; color: hsl(var(--accent)); font-weight: 600;
  margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--accent)); animation: pulse 1.6s infinite; }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 700; line-height: 1.05;
  margin: 0 0 24px; letter-spacing: -.025em;
}
.hero h1 .hl { color: hsl(var(--accent)); position: relative; display: inline-block; }
.hero h1 .hl::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 0; height: 8px;
  background: hsl(var(--accent) / .25); border-radius: 4px; z-index: -1;
}
.hero-lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: hsl(var(--text-secondary)); line-height: 1.5;
  margin: 0 0 32px; max-width: 540px;
}
.hero-lead strong { color: hsl(var(--text-primary)); }
.hero-ctas { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; flex-wrap: wrap; }
.hero-meta {
  display: flex; align-items: center; gap: 18px;
  font-size: 13px; color: hsl(var(--text-muted)); flex-wrap: wrap;
}
.hero-meta .item { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .note { width: 100%; font-size: 12.5px; color: hsl(var(--text-faint)); }

.hero-mock-wrap { position: relative; }
.hero-mock-wrap::before {
  content: ""; position: absolute; top: -40px; right: -40px; width: 120%; height: 120%;
  background: radial-gradient(circle, hsl(var(--accent) / .18), transparent 60%);
  pointer-events: none;
}
.hero-mock {
  position: relative; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px hsl(var(--border-strong));
  transform: perspective(1600px) rotateY(-8deg) rotateX(2deg) scale(.92);
  transform-origin: left center;
}
.hero-callout {
  position: absolute; top: 40px; right: -10px;
  padding: 10px 14px; border-radius: 12px;
  background: hsl(var(--bg-card));
  border: 1px solid hsl(var(--accent) / .3);
  box-shadow: var(--shadow);
  font-size: 12px; color: hsl(var(--text-secondary));
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  transform: rotate(3deg);
}

/* mini mock interior */
.mini-mock { background: hsl(var(--bg-primary)); display: flex; flex-direction: column; }
.mini-mock .bar {
  height: 30px; background: #2c2c2c; display: flex; align-items: center; padding: 0 10px;
  font-size: 11px; color: #aaa; gap: 6px;
}
.mini-mock .head {
  padding: 14px; background: hsl(var(--bg-secondary));
  border-bottom: 1px solid hsl(var(--border-subtle));
  display: flex; justify-content: space-between; align-items: center;
}
.mini-mock .body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mini-mock .row { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.mini-mock .item-card {
  padding: 10px; border-radius: 10px; display: flex; gap: 10px;
  background: hsl(var(--bg-card));
}
.mini-mock .item-card.red { border: 1px solid hsl(var(--red) / .2); }
.mini-mock .item-card.green { border: 1px solid hsl(var(--green) / .22); }
.mini-mock .item-card .ic {
  width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.mini-mock .item-card.red .ic { background: hsl(var(--red) / .14); color: hsl(var(--red)); }
.mini-mock .item-card.green .ic { background: hsl(var(--green) / .14); color: hsl(var(--green)); }
.mini-mock .item-card .ti { font-size: 12px; font-weight: 600; margin-bottom: 3px; }
.mini-mock .item-card .cx { font-size: 11px; color: hsl(var(--text-secondary)); line-height: 1.4; }

/* ── Section heading ── */
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head.left { text-align: left; max-width: 600px; }
.sec-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; margin: 14px 0 12px; letter-spacing: -.02em; line-height: 1.1;
}
.sec-head p {
  font-size: 16px; color: hsl(var(--text-secondary)); margin: 0 auto;
  max-width: 600px; line-height: 1.5;
}

/* ── How section ── */
.how { background: hsl(var(--bg-secondary)); }
.how-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  position: relative;
}
.how-grid::before {
  content: ""; position: absolute; top: 48px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--accent) / .4), transparent);
  pointer-events: none;
}
.step-card { position: relative; text-align: center; padding: 0 8px; }
.step-icon {
  width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 18px;
  background: hsl(var(--bg-card));
  border: 1px solid hsl(var(--accent) / .25);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 10px 30px hsl(var(--accent) / .08);
}
.step-num {
  position: absolute; top: -8px; right: -8px;
  padding: 3px 8px; border-radius: 6px;
  background: hsl(var(--accent)); color: hsl(var(--accent-foreground));
  font-size: 11px; font-weight: 700; font-family: var(--font-mono);
}
.step-card h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }
.step-card p { font-size: 13.5px; color: hsl(var(--text-secondary)); line-height: 1.55; margin: 0; }

/* ── Features ── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.feature .ic {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature.accent .ic { background: hsl(var(--accent) / .12); color: hsl(var(--accent)); }
.feature.blue .ic { background: hsl(var(--blue) / .12); color: hsl(var(--blue)); }
.feature.orange .ic { background: hsl(var(--orange) / .12); color: hsl(var(--orange)); }
.feature.green .ic { background: hsl(var(--green) / .12); color: hsl(var(--green)); }
.feature h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.feature p { font-size: 13.5px; color: hsl(var(--text-secondary)); line-height: 1.55; margin: 0; }

/* ── Demo ── */
.demo { background: hsl(var(--bg-secondary)); }
.demo-stage {
  max-width: 760px; margin: 0 auto;
  position: relative; min-height: 200px;
}
.demo-finding {
  background: hsl(var(--bg-card));
  border-radius: var(--r-lg);
  padding: 16px 20px;
  display: flex; align-items: flex-start; gap: 14px;
  border: 1px solid hsl(var(--border-subtle));
  transition: opacity .5s ease, transform .5s ease;
}
.demo-finding[data-state="entering"] { opacity: 0; transform: translateY(8px); }
.demo-finding[data-state="visible"] { opacity: 1; transform: translateY(0); }
.demo-finding.sev-red { border-color: hsl(var(--red) / .35); }
.demo-finding.sev-green { border-color: hsl(var(--green) / .35); }
.demo-finding.sev-blue { border-color: hsl(var(--blue) / .35); }
.demo-finding .icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.demo-finding.sev-red .icon { background: hsl(var(--red) / .14); color: hsl(var(--red)); }
.demo-finding.sev-green .icon { background: hsl(var(--green) / .14); color: hsl(var(--green)); }
.demo-finding.sev-blue .icon { background: hsl(var(--blue) / .14); color: hsl(var(--blue)); }
.demo-finding .body { flex: 1; min-width: 0; }
.demo-finding .head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.demo-finding .title { font-size: 15px; font-weight: 600; }
.demo-finding .ctx { font-size: 13.5px; color: hsl(var(--text-secondary)); line-height: 1.55; }
.demo-finding .ev {
  margin-top: 10px; padding: 8px 12px; border-radius: var(--r-sm);
  background: hsl(var(--bg-elevated)); border: 1px solid hsl(var(--border-subtle));
  font-family: var(--font-mono); font-size: 12px; color: hsl(var(--text-secondary));
}
.demo-progress {
  display: flex; gap: 6px; justify-content: center; margin-top: 24px;
}
.demo-dot {
  width: 28px; height: 4px; border-radius: 2px;
  background: hsl(var(--border)); transition: background .3s;
}
.demo-dot.active { background: hsl(var(--accent)); }
.demo-cta { text-align: center; margin-top: 32px; }
.demo-cta-note { font-size: 12.5px; color: hsl(var(--text-muted)); margin-top: 10px; }

/* ── Install/Manual section ── */
.install-card {
  max-width: 720px; margin: 0 auto;
  padding: 32px;
  text-align: center;
  background: linear-gradient(135deg, hsl(var(--accent) / .08), hsl(220 13% 12%));
  border: 1px solid hsl(var(--accent) / .25);
  border-radius: var(--r-xl);
}
.install-card h3 { font-size: 24px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.015em; }
.install-card p { font-size: 14.5px; color: hsl(var(--text-secondary)); margin: 0 0 20px; line-height: 1.55; }

/* ── Social / Testimonials ── */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 48px;
}
.testimonial { padding: 24px; }
.testimonial .quote { font-size: 14.5px; color: hsl(var(--text-secondary)); line-height: 1.55; margin: 0 0 20px; font-style: italic; min-height: 90px; }
.testimonial .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: hsl(var(--bg-elevated)); color: hsl(var(--text-muted));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; margin-right: 12px;
  border: 1px dashed hsl(var(--border));
}
.testimonial .person { display: flex; align-items: center; }
.testimonial .meta .name { font-size: 13.5px; font-weight: 600; }
.testimonial .meta .role { font-size: 12px; color: hsl(var(--text-muted)); }
.testimonial.placeholder {
  background: repeating-linear-gradient(45deg, hsl(var(--bg-card)) 0 8px, hsl(220 13% 14%) 8px 16px);
  border-style: dashed;
}
.testimonial.placeholder .quote { font-style: normal; color: hsl(var(--text-muted)); }

.cta-strip {
  margin-top: 40px;
  padding: 40px; text-align: center;
  background: linear-gradient(135deg, hsl(var(--accent) / .14), hsl(220 13% 14%));
  border: 1px solid hsl(var(--accent) / .3);
  border-radius: var(--r-xl);
}
.cta-strip h3 { font-size: clamp(22px, 3vw, 32px); font-weight: 700; margin: 0 0 12px; letter-spacing: -.02em; }
.cta-strip p { font-size: 15px; color: hsl(var(--text-secondary)); margin: 0 0 24px; }
.cta-strip .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid hsl(var(--border-subtle));
  border-radius: var(--r-lg);
  margin-bottom: 10px;
  background: hsl(var(--bg-card));
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-weight: 600; font-size: 15px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px; font-weight: 400;
  color: hsl(var(--accent));
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer {
  padding: 0 22px 20px;
  color: hsl(var(--text-secondary));
  font-size: 14.5px;
  line-height: 1.6;
}
.faq-item .answer a { color: hsl(var(--accent)); }

/* ── Footer ── */
.footer {
  padding: 48px 0 32px;
  background: hsl(var(--bg-secondary));
  border-top: 1px solid hsl(var(--border-subtle));
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 12px; color: hsl(var(--text-muted));
  text-transform: uppercase; letter-spacing: .06em;
  font-weight: 600; margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 13px; color: hsl(var(--text-secondary)); text-decoration: none;
}
.footer-col a:hover { color: hsl(var(--text-primary)); }
.footer-tagline { font-size: 13px; color: hsl(var(--text-muted)); margin: 12px 0 0; max-width: 280px; line-height: 1.55; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 24px; border-top: 1px solid hsl(var(--border-subtle));
  font-size: 12px; color: hsl(var(--text-muted));
  flex-wrap: wrap;
}

/* ── Animations ── */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ── Responsive: tablet ── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-mock-wrap { order: -1; max-width: 520px; margin: 0 auto; }
  .hero-mock { transform: none; }
  .hero-callout { right: 10px; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid::before { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ── Responsive: mobile ── */
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-mobile-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: transparent; border: 1px solid hsl(var(--border));
    border-radius: 8px; color: hsl(var(--text-primary)); cursor: pointer;
  }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; gap: 12px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: hsl(var(--bg-secondary)); border-bottom: 1px solid hsl(var(--border-subtle));
    padding: 20px 24px;
  }
  .nav.is-open .nav-links a { padding: 8px 0; }
  .nav-actions .btn-ghost { display: none; }
  .hero { padding: 48px 0 72px; }
  .hero-mock { transform: none; }
  .hero-meta { gap: 12px; }
  .how-grid { grid-template-columns: 1fr; gap: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .demo-finding { padding: 14px; gap: 12px; }
  .demo-finding .title { font-size: 14px; }
  .cta-strip { padding: 28px 20px; }
}
