:root {
  --bg: #0b1e3f;
  --bg-deep: #07142b;
  --surface: #ffffff;
  --surface-muted: #f4f6fb;
  --text: #0f172a;
  --text-on-dark: #e6ecf5;
  --text-muted: #5b6781;
  --text-muted-on-dark: #9aa9c4;
  --border: #e3e8f1;
  --border-on-dark: #1c3260;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1200px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 30px 80px -20px rgba(245, 158, 11, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

p { margin: 0 0 1em; }

code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.4em;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 30, 63, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-on-dark);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  color: var(--text-on-dark);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
}
.brand__mark { color: var(--accent); font-size: 1.1rem; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn--sm { padding: 8px 16px; font-size: 0.9rem; }
.btn--primary {
  background: var(--accent);
  color: #1a1206;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--border-on-dark);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: rgba(255, 255, 255, 0.04);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text-on-dark);
  overflow: hidden;
  padding: 80px 0 120px;
}
.hero__inner { position: relative; z-index: 2; max-width: 1080px; }
.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(245, 158, 11, 0.18) 0%, transparent 60%),
    radial-gradient(40% 40% at 10% 100%, rgba(56, 189, 248, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

.hero__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge--ghost {
  background: transparent;
  color: var(--text-muted-on-dark);
  border-color: var(--border-on-dark);
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero__title-accent { color: var(--accent); font-weight: 700; }

.hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--text-muted-on-dark);
  max-width: 880px;
  margin: 0 0 36px;
  text-wrap: pretty;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

.hero code {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
}

.hero__points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  color: var(--text-muted-on-dark);
  font-size: 0.98rem;
}
.hero__points li {
  position: relative;
  padding-left: 28px;
}
.hero__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Context band ───────────────────────────────────────── */
.context {
  background: var(--bg-deep);
  color: var(--text-muted-on-dark);
  border-top: 1px solid var(--border-on-dark);
  border-bottom: 1px solid var(--border-on-dark);
  padding: 24px 0;
}
.context__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.context__pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border-on-dark);
  border-radius: 999px;
  color: var(--accent-hover);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.context p { margin: 0; font-size: 0.96rem; flex: 1; min-width: 280px; }

/* ── Section base ───────────────────────────────────────── */
.section {
  padding: 96px 0;
  background: var(--surface);
}
.section--alt { background: var(--surface-muted); }

.section__head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}
.section__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section__title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text);
}
.section__lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Features grid ──────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: var(--shadow-md);
}
.feature__num {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  padding: 4px 10px;
  background: var(--accent-soft);
  border-radius: 6px;
}
.feature__title {
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* ── Compare table ──────────────────────────────────────── */
.compare {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}
.compare__table thead th {
  background: var(--surface-muted);
  padding: 18px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.compare__table thead th.is-us {
  color: var(--text);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.04) 100%);
  position: relative;
}
.compare__table thead th.is-us::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
}
.compare__table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  padding: 16px 20px;
  background: var(--surface-muted);
  width: 24%;
  vertical-align: top;
}
.compare__table tbody td {
  padding: 16px 20px;
  color: var(--text-muted);
  vertical-align: top;
  border-left: 1px solid var(--border);
}
.compare__table tbody td.is-us {
  color: var(--text);
  font-weight: 500;
  background: rgba(245, 158, 11, 0.04);
}
.compare__table tbody tr {
  border-top: 1px solid var(--border);
}
.compare__table tbody tr:first-child { border-top: none; }
.compare__table code {
  background: rgba(15, 23, 42, 0.06);
}

@media (max-width: 720px) {
  .compare__table { font-size: 0.88rem; }
  .compare__table thead th,
  .compare__table tbody th,
  .compare__table tbody td { padding: 12px 14px; }
  .compare__table tbody th { width: 36%; }
}

/* ── Security pillars ───────────────────────────────────── */
.security {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .security { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .security { grid-template-columns: 1fr; } }

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 60%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.pillar:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: var(--shadow-md);
}
.pillar__num {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.pillar h3 {
  font-size: 1.14rem;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.pillar p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }

/* ── Screens (UI mockups) ───────────────────────────────── */
.screens {
  display: grid;
  gap: 56px;
  max-width: 980px;
  margin: 0 auto;
}

.screen-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.screen-fig figcaption {
  margin-top: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 720px;
}

.screen {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.18), 0 6px 16px -8px rgba(15, 23, 42, 0.08);
}

.screen__chrome {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f8 100%);
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
}
.screen__dots { display: inline-flex; gap: 6px; }
.screen__dots i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #d6dbe6;
  display: inline-block;
}
.screen__dots i:nth-child(1) { background: #ef4444; opacity: 0.55; }
.screen__dots i:nth-child(2) { background: #f59e0b; opacity: 0.55; }
.screen__dots i:nth-child(3) { background: #10b981; opacity: 0.55; }
.screen__title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 600;
  color: var(--text);
}
.screen__user {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
}

.screen__body { padding: 20px 24px 24px; }
.screen__body--flush { padding: 0; }

.screen__toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.screen__search {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.86rem;
  color: #94a0b8;
  background: var(--surface-muted);
}
.screen__btn {
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  white-space: nowrap;
}
.screen__btn--primary {
  background: var(--accent);
  color: #1a1206;
  border-color: var(--accent);
}

.screen__table,
.screen__roles {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.screen__table thead th,
.screen__roles thead th {
  text-align: left;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}
.screen__table tbody td,
.screen__roles tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.screen__table tbody tr:last-child td,
.screen__roles tbody tr:last-child td { border-bottom: none; }
.screen__table tbody tr:hover { background: rgba(245, 158, 11, 0.04); }
.screen__table tbody tr.is-active {
  background: rgba(245, 158, 11, 0.08);
  position: relative;
}
.screen__table tbody tr.is-active td:first-child {
  box-shadow: inset 3px 0 0 0 var(--accent);
}
.screen__table tbody td:first-child {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.screen__roles tbody td {
  vertical-align: middle;
}
.screen__roles tbody td:not(:first-child) { text-align: center; width: 13%; }
.screen__roles tbody td:first-child { color: var(--text); }

.dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot--on {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
.dot--off {
  background: transparent;
  border: 1.5px solid #d6dbe6;
}

.screen__map {
  width: 100%;
  height: auto;
  display: block;
  background: #eef2f8;
}

@media (max-width: 720px) {
  .screen__title { display: none; }
  .screen__body { padding: 14px 12px 16px; }
  .screen__table,
  .screen__roles { font-size: 0.78rem; }
  .screen__table thead th,
  .screen__roles thead th,
  .screen__table tbody td,
  .screen__roles tbody td { padding: 8px 8px; }
  .screen-fig { overflow-x: auto; }
}

/* ── Compare table — 4 cols ─────────────────────────────── */
.compare__table tbody td.is-us,
.compare__table thead th.is-us {
  position: relative;
}
@media (max-width: 720px) {
  .compare__table thead th { font-size: 0.78rem; padding: 10px 10px; }
  .compare__table tbody th { width: 30%; }
}

/* ── Platforms ──────────────────────────────────────────── */
.platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .platforms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .platforms { grid-template-columns: 1fr; } }

.platform {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.platform:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: var(--shadow-md);
}
.platform__os {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 10px;
  border-radius: 5px;
  margin-bottom: 16px;
}
.platform__name {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.platform p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}
.platforms__note {
  margin: 32px auto 0;
  max-width: 680px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Final CTA ──────────────────────────────────────────── */
.cta {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text-on-dark);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 70% at 50% 0%, rgba(245, 158, 11, 0.16) 0%, transparent 70%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.cta h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.cta p { color: var(--text-muted-on-dark); font-size: 1.05rem; margin: 0 0 32px; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-deep);
  color: var(--text-muted-on-dark);
  padding: 28px 0;
  border-top: 1px solid var(--border-on-dark);
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer__contact { color: var(--text-on-dark); }
.site-footer__contact:hover { color: var(--accent); }

/* ── Modal ──────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 43, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.5);
  animation: modal-in 0.2s ease-out;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #94a0b8;
  cursor: pointer;
  border-radius: 8px;
  font-family: inherit;
}
.modal__close:hover {
  background: var(--surface-muted);
  color: var(--text);
}
.modal__title {
  font-size: 1.36rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--text);
  text-wrap: balance;
}
.modal__lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 24px;
}
.modal__form { display: grid; gap: 16px; }
.field { display: block; }
.field__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.96rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
.modal__submit {
  width: 100%;
  justify-content: center;
}
.modal__error {
  margin: 0;
  padding: 10px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 6px;
  font-size: 0.88rem;
}
.modal__success {
  text-align: center;
  padding: 8px 0 4px;
}
.modal__success h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--accent);
}
.modal__success p {
  color: var(--text-muted);
  margin: 0;
}

/* Lock body scroll when modal is open */
body.is-modal-open { overflow: hidden; }
