/* ==========================================================================
   PintaFesta — landing page
   Dark, playful, no external dependencies.
   ========================================================================== */

/* ---------- Fonts (self-hosted, subset) ---------- */
@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/quicksand-bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/quicksand-medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/quicksand-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg:        #0b0e16;
  --bg-alt:    #10141f;
  --card:      #161b29;
  --card-2:    #1c2231;
  --border:    #262d40;
  --border-2:  #333c53;

  --text:      #f2f4f9;
  --text-dim:  #9aa3b8;
  --text-mute: #6f7891;

  --primary:   #ffc940;
  --primary-2: #ffb01f;
  --accent:    #5bc0eb;
  --cyan:      #34e0e8;
  --pink:      #e91e63;
  --green:     #3dd68c;
  --orange:    #ff8a3d;
  --purple:    #9c27b0;
  --danger:    #ff5c5c;

  --radius:    18px;
  --radius-lg: 26px;
  --shadow:    0 18px 50px rgba(0, 0, 0, .45);
  --glow:      0 0 0 1px rgba(255, 201, 64, .22), 0 14px 40px rgba(255, 201, 64, .16);

  --font-ui:   'Quicksand', ui-rounded, 'SF Pro Rounded', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-body: 'Quicksand', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  --maxw: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .btn, .kicker, .brand-name, .role-tag, .badge {
  font-family: var(--font-ui);
  letter-spacing: -.01em;
}

code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: rgba(91, 192, 235, .12);
  color: #9ddcf7;
  padding: .12em .42em;
  border-radius: 6px;
  border: 1px solid rgba(91, 192, 235, .18);
}

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.wrap-narrow { max-width: 820px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--primary); color: #12151d; padding: 12px 20px; border-radius: 0 0 12px 0;
  font-family: var(--font-ui); font-weight: 700;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Background decor ---------- */
.bg-decor {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
}
.blob-1 {
  width: 620px; height: 620px; top: -220px; left: -160px;
  background: radial-gradient(circle, rgba(255, 201, 64, .5), transparent 68%);
}
.blob-2 {
  width: 720px; height: 720px; top: 180px; right: -280px;
  background: radial-gradient(circle, rgba(91, 192, 235, .42), transparent 68%);
}
.blob-3 {
  width: 560px; height: 560px; bottom: -240px; left: 22%;
  background: radial-gradient(circle, rgba(233, 30, 99, .3), transparent 70%);
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 14, 22, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-stuck { border-bottom-color: var(--border); background: rgba(11, 14, 22, .9); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.brand-name { font-weight: 700; font-size: 20px; }
.brand-name em { font-style: normal; color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a:not(.btn) {
  color: var(--text-dim); font-family: var(--font-ui); font-weight: 500; font-size: 15.5px;
  text-decoration: none; transition: color .2s;
}
.nav-links > a:not(.btn):hover { color: var(--text); text-decoration: none; }

.nav-toggle {
  display: none; width: 44px; height: 40px; border: 1px solid var(--border-2);
  background: var(--card); border-radius: 11px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; cursor: pointer; text-decoration: none;
  font-weight: 700; font-size: 15.5px; line-height: 1;
  padding: 14px 22px; border-radius: 14px;
  transition: transform .16s cubic-bezier(.2,.9,.3,1.3), box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #14161d;
  box-shadow: 0 10px 26px rgba(255, 201, 64, .26);
}
.btn-primary:hover { box-shadow: 0 16px 34px rgba(255, 201, 64, .36); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 2px solid var(--border-2);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost {
  background: rgba(255, 255, 255, .06); color: var(--text);
  border: 1.5px solid var(--border-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--text-dim); }
.btn-sm { padding: 10px 18px; font-size: 14.5px; border-radius: 11px; }
.btn-lg { padding: 17px 30px; font-size: 17px; border-radius: 15px; }
.btn-block { display: flex; width: 100%; }
.btn-mini {
  padding: 7px 13px; font-size: 13px; border-radius: 9px;
  background: rgba(255,255,255,.08); color: var(--text-dim); border: 1px solid var(--border-2);
}
.btn-mini:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 90px; position: relative; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 20px; padding: 7px 15px;
  background: rgba(61, 214, 140, .1); border: 1px solid rgba(61, 214, 140, .3);
  border-radius: 999px; color: #8ee8bb;
  font-family: var(--font-ui); font-weight: 500; font-size: 13.5px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(61, 214, 140, .6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61, 214, 140, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(61, 214, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); }
}

.hero-title {
  margin: 0 0 22px; font-size: clamp(52px, 8.2vw, 92px); line-height: .95;
  font-weight: 700;
}
.hero-title span { display: block; }
.hero-title .l1 { color: var(--text); }
.hero-title .l2 {
  background: linear-gradient(100deg, var(--primary) 10%, var(--orange) 55%, var(--pink) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title .l3 { color: var(--cyan); }

.hero-lead {
  margin: 0 0 30px; max-width: 34em;
  font-size: 18.5px; color: var(--text-dim);
}
.hero-lead strong { color: var(--text); font-weight: 700; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.hero-note { margin: 0 0 32px; font-size: 14px; color: var(--text-mute); }

.hero-facts {
  list-style: none; margin: 0; padding: 22px 0 0;
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.hero-facts li { display: flex; flex-direction: column; gap: 1px; }
.hero-facts b {
  font-family: var(--font-ui); font-size: 26px; font-weight: 700; color: var(--primary);
  line-height: 1.1;
}
.hero-facts span { font-size: 13px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .07em; }

.hero-art { position: relative; }
.art-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow), 0 0 70px rgba(91, 192, 235, .13);
  transform: rotate(-1.4deg);
  animation: float 7s ease-in-out infinite;
}
.art-frame img { width: 100%; height: auto; }
@keyframes float {
  0%, 100% { transform: rotate(-1.4deg) translateY(0); }
  50%      { transform: rotate(-1.4deg) translateY(-14px); }
}
.art-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 17px; border-radius: 14px;
  background: rgba(22, 27, 41, .93); border: 1px solid var(--border-2);
  font-family: var(--font-ui); font-weight: 500; font-size: 14.5px;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  backdrop-filter: blur(8px);
}
.chip-ico {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-size: 14px;
}
.chip-tv { left: 12px; bottom: -20px; }
.chip-tv .chip-ico { background: rgba(91, 192, 235, .18); color: var(--accent); }
.chip-qr { right: 12px; top: -20px; }
.chip-qr .chip-ico { background: rgba(255, 201, 64, .18); color: var(--primary); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section:nth-of-type(even) { background: var(--bg-alt); }
.section + .section { border-top: 1px solid var(--border); }

.section-head { max-width: 720px; margin: 0 0 52px; }
.kicker {
  margin: 0 0 12px; color: var(--primary); font-weight: 700;
  font-size: 13.5px; text-transform: uppercase; letter-spacing: .16em;
}
.section-head h2 {
  margin: 0 0 16px; font-size: clamp(32px, 4.6vw, 48px); line-height: 1.1; font-weight: 700;
}
.section-lead { margin: 0; color: var(--text-dim); font-size: 18px; }
.section-lead strong { color: var(--text); }

/* ---------- Download ---------- */
.download .section-head { max-width: 780px; }
.dl-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; align-items: start;
}
.dl-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px;
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.dl-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.dl-primary {
  border-color: rgba(255, 201, 64, .4);
  background: linear-gradient(180deg, rgba(255, 201, 64, .07), transparent 260px), var(--card);
}
.dl-top { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
}
.badge-reco { background: var(--primary); color: #14161d; }
.badge-ghost { background: rgba(255,255,255,.07); color: var(--text-dim); border: 1px solid var(--border-2); }

.dl-card h3 { margin: 0 0 8px; font-size: 26px; font-weight: 700; }
.dl-desc { margin: 0 0 22px; color: var(--text-dim); font-size: 15.5px; }

.dl-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px;
  padding: 18px 0; margin-bottom: 22px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.dl-meta div { display: flex; flex-direction: column; gap: 2px; }
.dl-meta span { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-mute); }
.dl-meta b { font-family: var(--font-ui); font-size: 15.5px; font-weight: 700; }

.hash { margin-top: 16px; }
.hash summary {
  cursor: pointer; font-family: var(--font-ui); font-weight: 500; font-size: 14px;
  color: var(--text-mute); list-style: none; display: inline-flex; align-items: center; gap: 7px;
}
.hash summary::-webkit-details-marker { display: none; }
.hash summary::before { content: '▸'; transition: transform .2s; display: inline-block; }
.hash[open] summary::before { transform: rotate(90deg); }
.hash summary:hover { color: var(--text-dim); }
.hash-label { margin: 14px 0 5px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-mute); }
.hash-val {
  display: block; word-break: break-all; font-size: 12px; line-height: 1.6;
  background: rgba(0,0,0,.35); border-color: var(--border-2); color: var(--text-dim);
}
.hash .btn-mini { margin-top: 10px; }

.install-note {
  margin-top: 34px; padding: 30px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.install-note h3 { margin: 0 0 14px; font-size: 20px; }
.install-note ol { margin: 0; padding-left: 22px; color: var(--text-dim); }
.install-note li { margin-bottom: 8px; }
.install-note li strong { color: var(--text); }
.install-tip {
  margin: 18px 0 0; padding: 14px 18px; border-radius: 12px;
  background: rgba(91, 192, 235, .08); border: 1px solid rgba(91, 192, 235, .22);
  color: var(--text-dim); font-size: 15px;
}
.install-tip b { color: var(--accent); }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0 0 64px; padding: 0; counter-reset: s; }
.step {
  display: grid; grid-template-columns: 62px 1fr; gap: 24px;
  padding: 26px 0; border-top: 1px solid var(--border);
  transition: background .2s;
}
.step:last-child { border-bottom: 1px solid var(--border); }
.step-num {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  font-family: var(--font-ui); font-weight: 700; font-size: 22px;
  background: var(--card-2); border: 1px solid var(--border-2); color: var(--text-dim);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.step:hover .step-num {
  background: var(--primary); color: #14161d; border-color: var(--primary);
  transform: rotate(-6deg) scale(1.05);
}
.step--accent .step-num { background: rgba(255,201,64,.14); color: var(--primary); border-color: rgba(255,201,64,.35); }
.step-body h3 { margin: 6px 0 8px; font-size: 22px; font-weight: 700; }
.step-body p { margin: 0; color: var(--text-dim); max-width: 62ch; }
.step-body strong { color: var(--text); }

.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.role-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: transform .22s, border-color .22s;
}
.role-card:hover { transform: translateY(-3px); border-color: var(--border-2); }
.role-tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .05em; margin-bottom: 14px;
}
.role-tag--host    { background: rgba(255,201,64,.15);  color: var(--primary); }
.role-tag--player  { background: rgba(91,192,235,.15);  color: var(--accent); }
.role-tag--browser { background: rgba(233,30,99,.15);   color: #ff7aa8; }
.role-tag--tv      { background: rgba(156,39,176,.18); color: #cd7fd8; }
.role-card h3 { margin: 0 0 8px; font-size: 19px; }
.role-card p { margin: 0; font-size: 15px; color: var(--text-dim); }

/* ---------- Features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 20px; }
.feat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  position: relative; overflow: hidden;
  transition: transform .22s, border-color .22s, background .22s;
}
.feat::after {
  content: ''; position: absolute; inset: auto -30% -60% auto;
  width: 180px; height: 180px; border-radius: 50%;
  background: var(--c, var(--primary)); opacity: .05; filter: blur(30px);
  transition: opacity .3s;
}
.feat:hover { transform: translateY(-4px); border-color: var(--border-2); }
.feat:hover::after { opacity: .12; }
.feat-ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 16px;
  background: rgba(255, 201, 64, .14);
  background: color-mix(in srgb, var(--c, var(--primary)) 16%, transparent);
  border: 1px solid rgba(255, 201, 64, .3);
  border-color: color-mix(in srgb, var(--c, var(--primary)) 32%, transparent);
}
.feat h3 { margin: 0 0 8px; font-size: 19px; }
.feat p { margin: 0; font-size: 15px; color: var(--text-dim); }

/* ---------- Technical ---------- */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.tech-h {
  margin: 0 0 16px; font-size: 21px; font-weight: 700;
  padding-bottom: 10px; border-bottom: 2px solid var(--border);
}
.tech-h:not(:first-child) { margin-top: 42px; }

.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec tr { border-bottom: 1px solid var(--border); }
.spec tr:last-child { border-bottom: 0; }
.spec th {
  text-align: left; font-weight: 500; color: var(--text-mute);
  padding: 11px 16px 11px 0; white-space: nowrap; vertical-align: top; width: 40%;
}
.spec td { padding: 11px 0; color: var(--text-dim); }
.spec td b { color: var(--text); font-family: var(--font-ui); }

.phases { display: grid; gap: 10px; }
.phase {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center;
  padding: 14px 18px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--border);
}
.phase span {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--primary);
}
.phase p { margin: 0; font-size: 14.5px; color: var(--text-dim); }

.formula {
  padding: 24px; border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255,201,64,.09), transparent 70%), var(--card);
  border: 1px solid rgba(255, 201, 64, .22);
}
.formula-eq {
  margin: 0 0 16px; font-family: var(--font-mono); font-size: 15px; color: var(--text);
  display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
}
.formula-eq span {
  padding: 5px 11px; border-radius: 9px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border-2);
}
.formula-eq span:nth-child(3) { background: rgba(255,201,64,.14); border-color: rgba(255,201,64,.3); color: var(--primary); }
.formula-list { margin: 0; padding-left: 20px; font-size: 15px; color: var(--text-dim); }
.formula-list li { margin-bottom: 6px; }
.formula-list b { color: var(--text); }

.bullets { margin: 0; padding-left: 20px; font-size: 15.5px; color: var(--text-dim); }
.bullets li { margin-bottom: 9px; }
.bullets b { color: var(--text); }

.arch {
  margin-top: 56px; padding: 30px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.arch-head { margin-bottom: 22px; }
.arch-head h3 { margin: 0 0 8px; font-size: 22px; }
.arch-head p { margin: 0; color: var(--text-dim); font-size: 15.5px; }
.arch-img {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-2);
  background: #fff; overflow-x: auto;
}
.arch-img img { width: 100%; height: auto; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 4px 22px;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--border-2); }
.faq-item summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-ui); font-weight: 700; font-size: 17.5px;
  padding: 19px 30px 19px 0; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--primary); line-height: 1;
  transition: transform .22s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { margin: 0 0 20px; color: var(--text-dim); font-size: 16px; }

/* ---------- CTA ---------- */
.cta { padding-top: 40px; }
.cta-card {
  display: flex; align-items: center; gap: 34px; flex-wrap: wrap;
  padding: 40px; border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 300px at 12% 0%, rgba(255,201,64,.18), transparent 70%),
    radial-gradient(600px 320px at 90% 100%, rgba(91,192,235,.18), transparent 70%),
    var(--card);
  border: 1px solid var(--border-2);
}
.cta-icon { width: 120px; height: 120px; flex-shrink: 0; filter: drop-shadow(0 14px 28px rgba(0,0,0,.45)); }
.cta-text { flex: 1 1 300px; }
.cta-text h2 { margin: 0 0 8px; font-size: 32px; }
.cta-text p { margin: 0; color: var(--text-dim); }

/* ---------- Footer ---------- */
.footer { padding: 44px 0; border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-ui); font-weight: 700; }
.footer-note { margin: 0; font-size: 14px; color: var(--text-mute); max-width: 46ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text-dim); font-size: 14.5px; font-family: var(--font-ui); }
.footer-links a:hover { color: var(--primary); }

/* ---------- Reveal on scroll ---------- */
/* Solo se oculta si hay JS: sin JS el contenido se ve siempre. */
html.js .reveal {
  opacity: 0; translate: 0 22px;
  transition: opacity .6s cubic-bezier(.2,.8,.3,1), translate .6s cubic-bezier(.2,.8,.3,1);
}
html.js .reveal.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; translate: none; transition: none; }
  html { scroll-behavior: auto; }
  .art-frame { animation: none; }
  .eyebrow .dot { animation: none; }
  .btn { transition: none; }
}
@media print {
  .reveal { opacity: 1 !important; translate: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 46px; }
  .hero-art { max-width: 520px; margin-inline: auto; width: 100%; }
  .chip-tv { left: 8px; bottom: -18px; }
  .chip-qr { right: 8px; top: -18px; }
  .tech-grid { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .hero { padding: 48px 0 66px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(13, 17, 26, .98);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px 20px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links > a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 14px; }

  .hero-facts { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .step { grid-template-columns: 46px 1fr; gap: 16px; }
  .step-num { width: 42px; height: 42px; font-size: 18px; border-radius: 13px; }
  .dl-card, .install-note, .arch { padding: 24px; }
  .dl-meta { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; gap: 5px; }
  .cta-card { padding: 28px; gap: 22px; text-align: center; justify-content: center; }
  .cta-icon { width: 88px; height: 88px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero-cta .btn { width: 100%; }
  .formula-eq { font-size: 13px; }
}
