:root {
  --bg: #050a14;
  --bg-2: #0a1120;
  --ink: #f2f5fa;
  --ink-2: #b6c0d1;
  --ink-3: #7f8ca3;
  --cyan: #22d3ee;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-hi: rgba(255, 255, 255, 0.22);
  --radius: 22px;
  --radius-sm: 14px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p a { color: var(--cyan); }
p a:hover { text-decoration: underline; }
code {
  font-family: var(--mono);
  font-size: .88em;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--stroke);
  padding: .08em .4em;
  border-radius: 6px;
  color: #dbe6f5;
}
h1, h2, h3 { margin: 0; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.08; letter-spacing: -.03em; }
h3 { font-size: 1.15rem; }

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

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 50% -10%, #0e1b33 0%, var(--bg) 55%); }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.orb-a { width: 60vw; height: 60vw; left: -15vw; top: -20vw; background: radial-gradient(circle, rgba(34, 211, 238, .55), transparent 65%); animation: drift 26s var(--ease) infinite alternate; }
.orb-b { width: 50vw; height: 50vw; right: -18vw; top: 20vh; background: radial-gradient(circle, rgba(20, 184, 166, .45), transparent 65%); animation: drift 32s var(--ease) infinite alternate-reverse; }
.orb-c { width: 40vw; height: 40vw; left: 30vw; bottom: -25vw; background: radial-gradient(circle, rgba(245, 158, 11, .22), transparent 65%); animation: drift 38s var(--ease) infinite alternate; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vw, 4vh, 0) scale(1.08); } }
.grain { position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- glass ---------- */
.glass {
  position: relative;
  background: linear-gradient(180deg, var(--glass-strong), var(--glass));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 20px 60px -30px rgba(0, 0, 0, 0.8);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 20% 0%, rgba(255, 255, 255, 0.10), transparent 60%);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 28px));
  display: flex; align-items: center; gap: 1rem;
  padding: .55rem .7rem .55rem 1rem; z-index: 50; border-radius: 999px;
}
.nav::before { border-radius: 999px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: 1rem; letter-spacing: -.01em; }
.nav-links { display: flex; gap: .2rem; margin-left: auto; }
.nav-links a { padding: .45rem .75rem; border-radius: 999px; font-size: .9rem; color: var(--ink-2); transition: background .25s var(--ease), color .25s var(--ease); }
.nav-links a:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: .35rem; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); transition: background .25s, color .25s; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.hamburger { display: none; width: 36px; height: 36px; border: 0; background: transparent; border-radius: 50%; flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer; }
.hamburger span { display: block; width: 16px; height: 1.6px; background: var(--ink); border-radius: 2px; }
.mobile-menu { position: fixed; top: 76px; left: 14px; right: 14px; z-index: 49; padding: .6rem; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a { padding: .8rem 1rem; border-radius: 12px; color: var(--ink-2); }
.mobile-menu a:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn-primary { background: linear-gradient(135deg, var(--cyan), var(--teal)); color: #04151c; box-shadow: 0 10px 30px -10px rgba(34, 211, 238, .6); }
.btn-primary:hover { box-shadow: 0 14px 36px -10px rgba(34, 211, 238, .75); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--stroke); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.10); border-color: var(--stroke-hi); }
.btn-secondary { background: rgba(255, 255, 255, 0.08); border-color: var(--stroke); color: var(--ink); padding: .65rem 1.05rem; font-size: .9rem; margin-top: .4rem; }
.btn-small { padding: .5rem .95rem; font-size: .88rem; background: var(--ink); color: var(--bg); }
.btn-small:hover { background: #fff; }

/* ---------- hero ---------- */
main { position: relative; }
.hero {
  width: min(1120px, calc(100% - 40px)); margin: 0 auto;
  padding: 140px 0 60px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
}
.app-icon-wrap { width: 128px; height: 128px; margin-bottom: 1.6rem; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); }
.app-icon { border-radius: 28px; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--ink-2); padding: .4rem .9rem; margin: 0 0 1.2rem; border-radius: 999px; }
.glass-pill { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--stroke); }
.apple { width: 14px; height: 17px; color: var(--ink); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 56ch; margin: 1.3rem 0 1.8rem; line-height: 1.55; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.fineprint { font-size: .82rem; color: var(--ink-3); max-width: 60ch; margin-top: 1.2rem; }

.install-card { padding: 1.1rem 1.2rem 1rem; max-width: 620px; }
.install-head { display: flex; align-items: center; gap: .55rem; font-size: .85rem; color: var(--ink-2); font-weight: 500; margin-bottom: .7rem; }
.install-head .apple { width: 13px; height: 16px; }
.cmd {
  display: flex; align-items: stretch; gap: .5rem;
  background: rgba(2, 6, 14, 0.7); border: 1px solid var(--stroke); border-radius: var(--radius-sm);
  padding: .55rem .55rem .55rem .95rem;
}
.cmd code { flex: 1; background: none; border: 0; padding: .45rem 0; font-size: .92rem; color: #e6f7fb; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.cmd code::before { content: "$ "; color: var(--teal); }
.copy {
  display: inline-flex; align-items: center; gap: .4rem; align-self: center;
  border: 1px solid var(--stroke); background: rgba(255, 255, 255, 0.08); color: var(--ink);
  border-radius: 10px; padding: .5rem .75rem; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.copy svg { width: 15px; height: 15px; }
.copy:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--stroke-hi); }
.copy.done { background: rgba(20, 184, 166, .25); border-color: rgba(20, 184, 166, .6); }
.install-note { margin: .75rem 0 0; font-size: .86rem; color: var(--ink-3); }

.hero-shot { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: .9rem; width: min(340px, 90%); margin-left: auto; }
.menubar-strip {
  z-index: 2;
  display: flex; gap: 1.1rem; align-items: center; padding: .45rem .95rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.menubar-strip::before { border-radius: 999px; }
.mb-item { display: inline-flex; align-items: center; gap: .4rem; }
.mb-item.dim { color: var(--ink-3); font-weight: 500; }
.device {
  width: 100%; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--stroke-hi);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .04), 0 0 120px -30px rgba(34, 211, 238, .35);
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
  transform-origin: right center;
  transition: transform .8s var(--ease);
}
.hero-shot:hover .device { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }

/* ---------- kpis ---------- */
.kpis { width: min(1120px, calc(100% - 40px)); margin: 20px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.kpi { padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .2rem; }
.kpi-num { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; background: linear-gradient(135deg, #fff, #b8e9f2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi-label { font-size: .85rem; color: var(--ink-3); }

/* ---------- sections ---------- */
.section { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0 0; }
.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.eyebrow { margin: 0 0 .7rem; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.sub { color: var(--ink-2); font-size: 1.08rem; margin: 1rem 0 0; max-width: 62ch; }

.card { padding: 1.5rem 1.6rem; transition: transform .5s var(--ease), border-color .4s; }
.card:hover { transform: translateY(-3px); border-color: var(--stroke-hi); }
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.card p + p { margin-top: .7rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.showcase { padding: .6rem; margin-bottom: 1rem; overflow: hidden; }
.showcase img { border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08); }
.window-bar { display: flex; align-items: center; gap: .4rem; padding: .35rem .6rem .7rem; font-size: .78rem; color: var(--ink-3); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: .5rem; }

/* privacy */
.privacy { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; padding: 2.6rem 2.6rem; align-items: center; }
.privacy-copy .sub { font-size: 1rem; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.privacy-list li { display: flex; align-items: center; gap: .75rem; font-weight: 500; }
.check { width: 22px; height: 22px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--cyan), var(--teal)); position: relative; }
.check::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 10px; border: solid #04151c; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* install */
.install-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.install-opt { display: flex; flex-direction: column; gap: .9rem; }
.opt-head { display: flex; align-items: center; gap: .6rem; }
.opt-head svg { width: 20px; height: 20px; color: var(--ink); }
.opt-head .apple { width: 17px; height: 20px; }
.opt-head h3 { margin: 0; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.tag { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #04151c; background: linear-gradient(135deg, var(--cyan), var(--teal)); padding: .15rem .5rem; border-radius: 999px; }
.install-opt .cmd { flex-direction: column; gap: .4rem; }
.install-opt .cmd code { font-size: .84rem; }
.install-opt .cmd code::before { content: ""; }
.install-opt .copy { align-self: flex-end; }
.install-opt .btn { align-self: flex-start; }
.firstrun { margin-top: 1rem; padding: 1.6rem 1.8rem; }
.firstrun h3 { margin-bottom: .6rem; }
.firstrun ol { margin: 0; padding-left: 1.2rem; color: var(--ink-2); display: flex; flex-direction: column; gap: .5rem; }

/* table */
.table-wrap { overflow-x: auto; padding: .4rem; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .07); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }

/* faq */
.faq { padding: .4rem 1.4rem; }
.faq details { border-bottom: 1px solid rgba(255, 255, 255, .07); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-size: 1.3rem; font-weight: 400; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.1rem; color: var(--ink-2); }

/* final */
.final { padding-bottom: 40px; }
.final-card { padding: 3.4rem 2rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.final-card img { border-radius: 22px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }
.final-card .hero-ctas { justify-content: center; margin-top: .2rem; }
.cmd.wide { width: min(620px, 100%); text-align: left; }

/* footer */
.footer { width: min(1120px, calc(100% - 40px)); margin: 60px auto 0; padding: 2rem 0 3rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-left: auto; font-size: .9rem; color: var(--ink-2); }
.footer-links a { display: inline-flex; align-items: center; gap: .4rem; }
.footer-links a:hover { color: var(--ink); }
.footer-links svg { width: 14px; height: 14px; }
.footer-note { width: 100%; margin: 0; font-size: .8rem; color: var(--ink-3); }
.footer-note a { color: var(--ink-2); }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .orb { animation: none; }
  html { scroll-behavior: auto; }
}

/* responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; text-align: left; }
  .hero-shot { order: 2; margin: 1rem auto 0; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .install-grid { grid-template-columns: 1fr 1fr; }
  .privacy { grid-template-columns: 1fr; padding: 2rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 640px) {
  .section { padding-top: 80px; }
  .kpis, .feature-grid, .install-grid, .two-col, .method-grid { grid-template-columns: 1fr; }
  .btn-small { display: none; }
  .app-icon-wrap { width: 96px; height: 96px; }
  .app-icon { width: 96px; height: 96px; }
  .cmd { flex-direction: column; }
  .copy { align-self: flex-end; }
  .menubar-strip { display: none; }
  .device { transform: none; }
}
