:root {
  --bg: #07131c;
  --bg-2: #0c1c28;
  --panel: #102433;
  --teal: #2ec4d6;
  --teal-2: #1a9bb0;
  --silver: #d5dde4;
  --white: #f4f8fb;
  --muted: rgba(244, 248, 251, 0.86);
  --line: rgba(46, 196, 214, 0.22);
  --display: "Exo 2", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--white);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
p { margin: 0; }
.shell { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 8px; background: #fff; color: #000; padding: 8px; z-index: 80; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 19, 28, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-family: var(--display); letter-spacing: 0.04em; }
.brand img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: #fff; }
.brand em { font-style: normal; color: var(--teal); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--silver); }
.nav-cta { background: var(--teal); color: #062028 !important; padding: 10px 16px; border-radius: 6px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; }
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 6px 0; }

.kicker {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--teal); margin-bottom: 12px;
}
.on-dark { color: var(--muted); }

/* Hero */
.hero { position: relative; min-height: 92vh; display: grid; align-items: center; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(46,196,214,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,196,214,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 70% 40%, #000 20%, transparent 72%);
}
.hero-scan {
  position: absolute; left: 0; right: 0; height: 18%;
  background: linear-gradient(180deg, transparent, rgba(46,196,214,.12), transparent);
  animation: scan 7s linear infinite;
  pointer-events: none;
}
@keyframes scan { from { top: -20%; } to { top: 110%; } }

.hero-split { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 90px 0 70px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); margin-bottom: 18px; }
.hero h1 span { color: var(--teal); display: block; }
.lede { color: var(--muted); max-width: 54ch; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 12px 18px; border-radius: 6px; transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-teal { background: var(--teal); color: #062028; }
.btn-ghost { border: 1px solid var(--teal); color: var(--white); }

.core {
  position: relative; width: min(420px, 100%); aspect-ratio: 1; margin-inline: auto;
  display: grid; place-items: center;
}
.core img { width: 58%; border-radius: 50%; position: relative; z-index: 2; box-shadow: 0 0 40px rgba(46,196,214,.35); }
.ring {
  position: absolute; border: 1px solid var(--teal); border-radius: 50%;
  inset: 8%; opacity: .45;
}
.r1 { animation: spin 14s linear infinite; border-top-color: transparent; }
.r2 { inset: 0; animation: spin 22s linear infinite reverse; opacity: .28; border-left-color: transparent; }
.r3 { inset: 16%; animation: spin 9s linear infinite; border-bottom-color: transparent; box-shadow: 0 0 24px rgba(46,196,214,.25); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Bento */
.systems { padding: 88px 0; background: var(--bg-2); }
.section-head { margin-bottom: 28px; max-width: 640px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 10px; }
.bento { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.tile-lg { grid-row: span 2; }
.tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  min-height: 180px;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.tile-tag { display: block; color: var(--teal); font-weight: 700; letter-spacing: 0.16em; font-size: 12px; margin-bottom: 16px; }
.tile h3 { font-size: 28px; margin-bottom: 10px; }
.tile p { color: var(--muted); }

/* Work zig */
.work { padding: 88px 0; }
.zig { display: grid; gap: 14px; }
.zig-row {
  display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.zig-row:nth-child(2) { margin-left: min(12vw, 120px); }
.zig-row:nth-child(3) { margin-left: min(6vw, 60px); }
.zig-no {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--teal); color: var(--teal); font-family: var(--display); font-weight: 700;
}
.zig-row h3 { font-size: 24px; margin-bottom: 6px; }
.zig-row p { color: var(--muted); }

/* Mission */
.mission { padding: 80px 0; background: linear-gradient(180deg, #0a2230, #07131c); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mission-inner { max-width: 760px; }
.mission blockquote {
  font-family: var(--display); font-size: clamp(26px, 3.4vw, 40px);
  color: var(--white); margin: 8px 0 18px; line-height: 1.2;
}

.faq-block { padding: 80px 0; background: var(--bg-2); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  color: var(--white); font: 650 16px var(--body); padding: 18px 0;
}
.faq-a { display: none; padding: 0 0 16px; color: var(--muted); }
.faq-item.open .faq-a { display: block; }

.contact { padding: 96px 0; text-align: center; }
.contact h2 { font-size: clamp(30px, 4.4vw, 48px); margin: 8px 0 14px; }
.contact p { max-width: 52ch; margin: 0 auto 24px; }

.site-footer { border-top: 1px solid var(--line); padding: 20px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.footer-inner .brand img { width: 32px; height: 32px; }

.js .reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease, box-shadow .28s ease, border-color .28s ease; }

@media (hover: hover) and (pointer: fine) {
  .tile:hover, .zig-row:hover {
    transform: translateY(-8px);
    border-color: var(--teal);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(46, 196, 214, 0.28); }
  .nav a:hover { color: var(--teal); }
  .faq-item:hover .faq-q { color: var(--teal); }
}

@media (max-width: 860px) {
  .nav {
    display: none; position: absolute; inset: 74px 0 auto; background: #0c1c28;
    flex-direction: column; padding: 16px 20px 22px; gap: 14px; border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-split, .bento, .faq-grid, .footer-inner { grid-template-columns: 1fr; }
  .tile-lg { grid-row: auto; }
  .zig-row, .zig-row:nth-child(2), .zig-row:nth-child(3) { margin-left: 0; }
  .hero { min-height: 0; }
}
