
/* ============================================
   int.link — Cookie Consent Manager
   Dark, dev-focused, green accent #22c55e
   Inspired by Linear / Vercel / Raycast
   ============================================ */

:root {
  /* Surfaces */
  --bg:           #07070a;
  --bg-soft:      #0c0c11;
  --surface:      #111116;
  --surface-2:    #16161d;
  --surface-3:    #1c1c25;

  /* Borders */
  --border:       rgba(255,255,255,0.08);
  --border-soft:  rgba(255,255,255,0.05);
  --border-strong:rgba(255,255,255,0.14);

  /* Text */
  --fg:           #f5f5f7;
  --fg-2:         #c7c7d1;
  --fg-3:         #8a8a98;
  --fg-4:         #5a5a68;
  --fg-5:         #3d3d49;

  /* Accent */
  --accent:       #22c55e;
  --accent-2:     #16a34a;
  --accent-soft:  rgba(34,197,94,0.12);
  --accent-glow:  rgba(34,197,94,0.32);

  /* Hero radials + glass + gradient text (theme-aware) */
  --hero-radial-1: rgba(34,197,94,0.10);
  --hero-radial-2: rgba(59,130,246,0.05);
  --glass:         rgba(15,15,20,0.85);
  --grad-text-1:   #f7f7fb;
  --grad-text-2:   #8c8c96;

  /* Other signals */
  --red:          #ef4444;
  --amber:        #f59e0b;
  --blue:         #3b82f6;
  --purple:       #a855f7;

  /* Type */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Shadow */
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 24px 60px -30px rgba(0,0,0,0.6);
  --shadow-popover: 0 30px 80px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
}

/* ---- Light theme overrides (code terminals stay dark) ---- */
html[data-theme="light"] {
  --bg:           #fafafa;
  --bg-soft:      #f4f4f5;
  --surface:      #ffffff;
  --surface-2:    #f4f4f5;
  --surface-3:    #e4e4e7;

  --border:       rgba(0,0,0,0.08);
  --border-soft:  rgba(0,0,0,0.045);
  --border-strong:rgba(0,0,0,0.16);

  --fg:           #09090b;
  --fg-2:         #27272a;
  --fg-3:         #52525b;
  --fg-4:         #71717a;
  --fg-5:         #a1a1aa;

  --accent-soft:  rgba(34,197,94,0.10);
  --accent-glow:  rgba(34,197,94,0.20);

  --hero-radial-1: rgba(34,197,94,0.07);
  --hero-radial-2: rgba(59,130,246,0.03);
  --glass:         rgba(255,255,255,0.9);
  --grad-text-1:   #09090b;
  --grad-text-2:   #71717a;

  --shadow-card:    0 1px 0 rgba(255,255,255,0.7) inset, 0 8px 24px -12px rgba(0,0,0,0.10);
  --shadow-popover: 0 20px 60px -20px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04);
}

html, body, .nav, .footer, .btn, .step, .cat, .badge, .widget,
.cookie-banner, .stat, .setup__tab, .cta, .tag-card, .cta__input,
.lang-chip, .compat, .eyebrow, .stats, .brand__dot {
  transition: background-color .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

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

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -100px, var(--hero-radial-1), transparent 60%),
    radial-gradient(800px 400px at 90% 10%, var(--hero-radial-2), transparent 70%),
    var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #08120c; }

/* ----------------------------------------------
   Page chrome
---------------------------------------------- */

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__dot {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: linear-gradient(140deg, var(--accent) 0%, #15803d 100%);
  box-shadow:
    0 0 0 1px rgba(34,197,94,0.5),
    0 6px 18px -4px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,0.3);
  display: grid; place-items: center;
  color: #04140a;
  font-weight: 800;
  font-size: 12px;
  font-family: var(--font-mono);
}

.brand__name { color: var(--fg); }
.brand__name b { color: var(--accent); font-weight: 600; }

.brand__by {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  font-size: 12px;
  font-weight: 400;
  color: var(--fg-4);
  letter-spacing: 0;
}
.brand__by b { color: var(--fg-2); font-weight: 600; }
.brand__bydot {
  width: 5px; height: 5px; border-radius: 999px;
  background: var(--fg-5);
}
@media (max-width: 1040px) { .brand__by { display: none; } }
@media (max-width: 900px) { .nav__link { display: none; } }

.nav__links {
  display: flex; gap: 6px; align-items: center;
}
.nav__link {
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--fg-3);
  border-radius: 6px;
  transition: color .12s ease, background .12s ease;
}
.nav__link:hover { color: var(--fg); background: var(--surface-2); }

.nav__cta {
  margin-left: 8px;
}

/* ----------------------------------------------
   Buttons
---------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--fg);
  transition: background .14s ease, border-color .14s ease, transform .08s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-3); border-color: var(--border-strong); }
.btn:active { transform: translateY(0.5px); }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #04130a;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 20px -8px var(--accent-glow);
}
.btn--primary:hover {
  background: #2dd46b;
  border-color: #2dd46b;
}

.btn--lg { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 11px; }
.btn--sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }

.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--surface-2); }

.btn .iconR { transition: transform .15s ease; }
.btn:hover .iconR { transform: translateX(2px); }

/* ----------------------------------------------
   Section primitives
---------------------------------------------- */

section { padding: 96px 0; }
section:first-of-type { padding-top: 64px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-sans);
  letter-spacing: -0.025em;
  color: var(--fg);
}

h2.section-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 720px;
}

.section-kicker {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 18px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.section-kicker::before {
  content: ""; width: 24px; height: 1px;
  background: var(--accent); opacity: .6;
}

.section-sub {
  margin-top: 16px;
  font-size: 16px;
  color: var(--fg-3);
  max-width: 640px;
  line-height: 1.55;
}

/* ----------------------------------------------
   Hero
---------------------------------------------- */

.hero {
  padding: 80px 0 60px;
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero__h1 {
  margin-top: 24px;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.hero__h1 .grad {
  background: linear-gradient(180deg, var(--grad-text-1) 0%, var(--grad-text-2) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero__h1 em::after {
  content: "";
  position: absolute;
  inset: auto -2px -4px -2px;
  height: 8px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  filter: blur(8px);
  z-index: -1;
}

.hero__sub {
  margin-top: 22px;
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 540px;
  text-wrap: pretty;
}
.hero__sub b { color: var(--fg); font-weight: 500; }

.hero__cta {
  margin-top: 32px;
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}

.hero__meta {
  margin-top: 24px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--fg-3);
  font-size: 13px;
}
.hero__meta span {
  display: inline-flex; align-items: center; gap: 7px;
}
.hero__meta svg { color: var(--accent); }

/* Hero right column: stacked artifacts */
.hero__viz {
  position: relative;
  height: 520px;
}

.viz-banner {
  position: absolute;
  bottom: 12px; left: -10px;
  width: 360px;
  z-index: 3;
}

.viz-terminal {
  position: absolute;
  top: 0; right: -20px;
  width: 440px;
  z-index: 2;
  transform: rotate(0.6deg);
}

.viz-tag {
  position: absolute;
  top: 280px; right: 220px;
  z-index: 4;
}

/* ----------------------------------------------
   Cookie banner mock (matches real Orestbida v3 look,
   bottom-left, box inline)
---------------------------------------------- */

.cookie-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-popover);
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.45;
  position: relative;
}

.cookie-banner__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}
.cookie-banner__title .ico {
  width: 18px; height: 18px;
}

.cookie-banner__body {
  font-size: 13px;
  color: var(--fg-3);
}
.cookie-banner__body a {
  color: var(--fg-2);
  text-decoration: underline;
  text-decoration-color: var(--fg-5);
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.cookie-banner__actions .btn {
  height: 34px;
  font-size: 13px;
  justify-content: center;
}

.cookie-banner__manage {
  margin-top: 8px;
  width: 100%;
  text-align: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-2);
  height: 32px;
  border-radius: var(--r-md);
  font-size: 12.5px;
}
.cookie-banner__manage:hover { background: var(--surface-2); }

.cookie-banner__powered {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  font-size: 11px;
  color: var(--fg-4);
  display: flex; align-items: center; justify-content: space-between;
}
.cookie-banner__powered b { color: var(--fg-3); font-weight: 600; }

/* ----------------------------------------------
   Terminal / code card
---------------------------------------------- */

.term {
  background: linear-gradient(180deg, #0e0e14 0%, #0a0a10 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-popover);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
}

.term__bar {
  display: flex; align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
  gap: 10px;
}
.term__dots { display: flex; gap: 6px; }
.term__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.term__title {
  color: var(--fg-4);
  font-size: 11.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.term__title svg { vertical-align: -2px; margin-right: 4px; }
.term__pill {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-mono);
}

.term__body {
  padding: 14px 16px 16px;
  color: var(--fg-2);
  white-space: pre;
  overflow-x: auto;
}
.term__body::-webkit-scrollbar { height: 6px; }
.term__body::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }

.tok-key    { color: #9aa3b2; }
.tok-str    { color: #22c55e; }
.tok-num    { color: #f59e0b; }
.tok-fn     { color: #a78bfa; }
.tok-com    { color: #4b5163; font-style: italic; }
.tok-kw     { color: #60a5fa; }
.tok-bool   { color: #f59e0b; }
.tok-prop   { color: #e879f9; }
.tok-bracket{ color: #6b7280; }

/* Tag card hovering */
.tag-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.4);
  font-size: 12px;
  color: var(--fg-2);
}
.tag-card .ico {
  width: 28px; height: 28px;
  background: var(--accent-soft);
  border-radius: 7px;
  display: grid; place-items: center;
  color: var(--accent);
}
.tag-card b { color: var(--fg); font-weight: 600; }

/* Theme toggle button */
.theme-toggle {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg-3);
  cursor: pointer;
  margin-right: 4px;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.theme-toggle:hover { background: var(--surface-2); color: var(--fg); border-color: var(--border-strong); }

.compat {
  padding: 28px 0 0;
  border-top: 1px solid var(--border-soft);
  margin-top: 56px;
}
.compat__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-4);
  text-align: center;
  font-family: var(--font-mono);
  margin-bottom: 22px;
}
.compat__row {
  display: flex; justify-content: center; align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  color: var(--fg-3);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.compat__row span {
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0.7;
  transition: opacity .2s ease;
}
.compat__row span:hover { opacity: 1; }

/* ----------------------------------------------
   Stats
---------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.stat {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat:last-child { border-right: none; }

.stat__big {
  font-size: 60px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
  display: flex; align-items: baseline; gap: 6px;
}
.stat__big .unit {
  font-size: 28px;
  color: var(--fg-3);
  font-weight: 500;
}
.stat--accent .stat__big { color: var(--accent); }

.stat__label {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.stat__desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.5;
  max-width: 280px;
}

.stat__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  opacity: 0;
  transition: opacity .3s ease;
}
.stat:hover .stat__bar { opacity: 1; }

/* ----------------------------------------------
   How it works
---------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 22px 24px;
  position: relative;
  transition: border-color .15s ease, transform .15s ease;
}
.step:hover { border-color: var(--border-strong); }

.step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.05em;
}
.step__icon {
  margin-top: 12px;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(34,197,94,0.25);
  color: var(--accent);
  display: grid; place-items: center;
}
.step__title {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.step__desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.55;
}
.step__time {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--fg-4);
  font-family: var(--font-mono);
  display: inline-flex; align-items: center; gap: 6px;
}
.step__time::before {
  content: ""; width: 4px; height: 4px;
  background: var(--accent); border-radius: 50%;
}

/* Step connector */
.step__arrow {
  position: absolute;
  right: -14px; top: 50%;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: var(--fg-5);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.step:last-child .step__arrow { display: none; }

/* ----------------------------------------------
   Categories
---------------------------------------------- */

.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease;
}
.cat:hover { border-color: var(--border-strong); }

.cat__head {
  display: flex; align-items: center; justify-content: space-between;
}

.cat__name {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600;
}
.cat__name .ico {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 7px;
}

.cat--necessary .cat__name .ico { background: rgba(245,158,11,0.12); color: var(--amber); }
.cat--analytics .cat__name .ico { background: rgba(59,130,246,0.12); color: var(--blue); }
.cat--marketing .cat__name .ico { background: rgba(168,85,247,0.12); color: var(--purple); }

.cat__toggle {
  width: 36px; height: 20px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: background .15s ease;
}
.cat__toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--fg-2);
  transition: transform .15s ease, background .15s ease;
}
.cat__toggle--on { background: var(--accent); border-color: var(--accent); }
.cat__toggle--on::after { transform: translateX(16px); background: #04140a; }
.cat__toggle--locked {
  background: var(--accent);
  border-color: var(--accent);
  opacity: 0.55;
  cursor: not-allowed;
}
.cat__toggle--locked::after { transform: translateX(16px); background: #04140a; }

.cat__key {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-4);
}
.cat__key b { color: var(--accent); font-weight: 600; }

.cat__desc {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.55;
}

.cat__cookies {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.cat__cookies-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-4);
  margin-bottom: 10px;
  font-family: var(--font-mono);
}
.cat__cookie {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  padding: 5px 0;
}
.cat__cookie code { color: var(--fg-2); }

/* ----------------------------------------------
   Setup (code + tabs)
---------------------------------------------- */

.setup {
  display: grid;
  grid-template-columns: 0.85fr 1.2fr;
  gap: 36px;
  margin-top: 48px;
  align-items: stretch;
}

.setup__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.setup__tab {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  text-align: left;
  color: var(--fg-3);
  transition: background .12s ease, border-color .12s ease, color .12s ease;
  cursor: pointer;
  font: inherit;
  width: 100%;
}
.setup__tab:hover { background: var(--surface); color: var(--fg-2); }
.setup__tab.is-active {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--fg);
}

.setup__tab-num {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  flex-shrink: 0;
}
.setup__tab.is-active .setup__tab-num {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.setup__tab-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.setup__tab-desc {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--fg-3);
  line-height: 1.5;
}

.setup__code {
  background: linear-gradient(180deg, #0e0e14 0%, #0a0a10 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.setup__code-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.015);
}
.setup__code-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
}
.setup__code-lang {
  font-size: 10.5px;
  color: var(--fg-4);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.copy-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px;
  padding: 0 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg-2);
  font-size: 11.5px;
  font-family: var(--font-mono);
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.copy-btn:hover { background: var(--surface-3); color: var(--fg); }
.copy-btn.is-copied { color: var(--accent); border-color: rgba(34,197,94,0.4); background: var(--accent-soft); }

.setup__code-body {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--fg-2);
  padding: 16px 0;
  overflow-x: auto;
  flex: 1;
}
.setup__code-body::-webkit-scrollbar { height: 6px; }
.setup__code-body::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }

.code-line {
  display: grid;
  grid-template-columns: 44px 1fr;
  padding: 0;
}
.code-line .ln {
  text-align: right;
  padding-right: 14px;
  color: var(--fg-5);
  user-select: none;
}
.code-line .code {
  white-space: pre;
  padding-right: 20px;
}
.code-line.is-highlight { background: rgba(34,197,94,0.06); }
.code-line.is-highlight .ln { color: var(--accent); }

/* ----------------------------------------------
   Cookieless GA4 section
---------------------------------------------- */

.cookieless {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(34,197,94,0.2);
  padding: 1px 6px;
  border-radius: 4px;
  margin: 0 2px;
}

.check-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  color: var(--fg-2);
}
.check-list li svg { color: var(--accent); flex-shrink: 0; }
.check-list li b { color: var(--fg); font-weight: 600; }

.split-table {
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.split-table__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--fg-2);
}
.split-table__row > span:nth-child(2),
.split-table__row > span:nth-child(3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.split-table__row i {
  font-style: normal;
  color: var(--fg-4);
  font-size: 11px;
  margin-left: 4px;
}
.split-table__row--head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-4);
  background: rgba(255,255,255,0.015);
}
.split-table__row--modeled {
  color: var(--accent);
  background: rgba(34,197,94,0.04);
}
.split-table__row--modeled b { color: var(--accent); font-weight: 600; }
.split-table__row--total {
  font-weight: 600;
  color: var(--fg);
  border-bottom: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

@media (max-width: 1024px) {
  .cookieless { grid-template-columns: 1fr; gap: 36px; }
}

/* ----------------------------------------------
   Roadmap / widget grid
---------------------------------------------- */

.widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
  transition: border-color .15s ease;
}
.widget:hover { border-color: var(--border-strong); }
.widget.is-live { border-color: rgba(34,197,94,0.3); background: linear-gradient(180deg, rgba(34,197,94,0.04), transparent 80%), var(--surface); }

.widget__ico {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--fg-3);
  flex-shrink: 0;
}
.widget.is-live .widget__ico {
  background: var(--accent-soft);
  border-color: rgba(34,197,94,0.3);
  color: var(--accent);
}
.widget__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  flex: 1;
}
.widget__state {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
}
.widget__state--live { color: var(--accent); background: var(--accent-soft); }
.widget__state--soon { color: var(--fg-4); background: var(--surface-2); border: 1px solid var(--border); }

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

/* ----------------------------------------------
   Compliance / badges
---------------------------------------------- */

.badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .15s ease;
}
.badge:hover { border-color: var(--border-strong); }
.badge__head {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
.badge__head .ico {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}
.badge__desc {
  font-size: 12.5px;
  color: var(--fg-3);
  line-height: 1.5;
}

/* ----------------------------------------------
   Languages strip
---------------------------------------------- */

.langs {
  margin-top: 28px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--fg-2);
  font-family: var(--font-mono);
}
.lang-chip .flag {
  font-size: 13px;
}
.lang-chip b { color: var(--fg); font-weight: 600; }

/* ----------------------------------------------
   Final CTA
---------------------------------------------- */

.cta {
  margin: 32px 0 80px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  background:
    radial-gradient(600px 200px at 20% 0%, rgba(34,197,94,0.10), transparent 70%),
    radial-gradient(400px 200px at 90% 100%, rgba(34,197,94,0.06), transparent 70%),
    var(--surface);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 70%);
  pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }

.cta__title {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 600px;
}
.cta__sub {
  margin-top: 16px;
  color: var(--fg-3);
  font-size: 16px;
  max-width: 560px;
  line-height: 1.55;
}
.cta__form {
  margin-top: 28px;
  display: flex; gap: 8px; max-width: 480px;
  flex-wrap: wrap;
}
.cta__input {
  flex: 1;
  min-width: 240px;
  height: 44px;
  padding: 0 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.cta__input::placeholder { color: var(--fg-4); }
.cta__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.cta__form .btn { height: 44px; padding: 0 18px; }

.cta__note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--fg-4);
  font-family: var(--font-mono);
}

/* ----------------------------------------------
   Footer
---------------------------------------------- */

.footer {
  border-top: 1px solid var(--border-soft);
  padding: 32px 0 48px;
  font-size: 13px;
  color: var(--fg-4);
}
.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer__links { display: flex; gap: 22px; }
.footer__links a:hover { color: var(--fg-2); }

/* ----------------------------------------------
   Live demo banner (real one in bottom-left)
---------------------------------------------- */

.live-banner {
  position: fixed;
  bottom: 18px;
  left: 18px;
  width: 360px;
  z-index: 100;
  animation: slideIn .4s ease-out;
}
@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ----------------------------------------------
   Responsive
---------------------------------------------- */

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__viz { height: 480px; }
  .hero__h1 { font-size: 52px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step__arrow { display: none; }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .setup { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .page { padding: 0 18px; }
  .hero__h1 { font-size: 40px; }
  h2.section-title { font-size: 30px; }
  .stat__big { font-size: 44px; }
  .stat { padding: 26px 22px; }
  .cta { padding: 36px 24px; }
  .cta__title { font-size: 28px; }
  .steps { grid-template-columns: 1fr; }
  .badges { grid-template-columns: 1fr; }
  .nav__links a:not(.btn) { display: none; }
  .live-banner { width: calc(100% - 24px); left: 12px; bottom: 12px; }
  .viz-terminal { width: 100%; right: 0; }
  .viz-banner { width: 100%; left: 0; }
  .viz-tag { display: none; }
}

/* ============================================================
   DARK-LOCK: code surfaces stay dark in BOTH themes
   Forces hardcoded dark values when [data-theme="light"] is on,
   so terminal & GTM setup snippet always look like devtools.
   ============================================================ */
html[data-theme="light"] .term,
html[data-theme="light"] .setup__code {
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.05);
}
html[data-theme="light"] .term__bar {
  background: #0e0e14;
  border-bottom-color: rgba(255,255,255,0.05);
}
html[data-theme="light"] .term__dots span { background: #1c1c25; }
html[data-theme="light"] .term__title { color: #5a5a68; }
html[data-theme="light"] .term__body { color: #c7c7d1; }
html[data-theme="light"] .term__body::-webkit-scrollbar-thumb { background: #1c1c25; }

html[data-theme="light"] .setup__code-bar {
  background: rgba(255,255,255,0.02);
  border-bottom-color: rgba(255,255,255,0.05);
}
html[data-theme="light"] .setup__code-name { color: #8a8a98; }
html[data-theme="light"] .setup__code-lang {
  background: #16161d;
  border-color: rgba(255,255,255,0.08);
  color: #5a5a68;
}
html[data-theme="light"] .copy-btn {
  background: #16161d;
  border-color: rgba(255,255,255,0.08);
  color: #c7c7d1;
}
html[data-theme="light"] .copy-btn:hover { background: #1c1c25; color: #f5f5f7; }
html[data-theme="light"] .copy-btn.is-copied {
  background: rgba(34,197,94,0.14);
  border-color: rgba(34,197,94,0.4);
  color: #34d670;
}
html[data-theme="light"] .setup__code-body { color: #c7c7d1; }
html[data-theme="light"] .setup__code-body::-webkit-scrollbar-thumb { background: #1c1c25; }
html[data-theme="light"] .code-line .ln { color: #3d3d49; }

html[data-theme="light"] .split-table__row {
  color: #c7c7d1;
  border-bottom-color: rgba(255,255,255,0.05);
}
html[data-theme="light"] .split-table__row--head {
  color: #5a5a68;
  background: rgba(255,255,255,0.015);
}
html[data-theme="light"] .split-table__row--total {
  color: #f5f5f7;
  background: #111116;
  border-top-color: rgba(255,255,255,0.08);
}

/* Cookie-banner: also stays dark inside hero viz (it overlays terminal) */
/* But the live banner & body context is theme-aware via tokens, which is correct */

