:root {
  --bg: #07101d;
  --bg-soft: #0a1528;
  --panel: rgba(12, 24, 42, 0.72);
  --panel-strong: rgba(10, 20, 36, 0.9);
  --panel-border: rgba(126, 167, 255, 0.16);
  --panel-border-strong: rgba(126, 167, 255, 0.24);
  --text: #eef5ff;
  --muted: #9cb3d7;
  --muted-2: #c8d8f4;
  --accent: #5a92ff;
  --accent-2: #83b3ff;
  --accent-3: #8cf0cf;
  --ok: #43d28a;
  --shadow-xl: 0 28px 90px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1240px;
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: "IBM Plex Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(90, 146, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(140, 240, 207, 0.08), transparent 20%),
    radial-gradient(circle at 50% 120%, rgba(90, 146, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #04101d 0%, #061120 32%, #07131f 100%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.ambient {
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -3;
  filter: blur(90px);
  opacity: 0.7;
}
.ambient-a {
  top: -80px;
  left: -60px;
  width: 340px;
  height: 340px;
  background: rgba(90, 146, 255, 0.2);
}
.ambient-b {
  top: 20vh;
  right: -90px;
  width: 380px;
  height: 380px;
  background: rgba(131, 179, 255, 0.14);
}
.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.07;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(circle at center, black 28%, transparent 100%);
  mask-image: radial-gradient(circle at center, black 28%, transparent 100%);
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 88px 0;
}
.section-dark {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(20px);
  background: linear-gradient(180deg, rgba(4, 11, 22, 0.92), rgba(4, 11, 22, 0.72));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: white;
  background: linear-gradient(135deg, rgba(90,146,255,0.24), rgba(90,146,255,0.08));
  border: 1px solid rgba(126, 167, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 24px rgba(60, 110, 200, 0.24);
}
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.site-nav a {
  font-size: 14px;
  color: var(--muted-2);
  transition: color 0.2s ease, transform 0.2s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: white;
  transform: translateY(-1px);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: white;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover,
.btn:focus-visible { transform: translateY(-1px); }
.btn-primary {
  color: white;
  background: linear-gradient(135deg, #4f88ff, #6aa5ff 56%, #7db5ff 100%);
  box-shadow: 0 12px 28px rgba(79, 136, 255, 0.34);
}
.btn-primary:hover,
.btn-primary:focus-visible { box-shadow: 0 16px 32px rgba(79, 136, 255, 0.42); }
.btn-secondary,
.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
.btn-secondary:hover,
.btn-ghost:hover,
.btn-secondary:focus-visible,
.btn-ghost:focus-visible {
  background: rgba(255,255,255,0.05);
  border-color: rgba(126, 167, 255, 0.18);
}
.btn-large { min-height: 56px; padding-inline: 22px; border-radius: 16px; }

.hero { padding-top: 54px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 34px;
  align-items: start;
}
.hero-copy {
  padding-top: 40px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #d6e6ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  border: 1px solid rgba(126,167,255,0.22);
  background: rgba(90,146,255,0.08);
}
.hero h1,
.section-head h2,
.cta-copy h2 {
  margin: 18px 0 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.hero h1 {
  max-width: 12ch;
  font-size: clamp(38px, 5.4vw, 56px);
  text-wrap: balance;
}
.hero-lead,
.section-head p,
.cta-copy p,
.role-card p,
.bento-card p,
.timeline-item p,
.security-copy p,
.faq-item p,
.stack-layer p,
.footer-copy {
  color: var(--muted);
  line-height: 1.72;
}
.hero-lead {
  max-width: 65ch;
  margin-top: 22px;
  font-size: clamp(16px, 1.5vw, 18px);
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-badges {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-badges li,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-2);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.glass {
  background: linear-gradient(180deg, rgba(12, 24, 42, 0.74), rgba(8, 18, 34, 0.92));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(18px);
}
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-card {
  padding: 24px;
}
.hero-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}
.hero-card-head h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.micro-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(67, 210, 138, 0.1);
  color: #bdf5d6;
  border: 1px solid rgba(67,210,138,0.22);
  white-space: nowrap;
}
.system-map {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 42px 1.18fr 42px 1fr;
  gap: 10px;
  align-items: stretch;
}
.map-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.map-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.map-node {
  min-height: 108px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.028);
  border: 1px solid rgba(255,255,255,0.07);
}
.map-node strong,
.bento-card h3,
.role-card h3,
.timeline-item h3,
.security-copy h2,
.stack-layer strong,
.faq-item summary,
.metric-value,
.cta-copy h2,
.section-head h2 {
  color: white;
}
.map-node strong,
.timeline-item h3,
.role-card h3,
.bento-card h3,
.stack-layer strong {
  display: block;
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.map-node p,
.stack-layer p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}
.map-node.emphasis {
  background: linear-gradient(180deg, rgba(90,146,255,0.12), rgba(90,146,255,0.06));
  border-color: rgba(126, 167, 255, 0.22);
}
.map-flow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-flow::before {
  content: "";
  position: absolute;
  inset: 50% 10px auto 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126,167,255,0.38), transparent);
}
.map-flow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(126,167,255,0.84);
  box-shadow: 0 0 0 4px rgba(126,167,255,0.1);
  animation: pulse 2.4s infinite;
}
.mini-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.mini-cell {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
}
.hero-side-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.stat {
  min-height: 112px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}
.stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.stat-label {
  color: var(--muted);
  font-size: 14px;
}

.section-head {
  max-width: 860px;
}
.section-head h2,
.cta-copy h2 { font-size: clamp(28px, 3.6vw, 44px); text-wrap: balance; }
.section-head p,
.cta-copy p { margin: 18px 0 0; font-size: 16px; }

.bento-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.bento-card {
  min-height: 250px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  grid-column: span 4;
}
.bento-card-xl { grid-column: span 6; min-height: 320px; }
.bento-card-wide { grid-column: span 6; min-height: 250px; }
.bento-card h3 { margin: 0; font-size: clamp(20px, 2.2vw, 28px); }
.bento-card p { margin: 0; }

.timeline {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.timeline-item {
  min-height: 260px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.timeline-no {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(90,146,255,0.18), rgba(90,146,255,0.06));
  border: 1px solid rgba(126,167,255,0.26);
  font-size: 24px;
  font-weight: 800;
}

.roles-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.role-card {
  min-height: 220px;
  padding: 22px;
}
.role-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-3);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.role-card h3 { margin: 0; font-size: clamp(21px, 2.4vw, 29px); line-height: 1.16; }
.role-card p { margin: 14px 0 0; }

.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 1.04fr);
  gap: 24px;
  align-items: stretch;
}
.check-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--muted-2);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, white, #7fbcff 48%, #477df0 100%);
  box-shadow: 0 0 0 5px rgba(90,146,255,0.1);
}
.stack-card {
  height: 100%;
  padding: 22px;
}
.stack-topline {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.stack-layers {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}
.stack-layer {
  min-height: 150px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
}
.layer-public { background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02)); }
.layer-admin { background: linear-gradient(180deg, rgba(90,146,255,0.1), rgba(90,146,255,0.05)); border-color: rgba(126,167,255,0.22); }
.stack-link {
  height: 40px;
  margin: 0 auto;
  width: 2px;
  background: linear-gradient(180deg, rgba(126,167,255,0), rgba(126,167,255,0.5), rgba(126,167,255,0));
}
.stack-btn { margin-top: 18px; width: 100%; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.metric {
  min-height: 150px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}
.metric-value {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.05em;
}
.metric-label {
  color: var(--muted);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 26px;
  align-items: start;
}
.faq-list {
  display: grid;
  gap: 14px;
}
.faq-item {
  padding: 0 20px;
}
.faq-item summary {
  padding: 22px 8px 22px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 18px;
  font-size: 26px;
  color: var(--accent-2);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 22px; margin: 0; }

.cta-shell {
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 20px;
}
.lead-form {
  display: grid;
  gap: 16px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.lead-form label {
  display: grid;
  gap: 10px;
}
.lead-form span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-2);
}
.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: white;
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: #7e93b7; }
.lead-form input:focus,
.lead-form textarea:focus {
  border-color: rgba(126,167,255,0.4);
  box-shadow: 0 0 0 4px rgba(90,146,255,0.1);
  background: rgba(255,255,255,0.05);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--accent-3);
}

.site-footer {
  padding: 26px 0 34px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.08);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.footer-brand {
  font-size: 18px;
  font-weight: 800;
}
.footer-copy {
  margin: 8px 0 0;
  max-width: 60ch;
}
.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted-2);
}
.footer-links a:hover,
.footer-links a:focus-visible { color: white; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.35); opacity: 1; }
}

@media (max-width: 1120px) {
  .hero-grid,
  .security-grid,
  .faq-grid,
  .cta-shell {
    grid-template-columns: 1fr;
  }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto auto auto;
  }
  .nav-toggle {
    display: inline-block;
    justify-self: end;
  }
  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display: grid;
    gap: 8px;
    justify-self: stretch;
    padding: 14px;
    border-radius: 22px;
    transform-origin: top;
    transform: scaleY(0.92);
    opacity: 0;
    pointer-events: none;
  }
  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }
  .site-nav a {
    padding: 10px 8px;
    border-radius: 12px;
  }
  .site-nav a:hover,
  .site-nav a:focus-visible { background: rgba(255,255,255,0.04); }
  .header-actions {
    display: none;
  }
  .system-map {
    grid-template-columns: 1fr;
  }
  .map-flow {
    min-height: 24px;
  }
  .map-flow::before {
    inset: 10px 50% 10px auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(126,167,255,0.38), transparent);
  }
  .hero-side-stats { grid-template-columns: 1fr; }
  .bento-card,
  .bento-card-xl,
  .bento-card-wide { grid-column: span 12; }
  .roles-grid,
  .field-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .site-header { position: sticky; }
  .hero { padding-top: 30px; }
  .hero-copy { padding-top: 6px; }
  .hero h1 { max-width: 100%; }
  .hero-card,
  .bento-card,
  .timeline-item,
  .role-card,
  .stack-card,
  .metric,
  .cta-shell,
  .faq-item { border-radius: 24px; }
  .timeline,
  .metrics-grid { grid-template-columns: 1fr; }
  .container { width: min(calc(100% - 24px), var(--container)); }
  .btn { width: 100%; }
  .hero-actions .btn { width: auto; }
  .footer-inner { flex-direction: column; }
}

@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;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
