/* ============================================================
   ÍCONE STUDIO — Design System
   Dark / premium / performance-marketing aesthetic
   ============================================================ */

@import url('https://cdn.jsdelivr.net/npm/@fontsource-variable/geist@5.2.5/index.css');
@import url('https://cdn.jsdelivr.net/npm/@fontsource-variable/geist-mono@5.2.5/index.css');

:root {
  /* --- Surfaces --- */
  --bg:        #07050d;
  --bg-soft:   #0b0816;
  --panel:     #100b1d;
  --panel-2:   #160f28;
  --line:      rgba(160, 140, 220, 0.12);
  --line-soft: rgba(160, 140, 220, 0.07);
  --glass:     rgba(255, 255, 255, 0.025);

  /* --- Brand --- */
  --violet:    #8b5cf6;
  --violet-2:  #a855f7;
  --indigo:    #5b3df5;
  --magenta:   #ff12d5;
  --blue:      #2c15ff;
  --grad-brand: linear-gradient(120deg, #ff12d5 0%, #9813ea 48%, #5b3df5 100%);
  --grad-soft:  linear-gradient(135deg, #a855f7 0%, #6d4dfb 100%);
  --grad-text:  linear-gradient(100deg, #c4b5fd 0%, #f0abfc 55%, #a78bfa 100%);

  /* --- Signal --- */
  --green:   #34d399;
  --green-d: #10b981;
  --amber:   #fbbf24;

  /* --- Text --- */
  --tx:      #ECEAF6;
  --tx-2:    #b6aecd;
  --tx-3:    #8479a1;
  --tx-mut:  #62597d;

  /* --- Radii / shadow --- */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow:   0 30px 80px -30px rgba(0,0,0,0.8);
  --glow-v:   0 0 0 1px rgba(139,92,246,0.25), 0 20px 60px -20px rgba(124,58,237,0.5);

  /* --- Layout --- */
  --maxw: 1240px;
  --nav-h: 76px;

  /* --- Type --- */
  --sans: 'Geist Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono Variable', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 82% -5%, rgba(124,58,237,0.22), transparent 60%),
    radial-gradient(700px 500px at -8% 12%, rgba(255,18,213,0.10), transparent 58%),
    radial-gradient(800px 700px at 50% 108%, rgba(91,61,245,0.16), transparent 60%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(160,140,220,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160,140,220,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
.section { padding-block: clamp(72px, 9vw, 132px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.center { text-align: center; }
.muted { color: var(--tx-2); }
.dim { color: var(--tx-3); }

/* ---------- Type scale ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-2);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet-2);
  box-shadow: 0 0 12px 2px rgba(168,85,247,0.7);
}
.eyebrow--plain::before { display: none; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; margin: 0; }
.display {
  font-size: clamp(44px, 6.6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.h-sec {
  font-size: clamp(33px, 4.4vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.h-card { font-size: 22px; letter-spacing: -0.03em; font-weight: 600; }
.lead {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--tx-2);
  line-height: 1.62;
  font-weight: 380;
  max-width: 60ch;
}
.grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 14px; --pad-x: 24px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 540;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--grad-soft);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(124,58,237,0.7), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(124,58,237,0.85), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-ghost {
  background: var(--glass);
  border-color: var(--line);
  color: var(--tx);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(168,85,247,0.5); transform: translateY(-2px); background: rgba(168,85,247,0.06); }
.btn-lg { --pad-y: 17px; --pad-x: 30px; font-size: 16.5px; }
.btn-sm { --pad-y: 10px; --pad-x: 17px; font-size: 14px; }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Cards / surfaces ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
}
.card-pad { padding: 30px; }
.glass-panel {
  background: linear-gradient(180deg, rgba(22,15,40,0.7), rgba(12,8,24,0.55));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

/* pill / chip */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  font-size: 14px;
  color: var(--tx-2);
  font-weight: 460;
}
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tx-3);
}

/* Mini metric chip used in hero/cards */
.signal {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 500;
  padding: 6px 11px; border-radius: 999px;
}
.signal--up { color: var(--green); background: rgba(52,211,153,0.10); border: 1px solid rgba(52,211,153,0.22); }

/* ---------- Reveal animation (JS rAF-driven for reliability) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Divider ---------- */
.hr {
  height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 0;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,6,15,0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; display: flex; align-items: center; gap: 28px; }
.nav__logo { height: 30px; flex: none; }
.nav__logo img { height: 100%; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__link {
  position: relative;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 15px; font-weight: 460;
  color: var(--tx-2);
  transition: color .2s, background .2s;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav__link:hover { color: var(--tx); background: rgba(255,255,255,0.04); }
.nav__link.active { color: var(--tx); background: rgba(255,255,255,0.05); }
.nav__link .caret { width: 12px; height: 12px; opacity: .6; transition: transform .2s; }
.nav__spacer { flex: 1; }
.nav__cta { flex: none; }
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--glass);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav__burger span { display: block; width: 18px; height: 1.6px; background: var(--tx); border-radius: 2px; position: relative; }
.nav__burger span::before, .nav__burger span::after { content:""; position: absolute; left: 0; width: 18px; height: 1.6px; background: var(--tx); border-radius: 2px; transition: transform .25s; }
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }

/* Dropdown mega menu */
.nav__drop {
  position: absolute; top: calc(100% + 10px); left: 0;
  width: 620px;
  background: rgba(13,9,24,0.97);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__has-drop:hover .nav__drop { opacity: 1; visibility: visible; transform: none; }
.nav__has-drop:hover .caret { transform: rotate(180deg); }
.drop__item { display: flex; gap: 13px; align-items: flex-start; padding: 13px 14px; border-radius: 12px; transition: background .18s; }
.drop__item:hover { background: rgba(168,85,247,0.08); }
.drop__ico { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: rgba(139,92,246,0.12); border: 1px solid var(--line); color: var(--violet-2); margin-top: 1px; }
.drop__ico svg { width: 18px; height: 18px; }
.drop__item > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.drop__t { display: block; font-size: 14.5px; font-weight: 560; color: var(--tx); line-height: 1.25; }
.drop__d { display: block; font-size: 12.5px; color: var(--tx-3); line-height: 1.45; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,4,12,0.98);
  backdrop-filter: blur(20px);
  padding: 90px 28px 40px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  overflow-y: auto;
}
.drawer.open { transform: none; }
.drawer__close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); color: var(--tx); font-size: 22px; cursor: pointer; }
.drawer a { font-size: 19px; font-weight: 500; padding: 13px 4px; border-bottom: 1px solid var(--line-soft); color: var(--tx-2); }
.drawer a:active { color: var(--violet-2); }
.drawer__sub { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--tx-mut); padding: 18px 4px 6px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); margin-top: 40px; position: relative; background: linear-gradient(180deg, transparent, rgba(124,58,237,0.04)); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px 48px; }
.footer__brand { max-width: 320px; }
.footer__logo { height: 28px; margin-bottom: 20px; }
.footer__col h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--tx-3); margin: 0 0 16px; font-weight: 500; }
.footer__col a { display: block; font-size: 14.5px; color: var(--tx-2); padding: 5px 0; transition: color .18s; }
.footer__col a:hover { color: var(--violet-2); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 26px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.footer__bottom p { margin: 0; font-size: 13.5px; color: var(--tx-mut); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--tx-2); transition: all .2s; }
.footer__social a:hover { color: var(--violet-2); border-color: rgba(168,85,247,0.5); transform: translateY(-2px); }

/* ============================================================
   REUSABLE SECTIONS
   ============================================================ */
/* Stat row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat__num { font-size: clamp(34px, 4vw, 50px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat__num .grad { display: inline; }
.stat__lbl { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-3); margin-top: 10px; }

/* Service / feature cards grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.svc {
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  position: relative; overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, background .3s;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 100%;
}
.svc::after { content:""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad-brand); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; pointer-events: none; }
.svc:hover { transform: translateY(-5px); background: linear-gradient(180deg, rgba(168,85,247,0.07), rgba(255,255,255,0.01)); }
.svc:hover::after { opacity: .8; }
.svc__ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: rgba(139,92,246,0.12); border: 1px solid var(--line); color: var(--violet-2); }
.svc__ico svg { width: 23px; height: 23px; }
.svc h3 { font-size: 19px; }
.svc p { margin: 0; font-size: 14.5px; color: var(--tx-2); line-height: 1.55; }
.svc__link { margin-top: auto; padding-top: 8px; font-size: 13.5px; font-weight: 540; color: var(--violet-2); display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); letter-spacing: .03em; }
.svc__link svg { width: 14px; height: 14px; transition: transform .25s; }
.svc:hover .svc__link svg { transform: translateX(3px); }

/* niche chips grid */
.niches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.niche {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--glass);
  font-size: 15px; font-weight: 500;
  transition: all .25s;
}
.niche:hover { border-color: rgba(168,85,247,0.45); background: rgba(168,85,247,0.06); transform: translateY(-3px); }
.niche__ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(139,92,246,0.1); color: var(--violet-2); flex: none; }
.niche__ico svg { width: 16px; height: 16px; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { padding: 28px 24px 28px 0; border-top: 1px solid var(--line); position: relative; }
.step__n { font-family: var(--mono); font-size: 13px; color: var(--violet-2); letter-spacing: .1em; }
.step h3 { font-size: 19px; margin: 14px 0 8px; }
.step p { margin: 0; font-size: 14px; color: var(--tx-2); line-height: 1.5; }
.step::before { content:""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--grad-brand); }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; color: var(--tx); padding: 24px 0; font-size: 18px; font-weight: 540; letter-spacing: -0.02em; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: inherit; }
.faq__ic { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; position: relative; transition: all .25s; }
.faq__ic::before, .faq__ic::after { content:""; position: absolute; background: var(--violet-2); border-radius: 2px; }
.faq__ic::before { width: 11px; height: 1.8px; }
.faq__ic::after { width: 1.8px; height: 11px; transition: transform .25s; }
.faq__item.open .faq__ic::after { transform: rotate(90deg); opacity: 0; }
.faq__item.open .faq__ic { background: rgba(168,85,247,0.12); border-color: rgba(168,85,247,0.4); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.4,0,.2,1); }
.faq__a-inner { padding: 0 0 24px; color: var(--tx-2); font-size: 15.5px; line-height: 1.65; max-width: 70ch; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(255,18,213,0.16), transparent 60%),
    radial-gradient(600px 400px at 100% 100%, rgba(91,61,245,0.22), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}

/* Page hero (interior pages) */
.phero { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 20px; }
.phero .crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--tx-3); margin-bottom: 22px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.phero .crumbs a:hover { color: var(--violet-2); }
.phero .crumbs span { opacity: .5; }

/* Two-col interior layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* feature list with checks */
.checks { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; color: var(--tx-2); }
.checks .ck { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.25); color: var(--green); margin-top: 1px; }
.checks .ck svg { width: 13px; height: 13px; }

/* testimonial */
.quote { padding: 32px; }
.quote__stars { display: flex; gap: 3px; color: var(--amber); margin-bottom: 18px; }
.quote__stars svg { width: 16px; height: 16px; }
.quote p { font-size: 17px; line-height: 1.6; color: var(--tx); margin: 0 0 22px; letter-spacing: -0.01em; }
.quote__by { display: flex; align-items: center; gap: 13px; }
.quote__av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-soft); display: grid; place-items: center; font-weight: 600; font-size: 16px; color: #fff; flex: none; }
.quote__nm { font-size: 14.5px; font-weight: 560; }
.quote__rl { font-size: 12.5px; color: var(--tx-3); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 520; color: var(--tx-2); font-family: var(--mono); letter-spacing: .02em; }
.field label .req { color: var(--magenta); }
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  color: var(--tx);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--tx-mut); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgba(168,85,247,0.6);
  background: rgba(168,85,247,0.04);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.12);
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238479a1' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* alerts (server-side validation) */
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 14.5px; }
.alert-error { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.35); color: #fca5a5; }

/* logos / trust */
.trust { display: flex; align-items: center; gap: 38px; flex-wrap: wrap; justify-content: center; opacity: .65; }
.trust span { font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: var(--tx-2); }

/* article / blog */
.article { max-width: 760px; margin-inline: auto; }
.article-body { font-size: 17px; line-height: 1.75; color: var(--tx-2); }
.article-body h2 { font-size: 27px; letter-spacing: -0.03em; margin: 1.6em 0 .5em; color: var(--tx); }
.article-body h3 { font-size: 21px; margin: 1.3em 0 .4em; color: var(--tx); }
.article-body p { margin: 0 0 1.1em; }
.article-body ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.article-body li { margin-bottom: .5em; }
.article-body strong { color: var(--tx); font-weight: 600; }
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-card .thumb { background: repeating-linear-gradient(135deg, rgba(168,85,247,0.07) 0 12px, transparent 12px 24px); height: 150px; display: grid; place-items: center; }
.post-card .thumb svg { width: 30px; height: 30px; color: var(--violet-2); }

/* native select options -> dark (fallback for browsers that ignore color-scheme) */
.field select option, .field select optgroup,
select option, select optgroup { background: #160f28; color: #ECEAF6; }

/* 404 */
.err-code { font-size: clamp(90px, 20vw, 220px); font-weight: 600; line-height: .9; letter-spacing: -0.05em; }

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */
.adm-top { position: sticky; top: 0; z-index: 50; background: rgba(8,6,15,0.82); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.adm-top__in { max-width: 1320px; margin-inline: auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 24px; }
.adm-top__logo img { height: 26px; }
.adm-nav { display: flex; gap: 4px; margin-left: 12px; }
.adm-nav a { padding: 8px 14px; border-radius: 9px; font-size: 14.5px; color: var(--tx-2); font-weight: 500; }
.adm-nav a:hover { background: rgba(255,255,255,0.05); color: var(--tx); }
.adm-nav a.active { background: rgba(168,85,247,0.14); color: var(--tx); }
.adm-wrap { max-width: 1320px; margin-inline: auto; padding: 30px 24px 80px; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.adm-head h1 { font-size: 30px; letter-spacing: -0.03em; }
.adm-head p { margin: 4px 0 0; color: var(--tx-3); font-size: 14px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)); }
.kpi__lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); display: flex; align-items: center; gap: 8px; }
.kpi__lbl .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(139,92,246,0.14); color: var(--violet-2); }
.kpi__val { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; margin-top: 12px; line-height: 1; }
.kpi__sub { font-size: 12.5px; color: var(--tx-3); margin-top: 7px; }
.kpi__sub .up { color: var(--green); } .kpi__sub .down { color: #fb7185; }

.adm-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 16px; }
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008)); padding: 24px; }
.panel__h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.panel__h h3 { font-size: 17px; letter-spacing: -0.02em; }
.panel__h .tag { color: var(--violet-2); }

/* bar chart */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; }
.bars .bar { flex: 1; background: var(--grad-soft); border-radius: 5px 5px 0 0; min-height: 3px; position: relative; opacity: .85; transition: opacity .2s; }
.bars .bar:hover { opacity: 1; }
.bars .bar span { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--tx-mut); font-family: var(--mono); white-space: nowrap; }
.bars-x { margin-top: 26px; }

/* list rows */
.rowlist { display: flex; flex-direction: column; gap: 2px; }
.rowlist__i { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; }
.rowlist__i:hover { background: rgba(255,255,255,0.03); }
.rowlist__i .nm { font-size: 13.5px; color: var(--tx-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); }
.rowlist__i .ct { font-size: 13.5px; font-weight: 600; color: var(--tx); flex: none; }
.barline { height: 6px; border-radius: 4px; background: var(--grad-soft); }

/* table */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.tbl { width: 100%; border-collapse: collapse; min-width: 760px; }
.tbl th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--tx-2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: rgba(255,255,255,0.02); }
.tbl .nm { color: var(--tx); font-weight: 540; }
.tbl a { color: var(--violet-2); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; }
.badge.new { background: rgba(168,85,247,0.14); color: #d8b4fe; border-color: rgba(168,85,247,0.3); }
.badge.contacted { background: rgba(56,189,248,0.12); color: #7dd3fc; border-color: rgba(56,189,248,0.3); }
.badge.qualified { background: rgba(251,191,36,0.12); color: #fcd34d; border-color: rgba(251,191,36,0.3); }
.badge.won { background: rgba(52,211,153,0.14); color: #6ee7b7; border-color: rgba(52,211,153,0.3); }
.badge.lost { background: rgba(248,113,113,0.12); color: #fca5a5; border-color: rgba(248,113,113,0.3); }

.mini-select { background: rgba(255,255,255,0.03); border: 1px solid var(--line); color: var(--tx); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; font-family: inherit; }

/* toggle switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 46px; height: 26px; border-radius: 999px; background: rgba(255,255,255,0.1); border: 1px solid var(--line); transition: .2s; position: relative; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #8479a1; transition: .2s; }
.switch input:checked + .track { background: var(--grad-soft); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(20px); background: #fff; }
.switch .lbl { font-size: 13px; color: var(--tx-3); font-weight: 600; min-width: 56px; }
.switch input:checked ~ .lbl { color: var(--green); }
.adm-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }

/* confirm modal (replaces native confirm dialogs) */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6,4,12,0.72); backdrop-filter: blur(6px); }
.modal__box { position: relative; width: 100%; max-width: 430px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 34px 30px; text-align: center; animation: modalpop .22s cubic-bezier(.2,.8,.2,1); }
@keyframes modalpop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.modal__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 18px; background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.3); color: #fca5a5; }
.modal__title { font-size: 21px; letter-spacing: -0.02em; margin: 0 0 8px; }
.modal__msg { color: var(--tx-2); font-size: 15px; line-height: 1.55; margin: 0 0 26px; }
.modal__actions { display: flex; gap: 12px; justify-content: center; }
.modal__actions .btn { min-width: 120px; justify-content: center; }
.btn-danger { background: linear-gradient(135deg,#f43f5e,#e11d48); color: #fff; box-shadow: 0 12px 30px -10px rgba(244,63,94,0.6); }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(244,63,94,0.8); color: #fff; }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; }

@media (max-width: 900px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .adm-cols { grid-template-columns: 1fr; }
  .adm-nav { display: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .grid-4, .niches { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1040px) {
  .nav__links { display: none; }
  .nav__cta .btn span.hide-sm { display: none; }
  .nav__cta .btn span.show-sm { display: inline !important; }
  .nav__burger { display: flex; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .hero-grid { grid-template-columns: 1fr !important; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 20px; }
  .grid-3, .grid-2, .niches, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav__inner { padding-inline: 20px; }
  .footer__top { grid-template-columns: 1fr; }
  .btn { font-size: 15px; }
}
