/* ==========================================================================
   Vela — home page
   ========================================================================== */

/* ---- Hero ----------------------------------------------------------------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(40px, 8vw, 96px)); overflow: hidden; isolation: isolate; }
.hero .stars { mask-image: linear-gradient(180deg, #000 40%, transparent 90%); -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 90%); }
.hero-glow { width: min(1100px, 140vw); height: 760px; left: 50%; top: 260px; transform: translateX(-50%); opacity: 0.9; z-index: -1; }
.hero-inner { text-align: center; display: grid; justify-items: center; gap: 22px; }
.release {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--text-2); text-decoration: none;
}
.release:hover { color: var(--text); border-color: rgba(var(--accent-rgb), 0.5); }
.release b { color: var(--text); font-weight: 600; }
.hero .display { max-width: 11ch; }
.hero .lead { max-width: 33em; }
.hero .btn-row { justify-content: center; }
.hero-meta { font: 500 12.5px/1.6 var(--font-mono); letter-spacing: 0.04em; color: var(--text-3); }
.hero-meta span { color: var(--text-2); }

/* The stage: Mac window, iPhone and Watch together */
.stage { position: relative; margin: clamp(48px, 8vw, 84px) auto 0; max-width: 1060px; padding-bottom: clamp(64px, 14vw, 150px); }
.stage-mac { width: 100%; }
.stage-phone { --w: clamp(132px, 27%, 286px); position: absolute; right: clamp(-6px, 1%, 24px); bottom: 0; }
.stage-watch { --w: clamp(78px, 14%, 150px); position: absolute; left: clamp(-4px, 2%, 30px); bottom: clamp(18px, 4%, 46px); }
.float { position: absolute; z-index: 7; box-shadow: 0 10px 30px -12px rgba(0,0,0,0.6); }
.float-1 { left: -4%; top: 34%; }
.float-2 { right: 30%; bottom: 10%; }
.float-3 { right: 2%; top: 9%; }
@media (max-width: 1180px) { .float-1 { left: 1%; top: auto; bottom: 4%; } }
@media (max-width: 719px) {
  .stage { padding-bottom: 46%; }
  .stage-phone { --w: 40%; right: -1%; }
  .stage-watch { --w: 24%; left: 2%; bottom: 6%; }
  .float-1 { left: 0; top: -18px; bottom: auto; }
  .float-2, .float-3 { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .float { animation: bob 7s ease-in-out infinite; }
  .float-2 { animation-delay: -2.3s; }
  .float-3 { animation-delay: -4.6s; }
}
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Three promises under the hero */
.promises { display: grid; gap: 1px; margin-top: clamp(36px, 6vw, 60px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.promises div { background: var(--bg); padding: 22px 24px; display: grid; gap: 6px; }
.promises b { font: 650 18px/1.2 var(--font-display); letter-spacing: -0.015em; }
.promises span { color: var(--text-2); font-size: 15px; }
@media (min-width: 760px) { .promises { grid-template-columns: repeat(3, 1fr); } }

/* ---- Marquee -------------------------------------------------------------- */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 34px; width: max-content; font: 600 13px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.marquee-track span::after { content: "✦"; margin-left: 34px; color: var(--accent); opacity: 0.7; }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: marquee 60s linear infinite; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Split feature sections ---------------------------------------------- */
.split-inner { display: grid; gap: clamp(40px, 7vw, 80px); align-items: center; }
.split-copy { display: grid; gap: 20px; align-content: start; }
.split-visual { position: relative; display: grid; place-items: center; min-height: 360px; }
.split-visual .glow { width: 620px; height: 620px; max-width: 150vw; }
@media (min-width: 980px) {
  .split-inner { grid-template-columns: 1fr 1fr; }
  .split-flip .split-copy { order: 2; }
}
.spec-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.spec-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.spec-list .spec-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--accent); background: rgba(var(--accent-rgb), 0.12); border: 1px solid rgba(var(--accent-rgb), 0.2); }
.spec-list .spec-icon .icon { width: 17px; height: 17px; }
.spec-list b { display: block; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.spec-list span { color: var(--text-2); font-size: 15.5px; }

.duo { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: clamp(14px, 3vw, 30px); }
.duo .iphone { --w: clamp(150px, 38vw, 270px); }
.duo .iphone + .iphone { margin-bottom: 8%; }
.chips-cloud { position: absolute; inset: 0; pointer-events: none; }
.chips-cloud .chip { position: absolute; }

/* ---- Brief section -------------------------------------------------------- */
.brief-steps { display: grid; gap: 12px; counter-reset: step; margin-top: 6px; }
.brief-steps li { list-style: none; display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.brief-steps li::before { counter-increment: step; content: "0" counter(step); font: 600 12px/1.8 var(--font-mono); color: var(--accent); }
.brief-steps b { display: block; color: var(--text); font-weight: 600; }
.brief-steps span { color: var(--text-2); font-size: 15px; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cats .chip { font-size: 10.5px; }

/* ---- Tabs section ---------------------------------------------------------- */
.pinch-btn { margin-top: 6px; justify-self: start; }
.tabs-stage { position: relative; display: flex; justify-content: center; gap: clamp(16px, 4vw, 36px); align-items: flex-end; }
.tabs-stage .iphone { --w: clamp(170px, 42vw, 290px); }
.tabs-stage .iphone.small { --w: clamp(130px, 30vw, 230px); margin-bottom: 7%; }
.pinch-hint { position: absolute; left: 50%; top: 46%; translate: -50% -50%; z-index: 8; display: flex; gap: 46px; pointer-events: none; opacity: 0; }
.pinch-hint i { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.75); box-shadow: 0 0 0 8px rgba(255,255,255,0.16); }
@media (prefers-reduced-motion: no-preference) {
  .is-pinching .pinch-hint { animation: pinch 1.1s var(--ease); }
}
@keyframes pinch { 0% { opacity: 0; gap: 70px; } 25% { opacity: 1; } 75% { opacity: 1; gap: 12px; } 100% { opacity: 0; gap: 12px; } }

/* ---- Privacy -------------------------------------------------------------- */
.privacy-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .privacy-grid { grid-template-columns: 1.1fr 1fr; } }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 22px; display: grid; gap: 4px; }
.stat strong { font: 680 clamp(34px, 5vw, 52px)/1 var(--font-display); letter-spacing: -0.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--text-2); }
.stat-wide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.toggles { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 8px 20px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row b { display: block; font-weight: 600; }
.toggle-row span { font-size: 14px; color: var(--text-2); }
.switch { position: relative; width: 50px; height: 30px; border-radius: 99px; background: var(--good); flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.switch.off { background: rgba(127,127,127,0.35); }
.switch.off::after { right: auto; left: 3px; }

/* ---- Profiles ------------------------------------------------------------- */
.worlds { position: relative; display: grid; gap: 12px; }
@media (min-width: 760px) { .worlds { grid-template-columns: repeat(3, 1fr); } }
.world { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 22px; display: grid; gap: 16px; position: relative; overflow: hidden; }
.world::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--w-color); }
.world header { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font: 700 18px/1 var(--font-display); color: #fff; background: var(--w-color); }
.world header b { display: block; font-weight: 650; font-size: 17px; }
.world header span { font-size: 13.5px; color: var(--text-2); }
.world dl { margin: 0; display: grid; gap: 8px; font-size: 13.5px; }
.world dl div { display: flex; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.world dt { color: var(--text-3); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.world dd { margin: 0; color: var(--text); font-weight: 500; }
.w-personal { --w-color: #3b82f6; } .w-work { --w-color: #10b981; } .w-studio { --w-color: #f59e0b; }

/* ---- AI ------------------------------------------------------------------- */
.ai-stage { position: relative; }
.ai-stage .mac { max-width: 980px; margin: 0 auto; }
.providers { display: flex; flex-wrap: wrap; gap: 8px; }
.providers .chip { font-size: 11.5px; color: var(--text); }

/* ---- Watch ------------------------------------------------------------------ */
.watch-row { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 3vw, 34px); flex-wrap: nowrap; }
.watch-row .watch { --w: clamp(96px, 24vw, 190px); }
.watch-row .watch:nth-child(2) { --w: clamp(112px, 29vw, 230px); }
.wnews { position: absolute; inset: 0; padding: 18cqw 6cqw 6cqw; display: grid; gap: 3cqw; align-content: start; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 34%, #000), #000 55%); }
.wnews .wtitle { position: absolute; top: 7cqw; left: 8cqw; right: 8cqw; display: flex; justify-content: space-between; font: 600 7cqw/1 var(--font-text); }
.wnews .wtitle span:first-child { color: rgba(255,255,255,0.7); }
.wchips { display: flex; gap: 2.4cqw; overflow: hidden; }
.wchips span { flex: none; padding: 2.6cqw 4cqw; border-radius: 99px; background: rgba(255,255,255,0.14); font: 650 4.8cqw/1 var(--font-text); }
.wchips span.on { background: var(--accent); color: var(--accent-ink); }
.wcard { position: relative; height: 40cqw; border-radius: 7cqw; overflow: hidden; }
.wcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.8)); }
.wcard b { position: absolute; z-index: 2; left: 4cqw; right: 4cqw; bottom: 4cqw; font: 650 5.6cqw/1.15 var(--font-text); }
.wrow { display: flex; gap: 3cqw; align-items: center; padding: 3cqw; border-radius: 6cqw; background: rgba(255,255,255,0.1); }
.wrow i { width: 13cqw; height: 13cqw; border-radius: 3.4cqw; flex: none; position: relative; overflow: hidden; }
.wrow span { font: 600 4.6cqw/1.2 var(--font-text); }
.wread { position: absolute; inset: 0; background: #000; }
.wread .art { height: 46%; bottom: auto; mask-image: linear-gradient(180deg, #000 45%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent); }
.wread .wtext { position: absolute; left: 7cqw; right: 7cqw; top: 36%; display: grid; gap: 2.6cqw; }
.wread .wtext small { font: 800 4cqw/1 var(--font-text); letter-spacing: 0.08em; color: rgba(255,255,255,0.75); }
.wread .wtext b { font: 700 7.2cqw/1.15 var(--font-text); }
.wread .wtext p { font-size: 5cqw; line-height: 1.35; color: rgba(255,255,255,0.8); }
.wread .wbtns { position: absolute; left: 6cqw; right: 6cqw; bottom: 6cqw; display: flex; justify-content: space-between; }
.wread .wbtns span { width: 15cqw; height: 15cqw; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 6.4cqw; }

/* ---- Themes ------------------------------------------------------------------ */
.theme-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (min-width: 760px) { .theme-strip { grid-template-columns: repeat(8, 1fr); } }
.theme-strip .swatch { padding: 14px 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 18px; font-size: 13px; }
.theme-strip .swatch i { width: 46px; height: 46px; }
.theme-strip .swatch[aria-pressed="true"] { border-color: rgba(var(--accent-rgb), 0.7); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15); }
.themes-stage { margin-top: clamp(36px, 6vw, 60px); display: flex; justify-content: center; gap: clamp(14px, 3vw, 28px); align-items: flex-end; }
.themes-stage .iphone { --w: clamp(140px, 36vw, 250px); }

/* ---- Developers ------------------------------------------------------------- */
.dev-grid { display: grid; gap: clamp(30px, 6vw, 60px); align-items: center; }
@media (min-width: 980px) { .dev-grid { grid-template-columns: 0.9fr 1.1fr; } }

/* ---- Download -------------------------------------------------------------- */
.download { position: relative; overflow: hidden; text-align: center; }
.download .glow { width: 900px; height: 700px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.download-icon { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto; box-shadow: 0 20px 60px -15px var(--glow), 0 0 0 1px rgba(255,255,255,0.1); }
.download h2 { margin-top: 18px; }
.download-meta { margin-top: 14px; font: 500 13px/1.7 var(--font-mono); color: var(--text-3); }
.install-steps { display: grid; gap: 10px; max-width: 760px; margin: 36px auto 0; text-align: left; }
@media (min-width: 760px) { .install-steps { grid-template-columns: repeat(3, 1fr); } }
.install-steps li { list-style: none; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 4px; }
.install-steps b { font: 600 12px/1 var(--font-mono); color: var(--accent); letter-spacing: 0.08em; }
.install-steps span { color: var(--text-2); font-size: 15px; }
.soon { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; color: var(--text-2); font-size: 14.5px; }
.soon .chip { font-size: 10.5px; }
