@font-face { font-family: Geist; src: url(fonts/Geist-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/Geist-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/Geist-SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/Geist-Bold.ttf); font-weight: 700; font-display: swap; }

:root {
  --bg: #f5f7f6; --surface: #ffffff; --surface2: #eaeeec; --fg: #0e1410; --muted: #4e5b55; --border: #d6dcd9;
  --accent: #c4f135; --accent-text: #4d7c0f; --on-accent: #0e1410; --shadow: 0 30px 60px -20px rgba(14,20,16,.35);
  --bezel: #0e1410; --s: 1;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0e0d; --surface: #111817; --surface2: #18211f; --fg: #eef2f0; --muted: #a7b3ad; --border: #26312e;
  --accent-text: #c4f135; --shadow: 0 30px 60px -20px rgba(0,0,0,.7); --bezel: #1d2724;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0a0e0d; --surface: #111817; --surface2: #18211f; --fg: #eef2f0; --muted: #a7b3ad; --border: #26312e;
    --accent-text: #c4f135; --shadow: 0 30px 60px -20px rgba(0,0,0,.7); --bezel: #1d2724;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 400 16px/1.5 Geist, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; border-radius: 6px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--border); position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 18px; }
.brand b { font-weight: 700; }
.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface2); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: 500 14px Geist, system-ui, sans-serif; padding: 8px 14px; min-height: 40px; border-radius: 9px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.ghost { border: 1px solid var(--border); background: var(--surface); color: var(--fg); font: 500 14px Geist, system-ui, sans-serif; padding: 8px 14px; min-height: 44px; border-radius: 12px; cursor: pointer; }
.ghost:hover { border-color: var(--accent-text); }

main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 40px; }
.hero { text-align: center; padding: clamp(24px, 5vw, 56px) 0 8px; }
.eyebrow { margin: 0 0 10px; color: var(--accent-text); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
h1 { margin: 0; font-size: clamp(32px, 5.5vw, 56px); line-height: 1.05; letter-spacing: -.02em; font-weight: 700; }
.lede { max-width: 620px; margin: 14px auto 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }

.tabs { display: none; justify-content: center; gap: 8px; margin: 18px 0 4px; }
.tabs button { border: 1px solid var(--border); background: var(--surface); color: var(--fg); font: 500 15px Geist, system-ui, sans-serif; padding: 10px 18px; min-height: 44px; border-radius: 12px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.stage { display: flex; justify-content: center; gap: clamp(24px, 5vw, 80px); padding: 28px 0 8px; }
.device { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.device figcaption { text-align: center; }
.device figcaption strong { display: block; font-size: 18px; font-weight: 600; }
.device figcaption span { color: var(--muted); font-size: 14px; }
.box { width: calc((390px + 28px) * var(--s)); height: calc((844px + 28px) * var(--s)); }
.phone { position: relative; width: calc(390px + 28px); height: calc(844px + 28px); padding: 14px; background: var(--bezel); border-radius: 56px; box-shadow: var(--shadow), inset 0 0 0 2px rgba(255,255,255,.08); transform: scale(var(--s)); transform-origin: top left; }
.screen { position: relative; width: 390px; height: 844px; border-radius: 44px; overflow: hidden; background: var(--surface); }
.screen iframe { position: absolute; left: 0; top: 38px; width: 100%; height: calc(100% - 38px); border: 0; display: block; background: var(--surface); }
.status { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 38px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 30px 6px 34px; font: 600 14px Geist, system-ui, sans-serif; color: var(--fg); background: var(--surface); }
.status i { width: 24px; height: 11px; border: 1.5px solid currentColor; border-radius: 4px; position: relative; opacity: .85; }
.status i::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: currentColor; border-radius: 2px; }
.island { position: absolute; z-index: 3; top: 24px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 20px; background: #000; pointer-events: none; }
.loader { position: absolute; inset: 38px 0 0 0; display: grid; place-items: center; background: var(--surface); color: var(--muted); font-size: 14px; transition: opacity .3s; }
.loader::before { content: ""; width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--accent-text); border-radius: 50%; animation: spin .9s linear infinite; position: absolute; transform: translateY(-26px); }
.loader span { transform: translateY(18px); }
.loader[hidden] { display: none; }
.open { color: var(--accent-text); font-weight: 500; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; min-height: 24px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loader::before { animation: none; } .loader { transition: none; } }

.try { padding: 36px 0 8px; }
.try h2, .facts h2 { font-size: 24px; margin: 0 0 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.cards article { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px 24px; }
.cards h3 { margin: 0 0 10px; font-size: 18px; }
.cards ol { margin: 0; padding-left: 20px; color: var(--muted); }
.cards li { margin: 6px 0; }
.cards em { color: var(--fg); font-style: normal; font-weight: 600; }
.facts ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.facts li { background: var(--surface2); border-radius: 16px; padding: 16px 18px; color: var(--muted); }
.facts b { display: block; color: var(--fg); font-size: 17px; }
footer { border-top: 1px solid var(--border); padding: 24px clamp(16px, 4vw, 40px); color: var(--muted); font-size: 13px; text-align: center; }
footer p { max-width: 720px; margin: 0 auto; }

@media (max-width: 960px) {
  .tabs { display: flex; }
  .stage { padding-top: 14px; }
  .device[data-hidden="true"] { display: none; }
}
