:root {
  --bg: #071116;
  --bg-deep: #050d12;
  --surface: #0c191f;
  --line: rgba(221, 231, 234, 0.14);
  --line-soft: rgba(214, 226, 230, 0.055);
  --text: #f3f1ea;
  --muted: #c5d0d3;
  --muted-2: #8ea0a6;
  --gold: #e4b45d;
  --gold-bright: #f0c56e;
  --blue: #8ecfff;
  --green: #3dce7a;
  --purple: #8d6bff;
  --shell: min(1180px, calc(100% - 80px));
  --header-h: 74px;
  --radius: 16px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(1200px 520px at 78% 18%, rgba(28, 78, 102, 0.16), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { background: rgba(228, 180, 93, 0.28); color: #fff; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}
.btn-primary:focus-visible { outline-color: #fff4d4; }

.skip-link {
  position: fixed;
  left: 14px;
  top: -60px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--gold);
  color: #071116;
  font-weight: 750;
}
.skip-link:focus { top: 14px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell { width: var(--shell); margin-inline: auto; }
.section-pad { padding: 84px 0; }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.section-grid {
  position: relative;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
}
.section-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 42%, rgba(36, 92, 112, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(7, 17, 22, 0.08), rgba(7, 17, 22, 0.72));
}
.section-grid > * { position: relative; z-index: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(6, 13, 18, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.header-inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 28px;
}
.nav-cluster { display: contents; }

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { width: 42px; height: 42px; fill: var(--gold); }
.brand-mark .brand-cut { fill: var(--bg-deep); }
.brand-copy { display: grid; gap: 3px; line-height: 1; }
.brand-copy strong { font-size: 18px; letter-spacing: 0.18em; font-weight: 750; }
.brand-copy span { font-size: 10px; color: #b7c2c4; letter-spacing: 0.32em; }

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.1vw, 36px);
}
.site-nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 600;
  color: #e4e8e6;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--gold);
}
.site-nav a:hover,
.site-nav a[aria-current="true"] { color: var(--gold-bright); }
.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after { right: 0; }

.header-cta {
  justify-self: end;
  border: 1px solid rgba(228, 180, 93, 0.85);
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.header-cta span { margin-left: 6px; }
.header-cta:hover { background: rgba(228, 180, 93, 0.08); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 1.12fr);
  align-items: center;
  gap: 8px;
}
.hero-copy { padding: 36px 0 28px; min-width: 0; z-index: 2; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.26em;
  font-weight: 750;
}
.hero h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(52px, 5.5vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 750;
}
.hero h1 span { color: var(--gold-bright); }
.lede {
  max-width: 36rem;
  margin: 22px 0 0;
  color: #d5dcde;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.5;
  letter-spacing: -0.011em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #f3d48a, #e0aa4a);
  color: #10160f;
  box-shadow: 0 10px 28px rgba(219, 168, 77, 0.16);
}
.btn-secondary {
  border-color: rgba(213, 223, 225, 0.34);
  color: #edf0ee;
  background: rgba(6, 16, 21, 0.28);
}
.btn-secondary:hover { border-color: rgba(228, 180, 93, 0.72); }

.hero-art {
  position: relative;
  align-self: stretch;
  min-height: 460px;
  overflow: hidden;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(7, 17, 22, 0.2) 16%, rgba(7, 17, 22, 0) 34%);
  pointer-events: none;
  z-index: 1;
}
.intelligence-field {
  position: absolute;
  inset: -8% -6% -8% -8%;
  width: 114%;
  height: 116%;
  overflow: visible;
}
.field-orbits { transform-origin: 55% 50%; animation: drift 18s ease-in-out infinite alternate; }
.field-points { transform-origin: 55% 50%; animation: breathe 7s ease-in-out infinite; }
.signal-stems { opacity: 0.9; }
.art-caption {
  position: absolute;
  z-index: 3;
  right: 2%;
  top: 46%;
  transform: translateY(-50%);
  display: grid;
  gap: 8px;
  max-width: min(240px, 42%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 10px 28px rgba(0, 0, 0, 0.55);
}
.art-caption strong {
  color: var(--gold-bright);
  letter-spacing: 0.18em;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}
.art-caption span {
  color: #d5e4ee;
  letter-spacing: 0.16em;
  font-weight: 650;
  font-size: 11px;
  line-height: 1.45;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(1.2%, -1%, 0); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.82; }
  50% { opacity: 1; }
}

.section-heading { margin-bottom: 22px; }
.split-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}
.section-heading h2,
.about h2,
.connect h2 {
  margin: 0;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 720;
}
.narrow-heading { max-width: 820px; }
.narrow-heading > p:last-child {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 680px;
  margin: 18px 0 0;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 15px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.text-link:hover { color: #ffe0a2; }

.products {
  background: linear-gradient(180deg, #071116 0%, #08151a 100%);
  border-bottom: 1px solid var(--line);
  padding-top: 36px;
  padding-bottom: 72px;
}
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card {
  min-height: 168px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(212, 225, 228, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 32, 39, 0.92), rgba(8, 18, 24, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(228, 180, 93, 0.32);
}
.product-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.product-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.product-os .product-icon { color: #efbd5b; background: rgba(228, 180, 93, 0.12); }
.product-care .product-icon { color: var(--green); background: rgba(61, 206, 122, 0.12); }
.product-risk .product-icon { color: #b9a6ff; background: rgba(141, 107, 255, 0.16); }
.product-body { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.product-body h3 { margin: 2px 0 8px; font-size: 20px; letter-spacing: -0.02em; font-weight: 700; }
.product-tagline { margin: 0 0 16px; color: #d5dedf; font-size: 15.5px; line-height: 1.45; }
.product-tagline span { color: #b7c4c8; }
.product-body .text-link { margin-top: auto; }

.approach { border-bottom: 1px solid var(--line); }
.principle-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.principle-grid article {
  min-height: 210px;
  padding: 22px;
  border-top: 1px solid rgba(228, 180, 93, 0.55);
  background: rgba(6, 16, 21, 0.38);
}
.principle-grid span { color: var(--gold); font-size: 12px; letter-spacing: 0.16em; font-weight: 750; }
.principle-grid h3 { margin: 28px 0 12px; font-size: 20px; line-height: 1.2; }
.principle-grid p { margin: 0; color: var(--muted); line-height: 1.55; }

.signal { background: #09171d; border-bottom: 1px solid var(--line); }
.signal-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  padding: 32px 36px;
  border: 1px solid rgba(228, 180, 93, 0.22);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(228, 180, 93, 0.06), rgba(27, 66, 80, 0.08));
}
.signal-strip h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.signal-strip > p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }

.about { border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 56px; align-items: start; }
.about-copy { padding-top: 28px; }
.about-copy p { margin: 0 0 18px; color: var(--muted); font-size: 18px; line-height: 1.65; }

.connect {
  background: radial-gradient(circle at 80% 30%, rgba(228, 180, 93, 0.08), transparent 32%), #08151b;
}
.connect-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 40px;
  align-items: center;
  padding: 40px;
  border: 1px solid rgba(228, 180, 93, 0.22);
  border-radius: 18px;
  background: rgba(5, 14, 19, 0.72);
  box-shadow: var(--shadow);
}
.connect-panel h2 { max-width: 16ch; }
.connect-panel p:not(.eyebrow):not(.contact-note) {
  color: var(--muted);
  max-width: 38rem;
  font-size: 17px;
  line-height: 1.6;
}
.contact-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #e8c477;
  font-size: 14px;
}

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 34px; background: #050d12; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.footer-brand .brand-mark { width: 34px; height: 34px; }
.footer-brand .brand-copy strong { font-size: 15px; }
.footer-brand .brand-copy span { font-size: 9px; }
.footer-inner > p { margin: 0; color: var(--muted-2); }
.footer-inner > p:nth-child(2) { text-align: center; color: #d6ddd9; }
.legal { font-size: 13px; text-align: right; }

.product-dialog {
  width: min(620px, calc(100% - 32px));
  border: 1px solid rgba(228, 180, 93, 0.28);
  border-radius: 18px;
  padding: 36px 36px 32px;
  color: var(--text);
  background: #09171d;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.56);
}
.product-dialog:not([open]) { display: none; }
.product-dialog::backdrop { background: rgba(2, 8, 11, 0.78); }
.product-dialog h2 { margin: 0 0 8px; font-size: clamp(36px, 5vw, 46px); letter-spacing: -0.04em; }
.product-dialog p:not(.eyebrow) { color: var(--muted); font-size: 17px; line-height: 1.6; }
.product-dialog .dialog-tagline { color: var(--text) !important; font-weight: 700; font-size: 20px !important; }
.dialog-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #e5eae8;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.product-dialog .btn { margin-top: 8px; }
.noscript {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 400;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f3cf7d;
  color: #071116;
  font-weight: 700;
  text-align: center;
}

body.menu-open { overflow: hidden; }

@media (max-width: 1120px) {
  :root { --shell: min(100% - 48px, 1040px); }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { max-width: 40rem; padding-top: 48px; }
  .hero-art { min-height: 380px; }
  .hero-art::before {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 17, 22, 0.15) 18%, rgba(7, 17, 22, 0) 40%);
  }
  .art-caption { right: 4%; top: 42%; max-width: min(280px, 48%); }
  .product-grid { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: 1fr 1fr; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 13.5px; }
}

@media (max-width: 860px) {
  :root { --shell: calc(100% - 32px); --header-h: 68px; }
  .header-inner { display: flex; justify-content: space-between; }
  .menu-toggle { display: flex; margin-left: auto; }
  .nav-cluster {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(6, 13, 18, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
  }
  .nav-cluster.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .site-nav { display: grid; width: 100%; grid-template-columns: 1fr; justify-self: stretch; gap: 2px; }
  .site-nav a { width: 100%; padding: 13px 12px; border-radius: 10px; font-size: 16px; }
  .site-nav a::after { display: none; }
  .site-nav a:hover,
  .site-nav a:focus-visible { background: rgba(228, 180, 93, 0.08); }
  .header-cta {
    display: flex;
    justify-self: stretch;
    width: calc(100% - 16px);
    margin: 8px;
    justify-content: center;
    box-sizing: border-box;
  }
  .hero-copy { padding: 40px 0 12px; }
  .hero h1 { font-size: clamp(46px, 12vw, 68px); }
  .lede { font-size: 17px; }
  .hero-art { min-height: 300px; }
  .art-caption { max-width: min(220px, 62%); }
  .art-caption strong { font-size: 12px; letter-spacing: 0.14em; }
  .art-caption span { font-size: 11px; letter-spacing: 0.12em; }
  .section-pad { padding: 64px 0; }
  .products { padding-top: 28px; padding-bottom: 56px; }
  .split-heading { display: block; }
  .split-heading .text-link { margin-top: 16px; }
  .principle-grid,
  .signal-strip,
  .about-grid,
  .connect-panel { grid-template-columns: 1fr; }
  .signal-strip,
  .about-grid,
  .connect-panel { gap: 20px; }
  .signal-strip,
  .connect-panel { padding: 24px; }
  .connect-panel h2 { max-width: none; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .legal { text-align: center; }
}

@media (max-width: 420px) {
  :root { --shell: calc(100% - 28px); }
  .brand { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 15px; letter-spacing: 0.14em; }
  .brand-copy span { font-size: 8px; letter-spacing: 0.22em; }
  .hero h1 { font-size: clamp(42px, 11.4vw, 52px); }
  .hero-actions { display: grid; }
  .btn { width: 100%; }
  .hero-art { min-height: 260px; }
  .product-card { grid-template-columns: 1fr; }
  .product-dialog { padding: 28px 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
