:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #101c2f;
  --panel-deep: #0b1728;
  --current-panel: #102a32;
  --line: #22314a;
  --line-strong: #314764;
  --text: #f8fafc;
  --muted: #9aabc2;
  --quiet: #64748b;
  --mint: #34d399;
  --mint-soft: #a7f3d0;
  --cyan: #38bdf8;
  --coral: #fb7185;
  --amber: #fbbf24;
  --shell: 1440px;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.shell { width: min(calc(100% - 64px), var(--shell)); margin-inline: auto; }
.narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; color: #00140d; background: var(--mint); border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(7, 17, 31, .97); border-bottom: 1px solid var(--line-strong); }
.header-inner { min-height: 88px; display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; font-size: 1.45rem; font-weight: 850; letter-spacing: -.035em; white-space: nowrap; }
.brand img { width: 50px; height: 50px; border: 1px solid var(--line-strong); border-radius: 13px; }
.site-nav { justify-self: center; display: flex; align-items: center; gap: 29px; }
.site-nav a { color: #d9e2ef; text-decoration: none; font-size: .94rem; font-weight: 720; padding-block: 30px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.active { color: var(--text); border-bottom-color: var(--mint); }
.header-actions, .button-row, .cta-actions { display: flex; align-items: center; gap: 14px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 23px; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--text); text-decoration: none; font-weight: 800; line-height: 1.2; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #03150f; background: var(--mint); border-color: var(--mint); }
.button-primary:hover { background: #5ce2b2; }
.button-quiet { background: transparent; }
.button-quiet:hover { border-color: #71849f; background: var(--panel); }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel); }
.menu-toggle span:not(.sr-only) { display: block; height: 3px; margin: 5px 0; border-radius: 99px; background: var(--text); }

.hero { padding: 72px 0 58px; border-bottom: 1px solid var(--line-strong); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(560px, 1.1fr); align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 13px; color: var(--mint); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--text); line-height: 1.08; letter-spacing: -.04em; }
h1 { max-width: 720px; margin-bottom: 24px; font-size: clamp(3rem, 5.2vw, 5.5rem); font-weight: 880; }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 3.25vw, 3.5rem); font-weight: 850; }
h3 { margin-bottom: 10px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.lede { max-width: 700px; margin: 0 0 30px; color: #c6d3e3; font-size: clamp(1.12rem, 1.65vw, 1.42rem); line-height: 1.48; }
.hero .button-row { margin-bottom: 18px; }
.fine-print { color: var(--muted); font-size: .94rem; }
.text-link { color: var(--mint-soft); font-weight: 750; text-underline-offset: 4px; }

.dashboard-demo { padding: 18px; background: var(--panel-deep); border: 2px solid var(--line-strong); border-radius: 20px; box-shadow: var(--shadow); }
.demo-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.demo-name { font-size: 1.2rem; font-weight: 830; }
.status { display: inline-flex; justify-content: center; min-width: 84px; padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 850; }
.status-live { color: #77e9bd; background: rgba(16, 185, 129, .18); }
.status-timeout { color: var(--amber); background: rgba(245, 158, 11, .2); }
.current-demo { position: relative; min-height: 205px; padding: 22px; background: var(--current-panel); border: 1px solid var(--line-strong); border-radius: 15px; }
.metric-label { color: var(--mint-soft); font-weight: 760; }
.metric-number { margin-top: 3px; color: var(--mint); font-size: clamp(4.4rem, 7vw, 7.1rem); font-weight: 900; line-height: .95; letter-spacing: -.07em; }
.peak { position: absolute; top: 23px; right: 25px; text-align: right; color: var(--muted); }
.peak strong { display: block; color: #dce6f2; font-size: 1.75rem; line-height: 1.1; }
.limit { position: absolute; left: 22px; bottom: 18px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.device-demo { margin-top: 14px; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 15px; }
.device-demo h3 { margin-bottom: 8px; }
.device-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 9px 0; border-top: 1px solid var(--line-strong); font-weight: 720; }
.device-row:first-of-type { border-top: 0; }

.section { padding: 84px 0; border-bottom: 1px solid var(--line); }
.section-tight { padding: 58px 0; }
.section-head { max-width: 850px; margin-bottom: 42px; }
.section-head p, .prose p, .feature p, .solution-card p, .hardware-card p { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.feature { min-height: 230px; padding: 30px; border-left: 1px solid var(--line-strong); }
.feature:first-child { border-left: 0; }
.feature-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 24px; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--mint); background: var(--panel); font-size: 1.2rem; font-weight: 900; }
.proof-line { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 24px 0 0; color: #cad5e3; font-weight: 700; }
.proof-line span::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 10px 2px 0; border-radius: 50%; background: var(--mint); }
.store-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.store-badge { min-height: 58px; min-width: 185px; display: flex; flex-direction: column; justify-content: center; padding: 8px 18px; border: 1px solid #64748b; border-radius: 10px; background: #02060c; text-decoration: none; line-height: 1.05; }
.store-badge small { color: #d8e0ea; font-size: .65rem; }
.store-badge strong { margin-top: 4px; font-size: 1.16rem; }

.page-hero { padding: 76px 0 62px; border-bottom: 1px solid var(--line-strong); }
.page-hero h1 { max-width: 940px; font-size: clamp(2.8rem, 5vw, 5rem); }
.page-hero .lede { max-width: 830px; }
.two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: 84px; align-items: start; }
.three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.solution-card, .hardware-card, .info-card { padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.solution-card { min-height: 260px; display: flex; flex-direction: column; }
.solution-card .text-link { margin-top: auto; }
.step-list { counter-reset: steps; display: grid; gap: 1px; border: 1px solid var(--line-strong); background: var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.step { position: relative; counter-increment: steps; padding: 30px 30px 30px 92px; background: var(--panel); }
.step::before { content: counter(steps, decimal-leading-zero); position: absolute; left: 28px; top: 30px; color: var(--mint); font-size: .85rem; font-weight: 850; letter-spacing: .08em; }
.step p { margin: 0; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li { position: relative; padding: 12px 0 12px 31px; border-top: 1px solid var(--line); color: #d3deeb; }
.check-list li::before { content: '✓'; position: absolute; left: 2px; color: var(--mint); font-weight: 900; }
.notice { padding: 22px 24px; border-left: 4px solid var(--amber); background: rgba(245,158,11,.08); color: #e4e9f0; }
.legal h2 { margin-top: 48px; font-size: 1.65rem; }
.legal h3 { margin-top: 28px; font-size: 1.15rem; }
.legal p, .legal li { color: #bdcada; }

.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 36px; padding: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); }
.cta-band h2 { max-width: 760px; margin-bottom: 0; font-size: clamp(1.8rem, 3vw, 3rem); }
.site-footer { padding-top: 64px; background: #050c16; }
.footer-grid { display: grid; grid-template-columns: 1.55fr repeat(3, 1fr); gap: 50px; }
.footer-grid h2 { margin-bottom: 15px; color: var(--muted); font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-grid > div > a:not(.brand), .footer-grid p { display: block; margin: 8px 0; color: #aebdd0; text-decoration: none; font-size: .92rem; }
.footer-grid a:hover { color: var(--text); }
.footer-base { display: flex; justify-content: space-between; gap: 20px; margin-top: 54px; padding: 22px 0 34px; border-top: 1px solid var(--line); color: var(--quiet); font-size: .83rem; }

.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 72px; }
.contact-list { display: grid; gap: 18px; }
.contact-list a { color: var(--mint-soft); font-weight: 750; }
.contact-form { padding: 30px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
label { color: #dce6f1; font-size: .88rem; font-weight: 740; }
input, textarea, select { width: 100%; padding: 12px 13px; color: var(--text); background: var(--panel-deep); border: 1px solid var(--line-strong); border-radius: 9px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(52,211,153,.13); }
textarea { min-height: 160px; resize: vertical; }
.form-note { margin: 18px 0; color: var(--muted); font-size: .86rem; }
.alert { margin-bottom: 20px; padding: 14px 17px; border: 1px solid var(--line-strong); border-radius: 10px; }
.alert-success { color: var(--mint-soft); background: rgba(52,211,153,.09); border-color: rgba(52,211,153,.4); }
.alert-error { color: #fecdd3; background: rgba(251,113,133,.09); border-color: rgba(251,113,133,.38); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.auth-page { min-height: calc(100vh - 88px); display: flex; align-items: center; padding: 72px 0 92px; background: radial-gradient(circle at 18% 15%, rgba(52,211,153,.09), transparent 34%), var(--bg); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 500px); gap: clamp(48px, 8vw, 130px); align-items: center; }
.auth-intro h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(3rem, 5vw, 5.2rem); }
.auth-intro .lede { max-width: 620px; }
.auth-forms { width: 100%; }
.auth-card { padding: clamp(24px, 4vw, 38px); background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-card[hidden] { display: none; }
.auth-card .login-title { margin-bottom: 10px; font-size: clamp(1.9rem, 3vw, 2.55rem); letter-spacing: -.035em; }
.auth-card .login-help { margin: 0 0 22px; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.auth-card label { display: block; margin: 18px 0 7px; }
.auth-card input { min-height: 50px; }
.auth-submit { width: 100%; margin-top: 22px; }
.login-switch { display: block; width: 100%; margin-top: 14px; padding: 5px; border: 0; color: #cbd5e1; background: transparent; text-align: center; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.login-switch:hover, .login-switch:focus-visible { color: var(--text); }
.login-link { font-size: .92rem; }
.auth-card #passkey-status:empty, .auth-card #client-qr-status:empty { display: none; }
#client-qr-video { width: 100%; max-height: 300px; object-fit: cover; margin-top: 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: #000; }

@media (max-width: 900px) {
  .auth-page { min-height: auto; padding: 48px 0 72px; }
  .auth-layout { grid-template-columns: 1fr; gap: 28px; }
  .auth-intro h1 { font-size: clamp(2.5rem, 12vw, 4.1rem); }
  .auth-intro .lede { margin-bottom: 0; }
  .auth-forms { max-width: 560px; }
}

@media (max-width: 1120px) {
  .site-nav { gap: 17px; }
  .header-inner { gap: 18px; }
  .hero-grid { grid-template-columns: .9fr 1.1fr; gap: 35px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3) { border-left: 0; border-top: 1px solid var(--line-strong); }
  .feature:nth-child(4) { border-top: 1px solid var(--line-strong); }
}

@media (max-width: 900px) {
  .shell { width: min(calc(100% - 36px), var(--shell)); }
  .header-inner { min-height: 76px; grid-template-columns: 1fr auto; }
  .brand img { width: 44px; height: 44px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; grid-column: 1 / -1; justify-self: stretch; padding: 8px 0; background: var(--bg); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
  .menu-open .site-nav { display: grid; }
  .site-nav a { padding: 13px 12px; border-bottom: 1px solid var(--line); }
  .header-actions { display: none; grid-column: 1 / -1; padding: 4px 0 16px; background: var(--bg); }
  .menu-open .header-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 48px; }
  .hero-grid, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-grid { align-items: stretch; }
  .three-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .brand { font-size: 1.2rem; }
  .hero, .page-hero { padding: 42px 0; }
  h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .lede { font-size: 1.08rem; }
  .button-row { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; min-height: 54px; }
  .dashboard-demo { padding: 12px; }
  .current-demo { min-height: 188px; padding: 18px; }
  .metric-number { font-size: 5.2rem; }
  .limit { left: 18px; }
  .section { padding: 58px 0; }
  .feature-grid, .three-grid { grid-template-columns: 1fr; }
  .feature { min-height: auto; padding: 26px 8px; border-left: 0; border-top: 1px solid var(--line-strong); }
  .feature:first-child { border-top: 0; }
  .feature:nth-child(3) { border-top: 1px solid var(--line-strong); }
  .feature-icon { margin-bottom: 16px; }
  .cta-band { align-items: stretch; padding: 28px 22px; flex-direction: column; }
  .cta-actions { align-items: stretch; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .contact-form { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; }
  .store-row { display: grid; }
  .store-badge { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
