:root {
  --bg: #05070d;
  --bg-elev: #0b101c;
  --bg-card: rgba(14, 20, 36, 0.72);
  --line: rgba(120, 170, 255, 0.14);
  --text: #e8eefb;
  --muted: #8b9bb8;
  --accent: #3ce0ff;
  --accent-2: #7a5cff;
  --gold: #d4b26a;
  --up: #2ee59d;
  --down: #ff5d7a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --font: "Source Sans Pro", "Source Sans 3", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f3f6fb;
  --bg-elev: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.78);
  --line: rgba(20, 40, 80, 0.1);
  --text: #0c1424;
  --muted: #5a6a84;
  --accent: #0077aa;
  --accent-2: #4a32c8;
  --gold: #9a7428;
  --shadow: 0 24px 50px rgba(20, 40, 80, 0.1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 168px; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.skip-link {
  position: absolute; left: -999px; top: 8px;
}
.skip-link:focus { left: 8px; background: var(--accent); color: #000; padding: 8px 12px; z-index: 99; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.video-stage {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.video-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .42; filter: saturate(1.2) contrast(1.1);
}
.video-bg-2 { opacity: .18; mix-blend-mode: screen; animation: fadeSwap 14s ease-in-out infinite; }
.video-pulse {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .38; mix-blend-mode: screen; pointer-events: none;
}
[data-theme="light"] .video-pulse { opacity: .18; mix-blend-mode: multiply; }
.video-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(60,224,255,.18), transparent 45%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent), var(--bg) 92%);
}
@keyframes fadeSwap {
  0%,100% { opacity: .12; }
  50% { opacity: .28; }
}
[data-theme="light"] .video-bg { opacity: .22; filter: saturate(.8) contrast(.9) brightness(1.4); }
[data-theme="light"] .video-bg-2 { opacity: .1; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-word { height: 36px; width: auto; color: var(--text); }
.footer-word { height: 34px; width: auto; color: var(--text); margin-bottom: 12px; }
.brand-corp { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: #fff; padding: 3px; }
.brand-mark { width: 92px; height: auto; color: var(--text); filter: drop-shadow(0 0 12px rgba(60,224,255,.25)); }
.footer-corp { width: 56px; height: 56px; object-fit: contain; border-radius: 14px; background: #fff; padding: 4px; margin-bottom: 10px; }
.brand-name { display: block; font-weight: 800; letter-spacing: .16em; font-size: 12px; }
.brand-sub { display: block; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav a:hover, .nav a.is-active { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .nav-burger {
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-card); color: var(--text); cursor: pointer;
}
.theme-toggle { position: relative; }
.theme-ico { position: absolute; inset: 12px; border-radius: 50%; }
.theme-ico-sun { background: conic-gradient(from 0deg, var(--gold), var(--accent)); }
.theme-ico-moon { background: var(--text); clip-path: path("M14 2a10 10 0 1 0 10 12A8 8 0 0 1 14 2z"); display: none; }
[data-theme="light"] .theme-ico-sun { display: none; }
[data-theme="light"] .theme-ico-moon { display: block; }
.nav-burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-burger span { width: 18px; height: 2px; background: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 18px; border-radius: 8px;
  font-family: var(--font); font-weight: 600; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--line); transition: background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn-primary {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent), 0 8px 28px rgba(60,224,255,.12);
}
.btn-primary:hover {
  background: var(--accent); color: #041018;
  box-shadow: 0 0 24px rgba(60,224,255,.28);
}
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero { position: relative; z-index: 1; padding: 36px 0 28px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px;
  background: var(--bg-card);
}
.hero h1 {
  font-family: "Source Sans Pro", sans-serif; font-weight: 900;
  font-size: clamp(36px, 6vw, 72px); line-height: 1.02; letter-spacing: -.03em; margin: 18px 0 16px; max-width: 16ch;
}
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--accent), var(--accent-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 18px; color: var(--muted); max-width: 62ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.media-frame {
  position: relative; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 320px;
}
.media-frame video { width: 100%; height: 360px; object-fit: cover; display: block; }
.media-caption {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  color: #fff; text-shadow: 0 1px 8px #000;
}
.device {
  position: relative; border-radius: 28px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(60,224,255,.08), transparent 40%), var(--bg-elev);
  box-shadow: var(--shadow); padding: 18px; overflow: hidden;
}
.device::before {
  content: ""; position: absolute; inset: -40% auto auto -20%; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(60,224,255,.35), transparent 70%);
  animation: pulse 4.5s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .45; transform: scale(1.2); } }
.device-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px var(--up); }
.ticker-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ticker-row strong { font-family: var(--mono); }
.pos { color: var(--up); } .neg { color: var(--down); }

.section { position: relative; z-index: 1; padding: 48px 0; }
.section.tight { padding: 36px 0; }
.section h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; margin: 0 0 12px; }
.section-lead { color: var(--muted); max-width: 68ch; margin-bottom: 36px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; backdrop-filter: blur(16px);
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.idx { font-family: var(--mono); color: var(--accent); font-size: 12px; letter-spacing: .14em; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-card); }
.stat b { display: block; font-size: 28px; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 13px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.logo-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 24px; }
/* lockup handled below */
.ss-word { width: 180px; color: var(--text); }

.tape {
  position: relative; z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}
.tape-track { display: flex; gap: 36px; padding: 14px 0; width: max-content; animation: tape 32s linear infinite; font-family: var(--mono); font-size: 13px; }
@keyframes tape { to { transform: translateX(-50%); } }

form.panel { display: grid; gap: 14px; max-width: 560px; }
label { font-size: 13px; color: var(--muted); }
input, textarea, select {
  width: 100%; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-elev);
  color: var(--text); padding: 12px 14px; font: inherit;
}
.flash { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
.flash.ok { border-color: color-mix(in srgb, var(--up) 50%, var(--line)); }
.flash.err { border-color: color-mix(in srgb, var(--down) 50%, var(--line)); }

.legal { position: relative; z-index: 1; padding: 48px 0 80px; max-width: 780px; }
.legal h1 { font-size: 36px; }
.legal p, .legal li { color: var(--muted); }

.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 48px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .8fr .7fr; gap: 28px; }
.footer-logo { width: 140px; color: var(--text); margin-bottom: 10px; }
.footer-tag { color: var(--muted); }
.site-footer h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.site-footer a { display: block; color: var(--muted); font-size: 14px; margin: 6px 0; }
.site-footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.tiny { font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid, .cards, .stats, .split, .footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .header-inner { position: relative; }
  .header-actions { margin-left: auto; }
  .nav-burger { display: flex; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: flex-end; text-align: right;
    position: absolute; left: auto; right: 16px; top: calc(100% + 10px);
    min-width: min(280px, calc(100vw - 32px));
    z-index: 80;
    background: var(--bg-elev); padding: 18px 20px 22px; border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
  }
  .nav.is-open a { font-size: 20px; line-height: 1.3; padding: 10px 0; color: var(--text); }
  .nav-burger { width: 48px; height: 48px; }
  .nav-burger span { width: 22px; height: 2.5px; }


  .header-cta { display: none; }
  .hero { padding-top: 40px; }
}

.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.logo-alphadeo { height: 48px; width: auto; color: var(--text); display: block; background: transparent; }
.logo-word { font-family: "Source Sans Pro", Arial, sans-serif; font-weight: 900; font-size: 56px; letter-spacing: -0.02em; fill: currentColor; }
.logo-sub { font-family: "Source Sans Pro", Arial, sans-serif; font-weight: 500; font-size: 28px; fill: currentColor; opacity: .55; }
.reveal { opacity: 0; transform: translateY(28px); animation: rise .7s ease forwards; }
.reveal:nth-of-type(2) { animation-delay: .05s; }
.reveal:nth-of-type(3) { animation-delay: .08s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
}
@media (max-width: 900px) {
  .cards.two, .cards.three { grid-template-columns: 1fr; }
}

.site-header.is-compact { min-height: 0; }
.site-header.is-compact .logo-alphadeo { height: 36px; }
.site-header.is-compact .header-inner { min-height: 58px; }
.scroll-item { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.scroll-item.is-in { opacity: 1; transform: none; }

.brand-lockup { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-slogan {
  font-family: var(--mono); font-size: 9px; letter-spacing: .04em;
  color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: min(420px, 42vw);
}
.logo-alphadeo { height: 48px; width: auto; color: var(--text); }
.site-header.is-compact .brand-slogan { display: none; }
@media (max-width: 900px) {
  .brand-slogan { display: none; }
}

.logo-alphadeo { background: transparent !important; }
.brand, .brand-lockup { background: transparent; }

.page-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
#products, #technology, #contact, #about, #markets { scroll-margin-top: 168px; }

.product-app { margin-top: 18px; }
.product-app h3 a { color: inherit; text-decoration: none; }
.product-app h3 a:hover { color: var(--accent); }
.product-app .btn { margin-top: 18px; }


.hero-split { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(260px,.85fr); gap: 28px; align-items: start; }
.news-rail {
  border: 1px solid var(--line); border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px);
  position: relative; overflow: hidden;
  min-height: 0; display: flex; flex-direction: column;
}
.news-head { padding: 10px 16px; border-bottom: 1px solid var(--line); flex: 0 0 auto; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.news-head .kicker { margin: 0; }
.news-head strong { display: inline; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.news-viewport { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.news-track { animation: news-roll 36s linear infinite; will-change: transform; }
.news-rail:hover .news-track { animation-play-state: paused; }
.news-item { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.news-item p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.news-meta { display: flex; gap: 8px; align-items: center; }
.news-meta .sym { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.bias { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.bias-bullish { color: #3dffa6; }
.bias-bearish { color: #ff6b7a; }
.bias-neutral { color: var(--gold); }
@keyframes news-roll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .news-rail { min-height: 240px; height: 240px; }
}

.socials {
  display: flex; align-items: center; gap: 14px;
  margin: 6px 0; height: 21px; line-height: 21px;
}
.site-footer .soc {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  width: auto; height: auto; margin: 0; padding: 0;
  border: 0; background: none; border-radius: 0;
  color: var(--muted); line-height: 0;
}
.site-footer .soc svg { width: 14px; height: 14px; display: block; }
.site-footer .soc:hover { color: var(--text); }

.hero-split > div:first-child { display: flex; flex-direction: column; }

.legal-links { display: flex; flex-direction: column; gap: 6px; }
.legal-row { display: flex; flex-wrap: nowrap; align-items: baseline; gap: 14px; white-space: nowrap; }
.site-footer .legal-row a { display: inline; margin: 0; }
