:root {
  --navy: #071b34;
  --blue-950: #06172d;
  --blue-900: #0a2347;
  --blue-800: #0b3a75;
  --blue-700: #0a4fd7;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #d8e1ea;
  --shadow: 0 20px 55px rgba(15, 23, 42, .10);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--slate-900);
  line-height: 1.55;
}

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

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

h1 {
  max-width: 900px;
  margin-bottom: 20px;
  color: var(--navy);
  font-size: clamp(2.35rem, 6vw, 4.9rem);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--blue-900);
  font-size: 1.08rem;
  line-height: 1.2;
}

p { color: var(--slate-600); }

.site-header,
.demo-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 70px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-size: .88rem;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  color: var(--slate-700);
  font-size: .92rem;
  font-weight: 750;
}

.header-actions,
.hero-actions,
.cta-row,
.auth-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 850;
  font-size: .92rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.button:hover,
.btn:hover { transform: translateY(-1px); }

.primary,
.btn-primary {
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, .22);
}

.secondary,
.btn-secondary,
.btn-light {
  background: #fff;
  color: var(--blue-900);
  border-color: var(--border);
}

.ghost,
.btn-link {
  min-height: 42px;
  padding-inline: 6px;
  color: var(--blue-700);
  background: transparent;
}

.compact {
  min-height: 40px;
  padding-inline: 14px;
}

main { overflow: clip; }

.container,
.story,
.module-list,
.access,
.beta,
.contact,
.demo-shell,
.demo-hero,
.demo-product-overview {
  width: min(var(--container), calc(100% - 44px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .78fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  padding: clamp(56px, 8vw, 112px) clamp(20px, 6vw, 86px);
  background:
    radial-gradient(circle at 84% 12%, rgba(37, 99, 235, .16), transparent 34%),
    linear-gradient(135deg, #ffffff, #f1f5f9);
}

.hero-copy { min-width: 0; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-700);
  font-size: .75rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lead {
  max-width: 760px;
  color: var(--slate-700);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.note,
.form-note,
.fine-print {
  margin: 12px 0 0;
  color: var(--slate-500);
  font-size: .9rem;
}

.ops-board,
.status-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(7, 27, 52, .22);
}

.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  font-weight: 900;
}

.board-status {
  padding: 6px 10px;
  border: 1px solid rgba(219, 234, 254, .3);
  border-radius: 999px;
  color: var(--blue-100);
  font-size: .75rem;
}

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

.metric-card,
.demo-metrics article,
.status-panel div {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
}

.metric-card span,
.demo-metrics span,
.status-panel span {
  display: block;
  color: #cbd5e1;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-card strong,
.demo-metrics strong,
.status-panel strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.board-lanes {
  display: grid;
  gap: 10px;
}

.lane {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(219, 234, 254, .22);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  color: #e2e8f0;
}

.lane b { color: #fff; }
.lane small { color: #cbd5e1; }

.story,
.module-list,
.access,
.beta,
.contact {
  padding: clamp(48px, 7vw, 86px) 0;
}

.story,
.access,
.beta {
  display: grid;
  gap: 20px;
}

.story p,
.beta p,
.access p {
  max-width: 850px;
  color: var(--slate-700);
  font-size: 1.08rem;
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 840px;
  margin-bottom: 24px;
}

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

.grid article,
.module-card,
.info-card,
.integration-grid article,
.simple-card {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .06);
}

.module-card {
  display: grid;
  gap: 10px;
}

.module-card p,
.grid p,
.integration-grid p {
  margin: 0;
  color: var(--slate-700);
}

.chip-row,
.role-grid,
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.role-grid span,
.tag,
.demo-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--blue-900);
  font-size: .78rem;
  font-weight: 850;
}

.access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 28px;
  align-items: start;
}

.examples,
.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.examples li {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--slate-100);
  color: var(--blue-900);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(300px, 1fr);
  gap: 32px;
  align-items: start;
}

.contact-form,
.auth-card,
.auth-info {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--slate-700);
  font-size: .9rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 13px 14px;
  color: var(--slate-900);
  background: #fff;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue-700);
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .28);
  outline-offset: 2px;
}

.site-footer {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  padding: 26px clamp(20px, 6vw, 86px);
  background: var(--navy);
  color: #fff;
}

.site-footer span { color: #cbd5e1; }
.site-footer a { color: #dbeafe; font-weight: 850; }

/* Auth/login */
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 12%, rgba(37, 99, 235, .20), transparent 28%),
    linear-gradient(135deg, var(--blue-950), var(--navy));
}

.auth-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, .78fr);
  gap: 24px;
  align-items: center;
  padding: 42px 0;
}

.auth-card .brand { margin-bottom: 8px; }
.auth-card h1,
.auth-info h2 { font-size: clamp(2rem, 5vw, 3.65rem); }

.auth-info {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
}

.auth-info h2,
.auth-info p,
.auth-info li { color: #e2e8f0; }
.auth-info .eyebrow { color: #93c5fd; }

.auth-info ul {
  margin: 0;
  padding-left: 20px;
  color: #e2e8f0;
}

.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.check-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--slate-100);
  color: var(--blue-700);
  font-weight: 850;
  text-align: center;
  overflow-wrap: anywhere;
}

.auth-card form {
  display: grid;
  gap: 14px;
}

.auth-card form .button {
  width: fit-content;
  min-width: 132px;
}

.login-examples-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--slate-100);
}

.login-examples-card span {
  display: block;
  padding: 10px 12px;
  border-radius: 11px;
  background: #fff;
  color: var(--blue-900);
  font-weight: 850;
  overflow-wrap: anywhere;
}

/* Demo */
.demo-page { background: var(--bg); }

.demo-header { justify-content: space-between; }

.demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: clamp(44px, 7vw, 74px) 0 24px;
}

.demo-product-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 24px;
}

.demo-product-overview article {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 36px rgba(15, 23, 42, .06);
}

.demo-product-overview b {
  display: block;
  color: var(--blue-900);
}

.demo-product-overview span {
  display: block;
  color: var(--slate-600);
}

.demo-shell {
  display: grid;
  gap: 18px;
  padding: 22px;
  margin-bottom: 48px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.tab-list {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.tab-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-900);
  font-weight: 850;
  cursor: pointer;
}

.tab-button[aria-selected="true"] {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: #fff;
}

.demo-view {
  display: none;
  gap: 16px;
}

.demo-view.active { display: grid; }

.demo-view h2 { margin-bottom: 0; }

.demo-shell .demo-metrics article {
  border-color: var(--border);
  background: var(--slate-100);
}

.demo-shell .demo-metrics span {
  color: var(--slate-500);
}

.demo-shell .demo-metrics strong {
  color: var(--blue-900);
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.demo-chart,
.noc-visual {
  min-height: 260px;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(37, 99, 235, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .08) 1px, transparent 1px),
    var(--slate-100);
  background-size: 24px 24px;
}

.demo-chart i {
  flex: 1;
  min-width: 16px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #3b82f6, #0b3a75);
}

.noc-visual {
  position: relative;
  align-items: center;
  justify-content: center;
}

.noc-visual::before,
.noc-visual::after {
  content: "";
  position: absolute;
  inset: 48px;
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 50%;
}

.noc-visual::after {
  inset: 82px;
}

.noc-visual span {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-700);
  box-shadow: 0 0 0 8px rgba(37, 99, 235, .14);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.data-table th {
  color: var(--blue-900);
  background: var(--slate-100);
  font-size: .86rem;
}

.data-table tr:last-child td { border-bottom: 0; }

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

.data-cards article {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

/* Simple pages */
.simple-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 84% 12%, rgba(37, 99, 235, .15), transparent 28%),
    var(--bg);
}

.simple-shell {
  width: min(760px, 100%);
  display: grid;
  gap: 16px;
  padding: clamp(24px, 5vw, 42px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

@media (max-width: 1024px) {
  .site-nav { display: none; }
  .hero,
  .access,
  .contact,
  .auth-shell,
  .demo-grid {
    grid-template-columns: 1fr;
  }
  .grid,
  .module-grid,
  .integration-grid,
  .demo-product-overview,
  .data-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  .demo-header {
    min-height: 64px;
    padding: 10px 16px;
    gap: 10px;
  }
  .brand { gap: 8px; }
  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .header-actions {
    margin-left: auto;
    gap: 8px;
  }
  .header-actions .secondary,
  .header-actions .btn-light,
  .demo-header .header-actions .secondary {
    display: none;
  }
  .button,
  .btn {
    min-height: 42px;
    padding-inline: 13px;
    border-radius: 11px;
    font-size: .88rem;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 20px 50px;
  }
  h1 {
    font-size: clamp(2.25rem, 10vw, 3.15rem);
    line-height: 1.02;
  }
  h2 {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }
  .hero-actions {
    align-items: stretch;
  }
  .hero-actions .button,
  .hero-actions .btn {
    width: 100%;
  }
  .hero-actions .ghost,
  .hero-actions .btn-link {
    width: auto;
    justify-content: flex-start;
  }
  .container,
  .story,
  .module-list,
  .access,
  .beta,
  .contact,
  .demo-shell,
  .demo-hero,
  .demo-product-overview {
    width: min(100% - 40px, var(--container));
  }
  .story,
  .module-list,
  .access,
  .beta,
  .contact {
    padding-block: 44px;
  }
  .grid,
  .module-grid,
  .integration-grid,
  .demo-product-overview,
  .data-cards,
  .metric-grid,
  .demo-metrics {
    grid-template-columns: 1fr;
  }
  .ops-board,
  .status-panel {
    padding: 14px;
    border-radius: 18px;
  }
  .lane {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .contact-form,
  .auth-card,
  .auth-info,
  .demo-shell {
    padding: 18px;
    border-radius: 18px;
  }
  .auth-shell {
    width: min(100% - 28px, 1120px);
    padding: 22px 0;
  }
  .auth-card h1,
  .auth-info h2 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }
  .check-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .role-grid,
  .tab-list {
    gap: 7px;
  }
  .demo-hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 38px;
  }
  .demo-chart,
  .noc-visual {
    min-height: 210px;
    overflow: hidden;
  }
  .data-table {
    display: block;
    border: 0;
    background: transparent;
  }
  .data-table thead { display: none; }
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }
  .data-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
  }
  .data-table td {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    overflow-wrap: anywhere;
  }
  .data-table td:last-child { border-bottom: 0; }
  .data-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--slate-500);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
  }
  .auth-card form .button {
    width: 100%;
  }
  .auth-links {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}
