/* ============ MANTIS — riptide skin ============ */
:root {
  --bg: #050a12;
  --bg-raised: #0a1220;
  --bg-card: #0d1626;
  --ink: #e8f1fa;
  --ink-dim: #93a6bd;
  --ink-faint: #5b6b82;
  --cyan: #35c7ec;
  --cyan-bright: #6ee3ff;
  --cyan-deep: #0e7fa8;
  --line: rgba(120, 170, 220, 0.12);
  --radius: 2px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
::selection { background: rgba(53, 199, 236, 0.35); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; }

/* ============ REVEAL SYSTEM ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.line-mask { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.reveal-line {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal-line.in { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-line { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ BUTTONS (flat, sharp) ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 1px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary, .btn-outline { background: var(--cyan); color: #04101a; border: 1px solid var(--cyan); }
.btn-primary:hover, .btn-outline:hover { background: var(--cyan-bright); border-color: var(--cyan-bright); }

/* neural background sits at z 0; everything real rides above it */
main, footer, .nav { position: relative; z-index: 2; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, transform 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 10, 18, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav.hidden { transform: translateY(-100%); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wm { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.wm .mark { height: 30px; width: auto; }
.wm .mark path { fill: var(--ink); }
.wm-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.its { display: flex; gap: 30px; }
.it { color: var(--ink-dim); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.25s; }
.it:hover { color: var(--ink); }
.btct {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-size: 13px; color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}
.btct .l { font-size: 11px; letter-spacing: 0.14em; color: var(--ink-faint); }
.btct .px { color: var(--cyan-bright); font-weight: 600; }
/* hamburger — hidden on desktop, brrr on mobile */
.hb {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.25s;
}
.hb span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  transition: transform 0.32s var(--ease-out), opacity 0.2s;
}
.hb:hover { border-color: var(--ink-dim); }
.nav.open .hb span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .hb span:nth-child(2) { opacity: 0; }
.nav.open .hb span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .btct { display: none; }
  .hb { display: flex; }
  .its {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: rgba(4, 8, 15, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
  }
  .nav.open .its { opacity: 1; pointer-events: auto; }
  .its .it {
    font-family: var(--font-display);
    font-size: clamp(28px, 9vw, 40px);
    font-weight: 700;
    color: var(--ink);
    padding: 8px 0;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  }
  .nav.open .its .it { opacity: 1; transform: translateY(0); }
  .nav.open .its .it:nth-child(1) { transition-delay: 60ms; }
  .nav.open .its .it:nth-child(2) { transition-delay: 120ms; }
  .nav.open .its .it:nth-child(3) { transition-delay: 180ms; }
  .nav.open .its .it:nth-child(4) { transition-delay: 240ms; }
  .nav.open .its .it:nth-child(5) { transition-delay: 300ms; }
  .its .it:hover, .its .it.on { color: var(--cyan-bright); }
  body.menu-lock { overflow: hidden; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding-top: 16vh;
  background: #020611;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.035);
  animation: heroDrift 14s ease-in-out infinite alternate;
  opacity: 0.88;
  filter: saturate(1.18) brightness(0.68) contrast(1.04);
}
@keyframes heroDrift {
  from { transform: scale(1.035) translate3d(-0.35%, 0, 0); }
  to { transform: scale(1.075) translate3d(0.35%, -0.7%, 0); }
}
.hero-wave { position: absolute; inset: 0; opacity: 0.28; transform: translateY(10%);
  mask-image: linear-gradient(to bottom, transparent 5%, #000 38%, #000 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 5%, #000 38%, #000 100%); }
.hero-wave canvas { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .hero-backdrop { animation: none; transform: none; } .hero-wave { display: none; } }
.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 42% at 50% 28%, transparent 0%, rgba(2, 6, 17, 0.2) 100%),
    linear-gradient(to bottom, rgba(2,6,17,0.3) 0%, transparent 28%, transparent 67%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 24px; max-width: 900px; }
.over {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(56px, 9vw, 116px);
  font-weight: 700;
  color: #f4f7fb;
  text-shadow: 0 18px 40px rgba(0, 20, 40, 0.55);
}
.hero h1 .acc {
  background: linear-gradient(100deg, var(--cyan-bright), var(--cyan-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.kick {
  color: #dce6f0; max-width: 560px; margin: 26px auto 0;
  font-size: 17px; text-shadow: 0 4px 24px rgba(0, 8, 18, 0.8);
}
.facts {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0; margin-top: 56px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 18, 0.5);
  backdrop-filter: blur(6px);
}
.fact { padding: 18px 34px; border-right: 1px solid var(--line); text-align: left; }
.fact:last-child { border-right: 0; }
.fact .n { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--cyan-bright); }
.fact .l { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }

/* ============ SECTIONS ============ */
.say, .blk { padding: 120px 32px 40px; max-width: 1100px; margin: 0 auto; }
.rail, .section-kicker {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
  display: flex; align-items: baseline; gap: 12px;
}
.rail .no { color: var(--ink-faint); font-family: var(--font-display); }
.line { font-family: var(--font-display); font-size: clamp(30px, 4.6vw, 48px); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
.line em { font-style: normal; display: block; font-size: 0.52em; font-weight: 500; color: var(--ink-dim); margin-top: 14px; letter-spacing: 0; }
.blk h2 { font-size: clamp(30px, 4.6vw, 48px); }

/* idea list */
.amp { margin-top: 44px; }
.amp-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.amp-list li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  font-weight: 500;
  font-size: 15px;
  transition: border-color 0.35s;
}
.amp-list li:hover { border-color: rgba(120, 170, 220, 0.3); }
.amp-n {
  display: block;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--cyan);
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

/* product cards */
.duo.comps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
@media (max-width: 760px) { .duo.comps { grid-template-columns: 1fr; } }
.comp {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px 28px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.35s;
}
.comp:hover { border-color: rgba(120, 170, 220, 0.3); }
.comp-k {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan);
  padding-bottom: 16px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.comp-k .no { color: var(--ink-faint); font-family: var(--font-display); }
.comp h3 { font-size: 22px; margin-bottom: 12px; }
.comp .tx { color: var(--ink-dim); font-size: 15px; }
.comp-go {
  display: inline-block; margin-top: 22px;
  color: var(--cyan-bright);
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid rgba(110, 227, 255, 0.35);
}
.comp:hover .comp-go { border-color: var(--cyan-bright); }

/* split sections */
.split-laptop { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 40px; max-width: 720px; }
.micro-sub { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 12px; }
.acc { color: var(--cyan); }
.tx { color: var(--ink-dim); font-size: 16px; }
.tx + .tx { margin-top: 18px; }
.split-copy .btn { margin-top: 26px; }

/* wave print */
.wave-print { max-width: 860px; }
.wave-print img {
  display: block;
  width: 100%; height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  filter: saturate(0.92) brightness(0.9) contrast(1.03);
}
.wave-print figcaption {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* settlement svg */
.art.layers { margin: 44px 0 32px; max-width: 720px; }
.art.layers svg { width: 100%; height: auto; display: block; }
.art .soft { fill: rgba(53, 199, 236, 0.04); stroke: none; }
.art .box { fill: none; stroke: rgba(120, 170, 220, 0.35); stroke-width: 1.5; }
.art .box.hot { stroke: var(--cyan); }
.art .wire { fill: none; stroke: rgba(120, 170, 220, 0.45); stroke-width: 1.5; }
.art .lbl { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: 0.14em; fill: var(--ink); }
.art .sub { font-family: var(--font-body); font-size: 14px; fill: var(--ink-dim); }
.art .hotf { fill: var(--cyan); }
.art .hot-text { fill: var(--cyan-bright); }

/* customers */
.custs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 44px; }
.cust {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.35s;
}
.cust:hover { border-color: rgba(120, 170, 220, 0.3); }
.cust .comp-mark { width: 40px; height: 40px; margin-bottom: 18px; display: block; }
.cust .box { fill: none; stroke: rgba(120, 170, 220, 0.5); stroke-width: 2; }
.cust .box.hot { stroke: var(--cyan-bright); }
.cust .wire { fill: none; stroke: rgba(120, 170, 220, 0.4); stroke-width: 2; }
.cust h3 { font-size: 18px; margin-bottom: 8px; }
.cust p { color: var(--ink-dim); font-size: 14px; }

/* contact */
.contact-say { position: relative; overflow: hidden; padding-bottom: 140px; }
#cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.4; pointer-events: none; }
.contact-say .inner { position: relative; z-index: 2; }
.after { margin-top: 22px; color: var(--ink-dim); font-size: 17px; }
.mail {
  color: var(--cyan-bright);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(110, 227, 255, 0.35);
  transition: color 0.25s, border-color 0.25s;
}
.mail:hover { color: #fff; border-color: #fff; }

/* footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 48px 32px;
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.fbrand { display: flex; align-items: center; gap: 20px; }
.foot .mark { height: 34px; width: auto; }
.foot .mark path { fill: var(--ink); }
.ftag { color: var(--ink-faint); font-size: 13px; }
