/* ============================================================
   InnovaSK — Design System
   Dark premium tech aesthetic (Linear / Vercel / Stripe vibe)
   ============================================================ */

:root {
  /* Surfaces */
  --bg:        #070A12;
  --bg-2:      #0A0E18;
  --surface:   #0E1320;
  --surface-2: #131A2A;
  --surface-3: #18202F;

  /* Lines */
  --border:    rgba(255,255,255,.07);
  --border-2:  rgba(255,255,255,.12);
  --hairline:  rgba(255,255,255,.045);

  /* Text */
  --text:      #EEF1F7;
  --text-2:    #98A1B5;
  --text-3:    #5B6478;

  /* Accent (electric blue) — overridable by Tweaks */
  --accent:    #2E6BFF;
  --accent-2:  #5B8CFF;
  --accent-ink:#0A1024;
  --accent-soft: color-mix(in oklch, var(--accent) 14%, transparent);
  --accent-line: color-mix(in oklch, var(--accent) 32%, transparent);
  --accent-glow: color-mix(in oklch, var(--accent) 45%, transparent);

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

  /* Motion */
  --anim: 1;
  --ease: cubic-bezier(.22,.61,.36,1);

  /* Layout */
  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

/* Light theme variant (Tweaks-toggled) */
:root[data-theme="light"] {
  --bg:        #F6F8FC;
  --bg-2:      #FFFFFF;
  --surface:   #FFFFFF;
  --surface-2: #F4F7FB;
  --surface-3: #EDF1F8;
  --border:    rgba(10,20,40,.10);
  --border-2:  rgba(10,20,40,.16);
  --hairline:  rgba(10,20,40,.06);
  --text:      #0C1322;
  --text-2:    #4A5568;
  --text-3:    #8B95A8;
  --accent-ink:#FFFFFF;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

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

/* ---------- Ambient background ---------- */
.bg-field {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% -5%, var(--accent-soft), transparent 60%),
    radial-gradient(45% 40% at 8% 8%, color-mix(in oklch, var(--accent) 7%, transparent), transparent 60%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
  opacity: .55;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 116px 0; position: relative; }
.section--tight { padding: 84px 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent-glow);
}

.sec-head { max-width: 680px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.04;
  letter-spacing: -.025em;
  font-weight: 600;
  margin: 20px 0 16px;
}
.sec-head p { color: var(--text-2); font-size: clamp(16px, 1.4vw, 19px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px;
  border-radius: 11px;
  font-size: 15px; font-weight: 540;
  letter-spacing: -.01em;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary {
  background: var(--accent); color: var(--accent-ink); font-weight: 580;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 28px -8px var(--accent-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 14px 36px -8px var(--accent-glow); }
.btn--ghost {
  background: color-mix(in oklch, var(--text) 4%, transparent);
  border: 1px solid var(--border-2); color: var(--text);
}
.btn--ghost:hover { background: color-mix(in oklch, var(--text) 8%, transparent); transform: translateY(-2px); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklch, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(150deg, var(--accent-2), var(--accent));
  display: grid; place-items: center;
  box-shadow: 0 4px 18px -4px var(--accent-glow), 0 1px 0 rgba(255,255,255,.3) inset;
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0; border-radius: 9px;
  background: linear-gradient(150deg, rgba(255,255,255,.35), transparent 45%);
}
.brand-mark span { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 16px; position: relative; z-index: 1; }
.brand b { font-weight: 600; }
.brand i { color: var(--accent-2); font-style: normal; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px; color: var(--text-2); padding: 8px 14px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: color-mix(in oklch, var(--text) 5%, transparent); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 168px 0 96px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 8px; border-radius: 100px;
  background: color-mix(in oklch, var(--text) 4%, transparent);
  border: 1px solid var(--border-2);
  font-size: 13px; color: var(--text-2); margin-bottom: 26px;
}
.hero-badge b { color: var(--text); font-weight: 560; }
.hero-badge .pill {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em;
  background: var(--accent-soft); color: var(--accent-2);
  padding: 3px 8px; border-radius: 100px; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.6vw, 70px);
  line-height: 1.02; letter-spacing: -.035em; font-weight: 600;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent-2), var(--accent) 60%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--text-2); font-size: clamp(17px, 1.5vw, 20px); max-width: 540px; margin: 26px 0 34px; line-height: 1.6; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.hero-meta .hm { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-2); }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: #2ED47A; box-shadow: 0 0 10px #2ED47A88; }

/* Hero visual — dashboard + IoT */
.hero-visual { position: relative; }
.hv-glow { position: absolute; inset: -10% -8% -14% -8%; background: radial-gradient(60% 55% at 60% 35%, var(--accent-soft), transparent 70%); filter: blur(8px); z-index: 0; }
.panel {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.06) inset;
  overflow: hidden;
}
.panel-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: color-mix(in oklch, var(--text) 2%, transparent); }
.panel-bar .tl { display: flex; gap: 6px; }
.panel-bar .tl i { width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); opacity: .5; }
.panel-bar .addr { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-left: 8px; }
.panel-bar .live { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: #2ED47A; display: flex; align-items: center; gap: 6px; }
.panel-bar .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2ED47A; box-shadow: 0 0 8px #2ED47A; }
.panel-body { padding: 18px; display: grid; gap: 14px; }

.kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.kpi { background: var(--surface-3); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.kpi .lbl { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.kpi .val { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-top: 6px; letter-spacing: -.02em; }
.kpi .val small { font-size: 12px; color: #2ED47A; font-weight: 500; margin-left: 4px; }

.chart { background: var(--surface-3); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.chart-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.chart-top .t { font-size: 12.5px; color: var(--text-2); font-weight: 540; }
.chart-top .v { font-family: var(--font-mono); font-size: 11px; color: var(--accent-2); }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 76px; }
.bars .b { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--accent-2), color-mix(in oklch, var(--accent) 55%, transparent)); position: relative; opacity: .92; }
.bars .b.dim { background: var(--surface); border: 1px solid var(--border-2); }

.iot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.iot { background: var(--surface-3); border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 11px; }
.iot .chip {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: grid; place-items: center; color: var(--accent-2);
}
.iot .chip svg { width: 18px; height: 18px; }
.iot .meta .n { font-size: 12.5px; font-weight: 540; }
.iot .meta .s { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.iot .meta .s i { width: 5px; height: 5px; border-radius: 50%; background: #2ED47A; box-shadow: 0 0 6px #2ED47A; }

.float-card {
  position: absolute; z-index: 2;
  background: color-mix(in oklch, var(--surface-2) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-2); border-radius: 14px;
  padding: 12px 14px; box-shadow: 0 22px 50px -22px rgba(0,0,0,.7);
}
.float-card.fc1 { right: -22px; top: 16%; display: flex; align-items: center; gap: 11px; }
.float-card.fc2 { left: -28px; bottom: 12%; }
.fc1 .ico { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(150deg, var(--accent-2), var(--accent)); display: grid; place-items: center; color: #fff; }
.fc1 .ico svg { width: 17px; height: 17px; }
.fc1 .t { font-size: 12.5px; font-weight: 540; }
.fc1 .s { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }
.fc2 .t { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 7px; }
.fc2 .spark { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.fc2 .spark i { width: 4px; border-radius: 2px; background: var(--accent-2); opacity: .85; }

@media (prefers-reduced-motion: no-preference) {
  .float-card.fc1 { animation: floaty 6s ease-in-out infinite; }
  .float-card.fc2 { animation: floaty 7s ease-in-out infinite .8s; }
  @keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(calc(-9px * var(--anim))); } }
}

/* ---------- Trust / stats ---------- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.trust-inner { padding: 44px 0; }
.logos { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.logos .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); width: 100%; text-align: center; margin-bottom: 4px; }
.logo-chip { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--text-2); opacity: .72; letter-spacing: -.01em; padding: 6px 4px; display: flex; align-items: center; gap: 7px; }
.logo-chip .d { width: 14px; height: 14px; border-radius: 4px; background: var(--text-3); opacity: .6; }

.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.stat { text-align: center; padding: 8px; }
.stat .num { font-family: var(--font-display); font-size: clamp(34px, 4vw, 50px); font-weight: 600; letter-spacing: -.03em; line-height: 1; background: linear-gradient(180deg, var(--text), var(--text-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .num em { font-style: normal; color: var(--accent-2); -webkit-text-fill-color: var(--accent-2); }
.stat .cap { margin-top: 10px; color: var(--text-2); font-size: 14px; }

/* ---------- Cards / services ---------- */
.cards { display: grid; gap: 18px; }
.cards.c3 { grid-template-columns: repeat(3,1fr); }
.cards.c2 { grid-template-columns: repeat(2,1fr); }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, var(--accent-line), transparent 40%);
  -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 var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 28px 60px -34px rgba(0,0,0,.7); }
.card:hover::before { opacity: 1; }
.card-ico {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: grid; place-items: center; color: var(--accent-2);
}
.card-ico svg { width: 22px; height: 22px; }
.card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 9px; }
.card p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em;
  padding: 5px 10px; border-radius: 7px;
  background: color-mix(in oklch, var(--text) 4%, transparent);
  border: 1px solid var(--border); color: var(--text-2);
}

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; counter-reset: step; }
.step { padding: 26px 22px 26px 0; position: relative; counter-increment: step; }
.step::before {
  content: ""; position: absolute; left: 0; top: 36px; right: 14px; height: 1px;
  background: var(--border-2);
}
.step::after {
  content: ""; position: absolute; left: 0; top: 30px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.step .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent-2); margin: 22px 0 10px; }
.step h4 { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 7px; }
.step p { color: var(--text-2); font-size: 13.5px; line-height: 1.55; }

/* ---------- Why / feature split ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.why { display: flex; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: border-color .3s, background .3s; }
.why:hover { border-color: var(--border-2); background: var(--surface-2); }
.why .ico { width: 42px; height: 42px; flex: none; border-radius: 11px; background: var(--accent-soft); border: 1px solid var(--accent-line); display: grid; place-items: center; color: var(--accent-2); }
.why .ico svg { width: 20px; height: 20px; }
.why h4 { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.why p { color: var(--text-2); font-size: 14px; line-height: 1.55; }

/* ---------- Case studies ---------- */
.case { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.cs {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.cs:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 28px 60px -34px rgba(0,0,0,.7); }
.cs-img { aspect-ratio: 16/10; position: relative; border-bottom: 1px solid var(--border); overflow: hidden; }
.ph {
  position: absolute; inset: 0;
  background-color: var(--surface-3);
  background-image: repeating-linear-gradient(135deg, transparent, transparent 9px, color-mix(in oklch, var(--accent) 8%, transparent) 9px, color-mix(in oklch, var(--accent) 8%, transparent) 10px);
  display: grid; place-items: center;
}
.ph span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--text-3); background: var(--bg); padding: 5px 11px; border-radius: 100px; border: 1px solid var(--border); }
.cs-body { padding: 22px; }
.cs-cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.cs-body h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin: 8px 0 8px; }
.cs-body p { color: var(--text-2); font-size: 14px; line-height: 1.55; }
.cs-metrics { display: flex; gap: 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.cs-metrics div .m { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.cs-metrics div .l { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.quote .stars { color: var(--accent-2); font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
.quote p { font-size: 15px; line-height: 1.6; color: var(--text); flex: 1; letter-spacing: -.01em; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote .av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(150deg, var(--surface-3), var(--surface-2)); border: 1px solid var(--border-2); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--accent-2); }
.quote .who .nm { font-size: 13.5px; font-weight: 560; }
.quote .who .rl { font-size: 12px; color: var(--text-3); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border: 1px solid var(--accent-line); border-radius: var(--radius-lg); padding: 60px; text-align: center; background: linear-gradient(180deg, color-mix(in oklch, var(--accent) 10%, var(--surface)), var(--surface)); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, var(--accent-soft), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.06; }
.cta-band p { color: var(--text-2); font-size: 17px; max-width: 560px; margin: 16px auto 30px; }
.cta-band .row { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 36px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; text-align: left; padding: 20px 0; font-size: 16px; font-weight: 540; letter-spacing: -.01em; }
.faq-q .ic { width: 24px; height: 24px; flex: none; border-radius: 7px; border: 1px solid var(--border-2); display: grid; place-items: center; position: relative; transition: background .2s, border-color .2s; }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; background: var(--text-2); border-radius: 2px; transition: transform .3s var(--ease), background .2s; }
.faq-q .ic::before { width: 11px; height: 1.8px; }
.faq-q .ic::after { width: 1.8px; height: 11px; }
.faq-item.open .faq-q .ic { background: var(--accent-soft); border-color: var(--accent-line); }
.faq-item.open .faq-q .ic::after { transform: scaleY(0); }
.faq-item.open .faq-q .ic::before { background: var(--accent-2); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; padding: 0 42px 22px 0; }

/* ---------- Blog ---------- */
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.blog-cat { font-size: 13px; padding: 7px 14px; border-radius: 100px; border: 1px solid var(--border-2); color: var(--text-2); background: color-mix(in oklch, var(--text) 3%, transparent); transition: all .2s; }
.blog-cat:hover, .blog-cat.active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.post { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), border-color .3s; display: flex; flex-direction: column; }
.post:hover { transform: translateY(-3px); border-color: var(--border-2); }
.post-img { aspect-ratio: 16/9; border-bottom: 1px solid var(--border); position: relative; }
.post-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post .cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.post h3 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; margin: 9px 0 8px; line-height: 1.3; }
.post p { color: var(--text-2); font-size: 13.5px; line-height: 1.5; flex: 1; }
.post .meta { font-size: 12px; color: var(--text-3); margin-top: 16px; display: flex; gap: 10px; align-items: center; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h2 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.06; margin-bottom: 16px; }
.contact-info > p { color: var(--text-2); font-size: 17px; margin-bottom: 30px; max-width: 440px; }
.ci-list { display: grid; gap: 14px; margin-bottom: 30px; }
.ci { display: flex; align-items: center; gap: 14px; }
.ci .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent-2); }
.ci .ico svg { width: 19px; height: 19px; }
.ci .t { font-size: 14.5px; font-weight: 540; }
.ci .s { font-size: 13px; color: var(--text-3); }
.guarantees { display: grid; gap: 11px; }
.guarantees li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); list-style: none; }
.guarantees .ck { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); display: grid; place-items: center; color: var(--accent-2); }
.guarantees .ck svg { width: 11px; height: 11px; }

.form-card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 30px; box-shadow: 0 40px 90px -50px rgba(0,0,0,.8); }
.form-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 4px; }
.form-card .fc-sub { font-size: 13.5px; color: var(--text-2); margin-bottom: 22px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 7px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-family: inherit; font-size: 14.5px;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { font-size: 12.5px; padding: 8px 13px; border-radius: 9px; border: 1px solid var(--border-2); color: var(--text-2); background: var(--bg-2); cursor: pointer; transition: all .2s; user-select: none; }
.chip-opt:hover { border-color: var(--accent-line); color: var(--text); }
.chip-opt.sel { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); }
.form-note { font-size: 11.5px; color: var(--text-3); margin-top: 14px; text-align: center; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; }
.form-success .big { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); display: grid; place-items: center; color: var(--accent-2); }
.form-success h3 { font-size: 22px; margin-bottom: 8px; }
.form-success p { color: var(--text-2); font-size: 14.5px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 64px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.foot-brand p { color: var(--text-2); font-size: 14px; line-height: 1.6; max-width: 290px; margin: 16px 0 18px; }
.foot-soc { display: flex; gap: 10px; }
.foot-soc a { width: 36px; height: 36px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-2); transition: all .2s; }
.foot-soc a:hover { color: var(--text); border-color: var(--border-2); transform: translateY(-2px); }
.foot-soc svg { width: 16px; height: 16px; }
.foot-col h5 { font-size: 12.5px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.foot-col a { display: block; font-size: 14px; color: var(--text-2); padding: 6px 0; transition: color .2s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); flex-wrap: wrap; gap: 12px; }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(140%);
  z-index: 90; display: flex; align-items: center; gap: 16px;
  background: color-mix(in oklch, var(--surface-2) 88%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-2); border-radius: 14px; padding: 11px 11px 11px 20px;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.7);
  transition: transform .4s var(--ease); max-width: calc(100vw - 32px);
}
.sticky-cta.show { transform: translateX(-50%) translateY(0); }
.sticky-cta .txt { font-size: 13.5px; }
.sticky-cta .txt b { font-weight: 580; }
.sticky-cta .txt span { color: var(--text-3); display: block; font-size: 12px; }

/* ---------- Reveal animation ----------
   Visible end-state is the BASE. We only hide (and animate from hidden)
   when JS is present AND motion is allowed — so content never disappears
   in PDF export, no-JS, reduced-motion, or a stalled observer. */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  html.js .reveal.in { opacity: 1; transform: none; }
  html.js .reveal.d1 { transition-delay: .06s; }
  html.js .reveal.d2 { transition-delay: .12s; }
  html.js .reveal.d3 { transition-delay: .18s; }
  html.js .reveal.d4 { transition-delay: .24s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; }
  .cards.c3, .case, .quotes, .blog-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .section { padding: 80px 0; }
  .hero { padding: 130px 0 70px; }
  .cards.c3, .cards.c2, .case, .quotes, .blog-grid, .why-grid, .process, .faq-grid, .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .cta-band { padding: 38px 24px; }
  .float-card.fc1 { right: 6px; }
  .float-card.fc2 { left: 6px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-cta .btn--ghost { display: none; }
  .hero-meta { gap: 14px 22px; }
}
