/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fbfbfd;
  --bg-dark: #0a0a0a;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5e7;
  --accent: #0071e3;
  --accent-soft: #4ea3ff;
  --radius: 20px;
  --radius-sm: 12px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
  color-scheme: light only;
}

@media (pointer: coarse) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--text); color: var(--bg); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #c7c7cc; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #8e8e93; }

.container { width: min(1200px, 92%); margin-inline: auto; }

/* ============ CURSOR ============ */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; pointer-events: none;
  z-index: 9999; border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor {
  width: 40px; height: 40px;   /* antes 32 */
  border: 2px solid #ffffff;    /* antes 1.5 */
  background: transparent;
}
.cursor-dot {
  width: 6px; height: 6px;      /* antes 4 */
  background: #ffffff;
}
body.cursor-hover .cursor {
  width: 70px; height: 70px;    /* antes 60 */
  background: #ffffff;
}
@media (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ============ GRAIN ============ */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9998;
  opacity: 0.028; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  transition: all .4s var(--ease);
}
.nav--scrolled {
  padding: 12px 40px;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.nav__mark { color: var(--accent); font-size: 0.85rem; }
.nav__links { display: flex; gap: 32px; list-style: none; font-size: 0.9rem; color: var(--muted); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  font-size: 0.9rem; font-weight: 500;
  padding: 8px 16px; border-radius: 100px;
  background: var(--text); color: #fff;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .3s var(--ease), background .2s;
}
.nav__cta:hover { background: var(--accent); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
  padding: 120px 40px 80px;
}
.hero__inner { position: relative; z-index: 2; max-width: 1100px; text-align: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; color: var(--muted);
  font-family: var(--font-mono);
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--line); background: rgba(255,255,255,.6);
  backdrop-filter: blur(10px);
  margin-bottom: 32px;
}
.hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

.hero__title {
  font-size: clamp(3rem, 11vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin-bottom: 32px;
}
.hero__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.02em; }
.line { display: block; overflow: hidden; }
.line__inner { display: inline-block; transform: translateY(105%); animation: lineRise 1.1s var(--ease-out) forwards; }
.line:nth-child(1) .line__inner { animation-delay: 0.15s; }
.line:nth-child(2) .line__inner { animation-delay: 0.30s; }
.line:nth-child(3) .line__inner { animation-delay: 0.45s; }
@keyframes lineRise { to { transform: translateY(0); } }

.hero__sub { font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 620px; margin: 0 auto 40px; line-height: 1.6; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 100px;
  font-size: 0.95rem; font-weight: 500;
  border: 1px solid transparent;
  transition: all .3s var(--ease);
  position: relative; overflow: hidden;
  will-change: transform;
}
.btn--primary { background: var(--text); color: #fff; }
.btn--primary:hover { background: var(--accent); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); }
.btn--lg { padding: 18px 32px; font-size: 1rem; }

.hero__bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35; }
.hero__blob--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #0071e3, transparent 70%);
  top: -100px; left: -100px;
  animation: float 12s ease-in-out infinite;
}
.hero__blob--2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  bottom: -200px; right: -200px;
  animation: float 15s ease-in-out infinite reverse;
}
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px, -40px) scale(1.08); } }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero__scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase;
}
.hero__scroll-line { width: 1px; height: 40px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 40%; background: var(--text); animation: scrollDown 2s infinite; }
@keyframes scrollDown { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ SECTION HELPERS ============ */
.section__label { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.section__title { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; max-width: 900px; }
.section__sub { font-size: 1.05rem; color: var(--muted); max-width: 560px; margin-top: 20px; }

/* ============ MANIFESTO ============ */
.manifesto { padding: 160px 0; background: linear-gradient(180deg, var(--bg) 0%, #f2f2f5 100%); }
.manifesto__title { font-size: clamp(2.2rem, 5.5vw, 4.4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 80px; }
.manifesto__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.manifesto__title .reveal { display: block; }
.manifesto__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-top: 60px; border-top: 1px solid var(--line); }
.manifesto__item { display: flex; flex-direction: column; gap: 12px; }
.manifesto__num { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 700; letter-spacing: -0.04em; color: var(--text); line-height: 1; font-variant-numeric: tabular-nums; }
.manifesto__item p { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }

/* ============ PRODUCTS ============ */
.products { padding: 160px 0 0; }
.products__stack { padding: 80px 0 120px; }
.product {
  min-height: 100vh; display: flex; align-items: center;
  padding: 60px 40px;
  position: sticky; top: 0;
  background: var(--bg-p, #fff);
  z-index: 1;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.08);
}
.product:nth-child(1) { --bg-p: #eef2f8; z-index: 1; }
.product:nth-child(2) { --bg-p: #f5eef8; z-index: 2; }
.product__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: 1200px; margin-inline: auto; width: 100%; }
.product__index { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.1em; margin-bottom: 12px; }
.product__name { font-size: clamp(3rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; margin-bottom: 24px; }
.product__desc { font-size: 1.05rem; color: var(--muted); max-width: 420px; margin-bottom: 32px; line-height: 1.6; }
.product__features { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.product__features li { font-size: 0.92rem; padding-left: 24px; position: relative; color: var(--text); }
.product__features li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 1.5px; background: var(--accent); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 500; color: var(--accent); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .2s; }
.link-arrow:hover { border-color: var(--accent); }

.product__visual { position: relative; aspect-ratio: 1/1; display: grid; place-items: center; perspective: 1200px; }
.mockup {
  width: 100%; max-width: 460px; aspect-ratio: 4/5;
  background: #fff; border-radius: 16px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.25), 0 20px 40px -20px rgba(0,0,0,.15);
  overflow: hidden; transform: rotate(-3deg);
  transition: transform 1s var(--ease); position: relative;
}
.product:hover .mockup { transform: rotate(-1deg) translateY(-8px); }
.mockup__bar { height: 40px; background: #f5f5f7; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid #e8e8ed; }
.mockup__dot { width: 10px; height: 10px; border-radius: 50%; background: #d8d8dd; }
.mockup__dot:nth-child(1) { background: #ff5f56; }
.mockup__dot:nth-child(2) { background: #ffbd2e; }
.mockup__dot:nth-child(3) { background: #27c93f; }
.mockup__title { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); margin-left: auto; }
.mockup__body { padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; }
.mockup__line { height: 6px; background: #e8e8ed; border-radius: 3px; width: 100%; }
.mockup__line--title { height: 14px; width: 60%; background: #1d1d1f; margin-bottom: 8px; }
.mockup__line--short { width: 40%; }
.mockup__line--mid { width: 75%; }
.mockup__block { height: 90px; background: linear-gradient(135deg, #eef2f8, #dce4f0); border-radius: 8px; margin: 12px 0; }
.mockup__pill {
  position: absolute; bottom: 20px; right: 20px;
  background: var(--accent); color: #fff;
  padding: 8px 14px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600;
  font-family: var(--font-mono);
  box-shadow: 0 10px 20px -8px rgba(0,113,227,.5);
}

.mockup--game {
  aspect-ratio: 9/16; max-width: 300px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  transform: rotate(2deg); position: relative; overflow: hidden;
}
.product:hover .mockup--game { transform: rotate(0deg) translateY(-8px); }
.game__road { position: absolute; left: 50%; top: 0; bottom: 0; width: 60%; transform: translateX(-50%); background: #2a2a3e; overflow: hidden; }
.game__stripe { position: absolute; left: 50%; transform: translateX(-50%); width: 6px; height: 60px; background: rgba(255,255,255,.7); border-radius: 3px; animation: roadMove 1.2s linear infinite; }
.game__stripe:nth-child(1) { top: -60px; animation-delay: 0s; }
.game__stripe:nth-child(2) { top: -60px; animation-delay: 0.3s; }
.game__stripe:nth-child(3) { top: -60px; animation-delay: 0.6s; }
.game__stripe:nth-child(4) { top: -60px; animation-delay: 0.9s; }
@keyframes roadMove { from { transform: translate(-50%, 0); } to { transform: translate(-50%, 500px); } }
.game__car { position: absolute; bottom: 25%; left: 50%; transform: translateX(-50%) rotate(-12deg); width: 60px; height: 100px; animation: carSway 2s ease-in-out infinite; }
.game__body { position: absolute; inset: 0; background: linear-gradient(180deg, #ff3b30, #c81e1e); border-radius: 12px 12px 8px 8px; box-shadow: 0 8px 20px rgba(255,59,48,.4); }
.game__trail { position: absolute; left: -30px; bottom: 10px; width: 80px; height: 40px; background: radial-gradient(ellipse, rgba(255,255,255,.5), transparent 70%); border-radius: 50%; filter: blur(8px); }
@keyframes carSway { 0%,100% { transform: translateX(-50%) rotate(-12deg); } 50% { transform: translateX(-50%) rotate(12deg); } }
.game__hud { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.75rem; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.game__combo { color: #ffd60a; font-weight: 600; }

/* ============ GITHUB CARD ============ */
.gh-card { margin-top: 28px; padding: 20px; border: 1px solid rgba(0,0,0,0.08); border-radius: var(--radius-sm); background: rgba(255,255,255,0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); max-width: 460px; }
.gh-card:hover { border-color: rgba(0,0,0,0.16); transform: translateY(-2px); box-shadow: 0 12px 32px -12px rgba(0,0,0,0.12); }
.gh-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--text); }
.gh-card__repo { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500; color: var(--text); }
.gh-card__badge { margin-left: auto; font-family: var(--font-mono); font-size: 0.68rem; padding: 3px 8px; border-radius: 100px; background: rgba(34,197,94,0.12); color: #16a34a; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500; }
.gh-card__desc { font-size: 0.85rem; color: var(--muted); line-height: 1.5; margin-bottom: 16px; min-height: 2.6em; }
.gh-card__stats { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.78rem; color: var(--muted); margin-bottom: 14px; }
.gh-card__stat { display: inline-flex; align-items: center; gap: 6px; }
.gh-card__stat b { color: var(--text); font-weight: 600; }
.gh-card__actions { padding-top: 12px; border-top: 1px solid var(--line); }

/* ============ VERSIONS ============ */
.versions { padding: 160px 0; background: var(--bg); }
.versions .section__title { margin-bottom: 16px; }
.versions .section__sub { margin-bottom: 60px; }
.release {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 40px;
  transition: all .5s var(--ease);
  position: relative;
  overflow: hidden;
}
.release::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(0,113,227,.06), transparent 50%);
  opacity: 0; transition: opacity .5s;
  pointer-events: none;
}
.release:hover { border-color: var(--accent); transform: translateY(-4px); }
.release:hover::before { opacity: 1; }
.release__header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.release__id { display: flex; align-items: center; gap: 10px; }
.release__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
  animation: pulse 2s infinite;
}
.release__product { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 600; color: var(--text); }
.release__version {
  font-family: var(--font-mono); font-size: 0.85rem;
  padding: 5px 12px; border-radius: 100px;
  background: rgba(0,113,227,.1); color: var(--accent); font-weight: 600;
}
.release__badge {
  font-family: var(--font-mono); font-size: 0.68rem;
  padding: 4px 10px; border-radius: 100px;
  background: rgba(34,197,94,.12); color: #16a34a;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
.release__summary { font-size: 1.05rem; color: var(--text); line-height: 1.7; margin-bottom: 24px; max-width: 720px; }
.release__highlights { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.release__highlights li { font-size: 0.92rem; color: var(--muted); padding-left: 24px; position: relative; line-height: 1.6; }
.release__highlights li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.release__meta { display: flex; gap: 24px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); font-family: var(--font-mono); padding-top: 24px; margin-bottom: 24px; border-top: 1px solid var(--line); }
.release__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.versions__link { margin-top: 40px; text-align: center; }

/* ============ FUNDING ============ */
.funding { padding: 160px 0; background: var(--bg-dark); color: #f5f5f7; }
.funding .section__label { color: #86868b; }
.funding .section__sub { color: #a1a1a6; }
.funding__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 80px; }
.funding__card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 40px 32px; transition: all .5s var(--ease); position: relative; overflow: hidden; }
.funding__card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(0,113,227,.15), transparent 60%); opacity: 0; transition: opacity .5s; }
.funding__card:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); transform: translateY(-4px); }
.funding__card:hover::before { opacity: 1; }
.funding__icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(0,113,227,.15); color: var(--accent-soft); display: grid; place-items: center; margin-bottom: 24px; position: relative; z-index: 1; }
.funding__card h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; position: relative; z-index: 1; }
.funding__card p { font-size: 0.95rem; color: #a1a1a6; line-height: 1.6; margin-bottom: 24px; position: relative; z-index: 1; }
.funding__card .link-arrow { color: var(--accent-soft); position: relative; z-index: 1; }
.funding__tag { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; padding: 6px 12px; border-radius: 100px; background: rgba(34,197,94,.15); color: #4ade80; text-transform: uppercase; position: relative; z-index: 1; }

/* ============ TECH ============ */
.tech { padding: 160px 0 100px; overflow: hidden; }
.marquee { margin-top: 60px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.marquee__track { display: flex; gap: 40px; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; color: var(--muted); white-space: nowrap; animation: marquee 40s linear infinite; will-change: transform; }
.marquee__track span:nth-child(even) { color: var(--accent); font-family: var(--font-serif); font-style: italic; font-weight: 400; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ CTA ============ */
.cta { padding: 160px 0; text-align: center; background: linear-gradient(180deg, var(--bg) 0%, #f2f2f5 100%); }
.cta__title { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 40px; }
.cta__title .reveal { display: block; }
.cta__buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer { background: var(--bg-dark); color: #f5f5f7; padding: 80px 0 40px; }
.footer__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand { display: flex; gap: 14px; align-items: flex-start; }
.footer__brand strong { font-size: 1.1rem; display: block; margin-bottom: 6px; }
.footer__brand p { font-size: 0.85rem; color: #86868b; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer__cols h4 { font-size: 0.78rem; font-weight: 500; color: #86868b; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer__cols a { display: block; font-size: 0.9rem; color: #f5f5f7; margin-bottom: 10px; transition: color .2s; }
.footer__cols a:hover { color: var(--accent-soft); }
.footer__base { padding-top: 30px; display: flex; justify-content: space-between; font-size: 0.78rem; color: #86868b; flex-wrap: wrap; gap: 12px; }
.footer__mono { font-family: var(--font-mono); }

/* ============ PRODUCT HERO (ccpdf) ============ */
.product-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0d1b2a 0%, #1b2d45 100%);
  color: #fff;
}
.product-hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.product-hero__blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.25; }
.product-hero__blob--1 { width: 600px; height: 600px; background: radial-gradient(circle, var(--accent), transparent 70%); top: -200px; right: -100px; }
.product-hero__blob--2 { width: 500px; height: 500px; background: radial-gradient(circle, #a855f7, transparent 70%); bottom: -150px; left: -100px; }
.product-hero__inner { position: relative; z-index: 2; max-width: 900px; }
.product-hero .back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,.6); margin-bottom: 40px; transition: color .2s; }
.product-hero .back-link:hover { color: #fff; }
.product-hero__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.product-hero__tag { font-family: var(--font-mono); font-size: 0.72rem; padding: 5px 12px; border-radius: 100px; background: rgba(255,255,255,.1); color: #fff; text-transform: uppercase; letter-spacing: 0.1em; }
.product-hero__version { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-soft); font-weight: 600; }
.product-hero__date { font-size: 0.82rem; color: rgba(255,255,255,.5); font-family: var(--font-mono); }
.product-hero__title { font-family: var(--font-serif); font-size: clamp(3.5rem, 9vw, 7rem); line-height: 0.95; letter-spacing: -0.04em; font-weight: 700; margin-bottom: 24px; }
.product-hero__sub { font-size: 1.1rem; color: rgba(255,255,255,.7); max-width: 620px; line-height: 1.7; margin-bottom: 40px; }
.product-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }
.product-hero__platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 720px; }
.platform { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); transition: all .3s var(--ease); color: #fff; }
.platform:hover { background: rgba(255,255,255,.08); border-color: rgba(0,113,227,.5); transform: translateY(-2px); }
.platform__icon { font-size: 1.4rem; margin-bottom: 4px; }
.platform span:nth-child(2) { font-size: 0.95rem; font-weight: 500; }
.platform__size { font-size: 0.72rem; color: rgba(255,255,255,.5); font-family: var(--font-mono); }

/* ============ FEATURES ============ */
.features { padding: 160px 0; background: var(--bg); }
.features .section__title { margin-bottom: 60px; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature { padding: 32px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: all .4s var(--ease); }
.feature:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(0,113,227,.15); }
.feature__icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(0,113,227,.08); color: var(--accent); display: grid; place-items: center; margin-bottom: 20px; }
.feature h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

/* ============ CHANGELOG ============ */
.changelog { padding: 160px 0; background: var(--bg-dark); color: #fff; }
.changelog .section__label { color: var(--accent-soft); }
.changelog .section__title { color: #fff; margin-bottom: 60px; }
.changelog__list { position: relative; padding-left: 32px; }
.changelog__list::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 1px; background: rgba(255,255,255,.1); }
.release-item { position: relative; padding-bottom: 48px; }
.release-item:last-child { padding-bottom: 0; }
.release-item::before { content: ""; position: absolute; left: -32px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg-dark); border: 2px solid rgba(255,255,255,.2); }
.release-item--current::before { border-color: var(--accent-soft); background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(0,113,227,.2); }
.release-item__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.release-item__version { font-family: var(--font-mono); font-size: 1rem; font-weight: 600; color: var(--accent-soft); }
.release-item__badge { font-family: var(--font-mono); font-size: 0.68rem; padding: 3px 10px; border-radius: 100px; background: rgba(34,197,94,.15); color: #4ade80; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.release-item__date { font-size: 0.78rem; color: rgba(255,255,255,.4); font-family: var(--font-mono); margin-left: auto; }
.release-item h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 16px; letter-spacing: -0.01em; }
.release-item ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.release-item li { font-size: 0.9rem; color: rgba(255,255,255,.6); padding-left: 20px; position: relative; line-height: 1.6; }
.release-item li::before { content: "·"; position: absolute; left: 0; color: var(--accent-soft); font-weight: 700; font-size: 1.4em; line-height: 0.7; }

/* ============ REQUIREMENTS ============ */
.requirements { padding: 160px 0; background: var(--bg); }
.requirements .section__title { margin-bottom: 60px; }
.requirements__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.req-card { padding: 32px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.req-card h3 { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 20px; }
.req-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.req-card li { font-size: 0.9rem; color: var(--muted); padding-left: 20px; position: relative; line-height: 1.6; }
.req-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; font-size: 0.85em; }

/* ============ CONTRIBUTE ============ */
.contribute { padding: 120px 0; background: var(--bg-dark); color: #fff; }
.contribute .section__label { color: var(--accent-soft); }
.contribute .section__title { color: #fff; margin-bottom: 16px; }
.contribute .section__sub { color: rgba(255,255,255,.6); }
.contribute__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }
.contribute__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ DOWNLOADS ============ */
.dl-hero { padding: 160px 0 80px; position: relative; overflow: hidden; background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%); color: #fff; }
.dl-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.dl-hero__blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.2; }
.dl-hero__blob--1 { width: 600px; height: 600px; background: radial-gradient(circle, #0071e3, transparent 70%); top: -200px; right: -100px; }
.dl-hero__blob--2 { width: 500px; height: 500px; background: radial-gradient(circle, #a855f7, transparent 70%); bottom: -150px; left: -100px; }
.dl-hero__inner { position: relative; z-index: 2; max-width: 800px; }
.dl-hero .back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,.6); margin-bottom: 40px; transition: color .2s; }
.dl-hero .back-link:hover { color: #fff; }
.dl-hero__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dl-hero__tag { font-family: var(--font-mono); font-size: 0.72rem; padding: 5px 12px; border-radius: 100px; background: rgba(255,255,255,.1); color: #fff; text-transform: uppercase; letter-spacing: 0.1em; }
.dl-hero__version { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-soft); font-weight: 600; }
.dl-hero__badge { font-family: var(--font-mono); font-size: 0.68rem; padding: 4px 10px; border-radius: 100px; background: rgba(34,197,94,.15); color: #4ade80; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.dl-hero__title { font-size: clamp(3rem, 8vw, 6rem); line-height: 0.95; letter-spacing: -0.04em; font-weight: 700; margin-bottom: 24px; }
.dl-hero__sub { font-size: 1.1rem; color: rgba(255,255,255,.7); max-width: 600px; line-height: 1.7; }

.dl-platforms { padding: 100px 0 80px; background: var(--bg); }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dl-card { padding: 40px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; transition: all .4s var(--ease); }
.dl-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(0,113,227,.15); }
.dl-card__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.dl-card__icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(0,113,227,.08); color: var(--accent); display: grid; place-items: center; }
.dl-card__badge { font-family: var(--font-mono); font-size: 0.68rem; padding: 4px 10px; border-radius: 100px; background: rgba(34,197,94,.12); color: #16a34a; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.dl-card h3 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.dl-card__req { font-size: 0.88rem; color: var(--muted); margin-bottom: 28px; line-height: 1.5; }
.dl-card .btn { margin-top: auto; }
.dl-card__meta { font-size: 0.78rem; color: var(--muted); font-family: var(--font-mono); text-align: center; margin-top: 12px; }

.dl-verify { padding: 100px 0; background: var(--surface); }
.dl-verify__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.dl-verify__hash { padding: 28px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.dl-verify__label { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.dl-verify__code { display: block; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text); word-break: break-all; line-height: 1.6; }

.dl-alt { padding: 100px 0; background: var(--bg); }
.dl-alt .section__title { margin-bottom: 60px; }
.dl-alt__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dl-alt__card { padding: 32px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: all .4s var(--ease); }
.dl-alt__card:hover { border-color: var(--accent); transform: translateY(-4px); }
.dl-alt__card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.01em; }
.dl-alt__card p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav { padding: 14px 20px; }
  .nav--scrolled { padding: 10px 20px; }
  .nav__links { display: none; }
  .hero { padding: 100px 20px 60px; }
  .manifesto, .funding, .tech, .cta, .versions { padding: 100px 0; }
  .manifesto__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .product { padding: 40px 20px; min-height: auto; position: static; }
  .product__inner { grid-template-columns: 1fr; gap: 40px; }
  .product__visual { aspect-ratio: 4/3; }
  .mockup { max-width: 320px; }
  .gh-card { max-width: 100%; }
  .funding__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .product-hero { padding: 120px 0 60px; }
  .features, .changelog, .requirements, .contribute { padding: 100px 0; }
  .features__grid, .requirements__grid { grid-template-columns: 1fr; }
  .product-hero__platforms { grid-template-columns: 1fr; }
  .contribute__inner { grid-template-columns: 1fr; gap: 40px; }
  .dl-hero { padding: 120px 0 60px; }
  .dl-platforms, .dl-verify, .dl-alt { padding: 80px 0; }
  .dl-grid, .dl-verify__inner, .dl-alt__grid { grid-template-columns: 1fr; }
  .dl-verify__inner { gap: 40px; }
}

@media (max-width: 520px) {
  .manifesto__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .btn { padding: 12px 20px; font-size: 0.88rem; }
  .product-hero__actions { flex-direction: column; }
  .product-hero__actions .btn { width: 100%; justify-content: center; }
  .release-item__date { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
