:root {
  --bg: #0a1520;
  --bg-2: #122033;
  --panel: #1a3148;
  --ink: #eaf3fa;
  --muted: #9db3c6;
  --line: #3a5a74;
  --cyan: #4ae8ff;
  --cyan-dim: #2a7f92;
  --green: #3dff9a;
  --amber: #ffb020;
  --orange: #ff6a1a;
  --orange-hot: #ff8a3d;
  --navy: #eaf3fa;
  --max: 74rem;
  --prose: 42rem;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 640px at 88% -8%, rgba(74, 232, 255, 0.18), transparent 52%),
    radial-gradient(900px 520px at -8% 18%, rgba(255, 106, 26, 0.16), transparent 48%),
    linear-gradient(180deg, #0c1a28 0%, #15283c 42%, #0e1c2b 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(58, 90, 116, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 90, 116, 0.18) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.28), transparent 55%);
  z-index: 0;
}
.site-header, main, .site-footer { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
a:hover { color: var(--orange-hot); }
h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff;
}
h1 { font-size: clamp(2.2rem, 4.8vw, 3.55rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.05rem); margin: 0 0 0.6rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.prose { max-width: var(--prose); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--panel); padding: 0.5rem 0.8rem; z-index: 20; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.site-header {
  position: sticky; top: 0; z-index: 8;
  background: rgba(14, 30, 46, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(74, 232, 255, 0.14);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 5rem;
}
.logo { text-decoration: none; color: inherit; display: flex; align-items: center; min-width: 0; flex: 0 1 auto; }
.logo img,
.footer-logo img {
  display: block;
  width: auto;
  height: auto;
  max-height: 3.25rem;
  max-width: min(15rem, 62vw);
  object-fit: contain;
  background: #fff;
  border-radius: 0.55rem;
  padding: 0.28rem 0.55rem;
}
.nav { display: flex; align-items: center; gap: 1.15rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.nav a[aria-current="page"] { color: var(--cyan); box-shadow: inset 0 -2px 0 var(--cyan); }
.nav-call {
  background: var(--orange); color: #140800 !important;
  padding: 0.5rem 1.05rem; border-radius: 999px; font-weight: 700;
  box-shadow: 0 8px 22px rgba(255, 106, 26, 0.35);
}
.nav-call:hover { background: var(--orange-hot); color: #140800 !important; }
.nav-burger { display: none; cursor: pointer; font-weight: 600; color: var(--cyan); font-family: var(--mono); }
.nav-toggle:checked ~ .nav { display: flex; }

.hero {
  padding: 3.4rem 0 2.6rem;
}
.hero-grid {
  display: grid; gap: 1.8rem;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}
.lede { font-size: 1.12rem; color: var(--muted); max-width: 40rem; }
.kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 0.85rem;
}
.kicker::before {
  content: "";
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  50% { opacity: 0.35; }
}
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.4rem 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.25rem; border-radius: 999px; text-decoration: none;
  font-weight: 700; border: 1px solid transparent;
}
.btn-primary {
  background: var(--orange); color: #140800;
  box-shadow: 0 0 22px rgba(255, 106, 26, 0.4);
}
.btn-primary:hover { background: var(--orange-hot); color: #140800; }
.btn-ghost { border-color: var(--cyan); color: var(--cyan); background: transparent; }
.btn-ghost:hover { background: var(--cyan); color: #041018; }

.stack-panel {
  background: linear-gradient(165deg, #2a4a66 0%, #163044 55%, #122836 100%);
  border: 1px solid rgba(74, 232, 255, 0.28);
  border-radius: 1.4rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.12);
  overflow: hidden;
}
.stack-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 1.05rem;
  background: rgba(10, 24, 36, 0.35);
  border-bottom: 1px solid rgba(74, 232, 255, 0.18);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--muted); text-transform: uppercase;
}
.stack-panel-head strong { color: var(--cyan); font-weight: 600; }
.stack-row {
  display: grid; grid-template-columns: 0.7rem 1fr auto;
  gap: 0.7rem; align-items: center;
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid #1b2e40;
  font-family: var(--mono); font-size: 0.82rem;
}
.stack-row:last-child { border-bottom: 0; }
.led {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
}
.led.warn { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.stack-row b { font-weight: 600; color: #fff; }
.stack-row span { color: var(--green); }
.stack-row .warn { color: var(--amber); }
.stack-log {
  padding: 0.85rem 1.05rem 1.05rem;
  background: linear-gradient(180deg, rgba(8, 22, 34, 0.45), rgba(12, 32, 48, 0.7));
  font-family: var(--mono); font-size: 0.75rem; line-height: 1.55;
  color: #b7d4e4;
}
.stack-log div { opacity: 0.9; }
.stack-log .hi { color: var(--orange-hot); }

.band {
  padding: 2.8rem 0;
  border-top: 1px solid rgba(74, 232, 255, 0.1);
}
main > section:nth-child(even) {
  background: linear-gradient(180deg, rgba(36, 72, 102, 0.42), rgba(18, 40, 58, 0.55));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}
main > section:nth-child(odd):not(.hero):not(.page-hero) {
  background: linear-gradient(180deg, rgba(16, 32, 48, 0.25), rgba(22, 48, 68, 0.35));
}
.page-hero {
  padding: 2.8rem 0 1.6rem;
  background: linear-gradient(180deg, rgba(22, 48, 70, 0.55), rgba(12, 28, 42, 0.2));
  border-bottom: 1px solid rgba(74, 232, 255, 0.12);
}
.band-navy {
  background: linear-gradient(120deg, rgba(255, 106, 26, 0.22), rgba(74, 232, 255, 0.16) 55%, rgba(20, 48, 70, 0.55)) !important;
  border-top: 1px solid rgba(255, 138, 61, 0.28);
  border-bottom: 1px solid rgba(74, 232, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy p, .band-navy li { color: #c5d6e6; }
.band-navy .btn-ghost { color: #fff; border-color: #fff; }
.band-navy .btn-ghost:hover { background: #fff; color: #070d14; }
.split {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.split .photo-slot {
  max-width: 22rem;
}
.split .photo-slot.photo-wide {
  max-width: 28rem;
}
.cards {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: linear-gradient(165deg, #2c5070 0%, #1a354c 100%);
  border: 1px solid rgba(74, 232, 255, 0.22);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.3rem;
  text-decoration: none; color: inherit;
  display: block;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
a.card {
  padding-right: 2.4rem;
  position: relative;
}
a.card::after {
  content: "→";
  position: absolute; right: 1.1rem; top: 1.2rem;
  color: var(--cyan); font-weight: 700;
}
.card:nth-child(2) { border-left-color: var(--orange); }
.card:nth-child(3) { border-left-color: var(--amber); }
.card:nth-child(5) { border-left-color: var(--orange); }
.card:hover {
  border-color: var(--cyan);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 28px rgba(74, 232, 255, 0.12);
  transform: translateY(-4px);
  color: inherit;
}
.card:nth-child(2) { border-left-color: var(--orange); }
.card:nth-child(3) { border-left-color: var(--amber); }
.card:nth-child(5) { border-left-color: var(--orange); }
.card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(60, 224, 255, 0.12);
  transform: translateY(-2px);
  color: inherit;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; color: var(--muted); }

.photo-slot { margin: 0; }
.photo-frame {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #163044;
  border: 1px solid rgba(74, 232, 255, 0.2);
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
}
.photo-slot img, .photo-slot-empty {
  width: 100%;
  height: 11.5rem;
  object-fit: cover;
  object-position: center;
  background: #122836;
  display: block;
}
.photo-slot.photo-wide img, .photo-slot.photo-wide .photo-slot-empty {
  height: 12.5rem;
  object-position: center;
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 22, 34, 0.08), rgba(8, 18, 30, 0.38)),
    linear-gradient(90deg, rgba(10, 40, 56, 0.14), transparent 45%);
}
.photo-slot-empty {
  display: grid; place-content: center; gap: 0.4rem; text-align: center;
  color: var(--cyan);
  padding: 1.5rem;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(60,224,255,0.04) 3px, rgba(60,224,255,0.04) 4px),
    #0a1520;
}
.photo-slot-tag {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  color: var(--amber);
}
.photo-slot-empty em { font-style: normal; color: var(--muted); font-size: 0.85rem; }
.photo-slot figcaption { margin-top: 0.7rem; color: var(--muted); font-size: 0.95rem; }
.photo-kicker {
  display: block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange);
  font-family: var(--mono);
  margin-bottom: 0.25rem;
}
.photo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.1rem;
  max-width: 48rem;
}
.photo-grid.cols-2 { grid-template-columns: 1fr 1fr; max-width: 32rem; }
.photo-grid-feature {
  grid-template-columns: repeat(3, 1fr);
}

.steps { display: grid; gap: 1rem; counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 2rem; height: 2rem; border-radius: 999px;
  background: var(--cyan); color: #041018;
  display: grid; place-items: center; font-weight: 700; font-size: 0.9rem;
  font-family: var(--mono);
}

form.intake { display: grid; gap: 0.85rem; max-width: 38rem; }
.field { display: grid; gap: 0.3rem; }
.field-row { display: grid; gap: 0.85rem; grid-template-columns: 1fr 1fr; }
label { font-weight: 600; font-size: 0.92rem; }
input, select, textarea {
  font: inherit; padding: 0.65rem 0.85rem;
  border: 1px solid rgba(74, 232, 255, 0.22); border-radius: 0.9rem;
  background: linear-gradient(180deg, #1c3a52, #152e42); color: var(--ink);
}
button[type="submit"] {
  font: inherit; font-weight: 700; cursor: pointer;
  background: var(--orange); color: #140800; border: 0;
  padding: 0.75rem 1.2rem; border-radius: 999px; width: fit-content;
}
.notice { padding: 0.8rem 1rem; border-radius: 1rem; background: #123528; color: var(--green); }
.notice-err { background: #3a1a12; color: var(--orange-hot); }

.site-footer {
  background: linear-gradient(180deg, #163044, #0c1c2a);
  color: #9eb0c4;
  padding: 2.6rem 0 1.4rem; margin-top: 0;
  border-top: 1px solid rgba(74, 232, 255, 0.16);
}
.site-footer a { color: var(--cyan); }
.footer-grid { display: grid; gap: 1.6rem; grid-template-columns: 1.3fr 0.9fr 1fr; }
.footer-logo { margin: 0 0 0.7rem; }
.footer-logo img { max-height: 3.6rem; max-width: min(16rem, 80vw); }
.site-footer h2 {
  color: var(--orange); font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.claimmend { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink); }
.claimmend a { color: var(--orange-hot); font-weight: 700; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: 0.85rem; color: #6d8296;
}

.ask-dock {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 12;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.55rem;
}
.ask-launch {
  background: var(--cyan); color: #041018; border: 0;
  font: inherit; font-weight: 700; cursor: pointer;
  padding: 0.75rem 1.15rem; border-radius: 999px;
  box-shadow: 0 10px 28px rgba(74, 232, 255, 0.28);
}
.ask-panel {
  width: min(24rem, calc(100vw - 2rem));
  background: linear-gradient(180deg, #244866, #17344a);
  border: 1px solid rgba(74, 232, 255, 0.28); border-radius: 1.35rem;
  box-shadow: 0 20px 48px rgba(0,0,0,0.4);
  display: grid; grid-template-rows: auto auto 1fr auto;
  max-height: min(32rem, 78vh);
}
.ask-panel[hidden] { display: none !important; }
.ask-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 0.9rem 0.2rem;
}
.ask-head p { margin: 0; font-weight: 700; color: var(--cyan); font-family: var(--mono); font-size: 0.85rem; }
.ask-close { background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--ink); }
.ask-note { font-size: 0.8rem; color: var(--muted); padding: 0 0.9rem; margin: 0 0 0.4rem; }
.ask-log { overflow: auto; padding: 0.4rem 0.9rem 0.8rem; display: grid; gap: 0.65rem; min-height: 10rem; }
.ask-msg { padding: 0.55rem 0.7rem; border-radius: 6px; font-size: 0.92rem; }
.ask-msg.user { background: #1a3144; justify-self: end; }
.ask-msg.bot { background: #0a1520; border: 1px solid var(--line); }
.ask-form { display: grid; grid-template-columns: 1fr auto; gap: 0.45rem; padding: 0.7rem; border-top: 1px solid var(--line); }
.ask-form textarea { resize: none; min-height: 2.6rem; }
.lift-box ul { margin-bottom: 0; }
.ask-form button { border-radius: 999px; padding-inline: 0.9rem; }

.ticker {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem;
}
.ticker span {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--cyan);
  border: 1px solid rgba(74, 232, 255, 0.28); padding: 0.4rem 0.7rem; border-radius: 999px;
  background: rgba(74, 232, 255, 0.1);
}
.why {
  display: grid; gap: 1rem; grid-template-columns: 1fr 1fr;
}
.case {
  background: linear-gradient(165deg, #2a4c6a 0%, #17344c 100%);
  border: 1px solid rgba(74, 232, 255, 0.2);
  border-radius: 1.4rem;
  padding: 1.45rem 1.5rem;
  margin: 0 0 1.2rem;
  box-shadow: 0 16px 36px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
}
.lift-box {
  background: linear-gradient(165deg, #2a4c6a, #1a354c);
  border: 1px solid rgba(74, 232, 255, 0.2);
  border-radius: var(--radius);
  padding: 1.2rem 1.35rem;
  box-shadow: 0 14px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}
.case h2 { margin-top: 0; }
.case h3 { color: var(--orange); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }

@media (max-width: 900px) {
  .hero-grid, .split, .cards, .footer-grid, .field-row, .why, .photo-grid, .photo-grid.cols-2, .photo-grid-feature { grid-template-columns: 1fr; }
  .photo-grid, .photo-grid.cols-2 { max-width: none; }
  .photo-slot img, .photo-slot-empty,
  .photo-slot.photo-wide img, .photo-slot.photo-wide .photo-slot-empty { height: 13.5rem; }
  .nav-burger { display: inline-flex; align-items: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 4.5rem;
    background: #0c1622; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 1rem 1.2rem 1.2rem; gap: 0.8rem;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
}
