:root {
  color-scheme: dark;
  --bg: #060b13;
  --bg-elevated: #0a1220;
  --panel: #0f1929;
  --panel-strong: #111d30;
  --line: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(148, 163, 184, 0.34);
  --text: #f8fafc;
  --muted: #a7b3c4;
  --soft: #718096;
  --cyan: #6ee7f9;
  --teal: #5eead4;
  --blue: #60a5fa;
  --green: #86efac;
  --amber: #fcd34d;
  --danger: #fb7185;
  --paper: #f5f8fb;
  --ink: #07111f;
  --radius: 18px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #050a12;
  color: var(--text);
  letter-spacing: 0;
}

main {
  background:
    radial-gradient(circle at 15% 6%, rgba(45, 212, 191, 0.14), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(96, 165, 250, 0.15), transparent 30%),
    linear-gradient(180deg, #050a12 0, #08111f 1040px, #f5f8fb 1040px, #f5f8fb 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(7, 14, 25, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #cbd5e1;
  font-size: 14px;
}

.nav a,
.ghost-link,
.footer a {
  color: #cbd5e1;
  transition: color 160ms ease;
}

.nav a:hover,
.ghost-link:hover,
.footer a:hover {
  color: white;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(45, 212, 191, 0.32);
  border-radius: 13px;
  background: linear-gradient(135deg, #c4f1ff 0%, #5eead4 100%);
  color: #04111d;
  font-weight: 700;
  padding: 0 18px;
  box-shadow: 0 16px 34px rgba(45, 212, 191, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(45, 212, 191, 0.26);
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  width: min(1280px, calc(100% - 40px));
  min-height: calc(100vh - 94px);
  margin: 0 auto;
  padding: 82px 0 66px;
}

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

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

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

h1 {
  max-width: 640px;
  margin-bottom: 22px;
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.hero-lede {
  max-width: 600px;
  margin-bottom: 30px;
  color: #c6d2e0;
  font-size: 19px;
  line-height: 1.7;
}

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

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 34px 0 0;
}

.hero-proof div,
.metric-card,
.workflow-card,
.capability-grid article,
.security-grid article {
  border: 1px solid var(--line);
  background: rgba(15, 25, 41, 0.72);
}

.hero-proof div {
  min-width: 0;
  border-radius: 16px;
  padding: 14px;
}

.hero-proof dt,
.metric-card span,
.panel-label {
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-proof dd {
  margin: 8px 0 0;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 650;
}

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

/* Hero console-mockup widget + logo strip now live in landing-hero.css
   (index.html only, not loaded on subpages) — see that file for
   .console-*, .metric-row/.metric-card, .workbench/.queue/.device-row,
   .status, .device-panel, .health-bar, .endpoint-facts, .action-list,
   .activity-strip, and .logo-strip. */

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
  color: var(--ink);
}

.section h2,
.final-cta h2 {
  max-width: 760px;
  margin-bottom: 20px;
  color: #07111f;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1.02;
}

.section p,
.final-cta p {
  max-width: 690px;
  color: #475569;
  font-size: 17px;
  line-height: 1.75;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 44px;
  align-items: start;
}

.capability-grid,
.workflow-grid,
.security-grid {
  display: grid;
  gap: 14px;
}

.capability-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.capability-grid article,
.workflow-card,
.security-grid article {
  border-color: rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  background: white;
  color: var(--ink);
  padding: 24px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.capability-grid h3,
.workflow-card h3,
.security-grid h3,
.steps h3 {
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 20px;
}

.capability-grid p,
.workflow-card p,
.security-grid p,
.steps p {
  margin-bottom: 0;
  color: #526174;
  font-size: 15px;
  line-height: 1.68;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 13px;
  background: #e6fffb;
  color: #0f766e;
}

.icon svg {
  width: 24px;
  height: 24px;
}

.security-grid .icon {
  background: rgba(94, 234, 212, 0.12);
  color: #14b8a6;
}

.narrative {
  text-align: center;
}

.narrative h2,
.narrative p {
  margin-left: auto;
  margin-right: auto;
}

.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px;
  text-align: left;
}

.proof-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
  border-radius: 30px;
  background: #07111f;
  color: white;
  padding: 54px;
}

.proof-panel h2 {
  color: white;
}

.proof-panel p {
  color: #b9c5d5;
}

.proof-list {
  display: grid;
  gap: 12px;
}

.proof-list div {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  padding: 18px;
}

.proof-list strong {
  display: block;
  margin-bottom: 8px;
}

.proof-list span {
  color: #b9c5d5;
  line-height: 1.62;
}

.security {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
}

.security-grid {
  grid-template-columns: 1fr;
}

.migration {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  background: white;
  padding: 22px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.steps li > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: #07111f;
  color: white;
  font-weight: 800;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 44px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  border-radius: 30px;
  background:
    radial-gradient(circle at 16% 12%, rgba(94, 234, 212, 0.2), transparent 26%),
    linear-gradient(135deg, #07111f, #0d1b2e);
  padding: 56px;
}

.final-cta h2 {
  color: white;
}

.final-cta p {
  color: #c0ccdb;
}

.demo-form {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  padding: 20px;
}

.demo-form label {
  display: grid;
  gap: 8px;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 700;
}

.demo-form input {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 13px;
  background: rgba(3, 9, 18, 0.62);
  color: white;
  font: inherit;
  padding: 0 13px;
  outline: none;
}

.demo-form input:focus {
  border-color: rgba(94, 234, 212, 0.72);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.12);
}

.demo-form p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

.demo-form a {
  color: #a7f3d0;
  font-weight: 700;
}

.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  color: #475569;
  padding: 72px 0 36px;
  font-size: 14px;
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 40px;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  padding-top: 44px;
}

.footer-brand {
  max-width: 360px;
}

.footer .brand {
  color: #07111f;
  margin-bottom: 14px;
}

.footer .brand img {
  width: 30px;
  height: 30px;
}

.footer-brand p {
  margin: 0 0 10px;
  color: #526174;
  font-size: 14px;
  line-height: 1.6;
}

.footer-brand .compliance {
  color: #0f766e;
  font-size: 12.5px;
  font-weight: 650;
}

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

.footer-nav h4 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-nav a {
  display: block;
  margin-bottom: 9px;
  color: #526174;
  font-weight: 600;
  transition: color 160ms ease;
}

.footer-nav a:hover {
  color: #0f766e;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  color: #64748b;
  font-size: 13px;
}

.footer-bottom a {
  color: #0f766e;
  font-weight: 700;
}

/* Hero trust line */
.hero-trust {
  margin: 18px 0 0;
  color: #8aa0b8;
  font-size: 13px;
  font-weight: 600;
}

/* Stat band */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 26px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(148, 163, 184, 0.12);
}

.stat {
  background: rgba(9, 18, 31, 0.9);
  padding: 22px 20px;
}

.stat strong {
  display: block;
  margin-bottom: 8px;
  color: #f8fafc;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.stat span {
  display: block;
  color: #93a4b8;
  font-size: 13px;
  line-height: 1.55;
}

/* Security intro note */
.security-note {
  margin-top: 18px;
}

/* Testimonial / quote */
.quote {
  margin: 28px 0 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-left: 3px solid var(--teal);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px 22px;
}

.quote blockquote {
  margin: 0 0 12px;
  color: #e8eef6;
  font-size: 16px;
  line-height: 1.6;
}

.quote figcaption {
  color: #9fb0c3;
  font-size: 13px;
}

.quote figcaption span {
  color: #d7e2ee;
  font-weight: 700;
}

[data-needs-content] {
  position: relative;
}

/* Form status */
.form-status {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.form-status.error {
  color: #fecdd3;
}

.form-status.success {
  color: #a7f3d0;
}

.demo-form button[disabled] {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

/* Reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms ease, transform 560ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus visibility (a11y) */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 6px;
}

.demo-form input:focus-visible {
  outline-offset: 0;
}

@media (max-width: 1020px) {
  .nav {
    display: none;
  }

  .stat-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero,
  .split,
  .proof-panel,
  .security,
  .migration,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 70px;
  }

  .hero-visual {
    order: 0;
  }

  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  main {
    background:
      radial-gradient(circle at 18% 3%, rgba(45, 212, 191, 0.14), transparent 24%),
      linear-gradient(180deg, #050a12 0, #08111f 1760px, #f5f8fb 1760px, #f5f8fb 100%);
  }

  .site-header {
    width: min(100% - 24px, 1180px);
  }

  .header-actions .ghost-link {
    display: none;
  }

  .hero,
  .section,
  .final-cta,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(38px, 11.2vw, 42px);
    line-height: 1.02;
    letter-spacing: -0.02em;
  }

  .hero {
    gap: 36px;
    padding: 48px 0 56px;
  }

  .hero-lede {
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 1.58;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-trust {
    line-height: 1.55;
  }

  .hero-proof,
  .capability-grid,
  .workflow-grid,
  .stat-band {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section {
    padding: 68px 0;
  }

  .proof-panel,
  .final-cta {
    padding: 28px;
    border-radius: 24px;
  }
}

/* Inline text link (light sections) */
.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: #0f766e;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}

.text-link:hover {
  border-bottom-color: #0f766e;
}

/* ============================================================
   Subpages (e.g. /security.html) — shared styling
   ============================================================ */
.subpage {
  overflow-x: clip;
  background: #f5f8fb;
}

.nav a[aria-current="page"] {
  color: #fff;
  font-weight: 700;
}

.page-hero {
  position: relative;
  z-index: 0;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 56px;
  text-align: center;
}

.page-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw);
  background:
    radial-gradient(circle at 12% 4%, rgba(45, 212, 191, 0.16), transparent 30%),
    radial-gradient(circle at 84% 0%, rgba(96, 165, 250, 0.14), transparent 32%),
    linear-gradient(180deg, #050a12 0%, #08111f 100%);
  content: "";
}

.page-hero h1 {
  max-width: 880px;
  margin: 0 auto 22px;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.page-hero .eyebrow {
  margin-bottom: 16px;
}

.page-hero-lede {
  max-width: 720px;
  margin: 0 auto 30px;
  color: #c6d2e0;
  font-size: 18px;
  line-height: 1.7;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Reverse the two-column rhythm on alternating split sections */
.split.reverse > *:first-child {
  order: 2;
}

/* proof-list variant for light sections (dark text on white cards) */
.dark-list div {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.dark-list strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 16px;
}

.dark-list span {
  color: #526174;
  font-size: 15px;
  line-height: 1.62;
}

/* Compliance posture list */
.compliance-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
}

.posture-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.posture-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  padding: 16px 18px;
  color: #334155;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.posture-state {
  flex-shrink: 0;
  min-width: 86px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.posture-state.live {
  background: #dcfce7;
  color: #15803d;
}

.posture-state.in-progress {
  background: #fef3c7;
  color: #b45309;
}

.posture-state.planned {
  background: #e2e8f0;
  color: #475569;
}

/* Subpage CTA side column */
.cta-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.cta-side .button {
  width: 100%;
}

.cta-note {
  margin: 6px 0 0;
  color: #c0ccdb;
  font-size: 13px;
}

.cta-note a {
  color: #a7f3d0;
  font-weight: 700;
}

@media (max-width: 1020px) {
  .compliance-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .split.reverse > *:first-child {
    order: 0;
  }
}

@media (max-width: 720px) {
  .page-hero {
    width: min(100% - 32px, 1180px);
    padding: 56px 0 52px;
  }

  .page-hero h1 {
    font-size: clamp(36px, 10.5vw, 44px);
  }

  .page-hero-lede {
    font-size: 17px;
    line-height: 1.62;
  }

  .page-hero-actions {
    display: grid;
    width: 100%;
    max-width: 340px;
    grid-template-columns: 1fr;
    margin: 0 auto;
    justify-content: stretch;
  }

  .page-hero-actions .button {
    width: 100%;
  }
}
