:root {
  color-scheme: dark;
  --bg: #030303;
  --panel: rgba(12, 10, 8, .82);
  --panel-strong: rgba(18, 15, 11, .94);
  --text: #fff3d7;
  --muted: #b9aa8d;
  --soft: #746951;
  --line: rgba(221, 176, 93, .22);
  --line-strong: rgba(245, 195, 98, .48);
  --accent: #f3bd59;
  --accent-strong: #ffd987;
  --accent-deep: #9d6421;
  --danger: #ff776d;
  --green: #81d999;
  --shadow: 0 24px 70px rgba(0, 0, 0, .58);
  --gold-glow: 0 0 24px rgba(245, 185, 78, .25), 0 0 80px rgba(245, 185, 78, .12);
  --display: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 2%, rgba(226, 159, 56, .18), transparent 21rem),
    radial-gradient(circle at 22% 18%, rgba(247, 193, 93, .08), transparent 18rem),
    linear-gradient(180deg, #000 0%, #050403 48%, #000 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 12%, rgba(245, 190, 88, .12), transparent 36rem),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  opacity: .22;
}

body::after {
  content: "";
  position: fixed;
  width: 48vw;
  height: 32vw;
  right: -18vw;
  top: 76px;
  pointer-events: none;
  border: 1px solid rgba(245, 190, 88, .32);
  border-radius: 50%;
  transform: rotate(-17deg);
  box-shadow: inset 0 0 42px rgba(245, 190, 88, .10), 0 0 90px rgba(245, 190, 88, .22);
  opacity: .78;
}

.landing-page::after {
  display: none;
}

button,
input {
  font: inherit;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1460px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 26px 0 64px;
}

.landing-shell {
  width: min(1500px, calc(100vw - 56px));
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 12px 0 20px;
  border-bottom: 1px solid rgba(245, 195, 98, .11);
}

.brand,
.nav-links a,
.nav-cta a {
  color: var(--text);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: 252px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 28px;
  margin-left: auto;
}

.nav-links a,
.nav-cta a {
  position: relative;
  border: 0;
  border-radius: 0;
  padding: 8px 0;
  background: transparent;
  color: #f2ead7;
  font-size: 15px;
  font-weight: 600;
}

.nav-links a:hover,
.nav-cta a:hover {
  color: var(--accent-strong);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: var(--gold-glow);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 8px;
}

.account-nav {
  gap: 10px;
}

.account-status {
  max-width: 220px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-logout {
  min-height: 38px;
  padding: 0 12px;
}

.nav-cta .nav-start {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(245, 195, 98, .42);
  border-radius: 8px;
  padding: 0 18px;
  color: #ffe8b2;
  box-shadow: 0 0 28px rgba(245, 190, 88, .10);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(420px, 580px);
  align-items: center;
  gap: 54px;
  min-height: 690px;
  padding: 82px 0 70px;
  border-bottom: 1px solid rgba(245, 195, 98, .13);
  overflow: hidden;
}

.landing-hero {
  position: relative;
  min-height: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 116px 0 172px;
  overflow: hidden;
  border-bottom: 1px solid rgba(245, 195, 98, .14);
  text-align: center;
}

.landing-orbit {
  position: absolute;
  inset: 72px 2% auto;
  height: min(540px, 52vw);
  background: url("/website/assets/atrinit-orbit-hero.jpg") center / contain no-repeat;
  opacity: .78;
  filter: saturate(1.08) contrast(1.08);
  pointer-events: none;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 52%, rgba(245, 190, 88, .20), transparent 16rem),
    linear-gradient(180deg, rgba(0,0,0,.16), #000 92%);
  pointer-events: none;
}

.landing-hero > *:not(.landing-orbit) {
  position: relative;
  z-index: 1;
}

.landing-hero h1 {
  max-width: 1260px;
  margin: 0 auto 18px;
  font-size: clamp(42px, 5.4vw, 82px);
  line-height: 1.04;
  color: #fff1cf;
}

.landing-lede {
  max-width: 760px;
  margin: 0 auto;
  color: #d7c9aa;
  font-size: 21px;
  line-height: 1.58;
}

.landing-actions {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.landing-segments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: -112px;
  position: relative;
  z-index: 2;
}

.landing-segments article {
  min-height: 260px;
  border: 1px solid rgba(245, 195, 98, .24);
  border-radius: 22px;
  padding: 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 190, 88, .22), transparent 7rem),
    linear-gradient(180deg, rgba(14, 12, 9, .92), rgba(2, 2, 2, .88));
  box-shadow: 0 34px 90px rgba(0, 0, 0, .78);
  text-align: center;
}

.segment-glyph {
  display: inline-grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 1px solid rgba(245, 195, 98, .38);
  border-radius: 50%;
  color: #ffd987;
  font-size: 18px;
  font-weight: 900;
  box-shadow: inset 0 0 28px rgba(245, 190, 88, .10), 0 0 40px rgba(245, 190, 88, .12);
}

.landing-segments h2 {
  margin: 26px 0 10px;
  font-size: 30px;
}

.landing-segments p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.landing-mission {
  margin-top: 86px;
}

.landing-terminal-section,
.landing-use-cases,
.landing-cta {
  margin-top: 34px;
  border: 1px solid rgba(245, 195, 98, .20);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 10%, rgba(245, 190, 88, .16), transparent 18rem),
    linear-gradient(180deg, rgba(10, 8, 6, .92), rgba(0, 0, 0, .88));
  box-shadow: 0 34px 90px rgba(0, 0, 0, .74);
}

.landing-terminal-section {
  padding: 28px;
}

.landing-terminal {
  max-width: 960px;
  min-height: 360px;
  margin: 0 auto;
  border: 1px solid rgba(245, 195, 98, .30);
  border-radius: 20px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, .96), rgba(0, 0, 0, .88)),
    repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, transparent 1px 44px);
  box-shadow: var(--gold-glow);
}

.landing-terminal code {
  display: block;
  margin: 18px 0;
  border: 1px solid rgba(245, 195, 98, .18);
  border-radius: 14px;
  padding: 20px;
  color: #ffe0a0;
  background: rgba(0, 0, 0, .58);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 17px;
}

.terminal-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.terminal-preview-grid div {
  border: 1px solid rgba(245, 195, 98, .15);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, .025);
}

.terminal-preview-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.terminal-preview-grid strong {
  color: #fff1cf;
}

.landing-use-cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.landing-use-cases article {
  min-height: 220px;
  padding: 30px;
  border-right: 1px solid rgba(245, 195, 98, .14);
}

.landing-use-cases article:last-child {
  border-right: 0;
}

.landing-use-cases h2 {
  margin-bottom: 10px;
  font-size: 25px;
}

.landing-use-cases p {
  color: var(--muted);
  line-height: 1.55;
}

.landing-use-cases a {
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: none;
}

.landing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
}

.landing-cta h2 {
  margin-bottom: 8px;
  font-size: 34px;
}

.landing-cta p {
  margin: 0;
  color: var(--muted);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  align-items: center;
  gap: 42px;
  min-height: 680px;
  padding: 64px 0;
}

.login-copy h1 {
  max-width: 720px;
}

.login-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.login-proof-grid div {
  border: 1px solid rgba(245, 195, 98, .18);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, .025);
}

.login-proof-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-proof-grid strong {
  color: #fff1cf;
  font-size: 13px;
}

.login-panel {
  padding: 24px;
  border-color: rgba(245, 195, 98, .32);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .78), var(--gold-glow);
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form button {
  margin-top: 4px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.auth-tabs button.active {
  border-color: rgba(245, 195, 98, .58);
  color: var(--accent-strong);
  box-shadow: var(--gold-glow);
}

.google-button {
  width: 100%;
  min-height: 44px;
  margin-top: 2px;
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .045);
  color: #fff4d8;
}

.google-button::before {
  content: "G";
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-weight: 900;
}

.hero-copy {
  max-width: 770px;
}

.hero::before {
  content: "";
  position: absolute;
  right: -3%;
  top: 18px;
  width: min(980px, 72vw);
  height: min(680px, 54vw);
  pointer-events: none;
  border: 0;
  border-radius: 0;
  transform: none;
  background: url("/website/assets/atrinit-orbit-hero.jpg") center / contain no-repeat;
  box-shadow:
    inset 0 0 38px rgba(245, 190, 88, .08),
    0 0 88px rgba(245, 190, 88, .22);
  opacity: .62;
  filter: saturate(1.08) contrast(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #000 0%, rgba(0,0,0,.88) 34%, rgba(0,0,0,.40) 68%, #000 100%),
    linear-gradient(180deg, rgba(0,0,0,.05), #000 100%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-console {
  position: relative;
  min-height: 390px;
  border: 1px solid rgba(245, 195, 98, .34);
  border-radius: 20px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(12, 10, 8, .96), rgba(3, 3, 3, .88)),
    repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, transparent 1px 42px);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .82), 0 0 42px rgba(245, 190, 88, .18);
  overflow: hidden;
}

.hero-console::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 190px;
  right: -130px;
  top: -36px;
  border: 1px solid rgba(245, 190, 88, .42);
  border-radius: 50%;
  transform: rotate(-18deg);
  box-shadow: 0 0 54px rgba(245, 190, 88, .22);
  opacity: .75;
}

.hero-console code,
.terminal-table {
  position: relative;
  z-index: 1;
}

.terminal-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c84f41;
}

.terminal-top span:nth-child(2) {
  background: #dfaa4d;
}

.terminal-top span:nth-child(3) {
  background: #78c977;
}

.terminal-top strong {
  margin-left: auto;
  border: 1px solid rgba(129, 217, 153, .35);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--green);
  font-size: 11px;
  text-transform: uppercase;
}

.hero-console code {
  display: block;
  border: 1px solid rgba(245, 195, 98, .18);
  border-radius: 12px;
  padding: 18px;
  background: rgba(0, 0, 0, .55);
  color: #ffe0a0;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.terminal-table {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.terminal-table div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid rgba(245, 195, 98, .12);
  padding: 0 0 10px;
}

.terminal-table span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.terminal-table strong {
  color: #fff0c8;
  font-size: 13px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 16px;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 700;
  color: #fff4d8;
  text-shadow: 0 0 32px rgba(250, 195, 92, .12);
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
}

.lede {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  min-width: 110px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 8, 6, .8);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 0 24px rgba(245, 190, 88, .08);
}

.status-pill.ok {
  border-color: rgba(245, 195, 98, .45);
  color: var(--green);
}

.status-pill.error {
  border-color: rgba(179, 56, 56, .35);
  color: var(--danger);
}

.panel,
.metric {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(14, 12, 9, .94), rgba(3, 3, 3, .88)),
    radial-gradient(circle at 100% 0%, rgba(245, 190, 88, .10), transparent 18rem);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .66);
  backdrop-filter: blur(16px);
}

.target-panel {
  margin-top: 0;
  padding: 22px;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.segment-card {
  position: relative;
  min-height: 228px;
  border: 1px solid rgba(245, 195, 98, .26);
  border-radius: 18px;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 190, 88, .18), transparent 6rem),
    linear-gradient(180deg, rgba(14, 12, 10, .94), rgba(4, 4, 4, .82));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .72);
  overflow: hidden;
}

.segment-card::before {
  content: "";
  position: absolute;
  width: 118px;
  height: 118px;
  right: 24px;
  top: 24px;
  border: 1px solid rgba(245, 190, 88, .34);
  border-radius: 50%;
  box-shadow: inset 0 0 24px rgba(245, 190, 88, .08), 0 0 34px rgba(245, 190, 88, .12);
}

.segment-icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 195, 98, .38);
  border-radius: 999px;
  color: var(--accent-strong);
  font-weight: 900;
}

.segment-card h2 {
  margin: 44px 0 10px;
  font-size: 28px;
}

.segment-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.mission-band {
  margin: 58px auto 30px;
  max-width: 860px;
  text-align: center;
}

.mission-band h2 {
  margin: 0 0 14px;
  color: #fff1cf;
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 650;
}

.mission-band p:not(.eyebrow) {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.terminal-workspace {
  margin-top: 40px;
  border: 1px solid rgba(245, 195, 98, .24);
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 0%, rgba(245, 190, 88, .12), transparent 28rem),
    linear-gradient(180deg, rgba(10, 8, 6, .98), rgba(0, 0, 0, .96));
  box-shadow: 0 40px 110px rgba(0, 0, 0, .82), 0 0 60px rgba(245, 190, 88, .10);
  overflow: hidden;
}

.workspace-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(245, 195, 98, .16);
  padding: 16px 20px;
  background: rgba(0, 0, 0, .52);
}

.workspace-top code {
  overflow: hidden;
  color: #ffe0a0;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #c84f41;
}

.window-dots span:nth-child(2) {
  background: #dfaa4d;
}

.window-dots span:nth-child(3) {
  background: #78c977;
}

.live-dot {
  border: 1px solid rgba(129, 217, 153, .34);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
}

.workspace-rail {
  display: grid;
  align-content: start;
  gap: 12px;
  border-right: 1px solid rgba(245, 195, 98, .13);
  padding: 18px 12px;
  background: rgba(0, 0, 0, .34);
}

.workspace-rail a {
  display: grid;
  min-height: 54px;
  place-items: center;
  border: 1px solid rgba(245, 195, 98, .16);
  border-radius: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.workspace-rail a:hover {
  border-color: rgba(245, 195, 98, .44);
  color: var(--accent-strong);
  box-shadow: var(--gold-glow);
}

.workspace-body {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.product-card {
  padding: 22px;
  box-shadow: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.product-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow), var(--gold-glow);
  transform: translateY(-2px);
}

.product-card h2 {
  margin: 8px 0;
}

.product-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.card-number {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.target-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 12px;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(245, 195, 98, .28);
  border-radius: 10px;
  padding: 0 14px;
  background: rgba(5, 5, 5, .86);
  color: var(--text);
}

input:focus {
  outline: 3px solid rgba(245, 190, 88, .18);
  border-color: var(--accent);
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  border: 1px solid rgba(255, 230, 172, .4);
  background: linear-gradient(180deg, #ffe095 0%, #d99a38 55%, #875116 100%);
  color: #100c07;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(245, 190, 88, .18);
}

button:hover {
  background: linear-gradient(180deg, #fff0b8 0%, #ebb04e 58%, #9c621d 100%);
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

button.secondary {
  min-height: 36px;
  border: 1px solid var(--line);
  background: rgba(8, 7, 6, .82);
  color: var(--text);
  box-shadow: none;
}

button.danger-button {
  color: var(--danger);
}

.button-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 18px;
  background: rgba(8, 7, 6, .72);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.primary-link {
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid rgba(255, 230, 172, .4);
  background: linear-gradient(180deg, #ffe095 0%, #d99a38 55%, #875116 100%);
  color: #100c07;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: var(--gold-glow);
}

.primary-link:hover {
  background: linear-gradient(180deg, #fff0b8 0%, #ebb04e 58%, #9c621d 100%);
}

.api-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.api-section {
  margin-top: 22px;
  padding: 22px;
}

.api-stack {
  display: grid;
  gap: 12px;
}

.api-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(245, 195, 98, .20);
  border-radius: 10px;
  padding: 14px;
  background: rgba(4, 4, 4, .54);
}

.api-card code {
  display: block;
  overflow-x: auto;
  border-radius: 8px;
  padding: 10px;
  background: #050504;
  color: #ffe2a7;
  font-size: 13px;
}

.api-card p,
.api-section p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.api-content-grid {
  align-items: stretch;
}

.feature-list {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin: 16px 0 10px;
}

.contact-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--accent-strong);
  font-size: 13px;
}

.contact-form {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

.contact-form textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border: 1px solid rgba(245, 195, 98, .28);
  border-radius: 10px;
  padding: 13px 14px;
  background: rgba(5, 5, 5, .86);
  color: var(--text);
  font: inherit;
}

.contact-form textarea:focus {
  outline: 3px solid rgba(245, 190, 88, .18);
  border-color: var(--accent);
}

.contact-copy {
  width: 100%;
  border: 1px solid rgba(245, 195, 98, .22);
  border-radius: 10px;
  padding: 12px 13px;
  background: rgba(4, 4, 4, .72);
  color: var(--text);
  font: inherit;
  text-align: left;
  letter-spacing: 0;
  cursor: pointer;
}

.contact-copy strong {
  color: var(--accent-strong);
}

.contact-copy:hover,
.contact-copy:focus-visible {
  border-color: rgba(255, 218, 137, .70);
  box-shadow: 0 0 24px rgba(245, 195, 98, .12);
}

.hook-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  border: 1px solid rgba(245, 195, 98, .20);
  border-radius: 10px;
  padding: 12px;
  background: rgba(4, 4, 4, .54);
}

.hook-box strong {
  color: var(--accent-strong);
  font-size: 12px;
  text-transform: uppercase;
}

.hook-box code {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.hook-actions,
.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-surface {
  display: grid;
  gap: 10px;
  min-height: 180px;
  border: 1px dashed rgba(245, 195, 98, .28);
  border-radius: 12px;
  padding: 12px;
  background: rgba(4, 4, 4, .54);
  transition: padding .2s ease, transform .2s ease;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

#statusText {
  margin: 12px 0 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.metric {
  padding: 18px;
  border-color: rgba(245, 195, 98, .20);
}

.metric span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 24px;
  color: var(--accent-strong);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 18px;
  margin-top: 0;
}

.runtime-panel,
.intelligence-panel,
.automation-panel,
.report-panel,
.history-panel,
.readiness-panel {
  margin-top: 0;
  padding: 18px;
}

.runtime-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.runtime-analysis {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, .92fr) minmax(320px, 1.18fr);
  gap: 20px;
  border: 1px solid rgba(245, 195, 98, .30);
  border-radius: 18px;
  padding: 20px;
  background:
    radial-gradient(circle at 88% 0%, rgba(245, 190, 88, .17), transparent 16rem),
    linear-gradient(180deg, rgba(12, 10, 8, .98), rgba(0, 0, 0, .91));
  box-shadow: 0 26px 80px rgba(0, 0, 0, .66), 0 0 32px rgba(245, 190, 88, .10);
}

.runtime-analysis h3 {
  margin: 0 0 10px;
  color: #fff1cf;
  font-size: clamp(24px, 3vw, 38px);
}

.runtime-analysis-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.analysis-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.analysis-stats span,
.analysis-notes span {
  border: 1px solid rgba(245, 195, 98, .16);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  font-size: 12px;
}

.analysis-stats strong {
  display: block;
  color: var(--accent-strong);
  font-size: 20px;
}

.analysis-chart {
  display: grid;
  align-content: center;
  gap: 10px;
}

.analysis-bar-row {
  display: grid;
  grid-template-columns: minmax(110px, 180px) minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.analysis-bar-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-bar-row div {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
}

.analysis-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8d571c, #f1b94f, #fff0b5);
  box-shadow: 0 0 20px rgba(245, 190, 88, .22);
}

.analysis-bar-row strong {
  color: #fff1cf;
  text-align: right;
}

.analysis-notes {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.runtime-card,
.intel-block {
  border: 1px solid rgba(245, 195, 98, .18);
  border-radius: 14px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(9, 8, 6, .96), rgba(0, 0, 0, .82)),
    radial-gradient(circle at 0% 0%, rgba(245, 190, 88, .10), transparent 12rem);
}

.runtime-card.active {
  border-left: 4px solid var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 230, 172, .08), 0 0 28px rgba(245, 190, 88, .08);
}

.runtime-card {
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.runtime-card:hover,
.runtime-card:focus,
.runtime-card.selected {
  border-color: rgba(245, 195, 98, .55);
  box-shadow: inset 0 1px 0 rgba(255, 230, 172, .08), 0 0 34px rgba(245, 190, 88, .15);
  outline: none;
  transform: translateY(-1px);
}

.runtime-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.runtime-title span {
  color: var(--muted);
  font-size: 12px;
  text-transform: none;
  white-space: nowrap;
}

.pressure {
  height: 8px;
  margin: 10px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
}

.pressure span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8f5a1c, #f0b34c, #fff0b2);
  box-shadow: 0 0 18px rgba(245, 190, 88, .32);
}

.runtime-summary {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 13px;
}

.runtime-breakdown {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.runtime-breakdown summary,
.intel-block summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 900;
}

.runtime-breakdown ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 18px;
}

.runtime-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.timeline {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
}

.intelligence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.automation-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(220px, 320px);
  gap: 12px;
}

.report-grid,
.readiness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.report-block,
.automation-block,
.readiness-block {
  border: 1px solid rgba(245, 195, 98, .18);
  border-radius: 14px;
  padding: 14px;
  background: rgba(4, 4, 4, .54);
}

.report-block:first-child {
  grid-column: span 2;
}

.report-block ul,
.automation-block ul,
.readiness-block ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.score-pill {
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid rgba(245, 195, 98, .28);
  background: rgba(245, 190, 88, .10);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.collapse-toggle {
  min-width: 72px;
}

.collapsible-panel[data-collapsed="true"] #facts,
.collapsible-panel[data-collapsed="true"] #scanHistory {
  display: none;
}

.collapsible-panel[data-collapsed="true"] {
  min-height: auto;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  border: 1px solid rgba(245, 195, 98, .18);
  border-radius: 10px;
  padding: 12px;
  background: rgba(4, 4, 4, .54);
}

.history-item span:not(.badge) {
  color: var(--muted);
  font-size: 13px;
}

.history-item .badge {
  grid-row: span 2;
}

.intel-block ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.automation-block summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 900;
}

.automation-block:first-child {
  border-left: 4px solid var(--accent);
}

.content-grid .panel {
  padding: 18px;
  min-height: 420px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.list,
.facts {
  display: grid;
  gap: 10px;
}

.empty {
  color: var(--muted);
  font-size: 14px;
}

.channel,
.fact {
  border: 1px solid rgba(245, 195, 98, .18);
  border-radius: 12px;
  padding: 12px;
  background: rgba(4, 4, 4, .54);
}

.channel {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.channel strong,
.fact strong {
  overflow-wrap: anywhere;
}

.badge {
  align-self: flex-start;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid rgba(245, 195, 98, .25);
  background: rgba(245, 190, 88, .10);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.fact {
  display: grid;
  gap: 8px;
}

.fact-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fact pre {
  max-height: 180px;
  margin: 0;
  overflow: auto;
  border-radius: 8px;
  padding: 10px;
  background: #050504;
  color: #ffe2a7;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .hero,
  .target-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    min-height: auto;
    padding: 34px 0 28px;
  }

  .hero > div:first-child {
    max-width: 100%;
  }

  .hero::before,
  body::after {
    display: none;
  }

  .hero-console {
    min-height: 280px;
  }

  .terminal-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .nav-links {
    gap: 10px;
  }

  .top-nav,
  .nav-cta {
    align-items: flex-start;
  }

  .top-nav {
    flex-direction: column;
  }

  .nav-cta {
    margin-left: 0;
  }

  .brand-logo {
    width: 184px;
    height: 44px;
  }

  .summary-grid,
  .content-grid,
  .login-layout,
  .login-proof-grid,
  .runtime-grid,
  .intelligence-grid,
  .automation-grid,
  .report-grid,
  .readiness-grid,
  .api-grid,
  .segment-grid,
  .onboarding-grid,
  .landing-segments,
  .terminal-preview-grid,
  .landing-use-cases {
    grid-template-columns: 1fr;
  }

  .landing-shell {
    width: min(100vw - 28px, 720px);
  }

  .landing-hero {
    min-height: 620px;
    padding: 88px 0 80px;
  }

  .landing-orbit {
    inset: 110px -22% auto;
    height: 360px;
    opacity: .48;
  }

  .landing-hero h1 {
    font-size: clamp(42px, 12vw, 72px);
  }

  .landing-lede {
    font-size: 17px;
  }

  .landing-actions,
  .landing-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-segments {
    margin-top: 20px;
  }

  .landing-segments article {
    min-height: 190px;
  }

  .landing-use-cases article {
    border-right: 0;
    border-bottom: 1px solid rgba(245, 195, 98, .14);
  }

  .landing-use-cases article:last-child {
    border-bottom: 0;
  }

  .terminal-workspace {
    border-radius: 18px;
  }

  .workspace-top,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .workspace-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid rgba(245, 195, 98, .13);
  }

  .workspace-rail a {
    min-height: 44px;
  }

  .workspace-body {
    padding: 14px;
  }

  .runtime-analysis,
  .analysis-stats,
  .analysis-notes {
    grid-template-columns: 1fr;
  }

  .analysis-bar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .analysis-bar-row strong {
    text-align: left;
  }

  .report-block:first-child {
    grid-column: span 1;
  }
}
