:root {
  --bg: #07070b; --surface: #101018; --surface2: #17171f; --line: #23232e;
  --text: #ececf1; --muted: #8e8e9c; --accent: #4f8cff;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .92em; background: var(--surface2); padding: .08em .35em; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface2); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; position: sticky; top: 0; z-index: 5; background: rgba(7,7,11,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand canvas { width: 28px; height: 28px; }
.top nav { display: flex; gap: 20px; align-items: center; font-size: 14px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }
.top nav .gh { color: var(--text); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 48px 24px 72px; }
.eyebrow { color: var(--accent); font: 600 13px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 18px; }
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 700; }
.lead { font-size: 18px; color: #b9b9c6; max-width: 34em; margin: 0 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.platforms { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.hint { color: var(--muted); font-size: 14px; margin: 0; }
.hint b { color: var(--text); font-weight: 600; }

.btn { font: 600 15px/1 var(--sans); color: var(--text); background: var(--surface2); border: 1px solid var(--line); padding: 12px 18px; border-radius: 999px; cursor: pointer; display: inline-block; }
.btn:hover { background: #1f1f2a; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #6a9fff; }
.btn.small { font-size: 13px; padding: 8px 14px; }

/* the stage with the mocked foldable phone */
.stage { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.stage-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.caption { color: var(--muted); font-size: 12.5px; }
.device-fit { width: 100%; display: flex; justify-content: center; position: relative; overflow-x: clip; }
.device { transform-origin: top center; transition: width .5s cubic-bezier(.2,.8,.2,1); width: 300px; height: 640px; flex: none; }
.device.open { width: 580px; }
.device-body { position: relative; width: 100%; height: 100%; border-radius: 46px; padding: 10px; background: linear-gradient(145deg, #2b2b35, #0d0d12 55%, #25252e); box-shadow: 0 0 0 1px #3a3a46, 0 40px 80px -20px rgba(79,140,255,.18), 0 30px 60px rgba(0,0,0,.6); }
.island { position: absolute; top: 18px; left: 150px; width: 84px; height: 24px; margin-left: -42px; background: #000; border-radius: 14px; z-index: 6; }
.screens { display: flex; height: 100%; border-radius: 37px; overflow: hidden; background: #000; position: relative; }
.screen { position: relative; flex: none; width: 280px; height: 100%; overflow: hidden; display: flex; flex-direction: column; transition: background .3s, color .3s; }
.screen.dark { background: #0b0b10; color: #ececf1; --s-surface: #16161e; --s-line: #262633; --s-muted: #8e8e9c; --s-text: #ececf1; }
.screen.light { background: #f5f5f7; color: #1d1d1f; --s-surface: #ffffff; --s-line: #dcdce2; --s-muted: #6e6e78; --s-text: #1d1d1f; }
.crease { position: absolute; top: 10px; bottom: 10px; left: 50%; width: 10px; margin-left: -5px; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(255,255,255,.07) 45%, rgba(0,0,0,.6)); opacity: 0; pointer-events: none; transition: opacity .4s; z-index: 5; }
.device.open .crease { opacity: 1; }

/* the screens: folded = tune is a sheet over the app, unfolded = the right half */
.screen-tune { position: absolute; left: 0; right: auto; width: 280px; top: 0; bottom: 0; transform: translateY(102%); transition: transform .4s cubic-bezier(.2,.8,.2,1); z-index: 4; }
.device.sheet .screen-tune { transform: none; }
.device.open .screen-tune { position: relative; transform: none; z-index: auto; border-left: 1px solid var(--s-line); }
.device:not(.open) .tune-open { display: inline-block; }
.device.open .tune-open, .device.open .tune-close { display: none; }

.status { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px 4px; font: 600 12px/1 var(--sans); min-height: 36px; }
.bars { display: inline-flex; gap: 2px; align-items: flex-end; }
.bars i { display: block; width: 3px; background: currentColor; border-radius: 1px; }
.bars i:nth-child(1) { height: 4px; } .bars i:nth-child(2) { height: 6px; } .bars i:nth-child(3) { height: 8px; } .bars i:nth-child(4) { height: 10px; }
.home { margin: auto auto 8px; width: 96px; height: 4px; border-radius: 3px; background: currentColor; opacity: .35; flex: none; }

.app-head, .tune-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 8px; }
.app-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.app-sub { font: 12px/1.2 var(--mono); color: var(--s-muted); margin-top: 2px; }
.chip { font: 600 12px/1 var(--sans); color: var(--s-text); background: var(--s-surface); border: 1px solid var(--s-line); padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tune-open { display: none; }

.orb-card { margin: 4px 14px 10px; border-radius: 22px; background: var(--s-surface); border: 1px solid var(--s-line); display: flex; align-items: center; justify-content: center; min-height: 186px; }
.orb-card canvas { display: block; max-width: 100%; }
.chat { padding: 0 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
.msg { font-size: 13.5px; line-height: 1.35; padding: 9px 12px; border-radius: 16px; max-width: 88%; }
.msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.msg.ai { align-self: flex-start; background: var(--s-surface); border: 1px solid var(--s-line); border-bottom-left-radius: 5px; display: flex; align-items: center; gap: 8px; }
.msg.ai.answer { display: block; }
.msg canvas { width: 20px; height: 20px; flex: none; }
.app-foot { display: flex; align-items: center; gap: 10px; padding: 8px 14px 6px; }
.mock { font-size: 11px; color: var(--s-muted); }

.tune-scroll { overflow-y: auto; padding: 0 16px 8px; flex: 1; min-height: 0; scrollbar-width: thin; }
.group { margin: 0 0 14px; }
.group.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.label { font: 600 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--s-muted); margin: 0 0 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip { padding: 6px 9px; font-size: 11.5px; }
.chips .chip.new::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: middle; }
.chips .chip[aria-pressed="true"].new::after { background: #fff; }
.seg { display: flex; border: 1px solid var(--s-line); border-radius: 9px; overflow: hidden; }
.seg button { flex: 1; font: 600 11.5px/1 var(--sans); padding: 7px 4px; background: transparent; color: var(--s-text); border: 0; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.colors { display: flex; gap: 16px; font-size: 12px; color: var(--s-muted); }
.colors label { display: flex; align-items: center; gap: 8px; }
.colors input { width: 34px; height: 24px; padding: 0; border: 1px solid var(--s-line); border-radius: 6px; background: none; cursor: pointer; }
.sliders .row { display: grid; grid-template-columns: 62px 1fr 38px; gap: 8px; align-items: center; font-size: 11.5px; margin-bottom: 7px; }
.sliders .row span:last-child { text-align: right; font-family: var(--mono); color: var(--s-muted); }
.sliders input[type=range] { width: 100%; accent-color: var(--accent); }
.code { margin: 0 0 8px; background: #08080c; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; overflow-x: auto; font: 13px/1.55 var(--mono); color: #d9d9e4; }
.code code { background: none; padding: 0; font-size: inherit; }
.code.mini { font-size: 10.5px; padding: 9px 10px; border-radius: 10px; white-space: pre-wrap; word-break: break-word; border-color: var(--s-line); }
.screen .code.mini { background: var(--s-surface); color: var(--s-text); }

/* sections */
.block { max-width: 1180px; margin: 0 auto; padding: 72px 24px; border-top: 1px solid var(--line); }
.block h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; margin: 0 0 10px; line-height: 1.1; }
.block .sub { color: #b9b9c6; max-width: 40em; margin: 0 0 32px; }
.new { display: inline-block; font: 600 11px/1 var(--mono); color: var(--accent); border: 1px solid rgba(79,140,255,.45); padding: 3px 6px; border-radius: 999px; vertical-align: middle; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 12px 14px; text-align: center; cursor: pointer; color: var(--text); font: inherit; transition: transform .2s, border-color .2s, background .2s; }
.card:hover { transform: translateY(-3px); border-color: #34344a; background: var(--surface2); }
.card[aria-pressed="true"] { border-color: var(--accent); }
.card canvas { display: block; margin: 0 auto 10px; width: 96px; height: 96px; }
.card .name { font: 600 14px/1.2 var(--sans); }
.card .tag { font-size: 12px; color: var(--muted); margin-top: 4px; min-height: 2.6em; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.cols article h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.01em; }
.cols article p { margin: 0; color: #b9b9c6; font-size: 15px; }
.install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; margin-top: 24px; }
.install h3 { margin: 0 0 10px; font-size: 16px; }
.note { color: var(--muted); font-size: 13.5px; }
.credits p { color: #b9b9c6; max-width: 46em; }
footer { max-width: 1180px; margin: 0 auto; padding: 28px 24px 56px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 56px 24px 40px; }
.legal h1 { font-size: 36px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; letter-spacing: -.01em; }
.legal p, .legal li { color: #c4c4d0; }
.legal address { font-style: normal; color: #c4c4d0; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 28px; }
  .hero-copy { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .top { padding: 12px 16px; } .top nav { gap: 12px; } .top nav a:not(.gh) { display: none; }
  .hero, .block, footer { padding-left: 16px; padding-right: 16px; }
  .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .device, .screen, .screen-tune, .crease, .card { transition: none; }
}
