/* ==========================================================================
   Merakad — site styles
   Dark navy theme, electric blue → cyan accents.
   ========================================================================== */

:root {
  --bg: #0B1020;
  --bg-alt: #0F172A;
  --surface: #121A2E;
  --surface-2: #16203A;
  --border: #1F2A44;
  --blue: #3B82F6;
  --cyan: #22D3EE;
  --text: #E6EAF2;
  --text-2: #94A3B8;
  --footer: #070B16;
  --success: #34D399;

  --grad: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  --glow: 0 0 24px rgba(34, 211, 238, 0.35);

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 16px;
  --max: 1200px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: #67e8f9; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(34, 211, 238, .3); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--surface); padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border);
}
.skip-link:focus { top: 16px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--text);
}
h1 { font-size: clamp(36px, 5.2vw, 56px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 22px); font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.7; color: var(--text-2); max-width: 58ch; margin-bottom: 1.5em; }
.muted { color: var(--text-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--grad);
}
.center .eyebrow::after {
  content: ""; width: 22px; height: 1px; background: var(--grad);
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 128px 0; position: relative; }
.section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 72px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.divider {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,.5), rgba(34,211,238,.5), transparent);
}
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 12px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { color: #fff; box-shadow: var(--glow); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--cyan); border-color: var(--cyan); }
.btn-secondary:hover { background: rgba(34,211,238,.08); color: var(--cyan); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; box-shadow: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px;
}
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(18, 26, 46, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 24px; letter-spacing: -0.02em;
  color: var(--text);
}
.logo:hover { color: var(--text); }
.logo-mark {
  width: 14px; height: 14px; border-radius: 3px; background: var(--grad);
  box-shadow: 0 0 14px rgba(34,211,238,.55);
}

.nav { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--text-2); font-size: 15px; font-weight: 500; position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  background: transparent; border: 1px solid var(--border); cursor: pointer;
  align-items: center; justify-content: center; position: relative; z-index: 110;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .3s, background .3s; position: relative;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-panel {
  position: fixed; inset: 0; z-index: 105; background: rgba(11,16,32,.98);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center; padding: 96px 32px 48px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.menu-open .mobile-panel { opacity: 1; visibility: visible; }
.mobile-panel ul { list-style: none; margin: 0 0 40px; padding: 0; }
.mobile-panel li { border-bottom: 1px solid var(--border); }
.mobile-panel li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; font-family: var(--font-head); font-size: 30px; font-weight: 600; color: var(--text);
}
.mobile-panel li a::after { content: "→"; color: var(--cyan); font-size: 22px; }
.mobile-panel .mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--text-2); text-transform: uppercase; margin-top: 28px; }

/* ---------- Background decoration ---------- */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(31,42,68,.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,42,68,.4) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.glow {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0;
}
.glow-blue { background: var(--blue); opacity: .16; width: 560px; height: 560px; top: -160px; right: -140px; }
.glow-cyan { background: var(--cyan); opacity: .13; width: 460px; height: 460px; bottom: -180px; left: -160px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 85vh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 56px) 0 80px; overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 55fr 45fr; gap: 80px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 40px; }
.hero-local { display: flex; align-items: center; gap: 10px; margin: 36px 0 0; font-size: 15px; color: var(--text-2); }
.hero-local svg { width: 18px; height: 18px; flex: none; stroke: var(--cyan); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(18,26,46,.7); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* Page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 80px) 0 80px;
  min-height: 40vh; display: flex; align-items: center;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .lead { margin-top: 12px; }

/* ---------- Dashboard mock (hero visual) ---------- */
.mock {
  position: relative;
  background: linear-gradient(180deg, rgba(22,32,58,.95), rgba(18,26,46,.95));
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(34,211,238,.06), 0 30px 80px -20px rgba(0,0,0,.6), 0 0 60px -10px rgba(34,211,238,.18);
  overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 8px; padding: 14px 18px;
  border-bottom: 1px solid var(--border); background: rgba(11,16,32,.5);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #1F2A44; }
.mock-bar i:nth-child(1) { background: #334155; }
.mock-bar .mock-title { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); letter-spacing: .06em; }
.mock-bar .live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; color: var(--success); letter-spacing: .1em;
}
.mock-bar .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
.mock-body { padding: 20px; display: grid; gap: 14px; }
.mock-chart {
  background: rgba(11,16,32,.55); border: 1px solid var(--border); border-radius: 12px; padding: 16px 16px 12px;
}
.mock-chart .label { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; display: flex; justify-content: space-between; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.bars span {
  flex: 1; border-radius: 4px 4px 2px 2px; background: var(--grad); opacity: .85;
  transform-origin: bottom; animation: grow 1.1s cubic-bezier(.2,.8,.2,1) both;
}
.bars span:nth-child(odd) { opacity: .55; }
.flow-list { display: grid; gap: 10px; }
.flow {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(11,16,32,.45);
  font-size: 14px;
}
.flow .ic {
  flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.25);
}
.flow .ic svg { width: 16px; height: 16px; stroke: var(--cyan); }
.flow .txt { flex: 1; min-width: 0; }
.flow .txt b { display: block; font-weight: 600; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow .txt small { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); letter-spacing: .04em; }
.status {
  flex: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(52,211,153,.35); color: var(--success); background: rgba(52,211,153,.08);
}
.status.run { color: var(--cyan); border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.08); }
.float-card {
  position: absolute; z-index: 2;
  background: rgba(18,26,46,.92); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; font-size: 13px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.6);
  animation: floaty 6s ease-in-out infinite;
}
.float-card svg { width: 20px; height: 20px; stroke: var(--cyan); }
.float-card b { display: block; font-size: 13px; }
.float-card small { font-family: var(--font-mono); color: var(--text-2); font-size: 11px; }
.hero-visual { position: relative; }
.hero-visual .fc-1 { left: -34px; bottom: -26px; }
.hero-visual .fc-2 { right: -18px; top: -26px; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: rgba(34,211,238,.5); box-shadow: 0 20px 40px -20px rgba(34,211,238,.25); }
.card .num { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; color: var(--cyan); margin-bottom: 24px; }
.icon {
  width: 28px; height: 28px; stroke: var(--cyan); fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-2); font-size: 16px; line-height: 1.7; flex: 1; margin-bottom: 24px; }
.card .link-arrow { margin-top: 8px; }
.card .tag {
  position: absolute; top: 28px; right: 28px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; color: var(--text-2); border: 1px solid var(--border);
}

/* ---------- Workflow visual (Learn more) ---------- */
.workflow {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 28px; overflow: hidden;
}
.workflow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(148,163,184,.14) 1px, transparent 1px);
  background-size: 22px 22px;
}
.workflow svg.wf { position: relative; width: 100%; height: auto; }
.wf-line { stroke: url(#wfGrad); stroke-width: 1.5; fill: none; stroke-dasharray: 6 6; animation: dash 1.6s linear infinite; }
.wf-node rect { fill: #0B1020; stroke: #1F2A44; }
.wf-node.hub rect { stroke: url(#wfGrad); stroke-width: 1.5; }
.wf-node text { fill: #E6EAF2; font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600; }
.wf-node text.sub { fill: #94A3B8; font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 400; letter-spacing: .06em; }
.wf-caption {
  position: relative; display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; border-radius: 20px; padding: 48px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  isolation: isolate;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; border-radius: 20px; padding: 1px; z-index: -1;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.cta-band::after {
  content: ""; position: absolute; right: 8%; top: 50%; width: 320px; height: 160px; transform: translateY(-50%);
  background: var(--cyan); opacity: .08; filter: blur(60px); z-index: -1; pointer-events: none;
}
.cta-band h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.cta-band p { margin: 8px 0 0; color: var(--text-2); }

/* ---------- Why choose us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.why-item { padding: 8px 48px; border-left: 1px solid var(--border); }
.why-item:first-child { border-left: 0; padding-left: 0; }
.why-item:last-child { padding-right: 0; }
.big-num {
  font-family: var(--font-mono); font-size: 48px; font-weight: 600; line-height: 1; margin-bottom: 22px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.why-item p { color: var(--text-2); font-size: 16px; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: calc(16.66% + 28px); right: calc(16.66% + 28px); height: 1px;
  background: var(--grad); opacity: .6;
}
.step { text-align: center; position: relative; }
.step-num {
  width: 56px; height: 56px; margin: 0 auto 24px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  font-family: var(--font-mono); font-size: 18px; font-weight: 600; color: var(--text);
  background: var(--bg);
}
.section.alt .step-num { background: var(--bg-alt); }
.step-num::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 1.5px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.step-num::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; box-shadow: 0 0 30px rgba(34,211,238,.18); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 16px; max-width: 32ch; margin: 0 auto; }

/* ---------- Final CTA ---------- */
.final-cta { position: relative; overflow: hidden; text-align: center; padding: 152px 0; }
.final-cta .inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.final-cta h2 { font-size: clamp(32px, 4.4vw, 48px); }
.final-cta p { color: var(--text-2); font-size: 18px; margin-bottom: 32px; }
.final-cta .radial {
  position: absolute; left: 50%; top: 50%; width: 900px; height: 520px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(59,130,246,.22), rgba(34,211,238,.12) 40%, transparent 70%);
  pointer-events: none;
}

/* ---------- Services page rows ---------- */
.svc-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start;
  padding: 64px 0; border-top: 1px solid var(--border);
}
.svc-row:first-child { border-top: 0; padding-top: 0; }
.svc-row:nth-child(even) { grid-template-columns: 1fr 200px; }
.svc-row:nth-child(even) .svc-icon-wrap { order: 2; justify-self: end; }
.svc-icon-wrap { display: flex; flex-direction: column; gap: 16px; }
.svc-icon {
  width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; position: relative; background: var(--surface);
}
.svc-icon::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; padding: 1.5px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.svc-icon .icon { margin: 0; width: 30px; height: 30px; }
.svc-icon-wrap .num { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; color: var(--cyan); }
.svc-row h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 12px; }
.svc-row > div > p { color: var(--text-2); max-width: 62ch; }
.dot-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.dot-list li { position: relative; padding-left: 20px; font-size: 16px; }
.dot-list li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px rgba(34,211,238,.6);
}
.tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tags .pill { font-size: 13px; padding: 10px 18px; color: var(--text); background: var(--surface); }

/* ---------- About ---------- */
.statement {
  font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(24px, 3.2vw, 36px); line-height: 1.3;
  padding: 8px 0 8px 32px; position: relative; max-width: 900px; margin: 0;
}
.statement::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: var(--grad); }
.prose { max-width: 720px; margin: 0 auto; }
.prose p { font-size: 18px; color: #C9D2E0; margin-bottom: 1.3em; }
.prose p:first-of-type::first-letter { font-family: var(--font-head); }
.belief .icon { margin-bottom: 18px; }
.skyline { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; position: relative; }
.skyline svg { width: 100%; height: auto; }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 40fr 60fr; gap: 80px; align-items: start; }
.form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 40px;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.6);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend {
  font-size: 14px; font-weight: 600; color: var(--text);
}
.field .req { color: var(--cyan); margin-left: 2px; }
.field .opt { color: var(--text-2); font-weight: 400; font-size: 13px; }
.input, .select, .textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; font-size: 16px; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder, .textarea::placeholder { color: #5B6780; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.22);
}
.textarea { min-height: 130px; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2322D3EE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.select option { background: var(--surface); color: var(--text); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: #F87171; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg);
  font-size: 14px; color: var(--text-2); transition: all .2s; user-select: none;
}
.chip span::before {
  content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1px solid #334155; transition: all .2s;
}
.chip input:checked + span { border-color: rgba(34,211,238,.6); color: var(--text); background: rgba(34,211,238,.08); }
.chip input:checked + span::before {
  background: var(--grad); border-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"), var(--grad);
  background-size: 10px, cover; background-position: center; background-repeat: no-repeat;
}
.chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-2); cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 2px 0 0; width: 20px; height: 20px;
  border-radius: 6px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; transition: all .2s;
}
.check input:checked {
  border-color: transparent;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat, var(--grad);
}
.check input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 24px; }
.privacy { font-size: 13px; color: var(--text-2); text-align: center; margin: 14px 0 0; display: flex; gap: 6px; justify-content: center; align-items: center; }
.privacy svg { width: 14px; height: 14px; stroke: var(--text-2); }
.form-status {
  display: none; margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-size: 15px;
}
.form-status.error { display: block; border: 1px solid rgba(248,113,113,.4); background: rgba(248,113,113,.08); color: #FCA5A5; }
.form-success {
  display: none; text-align: center; padding: 24px 8px;
}
.form-success.show { display: block; animation: fadeUp .5s ease both; }
.form-success .ok {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center;
  background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.4); box-shadow: var(--glow);
}
.form-success .ok svg { width: 28px; height: 28px; stroke: var(--cyan); }
.form-success h3 { font-size: 24px; }
.form-success p { color: var(--text-2); max-width: 44ch; margin: 0 auto; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .8s linear infinite; display: none;
}
.loading .spinner { display: inline-block; }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .ck {
  flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.3);
}
.checklist .ck svg { width: 15px; height: 15px; stroke: var(--cyan); }
.note-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 32px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2);
  padding: 8px 14px; border: 1px dashed var(--border); border-radius: 10px;
}
.note-chip svg { width: 14px; height: 14px; stroke: var(--cyan); }
.contact-layout { grid-template-columns: 1fr 1fr; }
.side-panel { position: sticky; top: calc(var(--header-h) + 32px); }

.contact-lines { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-lines li { display: flex; align-items: center; gap: 14px; }
.contact-lines .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border);
}
.contact-lines .ic svg { width: 20px; height: 20px; stroke: var(--cyan); }
.contact-lines small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); border-top: 1px solid var(--border); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.site-footer p { color: var(--text-2); font-size: 15px; max-width: 32ch; margin-top: 16px; }
.footer-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--text); font-size: 15px; }
.footer-links a:hover { color: var(--cyan); }
.footer-contact { display: grid; gap: 12px; font-size: 15px; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.footer-contact a:hover { color: var(--cyan); }
.footer-contact svg { width: 18px; height: 18px; stroke: var(--cyan); flex: none; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--text-2);
}

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .4s; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { gap: 48px; }
  .hero-visual .fc-1 { left: -12px; }
  .hero-visual .fc-2 { right: -6px; }
  .why-item { padding: 8px 24px; }
  .form-layout { gap: 40px; }
}

@media (max-width: 900px) {
  .nav .nav-links, .nav .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 48px; }
  .card { padding: 32px 28px; }
  .hero { min-height: auto; padding: calc(var(--header-h) + 40px) 0 64px; }
  .hero-grid, .split, .grid-2, .grid-3, .form-layout, .contact-layout, .footer-grid { grid-template-columns: 1fr; }
  .split { gap: 48px; }
  .hero-visual .float-card { display: none; }
  .page-hero { padding: calc(var(--header-h) + 48px) 0 56px; min-height: auto; }

  .cta-band { flex-direction: column; text-align: center; padding: 36px 24px; }

  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-item, .why-item:first-child { padding: 0 0 0 24px; border-left: 1px solid var(--border); }
  .big-num { font-size: 40px; margin-bottom: 14px; }

  .steps { grid-template-columns: 1fr; gap: 36px; padding-left: 0; }
  .steps::before { top: 28px; bottom: 28px; left: 28px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--blue), var(--cyan)); }
  .step { text-align: left; display: grid; grid-template-columns: 56px 1fr; gap: 20px; }
  .step-num { margin: 0; }
  .step p { margin: 0; }

  .final-cta { padding: 104px 0; }

  .svc-row, .svc-row:nth-child(even) { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  .svc-row:nth-child(even) .svc-icon-wrap { order: 0; justify-self: start; }
  .svc-icon-wrap { flex-direction: row; align-items: center; }
  .dot-list { grid-template-columns: 1fr; }

  .form-card { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .side-panel { position: static; }

  .footer-grid { gap: 36px; }
  .footer-bottom { flex-direction: column; }
}
