@font-face { font-family: Sora; font-weight: 600; font-display: swap; src: url(/fonts/Sora-SemiBold.ttf) format("truetype"); }
@font-face { font-family: Sora; font-weight: 700; font-display: swap; src: url(/fonts/Sora-Bold.ttf) format("truetype"); }
@font-face { font-family: Plex; font-weight: 400; font-display: swap; src: url(/fonts/IBMPlexSans-Regular.ttf) format("truetype"); }
@font-face { font-family: Plex; font-weight: 500; font-display: swap; src: url(/fonts/IBMPlexSans-Medium.ttf) format("truetype"); }
@font-face { font-family: Mono; font-display: swap; src: url(/fonts/IBMPlexMono-Regular.ttf) format("truetype"); }

/* The app's dark tokens (app/lib/core/theme/theme.dart). */
:root {
  --bg: #08090D; --surface: #0C0E14; --raised: #11141C; --line: #1E2330;
  --text: #EDEFF5; --dim: #9BA1B3; --faint: #7C8398;
  --accent: #4D7CFE; --accent-soft: #9DB8FF; --accent-fill: #3A66E8; --accent-hover: #2F5BDB;
  --ok: #4ADE80;
  --sans: Plex, system-ui, sans-serif; --display: Sora, Plex, system-ui, sans-serif; --mono: Mono, ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--accent-soft); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(8, 9, 13, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 19px var(--display); }
.brand img { border-radius: 8px; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--dim); text-decoration: none; font-weight: 500; font-size: 15px; }
.links a:hover { color: var(--text); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { font: 500 13px var(--mono); color: var(--dim); background: none; border: 0; border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--raised); color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px;
  background: radial-gradient(900px 520px at 78% 30%, rgba(77, 124, 254, .22), transparent 70%),
              radial-gradient(600px 400px at 5% 0%, rgba(77, 124, 254, .10), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { font: 400 14px var(--mono); color: var(--accent-soft); margin: 0 0 18px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; margin-bottom: 22px; }
.lead { font-size: 19px; color: #C9CEDC; margin: 0 0 32px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 14px;
  font: 600 16px var(--sans); text-decoration: none; transition: background .15s, border-color .15s; }
.btn.primary { background: var(--accent-fill); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.primary.soon { background: var(--raised); color: var(--dim); border: 1px solid var(--line); pointer-events: none; }
.btn.ghost { color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--faint); }
.note { color: var(--faint); font-size: 15px; margin: 22px 0 0; max-width: 34em; }

.hero-shots { position: relative; height: 560px; }
.phone { position: absolute; width: 270px; height: auto; border-radius: 30px; border: 6px solid #1A1E29;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04); }
.phone.front { left: 4%; top: 30px; z-index: 2; }
.phone.back { right: 2%; top: 0; transform: rotate(5deg); opacity: .9; }

/* Chips band */
.band { border-block: 1px solid var(--line); background: var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding-block: 20px; }
.chips span { font: 400 14px var(--mono); color: var(--accent-soft); border: 1px solid #2A3A6E; background: rgba(77, 124, 254, .08); border-radius: 999px; padding: 5px 14px; }

/* Sections */
.section { padding: 88px 0 0; }
.section h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin-bottom: 12px; }
.sub { color: var(--dim); margin: 0 0 40px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card h3 { font-size: 18px; margin: 10px 0 8px; }
.card p { color: var(--dim); margin: 0; font-size: 15px; }
.tag { font: 400 13px var(--mono); color: var(--faint); }

/* Screenshot strip */
.shots { --edge: max(24px, calc((100vw - 1072px) / 2)); display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--edge) 24px; scroll-padding-inline: var(--edge); scrollbar-width: thin; }
.shots figure { flex: none; width: 240px; margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 22px; border: 5px solid #1A1E29; }
.shots figcaption { color: var(--dim); font-size: 14px; margin-top: 10px; text-align: center; }

/* How it works */
.flow { display: flex; align-items: center; margin: 32px 0 40px; }
.node { flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; display: grid; gap: 2px; min-width: 170px; }
.node b { font: 600 16px var(--display); }
.node small { color: var(--faint); font: 400 13px var(--mono); margin-bottom: 6px; }
.node small:last-child { margin-bottom: 0; }
.node.accent { border-color: #2F4A9E; background: linear-gradient(135deg, rgba(91, 135, 255, .22), rgba(40, 80, 200, .14)); }
.wire { flex: 1; position: relative; min-width: 32px; display: flex; justify-content: center; }
.wire span { position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: var(--faint); }
.wire.ble span { background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px); }
.wire em { position: relative; top: -22px; font: normal 400 12px var(--mono); color: var(--accent-soft); background: var(--bg); padding: 0 6px; white-space: nowrap; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.specs h3 { font-size: 17px; margin-bottom: 8px; }
.specs p { color: var(--dim); font-size: 15px; margin: 0; }
.status { margin: 40px 0 0; padding: 14px 18px; border-radius: 12px; border: 1px solid #5A4A1A; background: rgba(251, 191, 36, .07); color: #F3D88A; font-size: 15px; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trio .card h3 { margin-top: 0; }

.foot { margin-top: 96px; border-top: 1px solid var(--line); }
.foot-row { display: flex; justify-content: space-between; gap: 16px; padding-block: 28px; color: var(--faint); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shots { height: 440px; max-width: 460px; width: 100%; margin: 0 auto; }
  .phone { width: 210px; border-radius: 24px; }
  .grid, .specs { grid-template-columns: repeat(2, 1fr); }
  .flow { flex-direction: column; align-items: stretch; }
  .wire { height: 36px; min-width: 0; }
  .wire span { top: 0; bottom: 0; left: 50%; right: auto; width: 2px; height: auto; }
  .wire.ble span { background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 14px); }
  .wire em { top: 9px; left: 48px; position: absolute; }
  .node { min-width: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .links { display: none; }
  .lang { margin-left: auto; }
  .hero { padding-top: 44px; }
  .lead { font-size: 17px; }
  .hero-shots { height: 380px; }
  .phone { width: 180px; }
  .phone.front { left: 0; }
  .grid, .specs, .trio { grid-template-columns: 1fr; }
  .shots { --edge: 16px; }
  .shots figure { width: 200px; }
  .section { padding-top: 64px; }
  .foot-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
