/* PYCodeAI store, Apple-style: SF Pro, white / #f5f5f7 / black sections, rounded tiles, soft shadows. Mobile first. */
:root {
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  --text: #1D1D1F; --muted: #6E6E73; --faint: #86868B; --line: #D2D2D7;
  --gray: #F5F5F7; --black: #000; --tile-dark: #1D1D1F;
  --blue: #0071E3; --link: #0066CC; --link-dark: #2997FF;
  --red: #E3342B;
  --grad: linear-gradient(90deg, #E3342B 0%, #FF6B3D 55%, #FF9F43 100%);
  --radius: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { font-family: var(--sf); color: var(--text); background: #fff; font-size: 17px; line-height: 1.47; letter-spacing: -.022em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
strong, b { font-weight: 600; }
.container { width: 100%; max-width: 1024px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- type ---------- */
.eyebrow { font-weight: 600; font-size: 17px; color: var(--red); letter-spacing: -.01em; margin-bottom: 8px; }
.eyebrow.light { color: #FF7A59; }
.display { font-weight: 700; letter-spacing: -.035em; line-height: 1.05; font-size: 44px; }
.headline { font-weight: 700; letter-spacing: -.03em; line-height: 1.08; font-size: 36px; margin-bottom: 18px; }
.headline.light { color: #F5F5F7; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.body-lg { font-size: 19px; line-height: 1.42; color: var(--muted); letter-spacing: -.015em; }
.body-lg strong { color: var(--text); }
.dim { color: #A1A1A6; }
.dim strong { color: #F5F5F7; }
.note { color: var(--faint); font-size: 15px; margin-top: 22px; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.gray { background: var(--gray); }
.dark { background: var(--black); color: #F5F5F7; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(22, 22, 23, .86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.topbar-in { height: 48px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; color: #F5F5F7; font-weight: 500; font-size: 16px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 50%; border: .5px solid rgba(255,255,255,.35); }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { color: #D2D2D7; font-size: 12.5px; padding: 5px 11px; border-radius: 980px; letter-spacing: -.005em; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav a:not(.nav-secret) { display: none; }
.nav-secret { background: #F5F5F7; color: var(--text) !important; font-weight: 500; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 48px 0 40px; overflow: hidden; background-color: #fff;
  background-image: radial-gradient(ellipse 60% 42% at 50% 22%, rgba(255,255,255,.92), rgba(255,255,255,0) 72%),
    linear-gradient(to right, #E9E9EF 1px, transparent 1px), linear-gradient(to bottom, #E9E9EF 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px; border-bottom: 1px solid #E8E8ED; }
.hero-sub { font-size: 19px; line-height: 1.38; color: var(--muted); max-width: 680px; margin: 18px auto 0; letter-spacing: -.015em; }
.links { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 22px; }
.links a { font-size: 19px; letter-spacing: -.01em; }
.links span { display: inline-block; transition: transform .2s; }
.links a:hover span { transform: translateX(3px); }
.stage { position: relative; height: 96vw; max-height: 640px; max-width: 980px; margin: 40px auto 0; }
.stage img { position: absolute; left: 50%; top: 0; }
.stage .cover { width: 60vw; max-width: 380px; transform: translateX(-50%); z-index: 3; border-radius: 4px 10px 10px 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 30px 60px -12px rgba(0,0,0,.35), 0 18px 36px -18px rgba(0,0,0,.3); }
.stage .pg { width: 52vw; max-width: 330px; top: 24px; z-index: 1; border-radius: 6px; box-shadow: 0 24px 48px -16px rgba(0,0,0,.28); }
.stage .pg-l { transform: translateX(-104%) rotate(-7deg); }
.stage .pg-r { transform: translateX(4%) rotate(7deg); }
.avail { color: var(--faint); font-size: 13px; margin-top: 4px; }

/* ---------- hero specs (Apple-style stat bar) ---------- */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 560px; margin: 30px auto 0; background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid #E5E5EA; border-radius: 20px; padding: 16px 4px;
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.25); }
.specs div { position: relative; }
.specs div + div::before { content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 1px; background: #E5E5EA; }
.specs dt { font-size: 30px; font-weight: 700; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.specs dd { margin-top: 5px; font-size: 12.5px; color: var(--muted); letter-spacing: -.005em; }

/* ---------- numbers ---------- */
.numbers { padding: 44px 0; border-bottom: 1px solid #E8E8ED; }
.numbers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 12px; text-align: center; }
.numbers b { display: block; font-size: 52px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.numbers span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }

/* ---------- tiles ---------- */
.tiles3, .tiles4 { display: grid; gap: 14px; margin-top: 36px; }
.tile { background: #fff; border-radius: var(--radius); padding: 26px 24px; }
.gray .tile { background: #fff; }
.tile .emoji { font-size: 30px; display: block; margin-bottom: 12px; }
.tile p { color: var(--muted); font-size: 17px; }
.tile h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }

/* problem: terminal + text */
.fix { max-width: 680px; margin: 40px auto 0; display: grid; gap: 22px; text-align: center; }

/* ---------- terminal ---------- */
.term { background: #1C1C1E; border-radius: 16px; overflow: hidden; color: #E5E5EA; text-align: left;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.45); }
.term .bar { height: 36px; background: #2C2C2E; display: flex; align-items: center; gap: 7px; padding: 0 14px; position: relative; }
.term .bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.term .bar i:nth-child(2) { background: #FEBC2E; } .term .bar i:nth-child(3) { background: #28C840; }
.term .bar span { position: absolute; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 12px; color: #8E8E93; }
.term pre { font-family: var(--mono); font-size: 14px; line-height: 1.6; padding: 16px; white-space: pre; letter-spacing: 0; }
.term .out { border-top: 1px solid #3A3A3C; padding: 12px 16px; font-family: var(--mono); color: #8E8E93; font-size: 14px; letter-spacing: 0; }
.dark .term { background: #1C1C1E; box-shadow: 0 0 0 1px #2C2C2E, 0 30px 80px -30px rgba(227,52,43,.45); }
.c { color: #8E8E93; font-style: italic; } .s { color: #A8E07A; } .n { color: #FFB86B; } .k { color: #D69CFF; } .b { color: #FFD479; } .g { color: #32D74B; }

/* ---------- math ---------- */
.hero-page { max-width: 560px; margin: 44px auto 0; }
.hero-page img, .split-img img, .proj-img img, .gallery img { border-radius: 12px; cursor: zoom-in;
  box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 30px 60px -20px rgba(0,0,0,.3); }
.chips4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.chip { background: var(--gray); border-radius: 18px; padding: 18px 16px; }
.chip b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.chip span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.35; }

/* ---------- split (dark python) ---------- */
.split { display: grid; gap: 40px; align-items: center; }
.split-img { max-width: 520px; margin: 0 auto; }
.dark .split-img img { box-shadow: 0 30px 80px -20px rgba(255,255,255,.12); }
.list { list-style: none; margin-top: 22px; }
.list li { padding: 12px 0 12px 30px; border-top: 1px solid #2C2C2E; position: relative; font-size: 17px; }
.list li::before { content: "✓"; position: absolute; left: 2px; top: 12px; color: #32D74B; font-weight: 700; }
.list.light li { color: #F5F5F7; }

/* ---------- gallery ---------- */
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px 22px 26px; scroll-padding: 22px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 72vw; max-width: 340px; scroll-snap-align: start; }
.gallery figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }
.gallery figcaption b { color: var(--text); }
.swipe-hint { color: var(--faint); font-size: 14px; text-align: right; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.cell { background: var(--gray); border-radius: var(--radius); padding: 22px 18px; }
.cell .num { display: block; font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-bottom: 10px; }
.cell h3 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.cell p { color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.38; }
.cell.big, .cell.wide { grid-column: span 2; }
.dark-cell { background: var(--tile-dark); color: #F5F5F7; }
.dark-cell .num { font-size: 72px; }
.dark-cell p { color: #A1A1A6; font-size: 16px; }

/* ---------- curriculum ---------- */
.parts { display: grid; gap: 12px; margin-top: 36px; }
.part { background: #fff; border-radius: var(--radius); padding: 22px 22px; }
.part-n { font-size: 13px; font-weight: 600; color: var(--red); letter-spacing: .01em; }
.part h3 { font-size: 22px; font-weight: 700; letter-spacing: -.025em; margin: 2px 0 6px; }
.part p { color: var(--muted); font-size: 15px; line-height: 1.45; }
.openers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 36px; }
.openers img { border-radius: 6px; box-shadow: 0 8px 20px -10px rgba(0,0,0,.3); }
.openers img:nth-child(n+13) { display: none; }

/* ---------- projects ---------- */
.proj-wrap { display: grid; gap: 40px; margin-top: 40px; align-items: center; }
.proj-list { list-style: none; counter-reset: p; border-top: 1px solid var(--line); }
.proj-list li { counter-increment: p; display: flex; gap: 16px; align-items: baseline; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; }
.proj-list li::before { content: counter(p, decimal-leading-zero); color: var(--faint); font-weight: 600; font-size: 14px; min-width: 22px; font-variant-numeric: tabular-nums; }
.proj-img { max-width: 440px; margin: 0 auto; }

/* ---------- secret ---------- */
.dark .term.big { margin-top: 36px; }
.code-row { display: flex; justify-content: center; gap: 14px; margin-top: 34px; }
.box { width: 72px; height: 86px; border: 0; border-radius: 16px; background: #1C1C1E; color: #fff; text-align: center; font-family: var(--sf);
  font-size: 44px; font-weight: 700; outline: none; box-shadow: inset 0 0 0 1px #3A3A3C; text-transform: uppercase; }
.box:focus { box-shadow: inset 0 0 0 2px #FF6B3D; }
.hint-note { color: #8E8E93; font-size: 14px; margin-top: 20px; line-height: 1.5; }

/* ---------- faq ---------- */
.faq { margin-top: 30px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 300; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); font-size: 17px; }

/* ---------- final ---------- */
.final { background: var(--gray); padding: 72px 0 80px; }
.final-cover { width: 56vw; max-width: 280px; margin: 0 auto 40px; border-radius: 4px 10px 10px 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 30px 60px -12px rgba(0,0,0,.35); }
.final-sub { font-size: 16px; }
.buy { display: inline-block; margin-top: 28px; background: var(--blue); color: #fff; font-size: 19px; font-weight: 500; letter-spacing: -.01em;
  padding: 15px 40px; border-radius: 980px; transition: background .2s, transform .1s; }
.buy:hover { background: #0077ED; text-decoration: none; }
.buy:active { transform: scale(.98); }
.buy-note { margin-top: 16px; color: var(--faint); font-size: 14px; line-height: 1.5; }

/* ---------- footer / lightbox ---------- */
.footer { background: var(--gray); border-top: 1px solid #E8E8ED; padding: 20px 0 28px; font-size: 12px; color: var(--faint); }
.footer-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer a { color: #424245; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 8px; }
.lightbox button { position: absolute; top: 14px; right: 16px; background: rgba(255,255,255,.9); border: 0; border-radius: 50%; width: 38px; height: 38px; font-size: 18px; cursor: pointer; }

/* ---------- small phones ---------- */
@media (max-width: 370px) {
  .display { font-size: 38px; }
  .headline { font-size: 32px; }
  .term pre { font-size: 12.5px; padding: 12px; }
  .box { width: 64px; height: 78px; }
}

/* ---------- tablet + desktop ---------- */
@media (min-width: 734px) {
  .eyebrow { font-size: 21px; }
  .display { font-size: 80px; }
  .headline { font-size: 56px; }
  .body-lg, .hero-sub { font-size: 21px; }
  .section { padding: 110px 0; }
  .hero { padding: 80px 0 56px; }
  .links { flex-direction: row; justify-content: center; gap: 32px; }
  .links a { font-size: 21px; }
  .stage { height: 590px; margin-top: 56px; }
  .stage .cover { width: 380px; }
  .stage .pg { width: 330px; top: 40px; }
  .stage .pg-l { transform: translateX(-112%) rotate(-7deg); }
  .stage .pg-r { transform: translateX(12%) rotate(7deg); }
  .avail { font-size: 14px; }
  .specs { margin-top: 40px; padding: 22px 8px; border-radius: 24px; }
  .specs dt { font-size: 46px; }
  .specs dd { font-size: 15px; margin-top: 8px; }
  .nav a:not(.nav-secret) { display: inline-block; }
  .numbers { padding: 64px 0; }
  .numbers-grid { grid-template-columns: repeat(4, 1fr); }
  .numbers b { font-size: 72px; }
  .tiles3 { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
  .tiles4 { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
  .tile { padding: 34px 30px; }
  .term pre { font-size: 17px; padding: 22px 24px; }
  .term .out { font-size: 16px; padding: 14px 24px; }
  .fix { margin-top: 56px; }
  .chips4 { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .gallery { padding: 56px max(22px, calc((100vw - 1024px) / 2 + 22px)) 30px; scroll-padding: max(22px, calc((100vw - 1024px) / 2 + 22px)); gap: 26px; }
  .gallery figure { flex-basis: 320px; }
  .bento { grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
  .cell { padding: 30px 26px; }
  .cell.big { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; }
  .dark-cell .num { font-size: 120px; }
  .cell.wide { grid-column: span 4; }
  .cell .num { font-size: 56px; }
  .cell h3 { font-size: 19px; } .cell p { font-size: 15px; }
  .parts { grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
  .openers { grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: 56px; }
  .openers img:nth-child(n+13) { display: block; }
  .proj-wrap { grid-template-columns: 1.1fr .9fr; gap: 64px; margin-top: 56px; }
  .box { width: 96px; height: 116px; font-size: 60px; border-radius: 20px; }
  .final { padding: 110px 0 120px; }
  .final-cover { width: 300px; }
  .buy { font-size: 21px; padding: 17px 48px; }
  .faq summary { font-size: 21px; }
}
@media (min-width: 1068px) {
  .display { font-size: 96px; }
  .headline { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.display, .headline, .body-lg, .hero-sub { text-wrap: balance; }

/* the book's signature promise under the math section */
.statement { max-width: 900px; margin: 48px auto 0; font-size: 28px; line-height: 1.18; font-weight: 700; letter-spacing: -.03em; color: #A1A1A6; text-wrap: balance; }
.statement span { color: var(--text); }
.statement .grad { color: transparent; }
@media (min-width: 734px) { .statement { font-size: 44px; margin-top: 72px; } }
@media (min-width: 1068px) { .statement { font-size: 52px; } }

/* mini terminal inside the big bento tile */
.mini-term { background: #000; border-radius: 14px; overflow: hidden; margin-bottom: 26px; box-shadow: 0 0 0 1px #2C2C2E; }
.mini-term .bar { height: 30px; background: #1C1C1E; display: flex; align-items: center; gap: 6px; padding: 0 12px; position: relative; }
.mini-term .bar i { width: 9px; height: 9px; border-radius: 50%; background: #FF5F57; }
.mini-term .bar i:nth-child(2) { background: #FEBC2E; } .mini-term .bar i:nth-child(3) { background: #28C840; }
.mini-term .bar span { position: absolute; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 11px; color: #8E8E93; }
.mini-term pre { font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: #E5E5EA; padding: 12px 12px 10px; white-space: pre; overflow: hidden; letter-spacing: 0; }
.mini-out { border-top: 1px solid #2C2C2E; padding: 10px 12px 12px; font-family: var(--mono); font-size: 11.5px; color: #32D74B; letter-spacing: 0; }
.mini-out span { display: block; color: #8E8E93; font-size: 10px; letter-spacing: .14em; margin-bottom: 4px; }
@media (min-width: 734px) {
  .cell.big .mini-term { margin-bottom: auto; }
  .cell.big .num { margin-top: 28px; }
  .mini-term pre, .mini-out { font-size: 14px; padding-left: 18px; padding-right: 18px; }
  .mini-term pre { padding-top: 16px; }
  .mini-out span { font-size: 11px; }
}
@media (max-width: 733px) { .mini-term pre, .mini-out { font-size: 10.5px; } }
@media (max-width: 370px) { .mini-term pre, .mini-out { font-size: 9.5px; padding-left: 10px; padding-right: 10px; } }

/* ---------- light glass header (Apple-style) ---------- */
.topbar { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .topbar { background: rgba(255, 255, 255, .96); } }
.brand { color: var(--text); }
.brand img { border: .5px solid rgba(0, 0, 0, .15); }
.nav a { color: #424245; }
.nav a:hover { color: #000; }
.nav-secret { background: var(--blue); color: #fff !important; }
.nav-secret:hover { background: #0077ED; }

/* problem tiles: centered gradient line icons instead of emoji */
.tiles3.centered .tile { text-align: center; display: flex; flex-direction: column; align-items: center; }
.ico-wrap { width: 80px; height: 80px; border-radius: 22px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  background: linear-gradient(145deg, #FFF4EF, #FFE6DC); box-shadow: inset 0 0 0 1px rgba(227,52,43,.08); }
.ico { width: 54px; height: 54px; }
.ico .blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ico .blink { animation: none; } }
.tiles3.centered .tile p { max-width: 280px; }
.tiles3.centered .tile h3 { font-size: 21px; margin-bottom: 8px; }

/* hero grid: more visible */
.hero { background-image: radial-gradient(ellipse 46% 30% at 50% 20%, rgba(255,255,255,.7), rgba(255,255,255,0) 70%),
    linear-gradient(to right, #DADAE2 1px, transparent 1px), linear-gradient(to bottom, #DADAE2 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px; }

/* gallery controls (Apple-style round arrows) */
.gal-controls { display: flex; justify-content: flex-end; gap: 14px; }
.gal-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #E3E3E8; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, opacity .2s; }
.gal-btn:hover { background: #D6D6DC; }
.gal-btn:disabled { opacity: .4; cursor: default; }
.gal-btn svg { width: 20px; height: 20px; fill: none; stroke: #1D1D1F; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gallery { cursor: grab; }
.gallery.drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.gallery:focus { outline: none; }
.gallery:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

/* ---------- Liquid Glass stat bar ---------- */
.specs-wrap { position: relative; max-width: 600px; margin: 30px auto 0; padding: 0 2px; isolation: isolate; }
.specs-wrap .specs { margin: 0 auto; }
.orbs { position: absolute; inset: -26px -10px; z-index: -1; pointer-events: none; }
.orbs i { position: absolute; border-radius: 50%; filter: blur(26px); opacity: .55; }
.orbs i:nth-child(1) { width: 38%; height: 120%; left: 4%; top: -6%; background: #FF6B3D; animation: drift1 12s ease-in-out infinite alternate; }
.orbs i:nth-child(2) { width: 34%; height: 110%; left: 36%; top: 6%; background: #FF9F43; opacity: .45; animation: drift2 14s ease-in-out infinite alternate; }
.orbs i:nth-child(3) { width: 36%; height: 120%; right: 4%; top: -10%; background: #5E8BFF; opacity: .45; animation: drift1 16s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(18px, 8px) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-16px, -6px) scale(.94); } }
@media (prefers-reduced-motion: reduce) { .orbs i { animation: none; } }

.specs.glass { position: relative; overflow: hidden; border-radius: 28px; padding: 18px 4px;
  background: linear-gradient(135deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.28) 45%, rgba(255,255,255,.42) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(200%) brightness(1.06); backdrop-filter: blur(18px) saturate(200%) brightness(1.06);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(255,255,255,.35),
    inset 1px 0 0 rgba(255,255,255,.4), inset -1px 0 0 rgba(255,255,255,.4),
    inset 0 0 24px rgba(255,255,255,.35),
    0 1px 2px rgba(0,0,0,.06), 0 18px 44px -14px rgba(30,20,60,.28); }
/* specular glare across the top-left */
.specs.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 90% at 18% -20%, rgba(255,255,255,.75), rgba(255,255,255,0) 52%),
              linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 40%); mix-blend-mode: soft-light; }
/* bright rim that fades around the edge, like curved glass */
.specs.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(255,255,255,.1) 35%, rgba(255,255,255,.05) 65%, rgba(255,255,255,.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.specs.glass div { z-index: 1; }
.specs.glass div + div::before { background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.85), rgba(255,255,255,0)); width: 1px; }
.specs.glass dd { color: #3A3A3C; }
@media (min-width: 734px) { .specs-wrap { margin-top: 44px; } .specs.glass { padding: 24px 8px; border-radius: 32px; } }
.orbs i { filter: blur(34px); }
.orbs i:nth-child(1) { opacity: .42; } .orbs i:nth-child(2) { opacity: .34; } .orbs i:nth-child(3) { opacity: .34; }
.secret-cta { margin-top: 40px; }
.secret-cta .buy { margin-top: 0; }
.dark-note { color: #8E8E93; }

/* ================= motion ================= */
@property --spread { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --scroll { syntax: "<number>"; inherits: true; initial-value: 0; }
.stage { --spread: 0; --scroll: 0; }
.stage .pg-l { transform: translateX(calc(-104% - (var(--spread) + var(--scroll)) * 1px)) rotate(calc(-7deg - (var(--spread) + var(--scroll)) * .06deg)); }
.stage .pg-r { transform: translateX(calc(4% + (var(--spread) + var(--scroll)) * 1px)) rotate(calc(7deg + (var(--spread) + var(--scroll)) * .06deg)); }
@media (min-width: 734px) {
  .stage .pg-l { transform: translateX(calc(-112% - (var(--spread) + var(--scroll)) * 1px)) rotate(calc(-7deg - (var(--spread) + var(--scroll)) * .06deg)); }
  .stage .pg-r { transform: translateX(calc(12% + (var(--spread) + var(--scroll)) * 1px)) rotate(calc(7deg + (var(--spread) + var(--scroll)) * .06deg)); }
}

/* hero entrance */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes stageIn { from { opacity: 0; transform: translateY(70px) scale(.96); } to { opacity: 1; transform: none; } }
.js .hero .eyebrow { animation: rise .8s cubic-bezier(.2,.7,.2,1) .05s both; }
.js .hero .display { animation: rise 1s cubic-bezier(.2,.7,.2,1) .15s both; }
.js .hero .display .grad { display: inline-block; animation: rise 1s cubic-bezier(.2,.7,.2,1) .35s both; }
.js .hero .hero-sub { animation: rise .9s cubic-bezier(.2,.7,.2,1) .5s both; }
.js .hero .links { animation: rise .9s cubic-bezier(.2,.7,.2,1) .62s both; }
.js .hero .specs-wrap { animation: rise .9s cubic-bezier(.2,.7,.2,1) .72s both; }
.js .stage { animation: stageIn 1.2s cubic-bezier(.2,.7,.2,1) .55s both; }
.js .stage:not(.open) { --spread: -120; }
.js .stage { transition: --spread 1.4s cubic-bezier(.2,.8,.2,1) .7s; }
.js .hero .avail { animation: rise .8s ease 1.2s both; }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(42px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.js .reveal.zoom-in { transform: translateY(40px) scale(.93); transition-duration: 1.1s; }
.js .reveal.in { opacity: 1; transform: none; }
.js .gallery figure.reveal { transform: translateX(60px); }
.js .gallery figure.reveal.in { transform: none; }
/* keep hover lift working after reveal */
.js .reveal.in.tile, .js .reveal.in.cell, .js .reveal.in.part, .js .reveal.in.chip { transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .35s ease; }
.tile, .cell, .part, .chip { transition: transform .35s ease, box-shadow .35s ease; }
@media (hover: hover) {
  .tile:hover, .cell:hover, .part:hover, .chip:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(0,0,0,.25); }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.zoom-in, .js .gallery figure.reveal { opacity: 1; transform: none; transition: none; }
  .js .hero *, .js .stage { animation: none !important; }
  .js .stage:not(.open) { --spread: 0; }
}
