/* My-Negocio product tour — static, no build step */
:root {
  --navy-900: #0B1026;
  --navy-800: #0F172A;
  --navy-700: #1B1F3B;
  --navy-600: #262B52;
  --blue: #3E97FF;
  --blue-600: #1B84FF;
  --violet: #7239EA;
  --yellow: #FFC700;
  --green: #50CD89;
  --red: #F1416C;
  --surface: #F5F8FA;
  --surface-2: #EEF2F7;
  --card: #FFFFFF;
  --ink: #1E293B;
  --ink-2: #475569;
  --ink-3: #64748B;
  --line: #E2E8F0;
  --on-dark: #E6EAF5;
  --on-dark-2: #A9B2CE;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 12px 32px -8px rgba(15, 23, 42, .16);
  --shadow-lg: 0 4px 8px rgba(2, 6, 23, .08), 0 32px 64px -16px rgba(2, 6, 23, .45);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet); }
code, .mono { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--yellow); }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.025em; margin: 0; color: inherit; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--navy-800); font-weight: 700;
  padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; color: var(--navy-800); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 38, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: var(--on-dark);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; font-size: 18px; }
.brand img { width: 30px; height: 30px; }
.brand:hover { color: #fff; }
.nav nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--on-dark-2); text-decoration: none; font-size: 15px; font-weight: 500;
}
.nav ul a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  border: 1px solid transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: #111827; box-shadow: 0 8px 24px -8px rgba(255, 199, 0, .6); }
.btn-yellow:hover { color: #111827; background: #FFD43B; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.nav .btn-sm { background: #fff; color: var(--navy-800); }
.nav .btn-sm:hover { color: var(--navy-800); background: #E8EEFF; }

@media (max-width: 860px) {
  .nav .wrap { gap: 8px; }
  .nav .nav-wide { display: none; }
  .nav ul a { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 480px) {
  .nav .btn-sm { padding: 0 11px; }
  .nav .gh-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand { font-size: 17px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(114, 57, 234, .35), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(62, 151, 255, .28), transparent 60%),
    linear-gradient(160deg, var(--navy-700) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
  margin-top: -64px; padding-top: calc(64px + clamp(48px, 7vw, 96px));
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1.3 var(--mono); letter-spacing: .02em; text-transform: uppercase;
  color: #9CC7FF;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(2.5rem, 5vw, 4.25rem); font-weight: 800; line-height: 1.03; letter-spacing: -0.04em;
  color: #fff;
}
.hero h1 .grad {
  background: linear-gradient(92deg, #7CB9FF 0%, #B79BFF 60%, #FFD86B 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--on-dark-2); max-width: 36em; }
.lede strong { color: #fff; font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px; color: var(--on-dark);
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #94A3B8; box-shadow: 0 0 0 4px rgba(148, 163, 184, .18); flex: none; }

.hero-visual { position: relative; padding-bottom: 8%; }
.hero-visual .browser { transform: perspective(1800px) rotateY(-9deg) rotateX(3deg); transform-origin: left center; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .06); }
.hero-visual .phone { position: absolute; right: -2%; bottom: -4%; width: 29%; min-width: 120px; }
.hero-visual .glow { position: absolute; inset: 10% 5% 0 15%; background: radial-gradient(closest-side, rgba(62, 151, 255, .45), transparent); filter: blur(40px); z-index: -1; }
[data-parallax] { will-change: transform; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 640px; margin: 8px auto 0; width: 100%; }
  .hero-visual .browser { transform: none; }
}
/* Phones: show the real UI right after the headline, before the buttons */
@media (max-width: 600px) {
  .hero { padding-top: calc(64px + 28px); padding-bottom: 56px; }
  .hero .wrap { row-gap: 0; }
  .hero-copy { display: contents; }
  .hero h1 { margin: 12px 0 14px; font-size: clamp(2.1rem, 9vw, 2.5rem); }
  .lede { font-size: 1rem; order: 0; }
  .hero-visual { order: 1; margin-top: 24px; padding-bottom: 10%; }
  .hero-visual .phone { right: 0; width: 30%; min-width: 96px; border-radius: 22px; padding: 6px; }
  .cta { order: 2; margin-top: 20px; flex-wrap: nowrap; gap: 10px; }
  .cta .btn { flex: 1 1 0; min-width: 0; min-height: 46px; padding: 0 12px; font-size: 15px; gap: 8px; }
  .status { order: 3; margin-top: 18px; font-size: 13px; }
  .cta .cta-long { display: none; }
}

/* ---------- Frames ---------- */
.browser {
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, .08);
}
.browser-bar {
  display: flex; align-items: center; gap: 12px;
  height: 36px; padding: 0 14px; background: #F1F4F9; border-bottom: 1px solid #E3E8F0;
}
.dots { display: flex; gap: 6px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; display: block; }
.dots i:nth-child(2) { background: #FEBC2E; }
.dots i:nth-child(3) { background: #28C840; }
.url {
  flex: 1; max-width: 360px; margin: 0 auto; height: 22px; border-radius: 6px; background: #fff;
  border: 1px solid #E3E8F0; font: 500 11.5px/20px var(--mono); color: var(--ink-3);
  text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 10px;
}
.url b { color: var(--ink-2); font-weight: 500; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: var(--surface-2); }
.browser.natural img { aspect-ratio: auto; }

.phone {
  border-radius: 34px; padding: 9px; background: #0A0D1C;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .12);
}
.phone img { border-radius: 26px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: #fff; }

/* ---------- Stack band ---------- */
.stack { background: var(--navy-900); border-top: 1px solid rgba(255, 255, 255, .06); padding: 22px 0; color: var(--on-dark-2); }
.stack .wrap { display: flex; align-items: center; gap: 18px; }
.stack-label { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; flex: none; color: #8C96B8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li {
  font: 500 13.5px/1 var(--font); padding: 8px 12px; border-radius: 8px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); color: var(--on-dark);
}
@media (max-width: 700px) { .stack .wrap { flex-direction: column; align-items: flex-start; gap: 12px; } }

/* ---------- Sections ---------- */
section { scroll-margin-top: 72px; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font: 600 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--blue-600); }
.section h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; margin: 14px 0 16px; }
.section-head p { font-size: 1.125rem; color: var(--ink-2); }
.dark { background: var(--navy-800); color: var(--on-dark); }
.dark .kicker { color: #9CC7FF; }
.dark .section-head p { color: var(--on-dark-2); }
.dark h2, .dark h3 { color: #fff; }

/* ---------- Models tabs ---------- */
.models { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
.tablist { display: flex; flex-direction: column; gap: 8px; }
.tab {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px 16px; border-radius: 14px; border: 1px solid transparent;
  background: transparent; cursor: pointer; font: inherit; color: var(--ink-2);
  transition: background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.tab:hover { background: #fff; color: var(--ink); }
.tab[aria-selected="true"] { background: #fff; border-color: var(--line); box-shadow: var(--shadow); color: var(--ink); }
.tab .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.tab .ico svg { width: 22px; height: 22px; }
.tab strong { display: block; font-size: 16px; font-weight: 700; color: var(--ink); }
.tab small { display: block; font-size: 13.5px; color: var(--ink-3); line-height: 1.35; }
.ico-blue { background: #E9F3FF; color: var(--blue-600); }
.ico-violet { background: #F1EBFF; color: var(--violet); }
.ico-green { background: #E8FFF3; color: #1F9D5C; }
.ico-yellow { background: #FFF8DD; color: #B38600; }
.panel h3 { font-size: 1.5rem; font-weight: 800; margin: 24px 0 12px; }
.panel .es { font: 500 13px/1 var(--mono); color: var(--ink-3); margin-left: 8px; letter-spacing: 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 6px;
  background: #E8FFF3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%231F9D5C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.js .panel[hidden] { display: none; }
.js:not(.tabs-ready) .panel + .panel { display: none; }
.no-js-label { display: none; }
html:not(.js) .tablist { display: none; }
html:not(.js) .models { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .panel + .panel { margin-top: 64px; }
html:not(.js) .no-js-label { display: block; }
@media (max-width: 960px) {
  .models { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tablist { flex-direction: row; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); padding: 4px 2px 12px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .tablist::-webkit-scrollbar { display: none; }
  .tab { flex: none; width: auto; scroll-snap-align: start; padding: 10px 14px; }
  .tab small { display: none; }
  .tab .ico { width: 36px; height: 36px; }
  .ticks { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
.caption-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font: 500 12.5px/1 var(--mono); color: var(--ink-3);
}
.caption-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.dark .caption-chip { color: var(--on-dark-2); }

/* ---------- Feature rows ---------- */
.features { display: grid; gap: clamp(72px, 9vw, 120px); }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature:nth-child(even) .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; margin: 12px 0 14px; }
.feature-text > p { color: var(--ink-2); font-size: 1.0625rem; }
.feature-text ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature-text li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 15.5px; }
.feature-text li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); transform: rotate(45deg); }
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em;
  padding: 7px 10px; border-radius: 8px;
}
.label-blue { background: #E9F3FF; color: #0B63D1; }
.label-violet { background: #F1EBFF; color: #5B21C9; }
.label-green { background: #E3F9EE; color: #16794A; }
.label-yellow { background: #FFF5CC; color: #7A5B00; }
.label-red { background: #FFE9EF; color: #B4163F; }
.path { display: inline-block; margin-top: 18px; font: 500 13px/1.4 var(--mono); color: var(--ink-3); text-decoration: none; border-bottom: 1px dashed #B7C3D6; }
.path:hover { color: var(--blue-600); border-bottom-color: currentColor; }
.stacked { position: relative; }
.stacked .inset { position: absolute; width: 44%; right: -3%; bottom: -10%; box-shadow: var(--shadow-lg); }
@media (max-width: 900px) {
  .feature, .feature:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(even) .feature-text { order: 0; }
  .stacked .inset { right: 0; }
}

/* ---------- Mobile strip ---------- */
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 36px); align-items: start; }
.phones figure { margin: 0; }
.phones figure:nth-child(even) { margin-top: 48px; }
.phones figcaption { margin-top: 16px; text-align: center; font-size: 14.5px; color: var(--on-dark-2); }
.phones figcaption b { display: block; color: #fff; font-weight: 600; font-size: 15.5px; }
@media (max-width: 900px) {
  .phones {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px;
    margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 20px; scrollbar-width: thin;
  }
  .phones figure { flex: 0 0 62%; max-width: 260px; scroll-snap-align: center; }
  .phones figure:nth-child(even) { margin-top: 0; }
}

/* ---------- Architecture ---------- */
.arch { display: grid; grid-template-columns: minmax(0, .8fr) 36px minmax(0, .9fr) 36px minmax(0, 2fr) 36px minmax(0, 1fr); align-items: stretch; }
.node {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow-sm);
}
.node h4 { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.node p { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.45; }
.node .tag { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 10px; display: block; }
.col { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.arrow { display: flex; align-items: center; justify-content: center; color: #94A3B8; }
.arrow svg { width: 28px; height: 28px; }
.app {
  background: linear-gradient(180deg, #F7FAFF, #EEF4FF); border: 1.5px solid #BFD8FF; border-radius: 20px; padding: 18px;
  display: grid; gap: 12px;
}
.app > .tag { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #0B63D1; }
.app-title { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; margin-top: -4px; }
.layers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; counter-reset: layer; }
.layer { position: relative; background: #fff; border: 1px solid #D5E4FB; border-radius: 12px; padding: 10px 12px 10px 40px; counter-increment: layer; }
.layer::before {
  content: counter(layer); position: absolute; left: 10px; top: 11px; width: 20px; height: 20px; border-radius: 6px;
  background: #E9F3FF; color: #0B63D1; font: 700 11px/20px var(--mono); text-align: center;
}
.layer b { display: block; font-size: 13.5px; }
.layer span { font-size: 12px; color: var(--ink-3); }
.jobs { background: var(--navy-800); color: var(--on-dark); border-radius: 12px; padding: 12px 14px; }
.jobs b { font-size: 13px; color: #fff; }
.jobs ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.jobs li { font: 500 11.5px/1 var(--mono); padding: 6px 8px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: #CFE3FF; }
@media (max-width: 1060px) {
  .arch { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .arrow { height: 40px; }
  .arrow svg { transform: rotate(90deg); }
  .col { flex-direction: row; flex-wrap: wrap; }
  .col .node { flex: 1 1 200px; }
}

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; margin-top: 40px; align-items: stretch; }
.callout { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.callout h3 { font-size: 1.35rem; font-weight: 800; margin: 12px 0 10px; }
.callout p { color: var(--ink-2); font-size: 15.5px; }
.callout p + p { margin-top: 10px; }
pre.code {
  margin: 0; background: #0B1026; color: #D6E2FF; border-radius: var(--radius); padding: 22px 22px;
  font: 13px/1.65 var(--mono); overflow-x: auto; box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .06);
}
pre.code .c { color: #6B7699; }
pre.code .k { color: #C4A7FF; }
pre.code .t { color: #7CD4FF; }
pre.code .s { color: #FFD86B; }
.code-wrap { display: flex; flex-direction: column; min-width: 0; }
.code-file { font: 500 12px/1 var(--mono); color: var(--ink-3); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 12px; }
.code-file a { color: inherit; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .08); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); margin-bottom: 48px; }
.numbers div { background: var(--navy-800); padding: 22px 18px; }
.numbers b { display: block; font: 700 clamp(1.6rem, 2.6vw, 2.1rem)/1 var(--font); letter-spacing: -0.03em; color: #fff; }
.numbers span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--on-dark-2); line-height: 1.35; }
@media (max-width: 900px) { .numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--on-dark);
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius);
  padding: 24px; transition: border-color .2s, background .2s, transform .2s;
}
.card:hover { color: var(--on-dark); border-color: rgba(124, 185, 255, .5); background: rgba(62, 151, 255, .07); transform: translateY(-2px); }
.card h3 { font-size: 1.125rem; font-weight: 700; color: #fff; }
.card p { font-size: 15px; color: var(--on-dark-2); line-height: 1.55; }
.card code { margin-top: auto; padding-top: 8px; font-size: 12px; color: #9CC7FF; overflow-wrap: anywhere; }
.card .go { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #fff; cursor: zoom-in; text-align: left; font: inherit; color: inherit;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.gallery button:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: var(--surface-2); }
.gallery span { display: block; padding: 10px 12px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.gallery span small { display: block; font: 500 11.5px/1.4 var(--mono); color: var(--ink-3); margin-top: 2px; }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(1280px, 94vw); width: 100%; color: #fff;
}
dialog.lightbox::backdrop { background: rgba(5, 8, 22, .88); backdrop-filter: blur(4px); }
.lb-inner { position: relative; }
.lb-inner img { width: auto; max-width: 100%; height: auto; max-height: 80vh; margin: 0 auto; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.lb-bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.lb-bar p { flex: 1; font-size: 15px; color: #E6EAF5; }
.lb-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08);
  color: #fff; display: grid; place-items: center; cursor: pointer; flex: none;
}
.lb-btn:hover { background: rgba(255, 255, 255, .16); }
.lb-btn svg { width: 20px; height: 20px; }

/* ---------- Closing / footer ---------- */
.closing { text-align: center; }
.closing h2 { max-width: 18em; margin-left: auto; margin-right: auto; }
.closing p { max-width: 40em; margin: 0 auto; color: var(--on-dark-2); font-size: 1.125rem; }
.closing .cta { justify-content: center; }
footer { background: var(--navy-900); color: var(--on-dark-2); padding: 40px 0; font-size: 14.5px; border-top: 1px solid rgba(255, 255, 255, .06); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer a { color: #CFE3FF; }
footer a:hover { color: #fff; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer .note { width: 100%; font-size: 13px; color: #8C96B8; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .gallery button:hover { transform: none; }
}
