:root {
  --bg: #fbfbfd;
  --bg-soft: #f2f2f7;
  --ink: #111118;
  --ink-2: #4a4a57;
  --ink-3: #8a8a99;
  --line: rgba(17, 17, 24, 0.08);
  --line-strong: rgba(17, 17, 24, 0.16);
  --card: #ffffff;
  --brand-1: #8b6cf6;
  --brand-2: #3b82f6;
  --brand: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  --accent: #3b6ff6;
  --radius: 22px;
  --shadow-lg: 0 40px 80px -30px rgba(40, 30, 120, 0.35), 0 12px 30px -12px rgba(20, 20, 60, 0.18);
  --shadow-md: 0 18px 40px -18px rgba(30, 30, 80, 0.3);
  --max: 1160px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b10;
    --bg-soft: #14141c;
    --ink: #f4f4f8;
    --ink-2: #b4b4c3;
    --ink-3: #7c7c8c;
    --line: rgba(255, 255, 255, 0.11);
    --line-strong: rgba(255, 255, 255, 0.2);
    --card: #16161f;
    --accent: #7c9bff;
    --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 12px 30px -12px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.grad-text {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.logo img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { box-shadow: 0 10px 30px -10px rgba(60, 60, 160, .6); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { box-shadow: 0 12px 34px -10px rgba(91, 108, 246, .75); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn svg { width: 17px; height: 17px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 40px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(40% 50% at 25% 30%, rgba(139, 108, 246, .28), transparent 70%),
    radial-gradient(40% 50% at 75% 25%, rgba(59, 130, 246, .25), transparent 70%),
    radial-gradient(30% 40% at 50% 70%, rgba(236, 72, 153, .12), transparent 70%);
  filter: blur(10px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-2); box-shadow: 0 4px 14px -8px rgba(0,0,0,.2);
}
.eyebrow b { background: var(--brand); color: #fff; font-weight: 600; padding: 2px 9px; border-radius: 999px; font-size: 12px; }
h1 {
  font-size: clamp(44px, 7.4vw, 88px); line-height: 1.0; letter-spacing: -0.045em;
  font-weight: 700; margin: 22px auto 18px; max-width: 900px;
}
h1 .serif { font-size: 1.08em; letter-spacing: -0.02em; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 640px; margin: 0 auto 32px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }

.hero-stage { margin: 64px auto 0; max-width: 1080px; perspective: 2000px; }
.hero-stage .desk { transform: rotateX(8deg); transform-origin: 50% 100%; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.hero-stage.flat .desk { transform: rotateX(0); }

/* ---------- Desktop mockup ---------- */
.desk {
  position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg); isolation: isolate;
  background:
    radial-gradient(60% 70% at 15% 20%, #a78bfa 0%, transparent 60%),
    radial-gradient(60% 70% at 85% 30%, #60a5fa 0%, transparent 60%),
    radial-gradient(70% 80% at 60% 100%, #f472b6 0%, transparent 55%),
    linear-gradient(160deg, #6d5dfc, #3b82f6 60%, #22d3ee);
  container-type: inline-size;
  text-align: left;
  font-size: 1.25cqw;
}
.desk.dusk {
  background:
    radial-gradient(60% 70% at 20% 10%, #f59e0b 0%, transparent 55%),
    radial-gradient(70% 70% at 80% 20%, #ec4899 0%, transparent 60%),
    linear-gradient(170deg, #7c3aed, #312e81 70%);
}
.desk.calm {
  background:
    radial-gradient(60% 70% at 80% 20%, #34d399 0%, transparent 60%),
    radial-gradient(60% 70% at 10% 80%, #60a5fa 0%, transparent 60%),
    linear-gradient(160deg, #0ea5e9, #0f766e);
}
.menubar {
  position: absolute; inset: 0 0 auto; height: 2.4cqw;
  display: flex; align-items: center; gap: 1.6cqw; padding: 0 1.4cqw;
  font-size: 1.05cqw; font-weight: 500; color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.14); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.menubar b { font-weight: 700; }
.menubar .mb-right { margin-left: auto; display: flex; gap: 1.2cqw; opacity: .9; }

/* App window mockup */
.win {
  position: absolute; border-radius: 1.1cqw; overflow: hidden;
  background: rgba(255,255,255,.92); box-shadow: 0 2cqw 4cqw -1.5cqw rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.5);
}
.win .tb { height: 2.6cqw; display: flex; align-items: center; gap: .55cqw; padding: 0 1cqw; background: rgba(240,240,245,.9); border-bottom: 1px solid rgba(0,0,0,.06); }
.win .tb i { width: .95cqw; height: .95cqw; border-radius: 50%; display: block; }
.win .tb i:nth-child(1) { background: #ff5f57; } .win .tb i:nth-child(2) { background: #febc2e; } .win .tb i:nth-child(3) { background: #28c840; }
.win .tb span { margin-left: .8cqw; font-size: .95cqw; color: #555; font-weight: 600; }
.win .body { padding: 1.4cqw; display: grid; gap: .9cqw; }
.ln { height: .9cqw; border-radius: .5cqw; background: #e4e4ec; }
.ln.s { width: 40%; } .ln.m { width: 65%; } .ln.l { width: 85%; }
.ln.h { height: 1.6cqw; width: 50%; background: #cfd0e0; }
.blk { border-radius: .8cqw; background: linear-gradient(135deg, #e9e6ff, #dbeafe); height: 9cqw; }

/* The bar */
.bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 5.2cqw;
  display: flex; align-items: center; gap: .55cqw; padding: 0 1cqw;
  background: rgba(28, 28, 36, .55); backdrop-filter: blur(26px) saturate(160%); -webkit-backdrop-filter: blur(26px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,.14); color: #fff; z-index: 5;
  transition: all .45s cubic-bezier(.2,.8,.2,1);
}
.bar.floating { left: 18%; right: 18%; bottom: 1.2cqw; border-radius: 1.6cqw; border: 1px solid rgba(255,255,255,.18); }
.bar.light { background: rgba(250, 250, 255, .6); color: #111; border-top-color: rgba(255,255,255,.5); }
.bar.named { height: 6.6cqw; }
.cell {
  position: relative; width: 4.2cqw; height: 4.2cqw; border-radius: .9cqw;
  display: grid; place-items: center; flex: none; transition: width .35s, background .2s;
}
.bar.named .cell { width: 5.6cqw; height: 6cqw; align-content: center; gap: .25cqw; padding-bottom: .5cqw; }
.cell:hover, .cell.active { background: rgba(255,255,255,.14); }
.bar.light .cell:hover, .bar.light .cell.active { background: rgba(0,0,0,.07); }
.cell .nm { display: none; font-size: .85cqw; max-width: 5.2cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .92; }
.bar.named .cell .nm { display: block; }
.cell::after {
  content: ""; position: absolute; bottom: .25cqw; left: 50%; transform: translateX(-50%);
  width: .7cqw; height: .28cqw; border-radius: 1cqw; background: rgba(255,255,255,.55); opacity: 0;
}
.cell.run::after { opacity: 1; }
.cell.active::after { width: 1.7cqw; background: #7aa2ff; }
.start svg { width: 2.4cqw; height: 2.4cqw; transition: color .3s; }
.start svg { color: currentColor; }

/* App tiles: made-up apps */
.tile {
  width: 2.9cqw; height: 2.9cqw; border-radius: .75cqw; display: grid; place-items: center;
  color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 .3cqw .6cqw -.3cqw rgba(0,0,0,.4);
}
.tile svg { width: 58%; height: 58%; stroke-width: 2.2; }
.g-blue { background: linear-gradient(150deg, #5ea2ff, #2563eb); }
.g-purple { background: linear-gradient(150deg, #c084fc, #7c3aed); }
.g-pink { background: linear-gradient(150deg, #fb7185, #db2777); }
.g-orange { background: linear-gradient(150deg, #fdba74, #f97316); }
.g-yellow { background: linear-gradient(150deg, #fde047, #f59e0b); color: #3b2a00 !important; }
.g-green { background: linear-gradient(150deg, #4ade80, #16a34a); }
.g-teal { background: linear-gradient(150deg, #5eead4, #0d9488); }
.g-gray { background: linear-gradient(150deg, #6b7280, #1f2937); }
.g-indigo { background: linear-gradient(150deg, #818cf8, #4338ca); }
.g-red { background: linear-gradient(150deg, #f87171, #dc2626); }

.badge {
  position: absolute; top: .2cqw; right: .25cqw; min-width: 1.5cqw; height: 1.5cqw; padding: 0 .4cqw;
  border-radius: 1cqw; background: #ff3b30; color: #fff; font-size: .95cqw; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 .15cqw .3cqw rgba(0,0,0,.35);
}
.bar.named .badge { top: .6cqw; right: .9cqw; }
.tray { margin-left: auto; display: flex; align-items: center; gap: 1.1cqw; font-size: 1.05cqw; padding-right: .4cqw; }
.tray svg { width: 1.5cqw; height: 1.5cqw; }
.clock { text-align: right; line-height: 1.25; font-weight: 500; }
.clock small { display: block; opacity: .75; font-size: .9cqw; }
.showdesk { width: .35cqw; height: 3.4cqw; border-left: 1px solid rgba(255,255,255,.25); margin-left: .4cqw; }

/* Start menu mockup */
.startmenu {
  position: absolute; left: 1cqw; bottom: 6.2cqw; width: 46cqw; height: 29cqw;
  border-radius: 1.4cqw; padding: 1.6cqw; display: grid; grid-template-columns: 1fr 3.4cqw; gap: 1cqw;
  background: rgba(32, 32, 42, .72); backdrop-filter: blur(30px) saturate(170%); -webkit-backdrop-filter: blur(30px) saturate(170%);
  border: 1px solid rgba(255,255,255,.14); color: #fff; z-index: 6;
  box-shadow: 0 3cqw 6cqw -2cqw rgba(0,0,0,.6);
  animation: rise .7s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(2cqw) scale(.98); } }
.sm-main { display: flex; flex-direction: column; min-width: 0; }
.sm-head { display: flex; justify-content: space-between; align-items: center; font-weight: 650; font-size: 1.25cqw; margin-bottom: 1cqw; }
.pill { font-size: .95cqw; font-weight: 500; padding: .3cqw .9cqw; border-radius: 2cqw; background: rgba(255,255,255,.12); }
.sm-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6cqw .2cqw; }
.sm-app { display: grid; justify-items: center; gap: .45cqw; font-size: .9cqw; padding: .6cqw .2cqw; border-radius: .7cqw; text-align: center; }
.sm-app:hover { background: rgba(255,255,255,.1); }
.sm-app .tile { width: 3.2cqw; height: 3.2cqw; }
.sm-sec { display: flex; align-items: center; gap: .5cqw; margin: 1.1cqw 0 .5cqw; font-size: 1.05cqw; font-weight: 600; opacity: .7; }
.sm-sec svg { width: 1cqw; height: 1cqw; }
.sm-gap { border: 2px dashed #7aa2ff; background: rgba(122,162,255,.16); border-radius: .8cqw; }
.sm-side { border-left: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; align-items: center; gap: 1.2cqw; padding-top: .3cqw; }
.sm-side svg { width: 1.4cqw; height: 1.4cqw; opacity: .8; }
.sm-side .sp { flex: 1; }

/* Window picker mockup */
.picker {
  position: absolute; bottom: 6.2cqw; left: 20cqw; display: flex; gap: 1cqw; padding: 1.1cqw;
  border-radius: 1.3cqw; background: rgba(32,32,42,.74); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,.14); z-index: 6; color: #fff;
  box-shadow: 0 3cqw 6cqw -2cqw rgba(0,0,0,.6);
}
.thumb { width: 15cqw; border-radius: .9cqw; padding: .7cqw; transition: background .2s, transform .2s; cursor: default; }
.thumb:hover, .thumb.sel { background: rgba(255,255,255,.12); }
.thumb.sel { box-shadow: inset 0 0 0 2px #7aa2ff; }
.thumb .t-head { display: flex; align-items: center; gap: .5cqw; font-size: .95cqw; margin-bottom: .6cqw; }
.thumb .t-head .tile { width: 1.5cqw; height: 1.5cqw; border-radius: .4cqw; }
.thumb .t-head span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.thumb .shot { aspect-ratio: 16/10; border-radius: .5cqw; overflow: hidden; background: #f4f4f8; display: grid; gap: .5cqw; padding: .8cqw; align-content: start; }
.thumb .shot .ln { height: .6cqw; }
.thumb.min .shot { opacity: .6; position: relative; }
.mincap { position: absolute; top: 40%; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.6); color: #fff; font-size: .85cqw; padding: .2cqw .7cqw; border-radius: 1cqw; }
.peek-dim { position: absolute; inset: 0; background: rgba(0,0,0,.4); z-index: 4; opacity: 0; transition: opacity .3s; pointer-events: none; }
.desk.peeking .peek-dim { opacity: 1; }
.peek-win.minimized { opacity: 0; transition: opacity .25s; }
.desk.peeking .peek-win.up { opacity: 1; }
.desk.peeking .peek-win.up { z-index: 5; box-shadow: 0 0 0 2px rgba(255,255,255,.6), 0 3cqw 6cqw -1cqw rgba(0,0,0,.6); }

/* Flyout (quick settings) */
.flyout {
  position: absolute; right: 1cqw; bottom: 6.2cqw; width: 30cqw; padding: 1.5cqw; border-radius: 1.4cqw;
  background: rgba(32,32,42,.74); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,.14); z-index: 6; color: #fff; display: grid; gap: 1.2cqw;
  box-shadow: 0 3cqw 6cqw -2cqw rgba(0,0,0,.6);
}
.qs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7cqw; }
.qs { border-radius: .9cqw; padding: .9cqw; background: rgba(255,255,255,.1); font-size: .95cqw; display: grid; gap: .5cqw; }
.qs.on { background: #4f7cff; }
.qs svg { width: 1.6cqw; height: 1.6cqw; }
.slider { display: flex; align-items: center; gap: .8cqw; font-size: .9cqw; }
.slider svg { width: 1.5cqw; height: 1.5cqw; flex: none; }
.slider .track { flex: 1; height: .5cqw; border-radius: 1cqw; background: rgba(255,255,255,.2); position: relative; }
.slider .track i { position: absolute; inset: 0 auto 0 0; border-radius: 1cqw; background: #fff; }

/* ---------- Sections ---------- */
section { padding: 120px 0; position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.kicker svg { width: 16px; height: 16px; }
h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.035em; margin: 14px 0 18px; font-weight: 700; }
h3 { font-size: 20px; letter-spacing: -0.015em; margin: 0 0 6px; }
.sub { font-size: 19px; color: var(--ink-2); max-width: 560px; }
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
.split.rev { grid-template-columns: 1.2fr 0.8fr; }
.split.rev > :first-child { order: 2; }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--ink-2); font-size: 16px; }
.points li b { color: var(--ink); font-weight: 600; }
.points li svg { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.kbd { display: inline-block; font: 600 13px/1 var(--sans); padding: 4px 8px; border-radius: 7px; background: var(--bg-soft); border: 1px solid var(--line); border-bottom-width: 2px; color: var(--ink); }

.band { background: var(--bg-soft); }
.center { text-align: center; }
.center .sub { margin: 0 auto; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 56px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02); overflow: hidden; position: relative;
}
.card p { color: var(--ink-2); margin: 0; font-size: 15.5px; }
.card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; }
.card .ic svg { width: 21px; height: 21px; }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; }

/* Customizer */
.custom-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; margin-top: 56px; align-items: stretch; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel h3 { margin-bottom: 4px; }
.panel .muted { color: var(--ink-3); font-size: 14.5px; margin: 0 0 18px; }
.icon-choices { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; }
.ichoice {
  aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; cursor: pointer;
  background: var(--bg-soft); border: 2px solid transparent; transition: border-color .15s, transform .15s;
  color: var(--swatch, var(--ink));
}
.ichoice:hover { transform: translateY(-1px); }
.ichoice.sel { border-color: var(--accent); }
.ichoice svg { width: 52%; height: 52%; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sw {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid var(--card);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent); transition: transform .15s, box-shadow .15s;
}
.sw:hover { transform: scale(1.08); }
.sw.sel { box-shadow: 0 0 0 2px var(--accent); }
.mini-desk { margin-top: 22px; border-radius: 16px; overflow: hidden; }
.mini-desk .desk { aspect-ratio: 16 / 5; border-radius: 16px; box-shadow: var(--shadow-md); }
.mini-desk .bar { height: 11cqw; padding: 0 2cqw; gap: 1.2cqw; }
.mini-desk .cell { width: 9cqw; height: 9cqw; border-radius: 2cqw; }
.mini-desk .start svg { width: 5.4cqw; height: 5.4cqw; }
.mini-desk .tile { width: 6.2cqw; height: 6.2cqw; border-radius: 1.6cqw; }
.mini-desk .badge { min-width: 3.2cqw; height: 3.2cqw; font-size: 2cqw; border-radius: 2cqw; }
.mini-desk .cell::after { height: .6cqw; width: 1.6cqw; bottom: .5cqw; }
.mini-desk .cell.active::after { width: 3.8cqw; }
.mini-desk .tray { font-size: 2.2cqw; gap: 2cqw; }
.mini-desk .tray svg { width: 3cqw; height: 3cqw; }

.appicons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.appicons .tile { width: 100%; height: auto; aspect-ratio: 1; border-radius: 22%; transition: transform .2s, background .3s; }
.appicons .tile svg { stroke-width: 2; }
.appicons .tile:hover { transform: translateY(-2px) rotate(-3deg); }
.rename {
  margin-top: 20px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--bg-soft);
}
.rename .tile { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.rename .field { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; font-size: 15px; display: flex; align-items: center; }
.caret { width: 1.5px; height: 18px; background: var(--accent); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Layout toggles */
.toggles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 36px 0 28px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.seg button {
  border: 0; background: transparent; color: var(--ink-2); font: 600 14px/1 var(--sans);
  padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s;
}
.seg button.on { background: var(--ink); color: var(--bg); }
.layout-stage { max-width: 980px; margin: 0 auto; }

/* Keys */
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.key-card { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.key-card .combo { display: flex; gap: 6px; margin-bottom: 16px; }
.key-card .combo .kbd { font-size: 16px; padding: 9px 12px; border-radius: 10px; }

/* Privacy */
.privacy { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-left: auto; margin-right: auto; gap: 18px; margin-top: 48px; }

/* Pricing */
.price-card h3 { font-size: 22px; margin: 0; }
.price-card .cta-row { margin-top: auto; }
.price-card { display: flex; flex-direction: column; }
.pro-tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--brand); }
.price-card {
  max-width: 560px; margin: 0; padding: 44px; border-radius: 28px; text-align: center; position: relative;
  border: 1.5px solid transparent; box-shadow: var(--shadow-lg);
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--brand) border-box;
}
.price { font-size: 64px; font-weight: 750; letter-spacing: -0.04em; line-height: 1; margin: 18px 0 6px; }
.price small { font-size: 18px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 10px; text-align: left; }
.price-card li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15.5px; }
.price-card li svg { width: 19px; height: 19px; color: #22c55e; flex: none; margin-top: 3px; }
.price-card .cta-row { flex-direction: column; }
.price-card .btn { justify-content: center; }

/* FAQ */
.faq { max-width: 760px; margin: 48px auto 0; }
details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
summary { cursor: pointer; font-weight: 600; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--ink-3); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); margin: 12px 0 0; }

/* Final CTA + footer */
.final {
  margin: 0 auto; max-width: calc(var(--max) + 40px); width: calc(100% - 48px); border-radius: 36px; padding: 96px 24px; text-align: center; color: #fff; overflow: hidden; position: relative;
  background: radial-gradient(60% 80% at 20% 0%, #a78bfa, transparent 60%), radial-gradient(60% 80% at 90% 100%, #22d3ee, transparent 60%), linear-gradient(135deg, #6d5dfc, #3b82f6);
}
.final h2 { color: #fff; }
.final p { color: rgba(255,255,255,.85); font-size: 19px; margin: 0 auto 30px; max-width: 520px; }
.final .btn-primary { background: #fff; color: #1a1a2e; }
.final img { width: 96px; height: 96px; margin: 0 auto 10px; filter: drop-shadow(0 16px 30px rgba(0,0,0,.3)); }
footer { padding: 48px 0 60px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer a { text-decoration: none; color: var(--ink-2); }
footer .sp { flex: 1; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-stage .desk { transform: none; }
  * { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .split.rev, .custom-grid { grid-template-columns: 1fr; gap: 40px; }
  .split.rev > :first-child { order: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .c2, .c3, .c4 { grid-column: span 2; }
  .keys, .privacy { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  section { padding: 84px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 56px; }
  .bento { grid-template-columns: 1fr; }
  .c2, .c3, .c4 { grid-column: span 1; }
  .icon-choices { grid-template-columns: repeat(6, 1fr); }
  .price-card { padding: 32px 22px; }
  .final { width: calc(100% - 24px); border-radius: 28px; padding: 72px 20px; }
}

/* ---------- Hero demo: a cursor tours the taskbar ---------- */
.bar .apps { display: flex; align-items: center; gap: .55cqw; flex: none; }
.bar .lead { flex: 0 1 0; transition: flex-grow .7s cubic-bezier(.2,.8,.2,1); }
.bar .trail { flex: 1 1 0; }
.bar.centered .lead { flex-grow: 1; }
.bar.light .showdesk { border-left-color: rgba(0,0,0,.2); }
.desk .win { transition: box-shadow .3s; }
.desk .win.front { z-index: 2; box-shadow: 0 2.6cqw 5cqw -1.5cqw rgba(0,0,0,.55); }
.cell .badge { transition: transform .3s cubic-bezier(.3,1.6,.5,1), opacity .2s; }
.cell .badge.gone { transform: scale(0); opacity: 0; }

#heroMenu { transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1); transform-origin: 10% 100%; }
#heroMenu.closed { opacity: 0; transform: translateY(1.5cqw) scale(.97); pointer-events: none; }

.hprev {
  position: absolute; z-index: 7; display: flex; gap: .5cqw; padding: .6cqw; border-radius: 1.2cqw;
  background: rgba(32, 32, 42, .8); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.16); color: #fff; box-shadow: 0 2cqw 4cqw -1.5cqw rgba(0,0,0,.6);
  opacity: 0; transform: translateY(.8cqw); pointer-events: none;
  transition: opacity .25s, transform .3s cubic-bezier(.2,.8,.2,1);
}
.hprev.show { opacity: 1; transform: none; }
.hp-head { display: flex; align-items: center; gap: .6cqw; font-weight: 600; font-size: 1cqw; margin-bottom: .7cqw; }
.hp-head .tile { width: 1.7cqw; height: 1.7cqw; border-radius: .45cqw; }
.hp-head span { margin-left: auto; font-weight: 500; opacity: .65; font-size: .85cqw; }
.hp-shot { background: rgba(255,255,255,.92); border-radius: .6cqw; padding: 1cqw; display: grid; gap: .6cqw; height: 7.5cqw; align-content: start; }
.hp-shot .ln { height: .7cqw; }
.hp-shot .blk { height: 3.2cqw; }
.hp-thumb { width: 14cqw; padding: .6cqw; border-radius: .8cqw; transition: background .2s, box-shadow .2s; }
.hp-thumb.sel { background: rgba(255,255,255,.13); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }

.demo-cap {
  position: absolute; z-index: 9; top: 4.4cqw; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 1cqw; padding: 1.1cqw 2.2cqw; border-radius: 99px;
  background: rgba(15, 15, 22, .62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.18); color: #fff; font-weight: 700; font-size: 2.3cqw; letter-spacing: -.01em; white-space: nowrap;
  box-shadow: 0 1.5cqw 3cqw -1cqw rgba(0,0,0,.5);
  transition: opacity .18s;
}
.demo-cap svg { width: 2.4cqw; height: 2.4cqw; color: #c4b5fd; }
.demo-cap.swap { opacity: 0; }

.demo-cursor {
  position: absolute; z-index: 10; left: 0; top: 0; width: 2cqw; height: 2cqw;
  fill: #fff; stroke: #111; stroke-width: 1.3; stroke-linejoin: round;
  filter: drop-shadow(0 .2cqw .3cqw rgba(0,0,0,.4));
  transform: translate(60cqw, 30cqw); opacity: 0;
  transition: transform .55s cubic-bezier(.45,.05,.25,1), opacity .3s;
}
.demo-cursor.on { opacity: 1; }
.click-ring {
  position: absolute; z-index: 9; width: 3cqw; height: 3cqw; margin: -1.5cqw 0 0 -1.5cqw; border-radius: 50%;
  border: .25cqw solid rgba(255,255,255,.9); pointer-events: none; animation: ring .5s ease-out forwards;
}
@keyframes ring { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
#heroBar.floating { left: 9%; right: 9%; }

/* Free download, and the way to Pro */
.pro-teaser {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-top: 30px; padding: 12px 18px; border-radius: 16px; color: var(--ink-2); font-size: 15px;
  text-decoration: none; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.pro-teaser b { color: var(--ink); }
.pro-teaser svg { width: 16px; height: 16px; }
.pro-teaser .pro-tag { margin-left: 0; }
.pro-teaser:hover b { text-decoration: underline; }

/* Pro page */
.pro-hero { padding: 150px 0 40px; }
.pro-hero h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.04em; margin: 16px 0 18px; }
.pro-hero .sub { margin: 0 auto; }
.pro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.price-card.solo { margin: 48px auto 0; }
@media (max-width: 820px) { .pro-grid { grid-template-columns: 1fr; } .pro-hero { padding-top: 120px; } }
