:root {
  --ink: #05080F;
  --ink-2: #0B111D;
  --ink-3: #111A2B;
  --line: #1C2638;
  --line-2: #2A3650;
  --text: #EEF2F8;
  --soft: #C3CCDB;
  --muted: #8B96AB;
  --lime: #C6F432;
  --lime-dim: rgba(198, 244, 50, 0.12);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.03em; line-height: 1.02; }
p { margin: 0; }
::selection { background: var(--lime); color: var(--ink); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.idx { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* grid backdrop */
.gridbg { position: relative; isolation: isolate; }
.gridbg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 14px 22px; border-radius: 12px; font-family: var(--display); font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { box-shadow: 0 0 0 4px var(--lime-dim), 0 10px 40px rgba(198, 244, 50, 0.25); }
.btn-line { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-line:hover { border-color: var(--lime); }
.btn svg { width: 18px; height: 18px; }

/* header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(5, 8, 15, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.06em; }
.logo img { width: 28px; height: 28px; }
.menu { display: flex; gap: 6px; }
.menu a { text-decoration: none; color: var(--soft); font-size: 15px; padding: 10px 14px; border-radius: 10px; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--text); background: var(--ink-3); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }

/* hero */
.hero { padding: 120px 0 88px; position: relative; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.9; }
.hero h1 { font-size: clamp(46px, 8vw, 116px); letter-spacing: -0.045em; line-height: 0.96; max-width: 1080px; margin: 26px 0 30px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.lead { font-size: clamp(18px, 1.7vw, 22px); color: var(--soft); max-width: 700px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.page-hero { padding: 104px 0 64px; }
.page-hero h1 { font-size: clamp(42px, 6.5vw, 88px); letter-spacing: -0.04em; margin: 22px 0 24px; max-width: 1000px; }

/* ticker */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--ink-2); }
.ticker-track { display: flex; gap: 48px; padding: 20px 0; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { font-family: var(--mono); font-size: 14px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.ticker span::after { content: "◆"; color: var(--lime); font-size: 9px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* sections */
.section { padding: 120px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(36px, 4.6vw, 64px); max-width: 760px; margin-top: 18px; }
.section-head p { color: var(--muted); max-width: 420px; font-size: 17px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* cards */
.card { position: relative; background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; transition: border-color .25s ease, transform .25s ease; text-decoration: none; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, var(--lime-dim), transparent 70%); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.card:hover::after { opacity: 1; }
.card h3 { font-size: 28px; }
.card p { color: var(--muted); font-size: 16px; }
.card .top { display: flex; justify-content: space-between; align-items: center; }
.glyph { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--ink); display: flex; align-items: center; justify-content: center; }
.glyph svg { width: 24px; height: 24px; stroke: var(--lime); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.list { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--soft); }
.list li { display: flex; gap: 12px; align-items: baseline; }
.list li::before { content: "→"; font-family: var(--mono); color: var(--lime); font-size: 13px; }
.more { margin-top: auto; padding-top: 8px; font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--lime); display: inline-flex; gap: 8px; align-items: center; }
.card-feature { grid-column: span 2; }

/* process */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { padding: 32px 26px 36px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; background: var(--ink-2); position: relative; }
.step:last-child { border-right: 0; }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--lime); }
.step h3 { font-size: 24px; }
.step p { color: var(--muted); font-size: 15px; }
.step .bar { position: absolute; left: 0; top: 0; height: 2px; background: var(--lime); }

/* products */
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--ink-2); }
.product .info { padding: 56px; display: flex; flex-direction: column; gap: 22px; }
.product .info h3 { font-size: clamp(34px, 3.6vw, 48px); }
.product .info p { color: var(--soft); font-size: 18px; }
.product .visual { background: #F3F8F8; display: flex; align-items: center; justify-content: center; padding: 48px 24px; position: relative; }
.badge { align-self: flex-start; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--soft); display: inline-flex; align-items: center; gap: 8px; }
.badge.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.badge.lab::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--muted); }
.product-name { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.product-name img { width: 48px; height: 48px; }
.slot { border: 1px dashed var(--line-2); background: transparent; }
.slot:hover { border-color: var(--lime); }

.phone { width: 300px; border-radius: 44px; background: #fff; color: #0F2A33; box-shadow: 0 30px 80px rgba(15,42,51,.22); padding: 46px 18px 24px; display: flex; flex-direction: column; gap: 12px; font-family: var(--body); }
.phone .d { font-size: 12px; color: #4E6972; }
.phone .h { font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.phone .n { background: #E1EEFA; border-radius: 16px; padding: 12px; font-size: 13px; font-weight: 600; }
.phone .m { border-radius: 16px; padding: 12px 14px; box-shadow: 0 4px 16px rgba(15,40,60,.08); font-size: 14px; }
.phone .m b { display: block; } .phone .m span { font-size: 12px; color: #4E6972; }
.phone .bars { display: flex; gap: 4px; margin-top: 8px; } .phone .bars i { width: 16px; height: 5px; border-radius: 3px; background: #0E9384; } .phone .bars i.o { background: #E0EBEC; }

/* principles / stats-free highlight */
.principle { border-top: 1px solid var(--line); padding-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.principle h3 { font-size: 22px; letter-spacing: -0.015em; }
.principle p { color: var(--muted); font-size: 15px; }

.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--mono); font-size: 13px; color: var(--soft); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; background: var(--ink-2); }

/* CTA */
.cta { position: relative; border-radius: 32px; overflow: hidden; padding: clamp(40px, 7vw, 96px); background: var(--lime); color: var(--ink); display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(5,8,15,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(5,8,15,.07) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.cta h2 { font-size: clamp(38px, 5.6vw, 80px); letter-spacing: -0.04em; max-width: 820px; position: relative; }
.cta p { position: relative; font-size: 18px; max-width: 520px; margin-top: 18px; color: #1B2410; }
.cta .btn { position: relative; background: var(--ink); color: var(--lime); }
.cta .btn:hover { box-shadow: 0 10px 40px rgba(5,8,15,.35); }

/* contact form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; color: var(--text); background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; min-height: 50px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-dim); }

/* footer */
.footer { border-top: 1px solid var(--line); margin-top: 120px; padding: 72px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer h4 { margin: 0 0 16px; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer a { text-decoration: none; color: var(--soft); font-size: 15px; }
.footer a:hover { color: var(--lime); }
.footer-bottom { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer .tagline { color: var(--muted); margin-top: 18px; max-width: 320px; font-size: 15px; }
.bigword { font-family: var(--display); font-weight: 700; font-size: clamp(80px, 22vw, 320px); letter-spacing: -0.05em; line-height: 0.8; color: transparent; -webkit-text-stroke: 1px var(--line-2); margin-top: 64px; user-select: none; text-align: center; }

/* prose */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 18px; color: var(--soft); font-size: 17px; line-height: 1.75; }
.prose h2 { font-size: 30px; color: var(--text); margin-top: 24px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .product { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .menu { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; padding: 12px 16px 20px; background: var(--ink); border-bottom: 1px solid var(--line); }
  .menu.open { display: flex; }
  .menu a { padding: 14px; }
  .nav-toggle { display: inline-flex; }
  .nav .btn { display: none; }
  .grid-3, .grid-2, .grid-4, .form { grid-template-columns: 1fr; }
  .card-feature { grid-column: auto; }
  .section { padding: 84px 0; }
  .hero { padding: 80px 0 64px; }
  .product .info { padding: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* icon sizing + overflow guard */
.more svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-toggle svg, .btn svg { flex-shrink: 0; }
body { overflow-x: clip; }

/* chat assistant */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 100; font-family: var(--body); }
.chat-launch { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(11,17,29,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--text); font-family: var(--display); font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 12px 40px rgba(0,0,0,.45); transition: border-color .2s ease, transform .15s ease; }
.chat-launch:hover { border-color: var(--lime); transform: translateY(-1px); }
.chat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-dim), 0 0 14px var(--lime); }
.chat-panel { position: absolute; right: 0; bottom: 68px; width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--ink-3); }
.chat-head strong { display: block; font-family: var(--display); font-size: 16px; }
.chat-head span { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.chat-close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.chat-close svg { width: 18px; height: 18px; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { background: var(--ink-3); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.user { background: var(--lime); color: var(--ink); align-self: flex-end; border-bottom-right-radius: 6px; }
.msg.typing { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.msg.error { border-color: #5a3a3a; color: #f0c4c4; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-suggest button { font: inherit; font-size: 13px; color: var(--soft); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 12px; cursor: pointer; min-height: 36px; }
.chat-suggest button:hover { border-color: var(--lime); color: var(--text); }
.lead-card { align-self: stretch; border: 1px solid var(--lime); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--lime-dim); font-size: 14px; }
.lead-card .btn { align-self: flex-start; min-height: 44px; padding: 10px 16px; font-size: 14px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; font: inherit; font-size: 15px; color: var(--text); background: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; min-height: 46px; }
.chat-form input:focus { outline: none; border-color: var(--lime); }
.chat-form button { width: 46px; height: 46px; border-radius: 12px; border: 0; background: var(--lime); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.chat-form button svg { width: 18px; height: 18px; }
.chat-form button:disabled { opacity: .5; cursor: default; }
.chat-note { margin: 0; padding: 0 14px 12px; font-size: 11.5px; color: var(--muted); }
@media (max-width: 480px) { .chat { right: 12px; bottom: 12px; } .chat-panel { height: calc(100vh - 96px); } }
