:root {
  color-scheme: dark;
  --bg: #090b0f;
  --bg-elevated: #0f131a;
  --surface: rgba(18, 23, 31, .78);
  --surface-solid: #12171f;
  --surface-soft: #151b24;
  --text: #f5f7fa;
  --muted: #9aa5b4;
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.18);
  --accent: #b43343;
  --accent-strong: #d04a5a;
  --accent-soft: rgba(180,51,67,.18);
  --blue: #6ea8c9;
  --blue-soft: rgba(110,168,201,.14);
  --success: #67c98f;
  --shadow: 0 26px 70px rgba(0,0,0,.35);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f4f1;
  --bg-elevated: #ffffff;
  --surface: rgba(255,255,255,.82);
  --surface-solid: #ffffff;
  --surface-soft: #efefec;
  --text: #17191d;
  --muted: #5f6670;
  --line: rgba(23,25,29,.11);
  --line-strong: rgba(23,25,29,.18);
  --accent: #9f2f3e;
  --accent-strong: #b53a49;
  --accent-soft: rgba(159,47,62,.10);
  --blue: #386f8b;
  --blue-soft: rgba(56,111,139,.10);
  --success: #247a4a;
  --shadow: 0 24px 70px rgba(31,38,46,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 5%, var(--accent-soft), transparent 28rem),
    radial-gradient(circle at 12% 22%, var(--blue-soft), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 58%);
  z-index: -2;
}

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

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 999;
  background: var(--text); color: var(--bg); padding: .7rem 1rem; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 104px 0; position: relative; }
.section-tight { padding: 70px 0; }
.section-kicker {
  display: inline-flex; gap: .55rem; align-items: center;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800;
  color: var(--blue);
}
.section-kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.section-title { font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.02; margin: .9rem 0 1rem; letter-spacing: -.045em; }
.section-copy { color: var(--muted); max-width: 720px; font-size: 1.06rem; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: .8rem; font-weight: 900; letter-spacing: -.02em; }
.brand-mark {
  width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 10px;
  display: grid; place-items: center; position: relative; overflow: hidden;
  background: linear-gradient(145deg, var(--accent-soft), var(--blue-soft));
}
.brand-mark::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--text); border-top-color: var(--accent-strong); transform: rotate(45deg); border-radius: 3px; }
.brand small { display: block; color: var(--muted); font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a { color: var(--muted); font-size: .91rem; font-weight: 650; transition: color .2s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: .65rem; }
.theme-toggle, .menu-toggle {
  width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px;
  display: grid; place-items: center; cursor: pointer; transition: transform .2s ease, border-color .2s ease;
}
.theme-toggle:hover, .menu-toggle:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.menu-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 44px; padding: .72rem 1.05rem; border-radius: 12px; border: 1px solid var(--line);
  font-weight: 780; font-size: .92rem; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent-strong), var(--accent)); color: #fff; border-color: transparent; box-shadow: 0 12px 28px rgba(180,51,67,.24); }
.btn-secondary { background: var(--surface); }
.btn-ghost { background: transparent; }

.hero { padding: 88px 0 72px; min-height: 720px; display: grid; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr); align-items: center; gap: 64px; }
.hero-title { font-size: clamp(3.35rem, 7vw, 6.65rem); line-height: .91; letter-spacing: -.07em; margin: 1.05rem 0 1.35rem; max-width: 800px; }
.hero-title .accent { color: var(--accent-strong); }
.hero-copy { color: var(--muted); font-size: clamp(1.06rem, 1.5vw, 1.25rem); max-width: 690px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .7rem 1rem; margin-top: 2rem; color: var(--muted); font-size: .88rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-proof i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px color-mix(in srgb, var(--success) 14%, transparent); }

.hero-art { position: relative; min-height: 560px; display: grid; place-items: center; }
.hero-orbit { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .72; }
.device-card {
  position: relative; width: min(400px, 84vw); border-radius: 38px; padding: 12px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-solid) 80%, #fff 5%), var(--surface-solid));
  border: 1px solid var(--line-strong); box-shadow: var(--shadow); transform: rotate(2.5deg);
}
.device-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, var(--accent-strong), transparent 35%, var(--blue)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.device-screen { background: #07131d; border-radius: 29px; overflow: hidden; aspect-ratio: 9 / 16; position: relative; }
.device-screen img { width: 100%; height: 100%; object-fit: contain; object-position: center top; }
.float-card {
  position: absolute; min-width: 180px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px;
  background: color-mix(in srgb, var(--surface-solid) 86%, transparent); backdrop-filter: blur(16px); box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .92rem; }
.float-card span { color: var(--muted); font-size: .75rem; }
.float-card.one { left: -10px; top: 16%; }
.float-card.two { right: -6px; bottom: 18%; animation-delay: -2.8s; }
@keyframes float { 0%,100%{ transform: translateY(0)} 50%{ transform: translateY(-10px)} }

.logo-strip { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface-solid) 40%, transparent); }
.logo-strip-inner { min-height: 78px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .82rem; }
.signal { display: inline-flex; align-items: center; gap: .6rem; }
.signal strong { color: var(--text); }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 38px; }
.feature-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-height: 220px;
  background: linear-gradient(155deg, var(--surface), color-mix(in srgb, var(--surface-solid) 60%, transparent));
  position: relative; overflow: hidden; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 18px 42px rgba(0,0,0,.12); }
.feature-card::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; right: -80px; top: -70px; background: var(--accent-soft); filter: blur(12px); }
.icon-box { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--bg-elevated); margin-bottom: 28px; }
.icon-box svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.feature-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.split { display: grid; grid-template-columns: .92fr 1.08fr; gap: 60px; align-items: center; }
.product-panel {
  min-height: 520px; border: 1px solid var(--line); border-radius: 32px; overflow: hidden; position: relative;
  background: radial-gradient(circle at 70% 30%, var(--accent-soft), transparent 35%), linear-gradient(145deg, var(--surface-solid), var(--bg));
  box-shadow: var(--shadow);
}
.product-panel img { width: 100%; height: 100%; object-fit: cover; }
.product-panel .art-caption { position: absolute; left: 18px; bottom: 16px; padding: .45rem .7rem; border-radius: 10px; font-size: .72rem; color: var(--muted); background: color-mix(in srgb, var(--bg) 76%, transparent); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.status-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .68rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .75rem; font-weight: 760; text-transform: uppercase; letter-spacing: .08em; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f5b842; box-shadow: 0 0 0 5px rgba(245,184,66,.10); }
.check-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .7rem; color: var(--muted); }
.check-list li::before { content: "✓"; color: var(--success); font-weight: 900; }

.principle-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 36px; }
.principle { padding: 25px; border-top: 1px solid var(--line-strong); background: linear-gradient(to bottom, var(--surface), transparent); }
.principle strong { display: block; font-size: 1.05rem; margin-bottom: .35rem; }
.principle span { color: var(--muted); font-size: .9rem; }

.showcase { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 28px; margin-top: 40px; }
.showcase-tabs { display: grid; align-content: start; gap: 8px; }
.showcase-tab { text-align: left; border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; background: transparent; color: var(--muted); cursor: pointer; }
.showcase-tab.active { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
.showcase-stage { min-height: 720px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); overflow: hidden; display: grid; place-items: center; padding: 22px 30px; }
.showcase-stage img { width: auto; max-width: 100%; height: auto; max-height: 680px; border-radius: 20px; box-shadow: var(--shadow); }

.cta-panel { border: 1px solid var(--line); border-radius: 32px; padding: clamp(30px,6vw,72px); position: relative; overflow: hidden; background: linear-gradient(135deg, var(--surface-solid), color-mix(in srgb, var(--surface-solid) 70%, var(--accent) 8%)); }
.cta-panel::after { content:""; position:absolute; width:420px; height:420px; right:-180px; top:-200px; border:1px solid var(--line-strong); border-radius:50%; box-shadow: 0 0 0 40px var(--accent-soft), 0 0 0 80px var(--blue-soft); }
.cta-panel > * { position: relative; z-index: 1; }

.page-hero { padding: 100px 0 58px; }
.page-hero h1 { font-size: clamp(3rem, 6vw, 5.6rem); line-height: .95; letter-spacing: -.06em; max-width: 900px; margin: .9rem 0 1.2rem; }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.1rem; }

.card-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 34px; }
.info-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 28px; }
.info-card h3 { margin-top: 0; }
.info-card p { color: var(--muted); margin-bottom: 0; }

.product-card { border:1px solid var(--line); border-radius:30px; padding: clamp(26px,5vw,54px); display:grid; grid-template-columns: 1fr .8fr; gap:38px; align-items:center; background:linear-gradient(140deg,var(--surface),var(--surface-solid)); }
.product-card-visual { min-height: 320px; border-radius: 24px; overflow:hidden; background: radial-gradient(circle at 40% 20%, var(--accent-soft), transparent 32%), var(--bg); display:grid; place-items:center; border:1px solid var(--line); }

.legal-copy { max-width: 820px; }
.legal-copy h2 { margin-top: 2.8rem; font-size: 1.5rem; }
.legal-copy p, .legal-copy li { color: var(--muted); }
.legal-callout { border-left: 3px solid var(--accent); background: var(--surface); padding: 18px 20px; border-radius: 0 14px 14px 0; margin: 26px 0; }

.form-shell { display:grid; grid-template-columns: .75fr 1.25fr; gap: 28px; align-items:start; }
.form-card { border:1px solid var(--line); border-radius:26px; padding:28px; background:var(--surface); }
.field { display:grid; gap:.42rem; margin-bottom:1rem; }
.field label { font-size:.84rem; font-weight:760; }
.field input, .field textarea, .field select { width:100%; color:var(--text); background:var(--bg-elevated); border:1px solid var(--line); border-radius:12px; padding:.78rem .85rem; outline:none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-soft); }
.field textarea { min-height:170px; resize:vertical; }
.form-note { color:var(--muted); font-size:.82rem; }
.form-status { min-height:1.4rem; font-size:.88rem; margin-top:.75rem; }
.form-status.error { color:#ef6b75; }
.form-status.success { color:var(--success); }
.honeypot { position:absolute !important; left:-10000px !important; width:1px !important; height:1px !important; overflow:hidden !important; }

.support-receipts { margin-top: 1.4rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.support-receipts h3 { margin: 0 0 .35rem; font-size: 1rem; }
.support-receipt { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:.72rem 0; border-top:1px solid var(--line); }
.support-receipt:first-child { border-top:0; }
.support-receipt strong { display:block; font-size:.9rem; letter-spacing:.01em; }
.support-receipt span { display:block; color:var(--muted); font-size:.76rem; margin-top:.15rem; }
.btn-small { padding:.48rem .68rem; font-size:.76rem; }

.site-footer { border-top:1px solid var(--line); padding:42px 0 28px; margin-top: 60px; background: color-mix(in srgb, var(--surface-solid) 46%, transparent); }
.footer-grid { display:grid; grid-template-columns:1.2fr .8fr .8fr; gap:30px; }
.footer-title { font-weight:900; font-size:1.1rem; }
.footer-note { color:var(--muted); max-width:480px; font-size:.9rem; }
.footer-links { display:grid; gap:.45rem; color:var(--muted); font-size:.88rem; }
.footer-links a:hover { color:var(--text); }
.footer-bottom { margin-top:32px; padding-top:20px; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:16px; color:var(--muted); font-size:.78rem; }

.reveal { opacity:0; transform:translateY(16px); transition:opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity:1; transform:none; }

@media (max-width: 980px) {
  .hero-grid, .split, .form-shell, .product-card { grid-template-columns:1fr; }
  .hero { min-height:auto; }
  .hero-art { min-height:500px; }
  .feature-grid { grid-template-columns:repeat(2,1fr); }
  .principle-grid { grid-template-columns:repeat(2,1fr); }
  .showcase { grid-template-columns:1fr; }
  .showcase-tabs { grid-template-columns:repeat(3,1fr); }
  .showcase-stage { min-height:680px; }
  .showcase-stage img { max-height:640px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .nav { position:fixed; inset:72px 16px auto 16px; display:none; padding:18px; border:1px solid var(--line); border-radius:18px; background:var(--bg-elevated); box-shadow:var(--shadow); }
  .nav.open { display:grid; }
  .menu-toggle { display:grid; }
  .header-cta { display:none; }
}

@media (max-width: 640px) {
  .container { width:min(calc(100% - 28px), var(--max)); }
  .section { padding:76px 0; }
  .hero { padding-top:54px; }
  .hero-title { font-size:clamp(3rem,15vw,4.8rem); }
  .hero-art { min-height:430px; }
  .float-card { min-width:150px; padding:11px 12px; }
  .feature-grid, .principle-grid, .card-grid, .footer-grid { grid-template-columns:1fr; }
  .showcase-tabs { grid-template-columns:1fr 1fr; }
  .showcase-stage { min-height:540px; padding:18px; }
  .showcase-stage img { max-height:500px; }
  .footer-bottom { flex-direction:column; }
  .brand small { display:none; }
}

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

.brand-logo-wrap{
  width:44px;height:52px;display:grid;place-items:center;position:relative;flex:0 0 44px;
  border:1px solid var(--line);border-radius:12px;
  background:color-mix(in srgb,var(--surface-solid) 82%,transparent);
}
.brand-logo{max-width:34px;max-height:46px;object-fit:contain;display:block}
.brand-logo-wrap .brand-mark{display:none}
.brand-logo-wrap.logo-fallback .brand-mark{display:block}
.showcase-stage img.using-fallback{opacity:.92}

.footer-brand{display:flex;align-items:flex-start;gap:14px}
.footer-logo{width:38px;height:58px;object-fit:contain;flex:0 0 auto}
.company-emblem{
  min-height:520px;border:1px solid var(--line);border-radius:32px;
  display:grid;place-items:center;overflow:hidden;
  background:
    radial-gradient(circle at 50% 34%,var(--accent-soft),transparent 30%),
    radial-gradient(circle at 65% 70%,var(--blue-soft),transparent 32%),
    var(--surface);
  box-shadow:var(--shadow);
}
.company-emblem img{max-height:430px;width:auto;object-fit:contain;filter:drop-shadow(0 24px 42px rgba(0,0,0,.34))}
.legal-toc{
  border:1px solid var(--line);border-radius:18px;background:var(--surface);
  padding:20px 22px;margin:28px 0 34px;
}
.legal-toc strong{display:block;margin-bottom:.65rem}
.legal-toc ol{margin:0;padding-left:1.25rem;columns:2;column-gap:36px}
.legal-toc li{break-inside:avoid;margin:.28rem 0}
.legal-copy h2[id]{scroll-margin-top:96px}
@media (max-width:640px){
  .legal-toc ol{columns:1}
  .company-emblem{min-height:390px}
  .company-emblem img{max-height:330px}
}

.product-panel { display:grid; place-items:center; padding:24px; }
.product-panel img { width:auto; max-width:100%; height:auto; max-height:720px; object-fit:contain; border-radius:20px; box-shadow:0 18px 44px rgba(0,0,0,.24); }
.product-card-visual { padding:22px; }
.product-card-visual img { width:auto; max-width:100%; height:auto; max-height:540px; object-fit:contain; border-radius:20px; box-shadow:0 18px 44px rgba(0,0,0,.22); }


/* Keyboard and form accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 78%, white 10%);
  outline-offset: 3px;
}
.showcase-tab:focus-visible { outline-offset: 2px; }
.showcase-tab[aria-selected="true"] { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
.support-success { margin-top:14px; padding:16px; border:1px solid color-mix(in srgb,var(--success) 42%,var(--line)); border-radius:14px; background:color-mix(in srgb,var(--success) 9%,var(--surface)); }
.support-success strong { display:block; margin-bottom:.3rem; }
.support-success p { margin:.25rem 0; color:var(--muted); }
.support-success .support-reference { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:10px; }
.support-success code { font:800 .95rem/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; padding:.45rem .6rem; border:1px solid var(--line); border-radius:9px; background:var(--bg-elevated); }
#clearSupportReceipts { margin-top:12px; }

.showcase-image-link { display:grid; place-items:center; gap:10px; max-width:100%; color:var(--muted); font-size:.8rem; }
.showcase-image-link:hover { color:var(--text); }
.showcase-image-link img { transition:transform .18s ease; }
.showcase-image-link:hover img { transform:translateY(-2px); }
