/* ============================================
   FONT FACES
   ============================================ */
@font-face {
  font-family: 'Season Sans';
  src: url('fonts/SeasonSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Season Sans';
  src: url('fonts/SeasonSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Season Mix';
  src: url('fonts/SeasonMix-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SF Mono';
  src: url('fonts/SF-Mono-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SF Mono';
  src: url('fonts/SF-Mono-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   DESIGN TOKENS (from Figma variables)
   ============================================ */
:root {
  --white: #fafaf8;
  --black: #0b0705;
  --red: #f0951f;
  --yellow: #f0951f;
  --light: #ebe4df;
  --dark: #9a8b7c;

  /* Spacing scale */
  --sp-0-75: 6px;
  --sp-1: 8px;
  --sp-1-5: 12px;
  --sp-2: 16px;
  --sp-3: 24px;

  /* Grid */
  --grid-columns: 16;
  --grid-margin: 225px;
  --grid-gutter: 20px;
  --page-width: 1440px;
  --content-width: calc(var(--page-width) - var(--grid-margin) * 2); /* 1328px */

  /* Typography */
  --font-sans: 'Season Sans', 'Helvetica Neue', sans-serif;
  --font-display: 'Season Mix', 'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', 'Menlo', 'Consolas', monospace;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-weight: 500;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

/* ============================================
   PASSWORD GATE
   ============================================ */
a {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   GRID SYSTEM
   16 columns, 56px margin, 20px gutter
   ============================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 0 var(--grid-gutter);
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--grid-margin);
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 40px 12.36%;
  max-width: var(--page-width);
  margin: 0 auto;
  background: transparent;
  transition: padding 0.4s ease;
}

.nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: transparent;
  transition: background 0.4s ease;
  z-index: -1;
  pointer-events: none;
}

.nav.nav-scrolled::before {
  background: linear-gradient(180deg, #FAFAF8 0%, rgba(250, 250, 248, 0.99) 6.67%, rgba(250, 250, 248, 0.96) 13.33%, rgba(250, 250, 248, 0.92) 20%, rgba(250, 250, 248, 0.85) 26.67%, rgba(250, 250, 248, 0.77) 33.33%, rgba(250, 250, 248, 0.67) 40%, rgba(250, 250, 248, 0.56) 46.67%, rgba(250, 250, 248, 0.44) 53.33%, rgba(250, 250, 248, 0.33) 60%, rgba(250, 250, 248, 0.23) 66.67%, rgba(250, 250, 248, 0.15) 73.33%, rgba(250, 250, 248, 0.08) 80%, rgba(250, 250, 248, 0.04) 86.67%, rgba(250, 250, 248, 0.01) 93.33%, rgba(250, 250, 248, 0.00) 100%);
}

.nav.nav-scrolled .nav-pill {
  background: rgba(122, 122, 122, 0.15);
  color: var(--black);
}

.nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px 12px;
  border-radius: 33px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.14px;
  line-height: 0.93;
  white-space: nowrap;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.nav.nav-scrolled .nav-cta {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav.nav-scrolled .logo {
  filter: brightness(0);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left,
.nav-right {
  flex: 1;
}

.nav-right {
  display: flex;
  flex: 1;
  justify-content: flex-end;
}

.logo-hit {
  position: relative;
  width: 104.572px;
  height: 32px;
  flex-shrink: 0;
  cursor: pointer;
}

.logo-clip {
  width: 104.572px;
  height: 32px;
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
  height: 32px;
  width: 104.572px;
  display: block;
  color: white;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(-8px);
  animation: nav-entrance 0.6s ease 0.3s forwards;
}

.logo-spur {
  /* rotation applied via SVG transform attribute: rotate(angle 16 16) */
}

.logo-letter {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-letter.hidden {
  opacity: 0;
  transform: translateX(6px);
}

.logo-clip.hover-expanded .logo-letter.hidden {
  opacity: 1;
  transform: translateX(0);
}

.logo-clip.no-transition {
  transition: none !important;
}
.logo-clip.no-transition .logo-letter {
  transition: none !important;
}

.nav-pill.nav-menu-pill {
  display: none;
}

@keyframes nav-entrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 2.389px 4.779px rgba(0, 0, 0, 0.1);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 0.93;
  color: var(--white);
  width: 148px;
  text-align: center;
}

.nav-icon {
  display: block;
  color: var(--white);
  transition: color 0.4s ease;
}

.nav.nav-scrolled .nav-icon {
  color: var(--black);
}

/* ============================================
   CONTENT
   ============================================ */
.content {
  max-width: var(--page-width);
  margin: 0 auto 546px;
  position: relative;
  z-index: 1;
  isolation: isolate;
  --lip-shadow: none;
}

.content::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  width: 100vw;
  background: var(--white);
  border-radius: 0 0 20px 20px;
  box-shadow: var(--lip-shadow);
  z-index: -1;
  will-change: transform;
}

/* ============================================
   HERO
   ============================================ */
.hero-wrapper {
  padding: 10px;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  height: 649px;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1020;
  transform: translateZ(0);
  box-shadow:
    0 97px 27px rgba(0,0,0,0),
    0 62px 25px rgba(0,0,0,0.02),
    0 35px 21px rgba(0,0,0,0.08),
    0 16px 16px rgba(0,0,0,0.13),
    0 4px 9px rgba(0,0,0,0.15);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.hero-content {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 486px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

/* Override .reveal for hero-text — lines animate individually */
.hero-text.reveal {
  opacity: 1;
  transform: none;
}
.hero-text.reveal:not(.visible) {
  opacity: 1;
  transform: none;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  line-height: 1;
  color: var(--white);
  text-align: center;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-text.visible .hero-line {
  opacity: 1;
  transform: translateY(0);
}

/* Description lines get reduced opacity */
.hero-description .hero-line {
  opacity: 0;
}

.hero-text.visible .hero-description .hero-line {
  opacity: 0.75;
}

.hero-description {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: var(--white);
  opacity: 1;
  width: 400px;
  text-align: center;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 14px 12px 24px;
  background: var(--white);
  border-radius: 33px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.14px;
  color: var(--black);
  white-space: nowrap;
}

/* Arrow slide-loop animation */
@keyframes arrow-slide-loop {
  0% { transform: translateX(0); }
  49.99% { transform: translateX(110%); }
  50% { transform: translateX(-110%); }
  100% { transform: translateX(0); }
}

.btn-arrow-wrap {
  display: inline-flex;
  overflow: hidden;
  width: calc(1em + 4px);
  justify-content: center;
}

.btn-arrow {
  color: var(--red);
  display: inline-block;
}

.btn-primary:hover .btn-arrow {
  animation: arrow-slide-loop 0.33s ease-in-out;
}

.btn-primary-red {
  background: var(--red);
  color: var(--white);
}

.btn-primary-red .btn-arrow {
  color: var(--white);
}

/* ============================================
   FROM TRANSACTIONS TO ACTORS
   ============================================ */
.section-transactions {
  padding: 120px var(--grid-margin);
}

.transactions-grid {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 0 var(--grid-gutter);
  align-items: center;
}

.transactions-left {
  grid-column: 1 / 9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.transactions-illustration {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 485 / 364;
  position: relative;
  background: var(--white);
}

.txn-illust {
  position: absolute;
  inset: 0;
}

.txn-illust img {
  width: auto;
  height: auto;
  max-width: none;
  display: block;
}

.transactions-caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--dark);
  letter-spacing: -0.12px;
  line-height: 0.932;
}

.caption-fig {
  flex-shrink: 0;
}

.caption-text {
  width: 232px;
  flex-shrink: 0;
  text-align: right;
}

.transactions-right {
  grid-column: 9 / 17;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.transactions-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  line-height: 1;
  color: var(--red);
  text-align: center;
}

.transactions-title .actors-word {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: inherit;
  color: var(--black);
  letter-spacing: -3.2px;
}

.transactions-description {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: var(--black);
  opacity: 0.9;
  text-align: center;
  width: 273px;
}

/* ============================================
   FEATURES
   ============================================ */
.section-features {
  padding: 40px var(--grid-margin) 120px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  color: var(--black);
  text-align: center;
  margin-bottom: 40px;
}

.features-grid {
  display: flex;
  flex-direction: column;
}

/* Shared borders via negative margin technique */
.features-row-3 {
  display: flex;
}

.features-row-2 {
  display: flex;
}

.feature-card {
  flex: 1 0 0;
  border: 1.5px solid var(--light);
  margin-right: -1.5px;
  margin-bottom: -1.5px;
  padding: 40px;
  min-height: 391px;
  transition: box-shadow 0.3s ease;
  position: relative;
}

.feature-card:hover {
  box-shadow: 0 0 12px 0 rgba(152, 142, 134, 0.35) inset, 0 3px 3px 0 #FFF;
  z-index: 1;
}

.feature-card-tl {
  border-top-left-radius: 6px;
}

.feature-card-tr {
  border-top-right-radius: 6px;
}

.feature-card-bl {
  border-bottom-left-radius: 6px;
}

.feature-card-br {
  border-bottom-right-radius: 6px;
}

.feature-card-wide {
  padding: 40px 80px;
  min-height: 315px;
}

.feature-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.feature-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 189px;
}

.feature-top-gap {
  height: 198px;
  justify-content: flex-start;
  gap: 53px;
}

.feature-top-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.feature-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 20px;
  color: var(--red);
  text-align: center;
  width: 100%;
}

.feature-icon {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon img,
.feature-icon svg {
  max-width: 100%;
  max-height: 100%;
}

/* ============================================
   FEATURE ICON — STROKES & MARCHING ANTS
   ============================================ */
.feature-svg {
  stroke-width: 1.5;
}

@keyframes marching-ants {
  to {
    stroke-dashoffset: -8;
  }
}

/* Desktop: animate yellow strokes on card hover */
@media (hover: hover) {
  .feature-card:hover .stroke-yellow {
    stroke-dasharray: 4 4;
    animation: marching-ants 1.2s linear infinite;
  }
}

/* Touch / mobile: always animated */
@media (hover: none) {
  .stroke-yellow {
    stroke-dasharray: 4 4;
    animation: marching-ants 1.2s linear infinite;
  }
}

.feature-desc {
  text-align: center;
}

.feature-desc p {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: var(--black);
  opacity: 0.9;
}

.feature-desc-narrow p {
  max-width: 306px;
  margin: 0 auto;
}

.feature-desc-narrow-lg p {
  max-width: 340px;
  margin: 0 auto;
}

code.code-yellow {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--red);
  font-size: inherit;
  background: none;
  padding: 0;
}

/* ============================================
   ZERO TO ACTOR (Code Section)
   ============================================ */
.section-code {
  padding: 40px var(--grid-margin) 120px;
}

.code-lockup {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.code-row {
  display: flex;
  gap: 0;
  position: relative;
  align-items: stretch;
}

.code-block {
  background: var(--light);
  border-radius: 6px;
  padding: 32px 32px 40px;
  flex: 1;
}

.code-arrow-badge {
  display: none;
}

.code-stars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  width: 20px;
  padding: 0;
  align-items: center;
}

.code-star {
  width: 20px;
  height: 20px;
  animation: spin-star 6s linear infinite;
}

@keyframes spin-star {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.code-block pre {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: var(--black);
  opacity: 0.9;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Syntax colors */
.c-comment { color: var(--dark); }
.c-red { color: var(--red); }
.c-blue { color: #0046d1; }
.c-green { color: #0b901a; }
.c-yellow { color: #B26404; }

/* Code highlight (red bg, white text) */
.code-highlight {
  background: var(--red);
  color: #421c0b;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.code-highlight:hover {
  opacity: 0.85;
}

.code-caption {
  text-align: center;
  padding: 0 24px;
}

.code-caption p {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: var(--black);
  opacity: 0.9;
  max-width: 470px;
  margin: 0 auto;
}

/* ============================================
   WHAT TO BUILD
   ============================================ */
.section-build {
  padding: 40px var(--grid-margin) 120px;
  text-align: center;
}

.build-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.build-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gutter);
  width: 100%;
  max-width: 822px;
  margin: 0 auto;
  position: relative;
}

.build-spur {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.build-spur .code-star {
  animation: spin-star 6s linear infinite;
}

.build-card {
  background: var(--light);
  border-radius: 6px;
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 56px;
  text-align: left;
  border: 1px solid transparent;
  box-shadow: 0 0 0px 0px rgba(198, 188, 178, 0) inset, 0 4px 2px 0 var(--white);
  position: relative;
  cursor: pointer;
}

.build-card,
.build-card .build-card-name {
  transition: box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.build-card:hover {
  box-shadow: 0 0 12px 6px rgba(198, 188, 178, 0.45) inset, 0 4px 2px 0 var(--white);
  border-color: rgba(198, 188, 178, 0.4);
}

.build-card:hover .build-card-name {
  color: var(--red);
}


.build-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.build-card-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: var(--black);
  opacity: 0.9;
}

.build-card-arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

@keyframes card-arrow-slide-loop {
  0% { transform: translateX(0); }
  49.99% { transform: translateX(24px); }
  50% { transform: translateX(-24px); }
  100% { transform: translateX(0); }
}

.build-card:hover .card-arrow-path {
  animation: card-arrow-slide-loop 0.33s ease-in-out;
}

.build-card-desc {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: var(--black);
  opacity: 0.9;
}

.build-caption {
  padding: 0 24px;
}

.build-caption p {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: var(--black);
  opacity: 0.9;
  max-width: 470px;
  margin: 0 auto;
  text-align: center;
}

/* ============================================
   INVESTORS
   ============================================ */
.section-investors {
  padding: 40px var(--grid-margin) 120px;
}

.investors-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.investor-logo {
  width: auto;
  flex-shrink: 0;
  opacity: 0.8;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Code line streaming animation */
.code-line {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.code-line.visible {
  opacity: 0.9;
}

/* Easter egg typed characters */
#code-right .ch {
  opacity: 0;
}

#code-right .ch.v {
  opacity: 0.9;
}

/* Code block cursor */
.block-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.15em;
  background: var(--red);
  vertical-align: text-bottom;
  margin-left: 1px;
  border-radius: 1px;
}

.block-cursor.blink {
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

/* Right code block hover & focus states */
#code-right {
  transition: box-shadow 0.3s ease;
}

#code-right.egg-active {
  overflow-y: auto;
}

.egg-art-container {
  white-space: pre;
  font-size: 9px;
  line-height: 1.2;
  font-family: var(--font-mono);
  margin-top: 12px;
  overflow-x: auto;
  max-width: 100%;
}

#code-right:hover {
  box-shadow: 0 0 6px 0 rgba(152, 142, 134, 0.35) inset, 0 1.5px 1.5px 0 #FFF;
}

#code-right.focused {
  box-shadow: 0 0 12px 0 rgba(152, 142, 134, 0.35) inset, 0 3px 3px 0 #FFF;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 546px;
  z-index: 0;
  overflow: hidden;
  background: rgb(200, 160, 204);
}

.footer-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgb(200, 160, 204) 0%,
      rgb(204, 164, 196) 14%,
      rgb(208, 172, 184) 28%,
      rgb(214, 180, 166) 40%,
      rgb(222, 184, 146) 52%,
      rgb(230, 176, 122) 64%,
      rgb(240, 168, 80) 76%,
      rgb(251, 161, 32) 84%,
      rgb(242, 140, 24) 88%,
      rgb(232, 116, 20) 92%,
      rgb(220, 90, 14) 96%,
      rgb(198, 34, 1) 100%);
  backdrop-filter: blur(15px);
}

.footer-blur {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
}

.footer-rounded-top {
  display: none;
}

.footer-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: var(--page-width);
  margin: 0 auto;
}

.footer-content {
  position: absolute;
  top: 201px;
  left: var(--grid-margin);
  right: var(--grid-margin);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  transform: translateY(60px);
  opacity: 0;
  transition: transform 0s, opacity 0s;
}

.footer-columns {
  display: flex;
  gap: var(--grid-gutter);
  width: 100%;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 148px;
  flex-shrink: 0;
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-col a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  color: var(--black);
  opacity: 0.9;
  text-decoration: none;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-col-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  width: auto;
}

.footer-logo {
  height: 164px;
  width: 141px;
}

/* 3D WebGL logo canvas */
#logo3d {
  width: 240px;
  height: 240px;
  display: block;
  margin: -20px;
}

.footer-ai-icons {
  mix-blend-mode: multiply;
}

.footer-ai-icons img {
  height: 24px;
  width: auto;
}

.footer-copyright {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  color: var(--white);
  text-align: center;
  width: 100%;
}

/* ============================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --grid-margin: 80px;
  }

  /* Nav */
  .nav {
    padding: 32px 40px 56px;
  }

  /* Hero — match desktop sizes at 768 */
  .hero-wrapper {
    padding: 10px;
  }

  .hero {
    height: 649px;
  }

  .hero-content {
    bottom: 100px;
    width: 486px;
    gap: 32px;
  }

  .hero-title {
    font-size: 56px;
    line-height: 1;
  }

  .hero-description {
    width: 350px;
    font-size: 16px;
    line-height: 20px;
  }

  /* Transactions — side by side */
  .section-transactions {
    padding: 80px 80px;
  }

  .transactions-grid {
    grid-template-columns: 293px 1fr;
    gap: 0 16px;
  }

  .transactions-left {
    grid-column: 1;
  }

  .transactions-right {
    grid-column: 2;
  }

  .transactions-title {
    font-size: 32px;
    line-height: 32px;
  }

  .transactions-description {
    font-size: 16px;
    line-height: 20px;
    width: 100%;
  }

  .transactions-caption {
    display: none;
  }

  /* Features — 2+1+2 grid, 324px cards */
  .section-features {
    padding: 24px 80px 80px;
  }

  .features-row-3 {
    flex-wrap: wrap;
  }

  .features-row-3 .feature-card {
    flex: 1 0 calc(50% - 1px);
  }

  .features-row-3 .feature-card:last-child {
    flex: 1 0 100%;
  }

  .feature-card {
    padding: 32px;
    min-height: 324px;
    height: 324px;
  }

  .feature-card-wide {
    padding: 32px;
    min-height: 324px;
    height: 324px;
  }

  .feature-name {
    font-size: 20px;
    line-height: 20px;
  }

  .feature-desc p {
    font-size: 14px;
    line-height: 18px;
  }

  /* Code — side by side with spinning stars */
  .section-code {
    padding: 24px 80px 80px;
  }

  .code-row {
    height: 634px;
  }

  .code-block {
    padding: 24px 24px 32px;
    overflow: hidden;
  }

  .code-block pre {
    font-size: 14px;
  }

  .code-stars {
    width: 16px;
  }

  .code-star {
    width: 16px;
    height: 16px;
  }

  .code-caption p {
    max-width: 444px;
  }

  /* Build — 2×2, tighter padding */
  .section-build {
    padding: 24px 100px 80px;
  }

  .build-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: none;
  }

  .build-card {
    padding: 24px;
  }

  .build-card-name {
    font-size: 16px;
  }

  .build-card-desc {
    font-size: 14px;
    line-height: 18px;
  }

  .build-caption p {
    max-width: 470px;
  }

  /* Investors — rounded bottom, shadow on section */
  .section-investors {
    padding: 24px 80px 80px;
    background: var(--white);
    border-radius: 0 0 40px 40px;
    position: relative;
    z-index: 2;
    box-shadow:
      0 261px 73px 0 rgba(0,0,0,0),
      0 167px 67px 0 rgba(0,0,0,0.02),
      0 94px 56px 0 rgba(0,0,0,0.08),
      0 42px 42px 0 rgba(0,0,0,0.13),
      0 16px 20px 0 rgba(0,0,0,0.15);
  }

  .content::before {
    bottom: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .investors-row {
    flex-wrap: wrap;
    gap: 80px;
  }

  /* Footer — compact, logo above 4-col row */
  .content {
    margin-bottom: 620px;
  }

  .footer {
    height: 620px;
  }

  .footer-content {
    top: 100px;
    left: 40px;
    right: auto;
    width: 688px;
  }

  .footer-columns {
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer-col {
    width: auto;
    flex: 1;
  }

  .footer-col.footer-col-right {
    width: 100%;
    align-items: center;
    order: -1;
    flex: none;
    margin-bottom: 40px;
  }

  #logo3d {
    width: 180px;
    height: 180px;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (≤ 767px)
   ============================================ */
@media (max-width: 767px) {
  :root {
    --grid-margin: 24px;
  }

  /* Nav — smaller logo, no hamburger, Figma spacing */
  .nav {
    padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 16px 20px;
  }

  .logo-clip,
  .logo-hit,
  .logo {
    height: 36px;
    width: 117.6px; /* 104.572 * 36/32 — proportional to height */
  }

  /* Hero — keep tall, larger text */
  .hero-wrapper {
    padding: 10px;
  }

  .hero {
    height: 649px;
    border-radius: 8px;
  }

  .hero-video {
    border-radius: 8px;
  }

  .hero-content {
    bottom: 40px;
    width: 344px;
    gap: 12px;
  }

  .hero-text {
    gap: 12px;
  }

  .hero-title {
    font-size: 40px;
    line-height: 40px;
  }

  .hero-description {
    width: auto;
    padding: 0 24px;
    font-size: 18px;
    line-height: 22px;
  }

  .hero-description .hero-line {
    display: inline;
  }

  .hero-content .btn-primary-red {
    margin-top: 28px;
  }

  .btn-primary {
    padding: 15px 18px 16px 24px;
    font-size: 18px;
    gap: 16px;
  }

  /* Transactions */
  .section-transactions {
    padding: 56px var(--grid-margin);
  }

  .transactions-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .transactions-left {
    grid-column: 1 / -1;
  }

  .transactions-right {
    grid-column: 1 / -1;
  }

  .transactions-title {
    font-size: 32px;
    line-height: 32px;
  }

  .transactions-description {
    width: 307px;
    max-width: 100%;
    font-size: 18px;
    line-height: 22px;
  }

  /* Features */
  .section-features {
    padding: 56px var(--grid-margin);
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .features-row-3 {
    flex-direction: column;
  }

  .features-row-2 {
    flex-direction: column;
  }

  .features-row-3 .feature-card,
  .features-row-3 .feature-card:last-child {
    flex: 1 0 auto;
  }

  .feature-card {
    padding: 32px;
    height: auto;
    min-height: auto;
    margin-right: 0;
  }

  .feature-card-wide {
    padding: 32px;
    height: auto;
    min-height: auto;
  }

  .feature-content {
    gap: 24px;
  }

  .feature-top {
    height: auto;
    gap: 24px;
    justify-content: flex-start;
  }

  .feature-top-gap {
    height: auto;
    gap: 24px;
    justify-content: flex-start;
  }

  .feature-top-stacked {
    flex-direction: column;
    gap: 24px;
  }

  .feature-desc-narrow p,
  .feature-desc-narrow-lg p {
    max-width: none;
  }

  /* Stack corners on mobile — first card top, last card bottom */
  .feature-card-tl { border-top-left-radius: 6px; border-top-right-radius: 6px; }
  .feature-card-tr { border-top-right-radius: 0; border-top-left-radius: 0; }
  .feature-card-bl { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .feature-card-br { border-bottom-right-radius: 6px; border-bottom-left-radius: 6px; }

  .feature-name {
    font-size: 20px;
    line-height: 20px;
  }

  .feature-icon {
    width: 140px;
    height: 140px;
  }

  .feature-desc p {
    font-size: 18px;
    line-height: 22px;
  }

  /* Code section */
  .section-code {
    padding: 56px var(--grid-margin);
  }

  .code-row {
    flex-direction: column;
    gap: 2px;
    height: auto;
  }

  .code-stars {
    flex-direction: row;
    align-items: center;
    width: 100%;
  }

  .code-star {
    width: 20px;
    height: 20px;
  }

  .code-block {
    padding: 24px;
  }

  #code-right {
    padding: 24px 24px 32px;
  }

  .code-block pre {
    font-size: 14px;
    line-height: 1.5;
  }

  #code-right:hover {
    box-shadow: none;
  }

  .code-caption {
    padding: 0;
  }

  .code-caption p {
    font-size: 18px;
    line-height: 22px;
    max-width: 100%;
  }

  /* Build cards — single column */
  .section-build {
    padding: 56px var(--grid-margin);
  }

  .build-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .build-spur {
    display: none;
  }

  .build-card {
    padding: 24px;
    gap: 40px;
  }

  .build-card-name {
    font-size: 18px;
  }

  .build-card-arrow {
    width: 28px;
    height: 28px;
  }

  .build-card-desc {
    font-size: 16px;
    line-height: 20px;
  }

  .build-caption {
    padding: 0;
  }

  .build-caption p {
    font-size: 18px;
    line-height: 22px;
    max-width: 100%;
  }

  .section-investors .section-title {
    margin-bottom: 24px;
  }

  /* Investors — rounded bottom corners + shadow (replaces ::before lip on mobile) */
  .section-investors {
    padding: 56px var(--grid-margin);
    background: var(--white);
    border-radius: 0 0 24px 24px;
    position: relative;
    z-index: 2;
    box-shadow:
      0 261px 73px 0 rgba(0,0,0,0),
      0 167px 67px 0 rgba(0,0,0,0.02),
      0 94px 56px 0 rgba(0,0,0,0.08),
      0 42px 42px 0 rgba(0,0,0,0.13),
      0 16px 20px 0 rgba(0,0,0,0.15);
  }

  .content::before {
    bottom: 0;
    border-radius: 0 0 24px 24px;
    box-shadow: none;
  }

  .investors-row {
    flex-direction: column;
    align-items: center;
    gap: 56px;
    padding: 32px 0;
  }

  .investor-logo {
    max-width: none;
  }

  /* Footer */
  .content {
    margin-bottom: calc(700px + env(safe-area-inset-bottom, 0px));
  }

  .footer {
    height: calc(700px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgb(198, 34, 1);
  }

  .footer-content {
    top: auto;
    bottom: calc(44px + env(safe-area-inset-bottom, 0px));
    left: var(--grid-margin);
    right: var(--grid-margin);
    width: auto;
    gap: 56px;
  }

  .footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;
  }

  .footer-col {
    width: calc(50% - 6px);
    flex: none;
  }

  .footer-col:nth-child(1),
  .footer-col:nth-child(2) {
    margin-bottom: 40px;
  }

  .footer-col:nth-child(2),
  .footer-col:nth-child(4) {
    width: calc(50% - 6px);
  }

  .footer-col.footer-col-right {
    width: 100%;
    align-items: center;
    order: -1;
    margin-bottom: 56px;
  }

  #logo3d {
    width: 180px;
    height: 180px;
  }

  .footer-copyright {
    font-size: 16px;
  }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
  /* Hero — constrain width on very narrow screens */
  .hero-content {
    width: calc(100% - 48px);
    max-width: 344px;
  }

  .hero-description {
    width: auto;
    padding: 0 24px;
  }

  .transactions-description {
    width: 100%;
  }
}
