/* Zimritech — hi-fi site styles, brand-aligned
   Palette: Core Blue navy + Horizon Teal + Aviia Cyan + Growth Green + Digital Lime
   Neutrals: Stark White, Kiosk Grey, Mid Grey
   Type: Aeonik Foco (display) + Inter (UI) */

:root {
  /* Brand palette from guidelines */
  --core-blue: #0b2340;
  --core-blue-2: #0f2c52;
  --horizon: #173a5e;      /* deeper variant for gradients */
  --aviia: #4aa6b8;        /* cyan-teal */
  --growth: #2ea26a;       /* green */
  --lime: #9ee06a;         /* digital lime */
  --stark: #ffffff;
  --kiosk: #e7ebee;
  --mid-grey: #9aa4ad;

  /* Semantic */
  --bg: var(--core-blue);
  --bg-2: #0e2a4c;
  --bg-3: #0a1d36;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.78);
  --ink-3: rgba(255, 255, 255, 0.56);
  --ink-4: rgba(255, 255, 255, 0.32);
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.22);

  --accent: var(--lime);
  --accent-2: var(--growth);
  --accent-cool: var(--aviia);
  --accent-glow: rgba(158, 224, 106, 0.18);
  --cool-glow: rgba(74, 166, 184, 0.22);

  --font-display: 'Space Grotesk', 'Aeonik Foco', 'Inter', system-ui, sans-serif;
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 12px;
  --radius-lg: 20px;
  --max: 1280px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  background-image:
    radial-gradient(1100px 600px at 85% -10%, var(--cool-glow), transparent 60%),
    radial-gradient(900px 500px at -5% 30%, rgba(46, 162, 106, 0.10), transparent 65%),
    linear-gradient(180deg, var(--core-blue) 0%, #081a31 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Faint grid overlay tying the brand's geometric vibe */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 80%);
}

/* Typography helpers */
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }
.mono { font-family: var(--font-mono); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: "◆"; color: var(--accent); font-size: 10px; }
.kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; position: relative; z-index: 2; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(11, 35, 64, 0.75);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 17px 16px 17px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 20px; letter-spacing: -0.01em; font-weight: 500; }
.logo-mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
}
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-img { width: 25px !important; height: 25px !important; max-width: 25px; max-height: 25px; object-fit: contain; display: block; flex-shrink: 0; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px; color: var(--ink-2); transition: color 0.15s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; bottom: -22px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  cursor: pointer; transition: all 0.18s ease;
  font-family: var(--font-ui);
}
.btn:hover { border-color: var(--ink-2); background: rgba(255, 255, 255, 0.05); }
.btn--primary {
  background: var(--accent); color: var(--core-blue); border-color: var(--accent);
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--stark); border-color: var(--stark); color: var(--core-blue);
  box-shadow: 0 0 40px var(--accent-glow);
}
.btn--secondary {
  background: var(--stark); color: var(--core-blue); border-color: var(--stark);
  font-weight: 500;
}
.btn--secondary:hover { background: transparent; color: var(--ink); }
.btn--cool {
  background: var(--aviia); color: var(--core-blue); border-color: var(--aviia);
  font-weight: 600;
}
.btn--cool:hover { background: var(--stark); border-color: var(--stark); }
.btn--lg { padding: 14px 24px; font-size: 15px; }
.btn--arrow svg { transition: transform 0.2s; }
.btn--arrow:hover svg { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 90px 0 80px; overflow: hidden; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04);
  font-size: 12px; color: var(--ink-2);
}
.hero-badge-tag {
  font-family: var(--font-mono); font-size: 10px;
  background: var(--accent); color: var(--core-blue);
  padding: 3px 8px; border-radius: 999px; letter-spacing: 0.08em;
  font-weight: 600;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(56px, 8.5vw, 120px);
  line-height: 0.95; letter-spacing: -0.035em; margin-top: 28px;
  max-width: 14ch;
}
.hero-title .gradient-word {
  background: linear-gradient(120deg, var(--aviia), var(--lime) 60%, var(--growth));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic; font-weight: 400;
  padding-right: 8px;
}
.hero-title em { font-style: italic; color: var(--ink-3); font-weight: 400; }

.hero-sub {
  margin-top: 28px; max-width: 520px; font-size: 17px; line-height: 1.6; color: var(--ink-2);
}
.hero-ctas { display: flex; gap: 12px; margin-top: 36px; align-items: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 56px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  color: var(--ink-3); font-size: 12px;
}
.hero-avatars { display: flex; }
.hero-avatars > div {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--core-blue);
  margin-left: -8px;
}
.hero-avatars > div:first-child { margin-left: 0; }
.hero-avatars > div:nth-child(1) { background: linear-gradient(135deg, var(--aviia), var(--growth)); }
.hero-avatars > div:nth-child(2) { background: linear-gradient(135deg, var(--lime), var(--aviia)); }
.hero-avatars > div:nth-child(3) { background: linear-gradient(135deg, var(--growth), #5a7fb8); }
.hero-avatars > div:nth-child(4) { background: linear-gradient(135deg, #5a7fb8, var(--aviia)); }

.hero-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: center; position: relative; overflow: hidden; }

/* Neural / node graphic, echoes the brand's geometric icons */
.hero-graphic {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; margin-left: auto;
  overflow: hidden;
}
.hero-graphic svg { width: 100%; height: 100%; display: block; overflow: visible; }
@media (max-width: 960px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-graphic { max-width: 420px; margin: 0 auto; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 0; overflow: hidden; white-space: nowrap;
  display: flex; align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 80px, #000 calc(100% - 80px), transparent);
  background: rgba(0, 0, 0, 0.18);
}
.marquee-track { display: inline-flex; gap: 56px; animation: scroll 44s linear infinite; padding-left: 56px; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 56px;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.22em;
  color: var(--ink-3); text-transform: uppercase;
}
.marquee-item svg { color: var(--accent); opacity: 0.7; }

/* ---------- Section shell ---------- */
.section { padding: 120px 0; position: relative; z-index: 2; }
.section-eyebrow { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; }
.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.02; letter-spacing: -0.028em;
  max-width: 20ch;
}
.section-title em { font-style: italic; color: var(--accent-cool); font-weight: 400; }
.section-intro-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end; margin-bottom: 56px; }
.section-intro-row p { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }

/* ---------- Solutions ---------- */
.solutions { }
.solution-row {
  display: grid; grid-template-columns: 60px 54px 1.3fr 2fr 120px 30px;
  gap: 24px; align-items: center;
  padding: 28px 0; border-top: 1px solid var(--line);
  transition: background 0.3s, padding 0.3s;
  cursor: pointer; position: relative;
}
.solution-row:last-child { border-bottom: 1px solid var(--line); }
.solution-row:hover { background: linear-gradient(90deg, transparent, rgba(74, 166, 184, 0.06), transparent); }
.solution-row:hover .solution-arrow { transform: translateX(6px); color: var(--accent); }
.solution-row:hover .solution-title { color: var(--accent); }
.solution-row:hover .solution-icon { background: var(--accent); color: var(--core-blue); border-color: var(--accent); }
.solution-num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.08em; }
.solution-icon {
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line-2); display: grid; place-items: center;
  color: var(--ink); transition: all 0.2s;
}
.solution-title { font-family: var(--font-display); font-size: 30px; line-height: 1.05; letter-spacing: -0.02em; transition: color 0.2s; font-weight: 500; }
.solution-desc { font-size: 15px; color: var(--ink-2); line-height: 1.5; max-width: 50ch; }
.solution-code { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-3); }
.solution-arrow { font-size: 20px; transition: transform 0.2s, color 0.2s; color: var(--ink-3); text-align: right; }

/* ---------- Console panel ---------- */
.console-wrap { margin-top: 64px; position: relative; }
.console {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0e2a4c, #081a30);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--line), 0 0 120px rgba(74, 166, 184, 0.08);
  overflow: hidden;
  position: relative;
}
.console::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 240px at 85% 0%, var(--cool-glow), transparent 60%);
}
.console-chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.15);
}
.console-dots { display: flex; gap: 6px; }
.console-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.console-dots span:first-child { background: rgba(255, 255, 255, 0.2); }
.console-title { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-left: 8px; }
.console-tabs { margin-left: auto; display: flex; gap: 4px; }
.console-tabs span {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  padding: 4px 10px; border-radius: 999px;
}
.console-tabs span.active { background: rgba(255, 255, 255, 0.08); color: var(--ink); }

.console-body { display: grid; grid-template-columns: 220px 1fr; min-height: 460px; position: relative; }
.console-side { border-right: 1px solid var(--line); padding: 20px 14px; }
.console-side-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 14px; padding: 0 6px; }
.console-agent {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 8px; font-size: 13px; color: var(--ink-2);
  margin-bottom: 2px; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.console-agent:hover { background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.console-agent.active { background: var(--aviia); color: var(--core-blue); font-weight: 500; }
.console-agent.active .console-agent-count { background: rgba(11, 35, 64, 0.25); color: var(--core-blue); }
.console-agent-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--growth); margin-right: 10px; flex-shrink: 0; }
.console-agent.active .console-agent-dot { background: var(--core-blue); }
.console-agent-name { flex: 1; display: flex; align-items: center; }
.console-agent-count { font-family: var(--font-mono); font-size: 10px; padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); color: var(--ink-3); }

.console-main { padding: 22px 26px; }
.console-header-row { display: flex; justify-content: space-between; align-items: baseline; }
.console-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: rgba(255, 255, 255, 0.02); }
.kpi-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--ink-3); text-transform: uppercase; }
.kpi-value { font-family: var(--font-display); font-size: 36px; line-height: 1; margin-top: 8px; letter-spacing: -0.02em; font-weight: 500; }
.kpi-value em { color: var(--accent); font-style: normal; }
.kpi-delta { font-family: var(--font-mono); font-size: 11px; color: var(--accent); margin-top: 4px; }
.kpi-delta.down { color: var(--lime); }

.console-chart { margin-top: 16px; height: 160px; position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: rgba(0, 0, 0, 0.15); overflow: hidden; }
.console-chart svg { width: 100%; height: 100%; display: block; }

.console-prompt {
  margin-top: 14px; display: flex; gap: 10px; align-items: center;
  padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
}
.console-prompt-caret { font-family: var(--font-mono); color: var(--accent); }
.console-prompt-text { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); flex: 1; }
.console-prompt-cursor { display: inline-block; width: 7px; height: 14px; background: var(--accent); vertical-align: middle; animation: blink 1s steps(1) infinite; transform: translateY(2px); }
@keyframes blink { 50% { opacity: 0; } }
.console-prompt-btn {
  padding: 6px 14px; border-radius: 6px;
  background: var(--accent); color: var(--core-blue);
  font-family: var(--font-ui); font-size: 12px; font-weight: 600; border: none;
}

/* ---------- Process timeline ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; }
.process-step {
  position: relative; padding: 28px 28px 28px 0;
}
.process-step + .process-step { padding-left: 28px; border-left: 1px dashed var(--line-2); }
.process-num { font-family: var(--font-display); font-size: 80px; line-height: 0.9; color: var(--ink-4); letter-spacing: -0.04em; transition: color 0.3s; font-weight: 500; }
.process-step:hover .process-num { color: var(--accent); }
.process-when { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--accent-cool); margin-top: 16px; text-transform: uppercase; }
.process-title { font-family: var(--font-display); font-size: 28px; line-height: 1.1; margin-top: 6px; letter-spacing: -0.02em; font-weight: 500; }
.process-desc { font-size: 14px; color: var(--ink-2); margin-top: 10px; line-height: 1.55; max-width: 26ch; }

/* ---------- Commitments — "What's in every engagement" checklist ---------- */
.commitments {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.commit {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.012);
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.commit::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-cool));
  transition: width 0.45s ease;
}
.commit:hover {
  border-color: var(--accent);
  background: rgba(158, 224, 106, 0.045);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.commit:hover::after { width: 50%; }

.commit-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(158, 224, 106, 0.12);
  border: 1px solid rgba(158, 224, 106, 0.4);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}
.commit:hover .commit-mark {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--core-blue);
  transform: scale(1.06);
}

.commit-body { display: flex; flex-direction: column; gap: 6px; }
.commit-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.commit-desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .commitments { grid-template-columns: 1fr; gap: 12px; }
  .commit { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .commit, .commit::after, .commit-mark { transition: none !important; }
}

/* ---------- Principles (replaces removed testimonials) ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.principle {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px 28px;
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  transition: border-color 0.3s, transform 0.3s, background 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.principle::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 60%);
  opacity: 0.35;
  transition: opacity 0.3s;
}
.principle::after {
  content: "";
  position: absolute; bottom: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-cool));
  transition: width 0.45s ease;
}
.principle:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(158,224,106,0.06), rgba(74,166,184,0.02));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(158, 224, 106, 0.05);
}
.principle:hover::before { opacity: 1; }
.principle:hover::after { width: 65%; }

.principle-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--accent-cool);
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.25s;
}
.principle-num::before {
  content: "";
  display: inline-block;
  width: 14px; height: 1.5px;
  background: var(--accent-cool);
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}
.principle:hover .principle-num { color: var(--accent); }
.principle:hover .principle-num::before {
  width: 28px;
  background: var(--accent);
}
.principle-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.22;
  letter-spacing: -0.018em;
  font-weight: 600;
  color: var(--ink);
}
.principle-body {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
@media (max-width: 1024px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .principles { grid-template-columns: 1fr; gap: 12px; } .principle { padding: 26px 22px 22px; } }
@media (prefers-reduced-motion: reduce) {
  .principle, .principle::before, .principle::after, .principle-num, .principle-num::before { transition: none !important; }
}

/* ---------- Benefits strip ---------- */
.benefits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.benefit { padding: 32px 24px; position: relative; }
.benefit + .benefit { border-left: 1px solid var(--line); }
.benefit-icon {
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--accent-cool);
}
.benefit-title { font-family: var(--font-display); font-size: 20px; margin-top: 16px; letter-spacing: -0.01em; font-weight: 500; }
.benefit-desc { font-size: 13px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }

/* ---------- CTA + form ---------- */
.cta-section {
  padding: 120px 0 120px; position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(700px 320px at 20% 10%, var(--accent-glow), transparent 60%),
    radial-gradient(600px 320px at 90% 80%, var(--cool-glow), transparent 60%);
}
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.cta-title { font-family: var(--font-display); font-size: clamp(48px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.03em; font-weight: 500; }
.cta-title em { font-style: italic; background: linear-gradient(120deg, var(--aviia), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 400; }
.cta-sub { margin-top: 20px; max-width: 44ch; font-size: 16px; color: var(--ink-2); line-height: 1.55; }

.cta-info { margin-top: 36px; }
.cta-info-row { display: grid; grid-template-columns: 28px 120px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.cta-info-row:last-child { border-bottom: 1px solid var(--line); }
.cta-info-icon {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--accent-cool);
}
.cta-info-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; color: var(--ink-3); text-transform: uppercase; }
.cta-info-value { font-size: 15px; color: var(--ink); }
.cta-info-value a:hover { color: var(--accent); }

.form {
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 36px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.2));
  backdrop-filter: blur(10px);
}
.form-title { font-family: var(--font-display); font-size: 30px; letter-spacing: -0.02em; font-weight: 500; }
.form-sub { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--ink-3); text-transform: uppercase; }
.form-field input, .form-field textarea {
  background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 12px 0 10px; color: var(--ink); font-family: var(--font-ui);
  font-size: 16px; /* 16px minimum so iOS Safari doesn't auto-zoom on focus */
  line-height: 1.4;
  min-height: 44px; /* touch target */
  transition: border-color 0.2s;
  resize: none;
  width: 100%; /* prevent input from overflowing form-field on mobile */
}
.form-field textarea { min-height: 88px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-4); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form-actions { margin-top: 30px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-note { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

/* Form submit/honeypot/status */
.form.is-busy { opacity: 0.7; pointer-events: none; }
.form button[type="submit"]:disabled { opacity: 0.55; cursor: wait; }
.form-honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  margin-top: 18px;
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.form-status:not(:empty) { display: block; }
.form-status--success {
  background: rgba(46, 162, 106, 0.1);
  color: #6fd49a;
  border: 1px solid rgba(46, 162, 106, 0.35);
}
.form-status--error {
  background: rgba(245, 158, 11, 0.08);
  color: #f5b04b;
  border: 1px solid rgba(245, 158, 11, 0.32);
}

/* ---------- Footer ---------- */
.footer { padding: 72px 0 40px; border-top: 1px solid var(--line); position: relative; z-index: 2; background: rgba(0, 0, 0, 0.2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 20px; }
.footer-col a { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 12px; transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand .logo-mark { width: 32px; height: 32px; }
.footer-brand .logo-img { width: 32px; height: 32px; }
.footer-brand-name { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.01em; font-weight: 500; }
.footer-blurb { font-size: 14px; color: var(--ink-2); max-width: 32ch; line-height: 1.55; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-2); margin: 0;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Tweaks panel ---------- */
.tweaks {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: #0e2a4c; border: 1px solid var(--line-2); border-radius: 14px;
  padding: 20px; font-family: var(--font-ui); font-size: 13px; color: var(--ink);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: none; min-width: 280px;
}
.tweaks.open { display: block; }
.tweaks-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 18px; }
.tweak-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.tweak-row label { font-size: 12px; color: var(--ink-2); display: flex; justify-content: space-between; }
.tweak-row label span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.tweak-swatches { display: flex; gap: 8px; }
.tweak-swatch {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2);
  cursor: pointer; position: relative;
}
.tweak-swatch.active { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px rgba(255,255,255,0.1); }
.tweak-toggle {
  display: flex; gap: 4px; background: rgba(255, 255, 255, 0.05); padding: 3px; border-radius: 8px;
}
.tweak-toggle button {
  flex: 1; padding: 6px 10px; border: none; background: transparent; border-radius: 6px;
  color: var(--ink-2); font-size: 12px; cursor: pointer; font-family: inherit;
}
.tweak-toggle button.active { background: var(--ink); color: var(--core-blue); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .section-intro-row, .cta-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-graphic { max-width: 360px; margin: 30px auto 0; }
  .solution-row { grid-template-columns: 40px 40px 1fr 30px; gap: 14px; }
  .solution-row .solution-desc, .solution-row .solution-code { display: none; }
  .process { grid-template-columns: 1fr; }
  .process-step + .process-step { border-left: none; border-top: 1px dashed var(--line-2); padding-top: 24px; padding-left: 0; }
  .principles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .console-body { grid-template-columns: 1fr; }
  .console-side { border-right: none; border-bottom: 1px solid var(--line); }
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefit + .benefit { border-left: none; }
  .benefit:nth-child(odd) { border-right: 1px solid var(--line); }
  .benefit:nth-child(n+3) { border-top: 1px solid var(--line); }
}


/* ============================================
   HERO V2 — Centered w/ spotlight (SuperPort style)
   ============================================ */

/* Centered nav pill */
.nav--center .nav-inner--3col {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav-pill {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}
.pill-link {
  font-size: 13px;
  color: var(--ink-2);
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.18s ease;
  letter-spacing: -0.005em;
  position: relative;
}
.pill-link:hover { color: var(--ink); }
.pill-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 0, 0, 0.3);
}
.pill-link.active::after { display: none; }

.nav-cta--right {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.nav-ghost {
  font-size: 13px;
  color: var(--ink-2);
  transition: color 0.18s;
}
.nav-ghost:hover { color: var(--ink); }

.btn--pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.18s ease;
}
.btn--pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 900px) {
  .nav-pill { display: none; }
  .nav--center .nav-inner--3col { grid-template-columns: auto 1fr; }
  .nav-cta--right { grid-column: 2; }
}

/* Hero */
.hero--center {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  text-align: center;
  min-height: 860px;
  background:
    radial-gradient(ellipse 900px 600px at 50% -100px, rgba(74, 166, 184, 0.12), transparent 60%),
    var(--core-blue);
}

/* Spotlight beam from top */
.spotlight {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 560px;
  pointer-events: none;
  z-index: 1;
}
.spotlight-cone {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 560px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(158, 224, 106, 0.55), transparent 70%),
    conic-gradient(from 180deg at 50% 0%, transparent 0deg, rgba(158, 224, 106, 0.28) 10deg, rgba(46, 162, 106, 0.18) 20deg, transparent 30deg, transparent 330deg, rgba(46, 162, 106, 0.18) 340deg, rgba(158, 224, 106, 0.28) 350deg, transparent 360deg);
  filter: blur(18px);
  opacity: 0.75;
  clip-path: polygon(45% 0%, 55% 0%, 100% 100%, 0% 100%);
}
.spotlight-core {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 420px;
  background: linear-gradient(180deg, rgba(158, 224, 106, 0.8) 0%, rgba(74, 166, 184, 0.3) 40%, transparent 85%);
  filter: blur(24px);
  clip-path: polygon(42% 0%, 58% 0%, 80% 100%, 20% 100%);
}
.spotlight-halo {
  position: absolute;
  top: 300px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 140px;
  background: radial-gradient(ellipse 50% 50% at center, rgba(158, 224, 106, 0.28), transparent 70%);
  filter: blur(30px);
}

/* Orbit decoration top-right */
.hero-orbit {
  position: absolute;
  top: 60px;
  right: -80px;
  width: 520px;
  height: 260px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.9;
}

.hero-center-wrap {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Chip row */
.hero-chiprow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}
.chip--glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  backdrop-filter: blur(12px);
}
.chip-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(158, 224, 106, 0.18), rgba(46, 162, 106, 0.18));
  border: 1px solid rgba(158, 224, 106, 0.3);
  display: grid;
  place-items: center;
}
.chip-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}
.chip-plus {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--growth);
  color: var(--core-blue);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

/* Centered headline */
.hero-title--center {
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 auto 24px;
  max-width: 980px;
  color: var(--ink);
}
.hero-sub--center {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 auto 40px;
  max-width: 640px;
}

/* CTA input */
.hero-input {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 560px;
  padding: 6px 6px 6px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  margin-bottom: 36px;
  backdrop-filter: blur(12px);
}
.hero-input-icon {
  color: var(--ink-3);
  display: inline-grid;
  place-items: center;
  margin-right: 10px;
}
.hero-input input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  padding: 10px 0;
}
.hero-input input::placeholder { color: var(--ink-3); }
.hero-input-cta {
  position: relative;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #e8f3e0);
  color: var(--core-blue);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  overflow: visible;
  box-shadow: 0 0 0 1px rgba(158, 224, 106, 0.4), 0 0 24px rgba(158, 224, 106, 0.45);
  transition: transform 0.18s;
}
.hero-input-cta:hover { transform: translateY(-1px); }
.cta-glow {
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: radial-gradient(ellipse at right, rgba(158, 224, 106, 0.5), transparent 70%);
  z-index: -1;
  filter: blur(12px);
}

/* Socials */
.hero-socials {
  display: inline-flex;
  gap: 14px;
  margin-bottom: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.hero-social {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-2);
  transition: all 0.18s;
}
.hero-social:hover { color: var(--growth); background: rgba(158, 224, 106, 0.08); }

/* Showcase row */
.showcase {
  width: 100%;
  max-width: 1160px;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  position: relative;
}
.show-card {
  padding: 28px 24px;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 220px;
}
.show-card:last-child { border-right: none; }

/* Left: tag card */
.show-card--tags { display: flex; flex-direction: column; }
.show-toolbar {
  display: flex;
  gap: 14px;
  color: var(--ink-3);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.show-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.show-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--core-blue);
  font-weight: 500;
  border: 1px dashed transparent;
}
.show-tag--mint { background: #9ee06a; }
.show-tag--olive { background: #c7d97f; }
.tag-x, .tag-plus {
  background: rgba(11, 35, 64, 0.15);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
}
.show-tag-pill {
  display: inline-flex;
  padding: 6px 12px;
  background: rgba(158, 224, 106, 0.18);
  color: var(--growth);
  border: 1px dashed rgba(158, 224, 106, 0.4);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  align-self: flex-start;
  margin-bottom: auto;
}
.show-started {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: flex-start;
  margin-top: auto;
}

/* Center: stat */
.show-card--stat { position: relative; }
.stat-number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 20px;
}
.stat-percent { font-size: 40px; color: var(--ink-2); }
.stat-arrow { margin-left: 4px; margin-top: 6px; }
.stat-title {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--ink);
}
.stat-title-accent { color: var(--growth); }
.stat-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 360px;
  text-align: left;
}
.stat-hex {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
}

/* Right: nodes diagram */
.show-card--nodes { padding: 0; background: rgba(0, 0, 0, 0.2); display: grid; place-items: center; }
.node-svg { width: 100%; height: 100%; max-height: 220px; }

@media (max-width: 960px) {
  .showcase { grid-template-columns: 1fr; }
  .show-card { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .show-card:last-child { border-bottom: none; }
  .hero--center { min-height: auto; padding: 60px 0 40px; }
  .hero-orbit { display: none; }
}


/* ============================================
   Elegant floating shapes (Kokonut UI inspired)
   ============================================ */
.shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.shape {
  position: absolute;
  width: var(--w);
  height: var(--h);
  opacity: 0;
  will-change: transform, opacity;
  transform: translateY(-150px) rotate(calc(var(--rot) - 15deg));
  animation:
    shape-in 2.4s var(--dly, 0.3s) cubic-bezier(0.23, 0.86, 0.39, 0.96) forwards,
    shape-float 12s var(--dly, 0.3s) ease-in-out infinite;
}
.shape::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--shape-color, rgba(255,255,255,0.15)), transparent);
  border: 2px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px);
  box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.1);
}
.shape::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), transparent 70%);
}
.shape--indigo { --shape-color: rgba(99, 102, 241, 0.15); }
.shape--rose   { --shape-color: rgba(244, 63, 94, 0.15); }
.shape--violet { --shape-color: rgba(139, 92, 246, 0.15); }
.shape--amber  { --shape-color: rgba(245, 158, 11, 0.15); }
.shape--cyan   { --shape-color: rgba(6, 182, 212, 0.15); }

@keyframes shape-in {
  from {
    opacity: 0;
    transform: translateY(-150px) rotate(calc(var(--rot) - 15deg));
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--rot));
  }
}
@keyframes shape-float {
  0%, 100% {
    transform: translateY(0) rotate(var(--rot));
  }
  50% {
    transform: translateY(15px) rotate(var(--rot));
  }
}

/* Soft ambient gradient overlay behind shapes */
.hero--center::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 20% 30%, rgba(99, 102, 241, 0.06), transparent 70%),
    radial-gradient(ellipse 800px 600px at 80% 70%, rgba(244, 63, 94, 0.06), transparent 70%);
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}

/* Dark fade at top/bottom to blend shapes into page */
.hero--center::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--core-blue) 0%, transparent 15%, transparent 85%, rgba(11, 35, 64, 0.85) 100%);
  pointer-events: none;
  z-index: 2;
}


/* ============================================
   HERO KOKONUT — airy, shape-driven, minimal
   ============================================ */
.hero--kokonut {
  position: relative;
  min-height: 88vh;
  padding: 120px 0 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--core-blue);
}

/* Ambient gradient wash */
.hero--kokonut::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 25% 30%, rgba(99, 102, 241, 0.08), transparent 60%),
    radial-gradient(ellipse 900px 600px at 75% 70%, rgba(244, 63, 94, 0.08), transparent 60%);
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}

/* Top + bottom vignette — fades shapes into page */
.kk-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    var(--core-blue) 0%,
    transparent 12%,
    transparent 88%,
    var(--core-blue) 100%);
  pointer-events: none;
  z-index: 4;
}

/* Content wrapper */
.hero-kokonut-wrap {
  position: relative;
  z-index: 5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 860px;
}

/* Reveal animation */
.kk-reveal {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
  animation: kk-fade-up 1s var(--d, 0.5s) cubic-bezier(0.25, 0.4, 0.25, 1) forwards;
}
@keyframes kk-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Badge */
.kk-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
  margin-bottom: 40px;
  backdrop-filter: blur(12px);
}
.kk-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.85);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.5);
}

/* Title — big, light weight, two tonal lines */
.kk-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 108px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 28px;
}
.kk-title-1,
.kk-title-2 {
  display: block;
}
.kk-title-1 {
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.82));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kk-title-2 {
  background: linear-gradient(90deg, #a5b4fc, rgba(255, 255, 255, 0.92), #fda4af);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 400;
}

/* Sub */
.kk-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
  letter-spacing: 0.01em;
  margin: 0 0 44px;
  max-width: 580px;
}

/* CTAs */
.kk-ctas {
  display: inline-flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.kk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.kk-btn--primary {
  background: linear-gradient(180deg, #ffffff, #e8e8f0);
  color: #0b0b12;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 32px rgba(255, 255, 255, 0.12);
}
.kk-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 12px 40px rgba(255, 255, 255, 0.18);
}
.kk-btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}
.kk-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

/* Meta */
.kk-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.005em;
}
.kk-avatars {
  display: inline-flex;
}
.kk-avatars > div {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--core-blue);
  margin-left: -8px;
  background: linear-gradient(135deg, #4aa6b8, #9ee06a);
}
.kk-avatars > div:first-child { margin-left: 0; }
.kk-avatars > div:nth-child(2) { background: linear-gradient(135deg, #a5b4fc, #6366f1); }
.kk-avatars > div:nth-child(3) { background: linear-gradient(135deg, #fda4af, #f43f5e); }
.kk-avatars > div:nth-child(4) { background: linear-gradient(135deg, #fcd34d, #f59e0b); }

@media (max-width: 700px) {
  .hero--kokonut { padding: 80px 0 60px; min-height: auto; }
  .kk-title { font-size: clamp(44px, 12vw, 68px); }
}


/* ============================================
   NEON BUTTON ANIMATION (21st.dev port)
   Adds hover neon-line top + static neon-line bottom
   to all buttons across the site.
   ============================================ */

/* Target: .btn, .kk-btn, .btn--pill, .btn--primary, .hero-input-cta, .chip-add,
   and any anchor/button that opts in with .neon-btn */
.btn,
.kk-btn,
.btn--pill,
.hero-input-cta,
.chip-add,
.nav-ghost,
.neon-btn {
  position: relative;
  overflow: visible !important;
  isolation: isolate;
}

/* Top hover line — fades in on hover */
.btn::before,
.kk-btn::before,
.btn--pill::before,
.hero-input-cta::before,
.chip-add::before,
.nav-ghost.neon-btn::before,
.neon-btn::before {
  content: "";
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent, #9ee06a) 50%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
  z-index: 2;
}

/* Bottom line — always visible faintly, fades on hover */
.btn::after,
.kk-btn::after,
.btn--pill::after,
.hero-input-cta::after,
.chip-add::after,
.nav-ghost.neon-btn::after,
.neon-btn::after {
  content: "";
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent, #9ee06a) 50%,
    transparent 100%);
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
  z-index: 2;
}

/* Hover states */
.btn:hover::before,
.kk-btn:hover::before,
.btn--pill:hover::before,
.hero-input-cta:hover::before,
.chip-add:hover::before,
.nav-ghost.neon-btn:hover::before,
.neon-btn:hover::before {
  opacity: 1;
}

.btn:hover::after,
.kk-btn:hover::after,
.btn--pill:hover::after,
.hero-input-cta:hover::after,
.chip-add:hover::after,
.nav-ghost.neon-btn:hover::after,
.neon-btn:hover::after {
  opacity: 0.3;
}

/* Soft glow ring on hover — echoes the neon feel */
.btn,
.kk-btn,
.btn--pill,
.hero-input-cta {
  transition: box-shadow 0.4s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover,
.kk-btn:hover,
.btn--pill:hover,
.hero-input-cta:hover {
  box-shadow:
    0 0 0 1px rgba(158, 224, 106, 0.2),
    0 0 24px rgba(158, 224, 106, 0.18),
    0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Solid variants (hero primary, book-a-call) get stronger glow */
.kk-btn--primary:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0 32px rgba(255, 255, 255, 0.2),
    0 12px 40px rgba(255, 255, 255, 0.15);
}

/* Pill nav links get the treatment too */
.pill-link {
  position: relative;
  overflow: visible;
}
.pill-link::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent, #9ee06a), transparent);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
}
.pill-link:hover::after,
.pill-link.active::after {
  opacity: 0.6;
}

/* Subtle rise on all interactive elements */
.btn:hover,
.kk-btn:hover,
.btn--pill:hover,
.hero-input-cta:hover,
.chip-add:hover {
  transform: translateY(-1px);
}

/* Don't apply the line treatment when the button is disabled */
.btn:disabled::before,
.btn:disabled::after,
.kk-btn:disabled::before,
.kk-btn:disabled::after {
  display: none;
}

/* ============================================
   SKIP LINK (accessibility)
   ============================================ */
.skip-link {
  position: fixed;
  top: -120px;
  left: 20px;
  z-index: 200;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--core-blue);
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ============================================
   FOCUS VISIBLE (keyboard navigation)
   ============================================ */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.25, 0.4, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
  transition-delay: calc(var(--stagger, 0) * 90ms);
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="fade-left"] {
  transform: translateX(-24px);
}
[data-reveal="fade-left"].visible {
  transform: translateX(0);
}
[data-reveal="scale"] {
  transform: scale(0.93);
}
[data-reveal="scale"].visible {
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-hero {
  padding: 100px 0 60px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.legal-hero-eyebrow {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}
.legal-hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 16px;
}
.legal-hero-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

.legal-body {
  padding: 72px 0 120px;
  position: relative;
  z-index: 2;
}
.legal-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 82px;
}
.legal-toc-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.legal-toc a {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  padding: 6px 0;
  border-left: 2px solid var(--line);
  padding-left: 14px;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1.4;
}
.legal-toc a:hover,
.legal-toc a.active {
  color: var(--ink);
  border-left-color: var(--accent);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 56px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.legal-content h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}
.legal-content h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 28px 0 10px;
}
.legal-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 0 0 16px;
}
.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 0;
  padding-left: 20px;
}
.legal-content li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover { color: var(--ink); }
.legal-callout {
  background: rgba(158, 224, 106, 0.05);
  border: 1px solid rgba(158, 224, 106, 0.18);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.legal-callout p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}
.legal-callout strong { color: var(--accent); }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
.legal-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-2);
}
.legal-table td {
  padding: 12px 16px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.6;
}
.legal-table tr:last-child td { border-bottom: none; }

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 40px; }
  .legal-toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 0; }
  .legal-toc a { border-left: none; border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 13px; }
  .legal-hero { padding: 72px 0 40px; }
}

/* ============================================
   OPTIMIZATIONS — perf, a11y, mobile
   ============================================ */

/* Normalize logo sizing (replaces inline style attrs) */
.logo .logo-img { width: 26px; height: 26px; object-fit: contain; display: block; flex-shrink: 0; }
.footer-brand .logo-img { width: 32px; height: 32px; object-fit: contain; display: block; flex-shrink: 0; }

/* Prevent CLS on images without intrinsic ratio */
img { max-width: 100%; height: auto; }

/* Drop fixed background on mobile — expensive paint cost */
@media (max-width: 900px) {
  body { background-attachment: scroll; }
}

/* Touch target minimum on primary interactive elements */
.btn, .kk-btn, .btn--pill, .hero-input-cta, .nav-ghost, .pill-link,
.footer-social a, .chip-add, .console-prompt-btn {
  min-height: 40px;
}
@media (max-width: 900px) {
  .btn, .kk-btn, .btn--pill, .hero-input-cta, .chip-add {
    min-height: 44px;
  }
  .footer-social a { width: 44px; height: 44px; }
  .footer-col a { padding: 6px 0; }
}

/* Keyboard parity for solution-row hover cues */
.solution-row:focus-visible { outline-offset: 0; border-radius: 8px; }
.solution-row:focus-within { background: linear-gradient(90deg, transparent, rgba(74, 166, 184, 0.06), transparent); }
.solution-row:focus-within .solution-arrow { transform: translateX(6px); color: var(--accent); }
.solution-row:focus-within .solution-title { color: var(--accent); }
.solution-row:focus-within .solution-icon { background: var(--accent); color: var(--core-blue); border-color: var(--accent); }

/* Guard always-on decorative animations behind reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }
  .hero-badge-dot { animation: none !important; }
  .console-prompt-cursor { animation: none !important; opacity: 1; }
  .kk-reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .shapes .shape { animation: none !important; }
}

/* ---------- Mobile nav — three-column with center CTA + hamburger ----------
   At <=900px: hide pill nav, layout becomes
   logo (left) | Book a call (center) | hamburger (right).
   Full subpage navigation accessible via the hamburger drawer. */
@media (max-width: 900px) {
  .nav--center .nav-inner--3col {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
  }
  .nav-pill { display: none; }
  .nav--center .logo { grid-column: 1; justify-self: start; }
  .nav-cta--right {
    grid-column: 2;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .nav-ghost { display: none; }
  .nav-cta--right .btn--pill {
    background: var(--accent);
    color: var(--core-blue);
    border-color: var(--accent);
    font-weight: 600;
  }
  .nav-cta--right .btn--pill:hover {
    background: var(--stark);
    border-color: var(--stark);
    color: var(--core-blue);
  }
}

/* Hard-hide legacy hamburger/mobile-menu markup if present */
.nav-toggle,
.mobile-menu { display: none !important; }

/* ---------- Solutions grid — tablet breakpoint ---------- */
@media (max-width: 1024px) and (min-width: 901px) {
  .solution-row {
    grid-template-columns: 48px 48px 1fr 90px 24px;
    gap: 18px;
  }
  .solution-row .solution-desc { display: none; }
  .solution-title { font-size: 24px; }
}
@media (max-width: 900px) {
  .solution-title { font-size: 22px; line-height: 1.15; }
  .solution-row { padding: 22px 0; }
}

/* ---------- Form a11y — visible labels, valid states ---------- */
.form-field label { color: var(--ink-2); }
.form-field input:invalid:not(:placeholder-shown) { border-bottom-color: #e06a6a; }

/* ---------- Contrast — ensure secondary body text hits AA ---------- */
.process-when,
.footer-bottom,
.kk-meta,
.hero-meta { color: rgba(255, 255, 255, 0.7); }

/* ---------- Print ---------- */
@media print {
  .nav, .footer-social, .tweaks,
  .marquee, .spotlight, .shapes { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .section { padding: 24px 0 !important; }
  a { color: inherit !important; text-decoration: underline; }
}

/* ============================================
   MOBILE POLISH v2 — touch, breakpoints, rhythm
   ============================================
   Applies UI/UX guidelines: 44pt touch targets,
   8pt rhythm, 16px+ body, mobile-first breakpoints
   at 375 / 768 / 1024 / 1440. Layered AFTER all
   prior rules so it wins specificity ties.
*/

/* -- Tablet range (701-1023): heroes/grids that were squeezing -- */
@media (min-width: 701px) and (max-width: 1023px) {
  /* Sibling-services cards: 3 → 2 cols, more breathing room */
  .related { grid-template-columns: repeat(2, 1fr); }
  /* FAQ tag fits inline at this width but trim the padding */
  .faq-item { gap: 18px; }
  /* Stats cards: 4 → 2 cols at tablet (avoids cramped numbers) */
  .stats { grid-template-columns: repeat(2, 1fr); }
  /* Form: 2-col still works at tablet, but pad inputs more */
  .form-field { gap: 6px; }
}

/* -- Small phones (<= 600px): tighten everything -- */
@media (max-width: 600px) {
  /* Container gutters: bump from 17px → 20px, breathes better */
  .container { padding: 0 20px; }

  /* Form: stack to single column on small phones */
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .form-actions .btn { width: 100%; justify-content: center; }
  .form-note { text-align: center; order: 2; }

  /* Section padding rhythm: 80px on mobile is too much */
  .section { padding: 56px 0; }
  .cta-section { padding: 56px 0; }

  /* Hero typography scales down */
  .kk-title { font-size: clamp(40px, 11vw, 64px); line-height: 1.05; }
  .kk-sub { font-size: 16px; line-height: 1.55; }

  /* Subhero (subpages) */
  .subhero { padding: 64px 0 48px; }
  .subhero-title { font-size: clamp(34px, 9vw, 48px); line-height: 1.08; }
  .subhero-sub { font-size: 15.5px; line-height: 1.55; }
  .subhero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .subhero-ctas .btn { width: 100%; justify-content: center; }

  /* Section titles down a notch */
  .section-title { font-size: clamp(28px, 7.5vw, 40px); line-height: 1.1; }

  /* Console demo on homepage: hide the side panel, single column */
  .console-body { min-height: auto; }
  .console-side { display: none; }
  .console-chrome .console-tabs { display: none; }

  /* Footer: stack columns visually with proper rhythm */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* -- Tiny phones (<= 380px): the iPhone SE class -- */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .nav-cta--right .btn--pill { padding: 10px 14px; font-size: 13px; }
}

/* -- Touch targets: enforce 44pt on every tappable surface, mobile only -- */
@media (max-width: 900px) {
  /* Footer link tap targets — was 6px padding ≈ 26px effective height */
  .footer-col a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0;
  }
  /* Keep 8px+ between adjacent footer links */
  .footer-col { gap: 4px; display: flex; flex-direction: column; }

  /* Pill links in mobile nav (when shown) */
  .pill-link { min-height: 44px; display: inline-flex; align-items: center; }

  /* Breadcrumb link tap target */
  .breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; }

  /* Make the form CTA full-width and substantial */
  .form button[type="submit"] { min-height: 48px; padding: 14px 24px; }
}

/* -- Subhero visual: prevent SVG aspect-ratio clipping on mobile -- */
@media (max-width: 900px) {
  .subhero-visual {
    aspect-ratio: auto;
    min-height: 280px;
    max-height: 360px;
  }
  .subhero-visual svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

/* -- Marquee: slow it down on mobile so it doesn't feel hectic -- */
@media (max-width: 600px) {
  .marquee-track { animation-duration: 60s; }
}

/* -- Prevent any horizontal scroll regardless of source -- */
html, body { overflow-x: hidden; max-width: 100vw; }
img, svg, video, iframe { max-width: 100%; }

/* -- Reduced motion: extend coverage for v2 additions -- */
@media (prefers-reduced-motion: reduce) {
  .form button[type="submit"] { transition: none !important; }
}

/* ============================================
   MOBILE NAV — hamburger + drawer (≤900px only)
   ============================================
   Injected at runtime by mobile-nav.js. Drawer slides
   in from the right with a fading backdrop. Trap-free
   focus, ESC to close, scroll lock while open.
*/

/* Hamburger button — hidden by default; shown only on mobile */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  grid-column: 3;
  justify-self: end;
}
.mobile-nav-toggle:hover {
  border-color: var(--accent);
  background: rgba(158, 224, 106, 0.06);
  color: var(--accent);
}
.mobile-nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Animated 3-bar icon → X */
.mobile-nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.mobile-nav-toggle-bars span {
  display: block;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
  transform-origin: center;
}
.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-bars span:nth-child(1) {
  transform: translateY(5.6px) rotate(45deg);
}
.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-bars span:nth-child(3) {
  transform: translateY(-5.6px) rotate(-45deg);
}

/* Show hamburger only at ≤900px (matches when pill nav hides) */
@media (max-width: 900px) {
  .mobile-nav-toggle { display: inline-flex; }
}
/* Belt-and-braces: never show on desktop even if state lingers */
@media (min-width: 901px) {
  .mobile-nav-toggle,
  .mobile-nav-overlay,
  .mobile-nav-drawer { display: none !important; }
}

/* Backdrop overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-nav-overlay.is-open { opacity: 1; }

/* Slide-in drawer panel (right side) */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: var(--core-blue);
  border-left: 1px solid var(--line);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0.34, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-nav-drawer.is-open { transform: translateX(0); }

.mobile-nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--core-blue);
  z-index: 1;
}
.mobile-nav-drawer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.mobile-nav-drawer-brand img { display: block; }

.mobile-nav-close {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.mobile-nav-close:hover {
  border-color: var(--accent);
  background: rgba(158, 224, 106, 0.06);
  color: var(--accent);
}
.mobile-nav-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mobile-nav-drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 18px 16px;
  flex: 1;
}
.mobile-nav-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin: 18px 0 4px;
}
.mobile-nav-section-label:first-child { margin-top: 8px; }

.mobile-nav-link {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.005em;
  padding: 12px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color 0.15s, padding-left 0.2s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: var(--accent);
  padding-left: 4px;
  outline: none;
}
.mobile-nav-link[aria-current="page"] { color: var(--accent); }
.mobile-nav-link:last-child { border-bottom: none; }

.mobile-nav-drawer-cta {
  padding: 14px 18px env(safe-area-inset-bottom, 16px);
  border-top: 1px solid var(--line);
  background: var(--core-blue);
  position: sticky;
  bottom: 0;
}
.mobile-nav-drawer-cta .btn {
  width: 100%;
  justify-content: center;
}

/* Reduced-motion: snap, don't slide */
@media (prefers-reduced-motion: reduce) {
  .mobile-nav-drawer,
  .mobile-nav-overlay,
  .mobile-nav-toggle-bars span { transition: none !important; }
}

/* ============================================
   MOBILE POLISH v3 — homepage & residual tuning
   ============================================
   Targets components not yet fine-tuned: hero
   shapes, marquee gap, process steps, benefits,
   solutions-row touch density, footer rhythm.
*/

/* -- Phone (<=600px) — hero, shapes, marquee, solutions, benefits, process -- */
@media (max-width: 600px) {
  /* Hero shapes — quieten the visual noise on small screens */
  .shapes .shape { opacity: 0.55; filter: blur(40px); }
  .hero .shapes .shape:nth-child(n+4) { display: none; }

  /* Hero kokonut spacing */
  .hero--kokonut { padding: 64px 0 48px; min-height: auto; }
  .hero-kokonut-wrap { padding: 0; }
  .kk-ctas { flex-direction: column; gap: 10px; width: 100%; }
  .kk-ctas .kk-btn { width: 100%; justify-content: center; }
  .kk-meta { flex-wrap: wrap; gap: 12px; justify-content: center; text-align: center; }
  .kk-meta span { font-size: 12px; }
  .kk-badge { font-size: 11.5px; padding: 6px 12px; }

  /* Marquee — tighter rhythm, no horizontal blow-out */
  .marquee { padding: 18px 0; }
  .marquee-item { font-size: 11px; letter-spacing: 0.15em; gap: 14px; }

  /* Solutions list — better mobile cards */
  .solution-row {
    grid-template-columns: 36px 36px 1fr 24px;
    gap: 12px;
    padding: 18px 0;
  }
  .solution-row .solution-desc,
  .solution-row .solution-code { display: none; }
  .solution-num { font-size: 11px; }
  .solution-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
  }
  .solution-icon svg { width: 18px; height: 18px; }
  .solution-title { font-size: 17px; line-height: 1.25; letter-spacing: -0.01em; }

  /* Process steps — tighten */
  .process { gap: 16px; }
  .process-step { padding: 24px 20px; }
  .process-step-n { font-size: 32px; }
  .process-step-title { font-size: 18px; }

  /* Benefits strip — full vertical stack with proper spacing */
  .benefits { grid-template-columns: 1fr; border-top: 1px solid var(--line); border-bottom: none; }
  .benefit {
    padding: 22px 20px;
    border-bottom: 1px solid var(--line);
    border-right: none !important;
    border-top: none !important;
  }
  .benefit:last-child { border-bottom: 1px solid var(--line); }

  /* Footer rhythm */
  .footer { padding: 48px 0 28px; }
  .footer-grid { margin-bottom: 32px; gap: 28px; }
  .footer-col h4 { margin-bottom: 14px; }

  /* Section spacing for any .section without page-specific override */
  .section { padding: 48px 0; }
}

/* -- Tiny phones (<=380px) — strip more decoration -- */
@media (max-width: 380px) {
  .shapes .shape:nth-child(n+3) { display: none; }
  .marquee-item { font-size: 10.5px; gap: 10px; }
  .solution-row { grid-template-columns: 30px 32px 1fr 20px; gap: 10px; }
  .kk-badge { padding: 5px 10px; font-size: 11px; }
  .kk-meta { gap: 8px; }
}

/* -- Console demo on homepage — hide decoration on phones -- */
@media (max-width: 600px) {
  .console { border-radius: 12px; }
  .console-wrap { margin-top: 32px; }
  .console-chrome { padding: 10px 14px; }
  .console-title { font-size: 11px; }
  .console-body { padding: 0; }
  .console-main { padding: 18px; }
  .console-chart { height: 120px; }
  .kpi { padding: 12px; }
  .kpi-n { font-size: 22px; }
  .kpi-l { font-size: 10px; }
}

/* -- Engagement commitments — small-phone tightening -- */
@media (max-width: 600px) {
  .commit {
    grid-template-columns: 28px 1fr;
    gap: 12px;
    padding: 18px;
  }
  .commit-mark { width: 26px; height: 26px; border-radius: 7px; }
  .commit-title { font-size: 16px; }
  .commit-desc { font-size: 13.5px; }
}

/* -- Principles — small-phone tightening -- */
@media (max-width: 600px) {
  .principle { padding: 24px 22px 22px; }
  .principle-title { font-size: 19px; }
  .principle-body { font-size: 13.5px; }
}

/* -- Cross-cutting safety: prevent any layout overflow on long words -- */
.section-title, .subhero-title, .kk-title,
.principle-title, .commit-title, .pso-title,
.related-title, .usecase-title, .faq-q {
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-hyphens: auto;
}
