/* ════════════════════════════════════════════════════════════════
   TK FLUX — Autonomous Growth Engine
   Shared design system. Aesthetic: executive-noir. Off-black depths,
   gold-leaf accents, sharp grotesk display, mono data labels. App-like.
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Hanken+Grotesk:wght@400;500;600&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --ink: #0a0a0c;
  --ink-2: #101014;
  --ink-3: #16161c;
  --panel: #14141a;
  --panel-2: #1b1b22;
  --line: #2a2a33;
  --line-soft: #20202733;
  --fog: #9a9aa6;
  --fog-2: #6c6c78;
  --cream: #f4efe3;
  --white: #fbfaf6;
  --gold: #d8b24a;
  --gold-bright: #f3cf6e;
  --gold-deep: #a07c25;
  --green: #57b894;
  --red: #e0664f;
  --amber: #e0a44f;
  --blue: #5e8fd6;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  --shadow-gold: 0 20px 60px -28px rgba(216, 178, 74, 0.4);
  --maxw: 1180px;

  --display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.55;
  font-size: 17px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  /* Atmosphere: warm gold haze drifting out of the dark. */
  background-image:
    radial-gradient(1100px 620px at 78% -8%, rgba(216, 178, 74, 0.16), transparent 60%),
    radial-gradient(900px 700px at -10% 18%, rgba(216, 178, 74, 0.06), transparent 55%),
    linear-gradient(180deg, #0a0a0c 0%, #0b0b0f 100%);
  background-attachment: fixed;
}

/* Fine grain overlay for depth — fixed, never on scrolling layers. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; position: relative; z-index: 1; }

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; color: var(--white); }
h1 { font-size: clamp(2.7rem, 6.5vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -0.02em; }
p { color: var(--fog); }
.gold { color: var(--gold-bright); }
.gold-text {
  background: linear-gradient(100deg, var(--gold-bright), var(--gold) 45%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
em { color: var(--gold-bright); font-style: italic; font-family: var(--display); }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before { content: ''; width: 26px; height: 1px; background: var(--gold); opacity: 0.6; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 0.98rem;
  padding: 15px 26px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  letter-spacing: 0.01em; line-height: 1; white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #2a2008; box-shadow: var(--shadow-gold); font-weight: 700;
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 26px 70px -26px rgba(216, 178, 74, 0.6); }
.btn-ghost { background: rgba(255,255,255,0.03); color: var(--cream); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--white); transform: translateY(-2px); }
.btn-sm { padding: 10px 16px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ── Nav ──────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px); background: rgba(10, 10, 12, 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.02em; color: var(--white); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--gold-bright), var(--gold-deep));
  color: #1a1404; font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 8px 24px -8px rgba(216,178,74,0.6);
}
.brand .mark svg { width: 19px; height: 19px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.92rem; color: var(--fog); transition: color 0.2s; font-weight: 500; }
.nav-links a:hover { color: var(--gold-bright); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 9px; color: var(--cream); cursor: pointer; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { padding: 90px 0 70px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { margin: 22px 0 22px; }
.hero-lead { font-size: 1.18rem; max-width: 33ch; color: var(--fog); }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust { margin-top: 36px; display: flex; gap: 26px; flex-wrap: wrap; }
.hero-trust .stat .n { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--gold-bright); }
.hero-trust .stat .l { font-size: 0.78rem; color: var(--fog-2); font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

/* Leak-meter visual card in the hero */
.leak-card {
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.leak-card::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-lg); border: 1px solid rgba(216,178,74,0.18); pointer-events: none; }
.leak-card h4 { font-size: 0.82rem; font-family: var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fog); font-weight: 500; }
.leak-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.leak-row:last-child { border-bottom: none; }
.leak-row .label { font-size: 0.95rem; color: var(--cream); }
.leak-bar { height: 6px; border-radius: 4px; background: var(--ink-3); flex: 1; max-width: 120px; overflow: hidden; }
.leak-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); border-radius: 4px; }
.leak-val { font-family: var(--mono); font-size: 0.82rem; color: var(--gold-bright); min-width: 38px; text-align: right; }
.leak-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.leak-total .big { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--white); }

/* ── Sections ─────────────────────────────────────────────────── */
section { padding: 80px 0; position: relative; }
.sec-head { max-width: 60ch; margin-bottom: 50px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { margin: 16px 0 14px; }

/* ── Cards / grids ────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--r); padding: 26px;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), border-color 0.3s, box-shadow 0.3s;
  position: relative;
}
.card:hover { transform: translateY(-5px); border-color: rgba(216,178,74,0.4); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.96rem; }
.card .ix { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(216,178,74,0.1); border: 1px solid rgba(216,178,74,0.25); color: var(--gold-bright); }
.card .ix svg { width: 22px; height: 22px; }

/* Service card with arrow */
.svc-card { display: flex; flex-direction: column; }
.svc-card .price { font-family: var(--mono); color: var(--gold-bright); font-size: 0.9rem; margin-top: auto; padding-top: 16px; }
.svc-card .arrow { position: absolute; top: 24px; right: 24px; color: var(--fog-2); transition: transform 0.3s, color 0.3s; }
.svc-card:hover .arrow { transform: translate(4px, -4px); color: var(--gold-bright); }
.tag { display: inline-block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 11px; border-radius: 100px; border: 1px solid var(--line); color: var(--fog); }
.tag.hot { color: var(--gold-bright); border-color: rgba(216,178,74,0.45); background: rgba(216,178,74,0.07); }

/* ── Steps / numbered flow ────────────────────────────────────── */
.steps { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.step { display: grid; grid-template-columns: 80px 1fr; gap: 22px; padding: 26px; background: var(--panel); align-items: start; }
.step .num { font-family: var(--display); font-weight: 800; font-size: 2.2rem; color: var(--gold-deep); -webkit-text-stroke: 1px var(--gold); }
.step h3 { font-size: 1.2rem; }

/* ── Forms ────────────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.8rem; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fog); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 16px; color: var(--white); font-family: var(--body); font-size: 0.98rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216,178,74,0.14); }
.field textarea { resize: vertical; min-height: 110px; }
.field .hint { font-size: 0.8rem; color: var(--fog-2); margin-top: 6px; }

/* ── CTA band ─────────────────────────────────────────────────── */
.cta-band { text-align: center; padding: 80px 0; }
.cta-band .panel {
  background: linear-gradient(135deg, var(--ink-3), var(--panel));
  border: 1px solid rgba(216,178,74,0.3); border-radius: var(--r-lg); padding: 64px 40px; box-shadow: var(--shadow);
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line-soft); padding: 56px 0 40px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer .muted { color: var(--fog-2); font-size: 0.85rem; max-width: 40ch; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--fog); font-size: 0.9rem; margin-bottom: 9px; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-bright); }
.footnote { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: var(--fog-2); font-size: 0.82rem; }

/* ── Truth note ───────────────────────────────────────────────── */
.truth { border-left: 2px solid var(--gold); padding: 16px 20px; background: rgba(216,178,74,0.05); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 0.92rem; color: var(--fog); }
.truth strong { color: var(--cream); }

/* ── Reveal animation ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; background: var(--ink-2); padding: 20px 26px; gap: 18px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .hero { padding: 50px 0 40px; }
  section { padding: 56px 0; }
  .cta-band .panel { padding: 40px 24px; }
  .footer-cols { gap: 32px; }
}
