:root {
  --navy-900: #071827;
  --navy-800: #0B1F33;
  --text-secondary: #33475A;
  --text-muted: #5B6B7A;
  --text-faint: #8493A0;
  --brand: #15966A;
  --brand-action: #0F7A55;
  --brand-tint-bg: #EAF3EF;
  --bg: #F7F8F6;
  --white: #FFFFFF;
  --border: #E1E6E2;
  --border-strong: #D8E0DA;
  --amber-text: #B4791B;
  --amber-text-strong: #8A5E13;
  --amber-bg: #FBF3E4;
  --amber-border: #EEDFBE;
  --red: #C0392B;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--bg); }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy-800);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-800); text-decoration: none; }
a:hover { color: var(--brand); }

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

/* ---------- header ---------- */

.site-header {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 32px;
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.wordmark { height: 28px; width: 114px; display: block; }
.brand-tag { font-size: 11px; font-weight: 500; letter-spacing: .1em; color: var(--text-faint); }

.site-header nav { display: flex; align-items: center; gap: 26px; font-size: 13.5px; color: var(--text-muted); }

.nav-cta {
  background: var(--navy-800);
  color: var(--white) !important;
  padding: 9px 15px;
  border-radius: 8px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--text-secondary); color: var(--white) !important; }

/* ---------- hero ---------- */

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 32px 76px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 56px;
  align-items: center;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); display: inline-block; }

.hero-copy h1 {
  font-size: clamp(36px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 22px 0 0;
}

.hero-copy .lead {
  font-size: clamp(15.5px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--text-muted);
  margin: 20px 0 0;
  text-wrap: pretty;
}

.hero-copy .sub {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-faint);
  margin: 16px 0 0;
  text-wrap: pretty;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--brand); color: var(--white) !important; }
.btn-primary:hover { background: var(--brand-action); color: var(--white) !important; }
.btn-secondary { border-color: var(--border-strong); background: #FCFDFC; color: var(--navy-800) !important; }
.btn-secondary:hover { border-color: var(--navy-800); color: var(--navy-800) !important; }

.fine-print { font-size: 13px; color: var(--text-faint); margin: 18px 0 0; }

/* ---------- product demo ---------- */

.demo-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.demo-frame { width: 100%; max-width: 660px; }

.demo-inner {
  background: var(--navy-800);
  border-radius: 14px 14px 6px 6px;
  padding: 12px 12px 14px;
  box-shadow: 0 28px 60px -26px rgba(11,31,51,.45);
}

.demo-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
}

.demo-sidebar {
  width: 21%;
  min-width: 108px;
  background: var(--navy-900);
  padding: 12px 9px;
  display: flex;
  flex-direction: column;
}

.demo-sidebar-brand { display: flex; align-items: center; gap: 6px; padding: 2px 6px 14px; }
.demo-sidebar-brand img { width: 11px; height: 13px; display: block; }
.demo-sidebar-brand span { color: var(--white); font-size: 8px; font-weight: 700; letter-spacing: .12em; }

.demo-nav { position: relative; }
.demo-nav-highlight {
  position: absolute;
  left: 0; right: 0;
  height: 21px;
  border-radius: 5px;
  background: rgba(255,255,255,.09);
  top: 0;
  transition: top .4s cubic-bezier(.4,0,.2,1);
}
.demo-nav-items { position: relative; display: flex; flex-direction: column; gap: 3px; }
.demo-nav-items div { height: 21px; display: flex; align-items: center; padding: 0 7px; font-size: 9.5px; color: #C9D4DC; }

.demo-sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.09); padding: 9px 7px 0; }
.demo-sidebar-foot .org { color: var(--white); font-size: 8.5px; font-weight: 600; }
.demo-sidebar-foot .person { color: #7C90A2; font-size: 8px; margin-top: 4px; }

.demo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.demo-topbar {
  background: var(--white);
  border-bottom: 1px solid #E7EBE8;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.demo-page-title { font-size: 11px; font-weight: 700; color: var(--navy-800); }
.demo-topbar-right { display: flex; align-items: center; gap: 6px; }
.kbd { font-size: 8px; color: #A9B4BD; border: 1px solid var(--border); border-radius: 4px; padding: 3px 6px; }
.avatar { background: var(--navy-800); color: var(--white); font-size: 8px; font-weight: 600; border-radius: 5px; padding: 4px 6px; }

.demo-body { position: relative; flex: 1; min-height: 0; }

.scene {
  position: absolute;
  inset: 0;
  padding: 13px 14px;
  display: none;
  animation: om-scr .5s ease both;
}
.scene.is-active { display: block; }
.scene.is-active.is-grid { display: grid; gap: 12px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px;
}
.card-title {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.scene-title { font-size: 13px; font-weight: 700; letter-spacing: -0.02em; }
.scene-sub { font-size: 9.5px; color: var(--text-muted); margin-top: 3px; }

.up { animation: om-up .5s ease both; }
.in { animation: om-in .5s ease both; }
.flag { animation: om-flag 4s linear both; }

.demo-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 58px;
  background: linear-gradient(to top, rgba(11,31,51,.94) 35%, rgba(11,31,51,0));
  pointer-events: none;
}

.demo-caption-row {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  height: 22px;
  display: flex;
  align-items: flex-end;
}
.demo-caption {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--white);
  display: none;
}
.demo-caption.is-active {
  display: inline;
  animation: om-cap .45s ease both;
}

.demo-stand-top {
  height: 11px;
  margin: 0 auto;
  width: 116%;
  transform: translateX(-6.9%);
  background: linear-gradient(#D8DEDA, #B9C2BC);
  border-radius: 0 0 10px 10px;
}
.demo-stand-base {
  height: 4px;
  width: 62px;
  margin: -11px auto 0;
  background: #C5CCC7;
  border-radius: 0 0 4px 4px;
}

.demo-hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; }

/* ---------- security ---------- */

.security { background: var(--navy-900); color: var(--white); }
.security-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 84px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
}
.security-copy { max-width: 460px; }
.security-copy h2 {
  font-size: clamp(27px, 3.1vw, 37px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0;
}
.security-copy p { font-size: 15.5px; line-height: 1.6; color: #A9B4BD; margin: 20px 0 0; text-wrap: pretty; }
.security-copy p.muted { font-size: 13.5px; color: #7C90A2; margin-top: 16px; }

.security-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px; }
.security-grid h3 { font-size: 14.5px; font-weight: 600; margin: 0; }
.security-grid p { font-size: 13.5px; line-height: 1.55; color: #A9B4BD; margin: 7px 0 0; }

/* ---------- waitlist ---------- */

.waitlist {
  max-width: 1240px;
  margin: 0 auto;
  padding: 84px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.waitlist-copy { max-width: 520px; }
.waitlist-copy h2 {
  font-size: clamp(25px, 2.9vw, 33px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0;
}
.waitlist-copy p { font-size: 15.5px; line-height: 1.6; color: var(--text-muted); margin: 16px 0 0; }

.waitlist-form { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist-form input {
  font-family: inherit;
  font-size: 14.5px;
  padding: 13px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #FCFDFC;
  color: var(--navy-800);
  min-width: 240px;
}
.waitlist-form input:focus-visible { outline: 2px solid var(--brand-action); outline-offset: 1px; }
.waitlist-form button[disabled] { opacity: 0.6; cursor: default; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-status {
  flex-basis: 100%;
  font-size: 13.5px;
  margin: 0;
  min-height: 1.4em;
}
.waitlist-status.is-success { color: var(--brand-action); }
.waitlist-status.is-error { color: var(--red); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid #E7EBE8;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- keyframes (verbatim from the approved design) ---------- */

@keyframes om-scr { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes om-up { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes om-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes om-cap { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes om-upl { 0% { width: 4%; } 55% { width: 100%; } 100% { width: 100%; } }
@keyframes om-tap { 0% { opacity: 0; transform: scale(.7); } 25% { opacity: .3; } 60%, 100% { opacity: 0; transform: scale(1.4); } }
@keyframes om-ready { 0%, 26% { width: 54%; } 36%, 60% { width: 72%; } 70%, 100% { width: 86%; } }
@keyframes om-n1 { 0%, 26% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes om-n2 { 0%, 28% { opacity: 0; } 36%, 60% { opacity: 1; } 67%, 100% { opacity: 0; } }
@keyframes om-n3 { 0%, 62% { opacity: 0; } 70%, 100% { opacity: 1; } }
@keyframes om-flag { 0%, 40% { border-color: var(--border); background: var(--white); } 60%, 100% { border-color: var(--amber-border); background: var(--amber-bg); } }

@media (prefers-reduced-motion: reduce) {
  .scene, .up, .in, .flag, .demo-caption.is-active {
    animation: none !important;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .site-header { padding: 18px 20px; }
  .site-header nav { gap: 14px; font-size: 12.5px; }
  .hero { padding: 12px 20px 56px; gap: 36px; }
  .security-inner, .waitlist { padding: 56px 20px; }
  .site-footer { padding: 20px; flex-direction: column; gap: 6px; }
  .waitlist-form { width: 100%; }
  .waitlist-form input { flex: 1 1 auto; min-width: 0; }
}
