/* ==========================================================================
   Kinetic Reports — design system
   :root = light (default in production) · [data-theme="dark"] = override
   ========================================================================== */

:root {
  /* neutrals — light base */
  --bg: #FAFBFD;
  --bg-tint: #F1F5F9;
  --surface: #FFFFFF;
  --surface-2: #F4F7FA;
  --text: #0B1220;
  --text-muted: #55606F;
  --text-faint: #8A94A3;
  --border: #E5EAF1;
  --border-strong: #D3DBE6;

  /* brand — kinetic mint + indigo */
  --brand: #0BA678;
  --brand-strong: #087F5B;
  --accent: #4C6EF5;
  --accent-soft: #EEF2FF;
  --grad: linear-gradient(135deg, #0BA678 0%, #12B886 40%, #4C6EF5 100%);
  --grad-text: linear-gradient(120deg, #0BA678, #4C6EF5);

  --danger: #E03131;
  --warn: #F08C00;
  --ok: #0BA678;

  /* shape + depth */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11,18,32,.05), 0 1px 3px rgba(11,18,32,.06);
  --shadow: 0 6px 24px -8px rgba(11,18,32,.16);
  --shadow-lg: 0 30px 60px -20px rgba(11,18,32,.28);
  --ring: 0 0 0 3px rgba(76,110,245,.30);

  /* typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1180px;
  --nav-h: 68px;
}

[data-theme="dark"] {
  --bg: #070B14;
  --bg-tint: #0B1220;
  --surface: #0D1526;
  --surface-2: #111d33;
  --text: #EAF0F7;
  --text-muted: #9AA8BD;
  --text-faint: #6B7A91;
  --border: #1C2A42;
  --border-strong: #294067;

  --brand: #22E3A0;
  --brand-strong: #17c78a;
  --accent: #8098FF;
  --accent-soft: #161f3a;
  --grad: linear-gradient(135deg, #22E3A0 0%, #38d9c0 40%, #7C8CFF 100%);
  --grad-text: linear-gradient(120deg, #22E3A0, #8098FF);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 10px 34px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 40px 80px -24px rgba(0,0,0,.75);
  --ring: 0 0 0 3px rgba(128,152,255,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1rem; color: var(--text-muted); }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.32rem); color: var(--text-muted); line-height: 1.55; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* layout ------------------------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(56px, 9vw, 120px) 0; }
.eyebrow {
  font: 600 .8rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-strong); margin-bottom: 14px; display: inline-flex; gap: 8px; align-items: center;
}
[data-theme="dark"] .eyebrow { color: var(--brand); }
.center { text-align: center; }
.muted { color: var(--text-muted); }

/* header / nav ------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; letter-spacing: -.02em; }
.brand .mark { width: 30px; height: 30px; flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 9px 13px; border-radius: 10px; color: var(--text-muted); font-weight: 500; font-size: .96rem; transition: .15s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); cursor: pointer; transition: .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }

/* language selector */
.langsel { position: relative; }
.langsel > button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-weight: 600; font-size: .88rem; cursor: pointer; }
.langsel > button:hover { color: var(--text); }
.langsel .menu { position: absolute; right: 0; top: 46px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 168px; display: none; }
.langsel.open .menu { display: block; }
.langsel .menu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 11px; border: 0; background: none; color: var(--text); border-radius: 8px; cursor: pointer; font: inherit; font-size: .92rem; }
.langsel .menu button:hover { background: var(--surface-2); }
.langsel .menu button[aria-current="true"] { color: var(--brand-strong); font-weight: 600; }

/* buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px; font-family: var(--font-sans); font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px -8px rgba(11,166,120,.6); }
[data-theme="dark"] .btn-primary { color: #04231a; }
.btn-primary:hover { box-shadow: 0 12px 30px -8px rgba(11,166,120,.75); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }

/* cards ------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .22s, border-color .2s; }
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .76rem; font-weight: 600; letter-spacing: .01em; background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.badge.free { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand-strong); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
[data-theme="dark"] .badge.free { color: var(--brand); }
.badge.pro { background: linear-gradient(135deg, #4C6EF5, #7048E8); color: #fff; border: 0; }

/* hero -------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 620px; z-index: -1;
  background: radial-gradient(60% 55% at 50% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
              radial-gradient(46% 40% at 82% 8%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 72%);
  filter: blur(6px);
}
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 22px; color: var(--text-faint); font-size: .9rem; }
.hero-meta b { color: var(--text); font-family: var(--font-display); }

/* report cards ------------------------------------------------------------ */
.report-cover { aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; margin: -6px -6px 18px; position: relative; background: var(--grad); }
.report-cover img { width: 100%; height: 100%; object-fit: cover; }
.report-cover .fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.9); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; padding: 20px; text-align: center; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 2px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; }
.price .per { font-size: .9rem; color: var(--text-faint); font-weight: 500; }

/* pricing ----------------------------------------------------------------- */
.plan { position: relative; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.plan .price { font-size: 2.6rem; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-muted); font-size: .96rem; }
.plan li svg { flex: 0 0 auto; margin-top: 3px; color: var(--brand-strong); }
[data-theme="dark"] .plan li svg { color: var(--brand); }

/* newsletter / forms ------------------------------------------------------ */
.field { display: flex; gap: 10px; flex-wrap: wrap; }
.input {
  flex: 1 1 240px; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; transition: .15s;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.form-note { font-size: .82rem; color: var(--text-faint); margin-top: 10px; }

/* CTA band */
.cta-band { background: var(--grad); border-radius: var(--radius-lg); padding: clamp(30px,5vw,56px); color: #fff; position: relative; overflow: hidden; }
[data-theme="dark"] .cta-band { color: #04231a; }
.cta-band h2 { color: inherit; }
.cta-band .lead { color: inherit; opacity: .92; }

/* footer ------------------------------------------------------------------ */
.footer { border-top: 1px solid var(--border); padding: 54px 0 40px; margin-top: 40px; background: var(--bg-tint); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; }
.footer h4 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.footer a { display: block; color: var(--text-muted); padding: 5px 0; font-size: .93rem; }
.footer a:hover { color: var(--brand-strong); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--text-faint); font-size: .86rem; }

/* misc utilities ---------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .86rem; color: var(--text-muted); }
.hr { height: 1px; background: var(--border); border: 0; margin: 0; }
.kicker-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem,4vw,3rem); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[hidden] { display: none !important; }

/* responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex; position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px; gap: 4px; box-shadow: var(--shadow);
  }
  .nav-links.mobile-open a { padding: 13px 14px; font-size: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  body { font-size: 16px; }
}
.hamburger { display: none; }
@media (max-width: 720px) { .hamburger { display: inline-grid; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
