:root {
  --black: #000000;
  --white: #FFFFFF;
  --yellow: #E4FB04;
  --ink: #0c0c0c;
  --gray: #6b6b6b;
  --line: #e2e2e2;
  --grid: #1c1c1c;
  --grotesk: 'Space Grotesk', Arial, Helvetica, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--grotesk); color: var(--ink); background: var(--white); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; padding: 16px 26px; border: 2px solid transparent; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.15s, color 0.15s, border-color 0.15s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.22); }
.btn:active { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.18); transition-duration: 0.07s; }
.btn-yellow:hover { box-shadow: 0 10px 28px rgba(228,251,4,0.3); }
@media (prefers-reduced-motion: reduce) { .btn { transition: background 0.15s, color 0.15s, border-color 0.15s; } .btn:hover, .btn:active { transform: none; box-shadow: none; } }
.btn-yellow { background: var(--yellow); color: #000; }
.btn-yellow:hover { background: #000; color: var(--yellow); border-color: var(--yellow); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: #000; }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: var(--yellow); color: #000; }

/* sticky header */
header.bar { position: sticky; top: 0; z-index: 50; background: #000; color: #fff; border-bottom: 1px solid var(--grid); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.logo i { font-style: italic; color: var(--yellow); }
.bar .mono { color: #9a9a9a; }
.bar .btn { padding: 11px 18px; font-size: 11px; }

/* hero */
.hero { background: #000; color: #fff; padding: 84px 0 96px; position: relative; overflow: hidden; }
.hero .eyebrow { color: var(--yellow); margin-bottom: 34px; }
.primer { font-size: 18px; color: #cfcfcf; max-width: 640px; margin-bottom: 18px; line-height: 1.5; }
h1.head { font-size: clamp(44px, 8.5vw, 104px); font-weight: 700; line-height: .98; letter-spacing: -.035em; margin-bottom: 30px; }
h1.head .hl { position: relative; color: var(--yellow); white-space: nowrap; }
.subhead { font-size: clamp(19px, 2.4vw, 26px); font-weight: 500; max-width: 760px; color: #fff; line-height: 1.3; margin-bottom: 26px; }
.herobody { font-size: 18px; color: #bdbdbd; max-width: 620px; line-height: 1.6; margin-bottom: 40px; }
.herobody b { color: #fff; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* hero two-column layout */
.hero-wrap { display: flex; align-items: center; gap: 64px; }
.hero-left { flex: 1; min-width: 0; }
.hero-right { flex: 0 0 300px; display: flex; align-items: center; justify-content: center; }

/* card stack */
.card-stack {
  position: relative;
  width: 280px;
  height: 380px;
  user-select: none;
}
.card {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: grab;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.4);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.card:active { cursor: grabbing; }
.card {
  background: rgba(228, 251, 4, 0.036);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(228, 251, 4, 0.07);
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  display: block;
}
.card-hint {
  position: absolute;
  bottom: -28px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .hero-wrap { flex-direction: column; gap: 48px; }
  .hero-right { order: -1; flex: none; }
  .card-stack { width: 220px; height: 298px; }
}

/* credibility strip — marquee */
.cred { background: var(--yellow); color: #000; padding: 22px 0; overflow: hidden; }
.cred-inner { display: flex; align-items: center; width: max-content; }
.cred-track { display: flex; gap: 28px; align-items: center; white-space: nowrap; padding-right: 28px; }
.cred-track .mono { font-weight: 700; letter-spacing: .1em; font-size: 12.5px; }
.cred-sub { background: #000; color: #fff; padding: 26px 0; }
.cred-sub p { max-width: 780px; margin: 0 auto; text-align: center; font-size: 18px; color: #dcdcdc; line-height: 1.55; }
.cred-sub b { color: #fff; }

/* generic section */
section.block { padding: 92px 0; }
.klabel { margin-bottom: 18px; color: var(--gray); }
h2 { font-size: clamp(32px, 5vw, 54px); font-weight: 700; line-height: 1.04; letter-spacing: -.025em; max-width: 14ch; }
.lead { font-size: 20px; color: #3a3a3a; max-width: 660px; line-height: 1.6; margin-top: 22px; }

/* thesis */
.thesis { background: #fff; }
.thesis .stack { max-width: 720px; }
.thesis p.bigp { font-size: 22px; line-height: 1.55; margin-top: 26px; color: #222; }
.thesis p.bigp:first-of-type { margin-top: 34px; }
.bigidea {
  margin-top: 48px;
  background: #000;
  color: #fff;
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}
.bigidea s { color: var(--gray); text-decoration-thickness: 3px; }
.bigidea .l {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  position: relative;
  z-index: 2;
}
.bigidea .l em { font-style: normal; color: var(--yellow); }

/* retro grid inside bigidea */
.retro-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.retro-grid-plane {
  position: absolute;
  width: 300%;
  height: 300%;
  left: -100%;
  top: 30%;
  background-image:
    linear-gradient(to right, rgba(228,251,4,0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(228,251,4,0.22) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(350px) rotateX(65deg);
  transform-origin: center 0%;
  animation: retro-scroll 5s linear infinite;
}
/* horizon fade — top melts into black */
.retro-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #000 0%, transparent 50%);
  z-index: 2;
  pointer-events: none;
}
/* edge vignette */
.retro-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 110%, transparent 50%, #000 100%);
  z-index: 2;
  pointer-events: none;
}
@keyframes retro-scroll {
  from { background-position: 0 0; }
  to   { background-position: 0 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .retro-grid-plane { animation: none; }
}

/* steps */
.steps { background: #0c0c0c; color: #fff; }
.steps h2 { color: #fff; }
.flow { margin-top: 50px; border-top: 1px solid var(--grid); }
.frow { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 26px 4px; border-bottom: 1px solid var(--grid); align-items: baseline; }
.frow .fnum { font-family: var(--mono); font-size: 32px; font-weight: 700; color: var(--yellow); line-height: 1; }
.frow .ftxt h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; color: #fff; }
.frow .ftxt p { color: #b6b6b6; font-size: 16.5px; line-height: 1.6; max-width: 680px; }
.flow-foot { margin-top: 30px; font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: #000; background: var(--yellow); display: inline-block; padding: 14px 22px; }

/* antes / después */
.fasc { background: #fff; }
.ba { margin-top: 46px; border-top: 2px solid #000; }
.ba-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 16px 0 0; }
.ba-head .h { font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; padding-bottom: 10px; }
.ba-head .h.now { color: var(--gray); }
.ba-head .h.fdc { color: #000; border-bottom: 3px solid var(--yellow); display: inline-block; width: fit-content; }
.ba-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; border-top: 1px solid var(--line); }
.ba-row .cell { padding: 20px 0; font-size: 17px; line-height: 1.5; }
.ba-row .cl { display: none; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.ba-row .now { color: #9c9c9c; }
.ba-row .now .cl { color: #bdbdbd; }
.ba-row .fdc { color: #101010; font-weight: 500; padding-left: 24px; position: relative; }
.ba-row .fdc::before { content: "→"; position: absolute; left: 0; top: 20px; color: #000; font-weight: 700; }
.ba-row .now::before { content: "✕"; color: #d2d2d2; font-weight: 700; margin-right: 10px; }

/* tiers */
.tiers { background: #0c0c0c; color: #fff; }
.tiers h2 { color: #fff; }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; align-items: start; }
.tier { background: #161616; border: 1px solid var(--grid); padding: 32px 26px; display: flex; flex-direction: column; height: 100%; }
.tier.feat { background: #fff; color: #000; border: 2px solid var(--yellow); position: relative; transform: translateY(-12px); }
.tier .badge { position: absolute; top: -13px; left: 26px; background: var(--yellow); color: #000; font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .1em; padding: 5px 12px; text-transform: uppercase; }
.tier .tname { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.tier.feat .tname { color: #000; }
.tier .price { font-size: 42px; font-weight: 700; letter-spacing: -.02em; margin: 14px 0 2px; }
.tier .per { font-size: 14px; color: #9a9a9a; font-family: var(--mono); }
.tier.feat .per { color: #555; }
.tier .who { font-size: 15px; color: #c2c2c2; line-height: 1.5; margin: 18px 0 22px; font-style: italic; min-height: 66px; }
.tier.feat .who { color: #444; }
.tier .inc { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #7d7d7d; margin-bottom: 14px; }
.tier.feat .inc { color: #888; }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; flex: 1; }
.tier li { font-size: 15px; line-height: 1.45; padding-left: 22px; position: relative; color: #e4e4e4; }
.tier.feat li { color: #1c1c1c; }
.tier li::before { content: "→"; position: absolute; left: 0; color: var(--yellow); font-weight: 700; }
.tier.feat li::before { color: #000; }
.tier .note { font-size: 12.5px; color: #8a8a8a; line-height: 1.45; margin: -8px 0 20px; border-left: 2px solid var(--grid); padding-left: 12px; }
.tier.feat .note { color: #666; border-color: var(--yellow); }
.tier .btn { width: 100%; justify-content: center; margin-top: auto; }
.curation { margin-top: 40px; text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; color: #c9c9c9; font-size: 17px; line-height: 1.6; }
.curation b { color: var(--yellow); font-weight: 500; }

/* faq */
.faq { background: #fff; }
.qa { margin-top: 44px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); overflow: hidden; }
summary { list-style: none; cursor: pointer; padding: 24px 4px; font-size: 20px; font-weight: 500; letter-spacing: -.01em; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary .ic { font-family: var(--mono); color: var(--gray); transition: transform .3s ease; flex-shrink: 0; }
details[open] summary .ic { color: #000; }
details .ans { padding: 0 4px 26px; max-width: 760px; font-size: 17px; color: #3c3c3c; line-height: 1.6; }

/* closing */
/* flip caterpillar gallery */
.gallery-section {
  background: #0c0c0c;
  padding: 92px 0 80px;
  overflow: hidden;
}
.gallery-header { margin-bottom: 48px; }
.gallery-header h2 { color: #fff; }
.flip-gallery {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  /* center the strip without the flex overflow-left bug */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.flip-gallery img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}
.flip-gallery-controls {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
}
.gallery-btn { font-size: 13px; padding: 14px 28px; }

@media (max-width: 860px) {
  .flip-gallery { gap: 10px; padding: 0 16px; }
  .flip-gallery img { width: 160px; height: 160px; }
}

.close { background: #000; color: #fff; padding: 96px 0; }
.closecard { max-width: 820px; }
.close h2 { color: #fff; max-width: 18ch; }
.close p.cp { font-size: 19px; color: #bdbdbd; line-height: 1.6; margin-top: 24px; max-width: 640px; }
.counter-num { color: var(--yellow); }
.founder { margin-top: 32px; border: 1px solid var(--yellow); padding: 20px 24px; display: inline-block; }
.founder .mono { color: var(--yellow); margin-bottom: 8px; }
.founder p { font-size: 16px; color: #e8e8e8; line-height: 1.5; max-width: 560px; }
.founder b { color: #fff; }
.close .cta-row { margin-top: 40px; }
.close .btn-yellow { font-size: 15px; padding: 20px 34px; }
.sig { margin-top: 24px; font-style: italic; color: #8a8a8a; font-size: 15px; }

/* grain texture overlay — dark sections */
.grain { position: relative; }
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.09;
  mix-blend-mode: screen;
}
/* ensure children of .grain sections appear above the texture */
.grain > * { position: relative; z-index: 3; }

/* footer */
footer { background: #000; color: #666; border-top: 1px solid var(--grid); padding: 30px 0; overflow: hidden; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }
footer .mono { color: #666; }
footer .logo { font-size: 15px; color: #fff; }

/* particles canvas — hero & footer */
#hero-particles,
#footer-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}


/* responsive */
@media (max-width: 860px) {
  .tgrid { grid-template-columns: 1fr; }
  .tier.feat { transform: none; }
  .bar .mono { display: none; }
  h1.head .hl { white-space: normal; }
  section.block { padding: 64px 0; }
  .frow { grid-template-columns: 60px 1fr; gap: 16px; }
  .frow .fnum { font-size: 24px; }
  .ba-head { display: none; }
  .ba-row { grid-template-columns: 1fr; gap: 0; border-top: none; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .ba-row .cell { padding: 8px 0; }
  .ba-row .cl { display: block; }
  .ba-row .fdc { padding-left: 0; }
  .ba-row .fdc::before { display: none; }
  .ba-row .now::before { display: none; }
}

/* accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cred-track { animation: none !important; }
  html { scroll-behavior: auto; }
}
