/* ---- Self-hosted fonts (Space Grotesk + IBM Plex Mono, latin subset) ---- */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/IBMPlexMono-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/IBMPlexMono-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/SpaceGrotesk-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/SpaceGrotesk-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/SpaceGrotesk-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/SpaceGrotesk-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Theme ---- */
:root {
  --acc: oklch(0.82 0.14 200);
  --bg: #090c11;
  --ink: #e8edf2;
  --dim: rgba(232, 237, 242, .58);
  --faint: rgba(232, 237, 242, .4);
  --line: rgba(140, 220, 240, .12);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--acc); text-decoration: none; }
a:hover { color: #a8e8f5; }

.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.acc { color: var(--acc); }
.dim { color: var(--dim); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 12, 17, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.navin { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.lgrow { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.lgname { font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.lgsub { font-size: 8.5px; letter-spacing: .34em; text-transform: uppercase; opacity: .55; margin-top: 1px; }
.navlinks { display: flex; gap: 26px; align-items: center; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; }
.navlink { color: var(--dim); }
.navlink:hover { color: var(--ink); }
.navcta {
  color: #07131a; background: var(--acc);
  padding: 9px 16px; border-radius: 3px; font-weight: 600;
}
.navcta:hover { color: #07131a; background: #a8e8f5; }
.navtoggle { display: none; }

/* ---- Hero ---- */
.hero {
  position: relative; padding: 130px 0 110px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(60, 160, 190, .17), transparent 65%) rgba(9, 12, 17, .94);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.tag { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.h1 { font-size: 76px; line-height: 1.02; font-weight: 600; letter-spacing: -.025em; margin: 20px 0 24px; }
.lead { font-size: 17px; line-height: 1.65; color: var(--dim); max-width: 560px; margin: 0 0 36px; }
.ctarow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--acc); color: #07131a; font-weight: 600; font-size: 14.5px;
  padding: 16px 28px; border-radius: 3px; cursor: pointer; border: none;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.cta:hover { background: #a8e8f5; color: #07131a; }
.cta2 { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; font-size: 14.5px; padding: 16px 20px; }
.cta2:hover { color: var(--acc); }

.stats {
  display: flex; gap: 0; margin-top: 76px;
  border: 1px solid var(--line); width: fit-content; max-width: 100%; flex-wrap: wrap;
}
.stat { padding: 18px 32px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.statv { font-size: 22px; font-weight: 600; }
.statl { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 3px; }

/* ---- Section base ---- */
.sec { padding: 100px 0; border-bottom: 1px solid var(--line); }
.sechd { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 52px; flex-wrap: wrap; }
.h2 { font-size: 40px; font-weight: 600; letter-spacing: -.02em; margin: 14px 0 0; }
.secno { font-size: 11px; color: var(--faint); font-family: 'IBM Plex Mono', ui-monospace, monospace; }

/* ---- Services ---- */
.svcgrid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.svc {
  padding: 30px 28px 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .25s;
}
.svc:hover { background: rgba(140, 220, 240, .04); }
.svch { font-size: 16.5px; font-weight: 600; margin: 44px 0 8px; }
.svcp { font-size: 13px; line-height: 1.6; color: var(--dim); margin: 0; }

/* ---- Hardware ---- */
.hwgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.hwcard { border: 1px solid var(--line); background: rgba(140, 220, 240, .025); }
.hwimg {
  height: 280px; border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(60, 160, 190, .08), rgba(9, 12, 17, .0) 60%), rgba(9, 12, 17, .5);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hwimg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .55;
  pointer-events: none;
}
.hwimg svg { position: relative; z-index: 1; opacity: .82; }
.hwbody { padding: 26px 28px 30px; }
.hwtag {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--acc);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}
.hwh { font-size: 21px; font-weight: 600; margin: 8px 0 8px; }
.hwp { font-size: 13.5px; line-height: 1.6; color: var(--dim); margin: 0; }
.soon {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border: 1px dashed rgba(140, 220, 240, .25);
  padding: 22px 28px; margin-top: 28px;
}
.soonb {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: #07131a; background: var(--acc);
  padding: 4px 9px; border-radius: 2px; font-weight: 600;
  font-family: 'IBM Plex Mono', ui-monospace, monospace; white-space: nowrap;
}

/* ---- Approach ---- */
.steps { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 28px; }
.stepno { font-size: 12px; color: var(--acc); font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.steph { font-size: 16px; font-weight: 600; margin: 14px 0 8px; }
.stepp { font-size: 13px; line-height: 1.6; color: var(--dim); margin: 0; }
.stepline { height: 1px; background: linear-gradient(90deg, var(--acc), transparent); margin-top: 22px; }

/* ---- About ---- */
.abtgrid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.abtp { font-size: 15.5px; line-height: 1.75; color: var(--dim); margin: 0 0 20px; }
.vals { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); }
.val {
  display: flex; gap: 18px; align-items: baseline;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.val:last-child { border-bottom: 0; }
.valh { font-size: 14px; font-weight: 600; white-space: nowrap; }
.valp { font-size: 12.5px; line-height: 1.55; color: var(--dim); margin: 0; }

/* ---- Foot ---- */
.foot { padding: 110px 0 0; }
.footh { font-size: 54px; font-weight: 600; letter-spacing: -.025em; margin: 16px 0 22px; line-height: 1.05; }
.footgrid {
  display: flex; justify-content: space-between; gap: 40px;
  align-items: flex-end; padding-bottom: 90px; border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.contact {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13.5px; font-family: 'IBM Plex Mono', ui-monospace, monospace; color: var(--dim);
}
.contact a { color: var(--dim); }
.contact a:hover { color: var(--acc); }
.legal { display: flex; justify-content: space-between; padding: 26px 0; font-size: 11px; color: var(--faint); letter-spacing: .06em; flex-wrap: wrap; gap: 12px; }

/* ---- Reveal ---- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.rv.on { opacity: 1; transform: none; }

/* ---- Fixed background ---- */
.fixedbg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    url('assets/circuit.png'),
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(60, 160, 190, .1), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 1600px 1600px, auto, 56px 56px, 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 80%);
}
.spine {
  position: fixed; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(140, 220, 240, .22) 15%, rgba(140, 220, 240, .22) 85%, transparent);
  z-index: 0; pointer-events: none;
}
.spinedot {
  position: fixed; left: 50%; top: 0;
  width: 9px; height: 9px; margin-left: -4px;
  border-radius: 50%; background: var(--acc);
  box-shadow: 0 0 12px 2px rgba(103, 212, 232, .5);
  z-index: 0; pointer-events: none;
}

.nav, .hero, .sec, .foot { position: relative; z-index: 1; }
.hero, .sec, .foot { overflow: hidden; background: rgba(9, 12, 17, .94); }

/* Interstitial marks between sections */
.itl {
  position: relative; z-index: 1; height: 36vh;
  display: flex; align-items: center; justify-content: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.itlmark {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(140, 220, 240, .4);
  background: rgba(9, 12, 17, .8);
  padding: 6px 14px; border: 1px solid var(--line);
}

.hero .wrap, .sec .wrap, .foot .wrap { position: relative; z-index: 2; }

/* Parallax layers */
.px { position: absolute; pointer-events: none; will-change: transform; z-index: 0; }
.pxring { border: 1px solid rgba(140, 220, 240, .14); border-radius: 50%; }
.pxnum {
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 500;
  font-size: 340px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(140, 220, 240, .09);
}
.pxglow { border-radius: 50%; background: radial-gradient(circle, rgba(60, 160, 190, .14), transparent 65%); }
.pxmark { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; color: rgba(140, 220, 240, .3); letter-spacing: .1em; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .wrap { padding: 0 22px; }
  .h1 { font-size: 48px; }
  .h2 { font-size: 30px; }
  .footh { font-size: 36px; }
  .hero { padding: 90px 0 70px; }
  .sec { padding: 70px 0; }
  .svcgrid { grid-template-columns: 1fr 1fr; }
  .hwgrid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .abtgrid { grid-template-columns: 1fr; gap: 40px; }
  .stats { margin-top: 48px; }
  .stat { padding: 14px 22px; }
  .pxnum { font-size: 200px; }
  .footgrid { align-items: flex-start; }
  .spine, .spinedot { display: none; }
}

@media (max-width: 640px) {
  .h1 { font-size: 38px; }
  .navlinks { display: none; }
  .navtoggle {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: var(--ink); border: 1px solid var(--line);
    padding: 8px 10px; border-radius: 3px; cursor: pointer;
  }
  .navmenu.open {
    display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(9, 12, 17, .96); backdrop-filter: blur(12px);
    padding: 20px 22px; border-bottom: 1px solid var(--line);
  }
  .navmenu.open .navlink { color: var(--dim); font-size: 12px; }
  .navmenu.open .navcta { align-self: flex-start; }
  .svcgrid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { width: 100%; }
  .stat { flex: 1 1 45%; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .px { transform: none !important; }
  html { scroll-behavior: auto; }
}

html { scroll-behavior: smooth; }
