:root {
  --bg: #07080a;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --dim: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.08);
  --red: #ff6363;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[hidden] { display: none !important; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- NAV ---------- */
.nav-wrap {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 10px 48px;
}
.nav {
  max-width: 1820px; margin: 0 auto;
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
  border-radius: 16px;
  background: rgba(22, 23, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; }
.links { display: flex; list-style: none; gap: 6px; }
.links a {
  display: block; padding: 6px 12px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color .2s, background .2s;
}
.links a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.login { font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .2s; }
.login:hover { color: #fff; }
.btn-download {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 8px;
  background: linear-gradient(#fff, #e6e6e6);
  color: #111; font-weight: 600; font-size: 14.5px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 4px 14px rgba(0,0,0,.4), inset 0 -1px 0 rgba(0,0,0,.1);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.btn-download:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px #fff, 0 6px 20px rgba(255,99,99,.25); }
.btn-download.big { height: 46px; padding: 0 20px; font-size: 16px; border-radius: 12px; }
.burger { display: none; width: 32px; height: 32px; flex-direction: column; justify-content: center; gap: 6px; }
.burger span { display: block; height: 1.5px; background: #fff; margin: 0 6px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; height: 100vh; min-height: 680px;
  display: grid; place-items: center;
  overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.beams {
  position: absolute; left: 50%; top: 50%;
  width: 150vmax; height: 170vmax;
  transform: translate(-38%, -50%) rotate(-40deg);
  display: flex; justify-content: center; gap: 2.2vw;
}
.beam {
  position: relative; display: block; flex: none;
  width: var(--w, 7.5vw); height: 100%;
  border-radius: 999px;
  background: linear-gradient(to bottom,
    transparent 16%,
    rgba(30, 90, 120, 0.8) 26%,
    var(--c2, #ff5c7a) 38%,
    var(--c1, #ff2b48) 55%,
    #b3001d 68%,
    transparent 80%);
  filter: blur(var(--blur, 0.8vw));
  opacity: 0;
  transform: translateY(var(--from, -60%)) scaleX(0.4);
  transition: opacity 1.8s var(--ease), transform 2.6s var(--ease);
  transition-delay: var(--d, 0s);
}
.beam::after { /* soft glossy highlight */
  content: ""; position: absolute; inset: 30% 30% 30% 15%;
  border-radius: inherit;
  background: linear-gradient(to bottom, transparent, rgba(255,210,220,.55) 30%, transparent 70%);
  filter: blur(12px);
}
.hero.ready .beam {
  opacity: var(--o, 1);
  transform: translateY(var(--to, 0%)) scaleX(1);
  animation: drift 9s ease-in-out infinite alternate;
  animation-delay: calc(var(--d, 0s) + 2.6s);
}
@keyframes drift {
  from { transform: translateY(var(--to, 0%)) scaleX(1); }
  to   { transform: translateY(calc(var(--to, 0%) + 3%)) scaleX(1.06); }
}
.b1  { --w: 3.50vw;  --d: .55s; --to: 8%;   --o: .45; --c1:#1b5570; --c2:#2f7d9c; --blur: 1.00vw; }
.b2  { --w: 6.00vw; --d: .35s; --to: 6%;   --o: .9;  --c1:#e3122e; --c2:#ff3b52; }
.b3  { --w: 9.50vw; --d: .15s; --to: 2%;  --c1:#f01c3c; --c2:#ff6d86; }
.b4  { --w: 8.00vw; --d: 0s;   --to: -3%; --c1:#ff2d4b; --c2:#ff8aa0; --blur: 0.64vw; }
.b5  { --w: 10.50vw; --d: .1s;  --to: -6%; --c1:#ef1837; --c2:#ff9fb0; }
.b6  { --w: 7.50vw; --d: .25s; --to: -9%; --c1:#d9102c; --c2:#ff5d77; }
.b7  { --w: 5.50vw; --d: .45s; --to: -13%; --o: .85; --c1:#23566f; --c2:#ff3450; --blur: 0.91vw; }
.b8  { --w: 4.50vw;  --d: .6s;  --to: -16%; --o: .7; --c1:#16475d; --c2:#2e7e98; --blur: 1.00vw; }
.b9  { --w: 3.50vw;  --d: .75s; --to: -18%; --o: .5; --c1:#11394b; --c2:#27667d; --blur: 1.18vw; }
.b10 { --w: 3.00vw;  --d: .9s;  --to: -20%; --o: .35; --c1:#0e2e3d; --c2:#1e5266; --blur: 1.18vw; }

.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay; opacity: 0;
  transition: opacity 2s ease 1s;
  animation: grain 1.2s steps(6) infinite;
  pointer-events: none;
}
@keyframes grain {
  0% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) } 40% { transform: translate(2%,-3%) }
  60% { transform: translate(-2%,-1%) } 80% { transform: translate(3%,3%) } 100% { transform: translate(0,0) }
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 55%, transparent 40%, rgba(7,8,10,.75) 100%),
    linear-gradient(to bottom, transparent 70%, var(--bg) 100%);
}
.hero-content { text-align: center; padding: 0 20px; margin-top: 80px; }
.hero h1 {
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 1.08; letter-spacing: -0.025em; font-weight: 600;
  text-shadow: 0 4px 40px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(16px); filter: blur(8px);
  transition: all 1.2s var(--ease) .2s;
}
.hero-sub {
  margin-top: 28px; font-size: clamp(16px, 1.45vw, 22px); line-height: 1.5;
  color: rgba(255,255,255,.92); font-weight: 500;
  opacity: 0; transform: translateY(12px);
  transition: all 1.2s var(--ease) 1.1s;
}
.hero-cta {
  margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 14px;
  opacity: 0; transform: translateY(12px);
  transition: all 1.2s var(--ease) 1.4s;
}
.cta-note { font-size: 13px; color: var(--dim); }
.cta-note code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.hero.ready .grain { opacity: .35; }
.hero.loaded h1 { opacity: 1; transform: none; filter: none; }
.hero.ready .hero-sub, .hero.ready .hero-cta { opacity: 1; transform: none; }

/* ---------- SECTION HEADS ---------- */
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2, .ext-head h2 {
  font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; letter-spacing: -0.02em;
}
.section-head p { font-size: clamp(22px, 2.4vw, 34px); font-weight: 600; color: rgba(255,255,255,.25); margin-top: 6px; letter-spacing: -0.02em; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- SHORTCUTS / MAC ---------- */
.shortcuts { padding: 140px 48px 120px; }
.mac {
  position: relative; max-width: 1820px; margin: 0 auto;
  aspect-ratio: 16 / 10.2; min-height: 620px;
  border-radius: 26px; overflow: hidden;
  background: #0b0b0d;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 0 0 10px rgba(255,255,255,.02), 0 0 0 11px rgba(255,255,255,.06), 0 40px 120px rgba(0,0,0,.6);
}
.mac-wallpaper { position: absolute; inset: 0; overflow: hidden; }
.mac-wallpaper::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 45% at 50% 60%, rgba(120, 10, 20, .55), transparent 70%);
}
.mac-wallpaper i {
  position: absolute; width: 140px; height: 160%; border-radius: 999px;
  top: -30%;
  background: linear-gradient(to bottom, transparent 20%, #8c0a18 50%, #e0142e 70%, transparent 90%);
  filter: blur(26px); opacity: .55;
  transform: rotate(-40deg);
}
.mac-wallpaper i:nth-child(1) { left: 22%; }
.mac-wallpaper i:nth-child(2) { left: 32%; width: 200px; opacity: .7; }
.mac-wallpaper i:nth-child(3) { left: 44%; width: 120px; }
.mac-wallpaper i:nth-child(4) { left: 55%; width: 90px; opacity: .35; }

.menubar {
  position: relative; z-index: 2;
  height: 40px; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14.5px; color: rgba(255,255,255,.75);
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 22px; }
.mb-left b { font-weight: 600; color: #fff; }
.battery { width: 26px; height: 12px; border: 1.2px solid rgba(255,255,255,.7); border-radius: 3.5px; padding: 1.5px; position: relative; }
.battery i { display: block; height: 100%; width: 80%; background: rgba(255,255,255,.85); border-radius: 1.5px; }
.battery::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; background: rgba(255,255,255,.6); border-radius: 0 1px 1px 0; }

/* Raycast window */
.rc-window {
  position: absolute; z-index: 3;
  left: 50%; top: 13%;
  width: min(760px, 62%);
  transform: translateX(-50%);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(40, 12, 16, .88), rgba(55, 14, 20, .82));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(40px) saturate(170%);
  -webkit-backdrop-filter: blur(40px) saturate(170%);
  overflow: hidden;
  transition: transform .5s var(--ease), opacity .4s;
}
.rc-window.swap { opacity: 0; transform: translateX(-50%) scale(.97); }
.rc-search {
  display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.rc-back {
  width: 24px; height: 24px; border-radius: 6px;
  background: rgba(255,255,255,.1); font-size: 13px; line-height: 1;
}
.rc-input { position: relative; font-size: 18px; display: flex; align-items: center; }
.caret { width: 1.5px; height: 20px; background: #fff; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.rc-placeholder { position: absolute; left: 3px; color: var(--dim); white-space: nowrap; pointer-events: none; }
.rc-body { position: relative; padding: 12px 8px 0; height: 400px; overflow: hidden; }
.rc-label { font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 8px 10px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.emoji-cell {
  aspect-ratio: 1; border-radius: 10px;
  display: grid; place-items: center;
  font-size: clamp(20px, 2.1vw, 34px);
  background: rgba(255,255,255,.055);
  border: 1.5px solid transparent;
  color: #fff;
  opacity: 0; transform: scale(.85);
  transition: opacity .35s var(--ease), transform .35s var(--ease), border-color .2s, background .2s;
  cursor: pointer; user-select: none;
}
.emoji-cell.show { opacity: 1; transform: none; }
.emoji-cell:hover { background: rgba(255,255,255,.09); }
.emoji-cell.selected { border-color: rgba(255,255,255,.85); background: rgba(255,255,255,.1); }
.emoji-cell.pop { animation: pop .4s var(--ease); }
@keyframes pop { 40% { transform: scale(.9); } }
.emoji-cell.sym { font-size: clamp(18px, 1.9vw, 30px); font-weight: 300; }

.toast {
  position: absolute; left: 50%; bottom: 14px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(60, 40, 42, .92);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 16px) scale(.96);
  transition: all .45s var(--ease);
  backdrop-filter: blur(20px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.rc-footer {
  display: flex; align-items: center; justify-content: space-between;
  height: 46px; padding: 0 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(20, 5, 8, .35);
  font-size: 13.5px;
}
.rc-cmd { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.8); font-weight: 500; }
.rc-cmd-ico {
  width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center;
  background: linear-gradient(#ff7a7a, #ea3b4b); font-size: 12px;
}
.rc-actions { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.rc-actions .muted { color: var(--muted); }
.rc-actions .sep { width: 1px; height: 16px; background: rgba(255,255,255,.15); margin: 0 8px; }
kbd {
  font-family: inherit; font-size: 12px; min-width: 24px; height: 22px; padding: 0 6px;
  display: inline-grid; place-items: center;
  border-radius: 5px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.8);
}

/* Dock */
.dock-wrap {
  position: absolute; z-index: 4; left: 50%; bottom: 0;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.dock-tip {
  margin-bottom: 14px; padding: 6px 12px; border-radius: 8px;
  background: rgba(20,20,22,.9); border: 1px solid rgba(255,255,255,.12);
  font-size: 15px; font-weight: 500;
  transition: opacity .25s;
}
.dock {
  display: flex; align-items: flex-end; gap: 10px;
  padding: 10px 12px 0; border-radius: 22px 22px 0 0;
  background: rgba(40,40,44,.45);
  border: 1px solid rgba(255,255,255,.1); border-bottom: 0;
  backdrop-filter: blur(20px);
}
.dock button {
  width: 66px; height: 62px; border-radius: 14px 14px 0 0;
  display: grid; place-items: center;
  background: linear-gradient(#3a3a3f, #232326);
  border: 1px solid rgba(255,255,255,.1); border-bottom: 0;
  color: rgba(255,255,255,.85);
  transition: all .35s var(--ease);
}
.dock button svg { width: 24px; height: 24px; }
.dock button:hover { transform: translateY(-4px); }
.dock button.active {
  width: 80px; height: 78px; border-radius: 40px 40px 0 0;
  background: radial-gradient(circle at 50% 30%, #55555b, #2b2b2f);
  color: #fff;
  box-shadow: 0 -6px 30px rgba(255,255,255,.08);
}
.dock button.active svg { width: 30px; height: 30px; }

/* Alternate tool views */
.tool-view { padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; }
.tool-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px;
  font-size: 15px; color: rgba(255,255,255,.9);
  opacity: 0; transform: translateY(6px); transition: all .4s var(--ease);
}
.tool-row.show { opacity: 1; transform: none; }
.tool-row.sel { background: rgba(255,255,255,.1); }
.tool-row .tag { margin-left: auto; font-size: 12.5px; color: var(--dim); }
.tool-row .ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: 12px; }
.calc-view { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 40px 20px; }
.calc-box { height: 170px; border-radius: 12px; background: rgba(255,255,255,.06); display: grid; place-items: center; font-size: 34px; font-weight: 600; text-align: center; }
.calc-box small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 8px; }
.ai-bubble { max-width: 80%; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; background: rgba(255,255,255,.08); margin: 8px; }
.ai-bubble.me { align-self: flex-end; background: rgba(255,99,99,.25); }

/* ---------- EXTENSIONS ---------- */
.extensions { padding: 80px 48px 120px; max-width: 1916px; margin: 0 auto; }
.ext-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 110px; }
.muted-title { color: rgba(255,255,255,.3); }
.ext-sub { font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; color: rgba(255,255,255,.55); line-height: 1.25; letter-spacing: -0.01em; margin-top: 4px; }
.ext-head h2.muted-title { font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; }
.tabs {
  position: relative; display: flex; gap: 4px; padding: 6px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.tab {
  position: relative; z-index: 1;
  padding: 10px 16px; border-radius: 11px;
  font-size: 17px; font-weight: 500; color: rgba(255,255,255,.5);
  transition: color .3s;
}
.tab:hover { color: rgba(255,255,255,.8); }
.tab.active { color: #fff; }
.tab-pill {
  position: absolute; top: 6px; bottom: 6px; left: 0; width: 0;
  border-radius: 11px;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: all .45s var(--ease);
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 88px; }
.card {
  --tint: 80, 90, 200;
  position: relative; overflow: hidden;
  height: 820px; border-radius: 26px;
  padding: 36px 36px 0;
  display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 80% 45% at 50% 42%, rgba(var(--tint), .45), transparent 80%),
    linear-gradient(180deg, rgba(var(--tint), .35), rgba(var(--tint), .12));
  border: 1px solid rgba(var(--tint), .45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 80px rgba(var(--tint), .08);
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .3s;
}
.card.show { opacity: 1; transform: none; }
.card:hover { border-color: rgba(var(--tint), .8); }
.card-top { display: flex; align-items: center; gap: 22px; }
.app-ico {
  width: 70px; height: 70px; border-radius: 16px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(#2b2b30, #151518);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 20px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.1);
}
.app-ico svg { width: 42px; height: 42px; }
.card-title { font-size: 26px; font-weight: 500; }
.card-arrow {
  margin-left: auto; width: 58px; height: 58px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.04);
  transition: background .2s, transform .2s;
}
.card:hover .card-arrow { background: rgba(255,255,255,.1); transform: translateX(2px); }
.card-desc {
  margin-top: 60px; padding-bottom: 42px; font-size: 22px; line-height: 1.6; color: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.card-visual { position: relative; flex: 1; overflow: hidden; }

/* Linear visual */
.lin { position: absolute; inset: 0; }
.lin .stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: rgba(255,255,255,.5); animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .15; } }
.lin svg.planet { position: absolute; left: 50%; top: 40px; width: 110%; transform: translateX(-50%); overflow: visible; }
.lin .glowline { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s var(--ease) forwards .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lin .status { position: absolute; bottom: 36px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 4px; }
.lin .status span {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  opacity: .35; transform: scale(.92); transition: all .5s var(--ease);
}
.lin .status span.on { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 12px rgba(255,255,255,.35)); }
.lin .status svg { width: 76px; height: 76px; }

/* Translate visual */
.tr { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; mask-image: linear-gradient(to right, #000 80%, transparent); -webkit-mask-image: linear-gradient(to right, #000 80%, transparent); }
.tr-row { display: flex; gap: 22px; white-space: nowrap; font-size: 36px; font-weight: 500; width: max-content; animation: marquee var(--dur, 30s) linear infinite; }
.tr-row.rev { animation-direction: reverse; }
.tr-row span:nth-child(odd) { color: rgba(255,255,255,.9); }
.tr-row span:nth-child(even) { color: rgba(170, 190, 255, .45); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Spotify visual */
.sp { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 44px; padding-top: 10px; }
.sp::before { content: ""; position: absolute; top: -20px; left: 50%; width: 320px; height: 200px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(60, 220, 110, .45), transparent 70%); filter: blur(20px); }
.cover {
  position: relative; width: 60%; aspect-ratio: 1; border-radius: 4px; overflow: hidden;
  background: linear-gradient(135deg, #e9e9e7, #bdbdba);
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  transition: transform .6s var(--ease);
}
.sp.playing .cover { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.015); } }
.cover .shape { position: absolute; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #555, #111); }
.cover .s1 { width: 58%; height: 58%; left: 22%; top: 24%; filter: blur(1px); }
.cover .s2 { width: 100%; height: 30%; left: 0; bottom: 0; border-radius: 0; background: linear-gradient(to top, #8f8f8c, transparent); }
.cover .lines { position: absolute; top: 8%; right: 7%; width: 30%; height: 3px; background: #444; box-shadow: 0 6px 0 #666; opacity: .6; }
.cover .eq { position: absolute; left: 8%; bottom: 8%; display: flex; gap: 3px; align-items: flex-end; height: 18px; }
.cover .eq i { width: 3px; background: #1db954; height: 30%; }
.sp.playing .cover .eq i { animation: eq .8s ease-in-out infinite alternate; }
.cover .eq i:nth-child(2) { animation-delay: .2s !important; }
.cover .eq i:nth-child(3) { animation-delay: .4s !important; }
@keyframes eq { to { height: 100%; } }
.controls { position: relative; display: flex; align-items: center; gap: 36px; }
.controls button { transition: transform .2s var(--ease); }
.controls button:hover { transform: scale(1.08); }
.controls button:active { transform: scale(.94); }
.play { width: 68px; height: 68px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.progress { position: relative; width: 60%; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); overflow: hidden; margin-top: -20px; }
.progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: #fff; border-radius: inherit; }

/* Generic visuals (other tabs) */
.code { position: absolute; inset: 20px 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; line-height: 2; color: rgba(255,255,255,.75); }
.code div { opacity: 0; transform: translateX(-10px); animation: lineIn .5s var(--ease) forwards; }
@keyframes lineIn { to { opacity: 1; transform: none; } }
.code .k { color: #ff7a90; } .code .s { color: #9be29b; } .code .c { color: rgba(255,255,255,.35); }
.swatches { position: absolute; inset: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-content: start; }
.swatches i { aspect-ratio: 1; border-radius: 16px; transform: scale(.6); opacity: 0; animation: swIn .6s var(--ease) forwards; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
@keyframes swIn { to { transform: none; opacity: 1; } }
.doc { position: absolute; inset: 40px 0 0; display: flex; flex-direction: column; gap: 16px; }
.doc i { height: 14px; border-radius: 7px; background: rgba(255,255,255,.14); transform-origin: left; transform: scaleX(0); animation: grow .8s var(--ease) forwards; }
.doc i.h { height: 26px; width: 60%; background: rgba(255,255,255,.3); }
@keyframes grow { to { transform: scaleX(1); } }
.doc .cursor { width: 2px; height: 26px; background: #fff; animation: blink 1s steps(1) infinite; }

.store-cta { display: flex; justify-content: center; margin-top: 90px; }
.btn-ghost {
  display: inline-flex; gap: 10px; align-items: center;
  padding: 12px 20px; border-radius: 12px; font-weight: 500;
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.04);
  transition: background .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-ghost span { transition: transform .2s; }
.btn-ghost:hover span { transform: translateX(3px); }

/* ---------- FEATURES / FOOTER ---------- */
.features { max-width: 1400px; margin: 0 auto; padding: 80px 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.03), transparent); }
.f-ico { font-size: 24px; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,99,99,.12); margin-bottom: 22px; }
.feature h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.feature p { color: var(--muted); line-height: 1.6; }

.final-cta { text-align: center; padding: 140px 20px; position: relative; }
.final-cta::before { content: ""; position: absolute; left: 50%; top: 50%; width: 700px; height: 300px; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(255, 50, 80, .25), transparent 70%); filter: blur(30px); z-index: -1; }
.final-cta h2 { font-size: clamp(36px, 5vw, 72px); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 36px; }

.footer { border-top: 1px solid var(--line); padding: 60px 48px 40px; max-width: 1400px; margin: 0 auto; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.foot-cols h4 { font-size: 14px; margin-bottom: 14px; }
.foot-cols a { display: block; color: var(--dim); font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.foot-cols a:hover { color: #fff; }
.foot-note { margin-top: 40px; color: var(--dim); font-size: 13px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1400px) {
  .cards { gap: 32px; }
  .card { height: 720px; padding: 28px 28px 0; }
  .card-desc { font-size: 19px; margin-top: 40px; }
  .tr-row { font-size: 30px; }
}
@media (max-width: 1100px) {
  .links { display: none; }
  .cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .ext-head { flex-direction: column; margin-bottom: 60px; }
  .features { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
}
@media (max-width: 720px) {
  .nav-wrap { padding: 8px 12px; }
  .hero-sub br, .ext-sub br { display: none; }
  .nav-right .login { display: none; }
  .shortcuts, .extensions { padding-left: 16px; padding-right: 16px; }
  .mac { aspect-ratio: auto; height: 640px; min-height: 0; }
  .rc-window { width: 94%; top: 60px; }
  .emoji-grid { grid-template-columns: repeat(5, 1fr); }
  .mb-left span { display: none; }
  .rc-actions .muted, .rc-actions .sep, .rc-actions kbd:not(:first-of-type) { display: none; }
  .dock button { width: 50px; height: 50px; }
  .dock button.active { width: 60px; height: 60px; }
  .tabs { overflow-x: auto; max-width: 100%; }
  .tab { font-size: 15px; padding: 8px 12px; white-space: nowrap; }
  .card { height: 640px; }
  .lin .status span, .lin .status svg { width: 56px; height: 56px; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .footer { padding: 40px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
