/* Style variables and layout system for TadkAI clone */
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&family=Geist+Mono:wght@100..900&family=Space+Grotesk:wght@300..700&display=swap');

:root {
  --red: #f02e12;
  --red-deep: #c81f08;
  --red-soft: #fde9e5;
  --ink: #101010;
  --ink-soft: #6b6b6b;
  --bg: #faf9f6;
  --bone: #f1efea;
  --line: #e7e5e0;
  --dark: #0c0c0c;
  --dark-2: #161616;
  --line-dark: #ffffff1f;
  --on-dark-soft: #ffffffa3;
  --radius: 18px;
  --font-sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-num: 'Space Grotesk', sans-serif;
  --font-mono: 'Geist Mono', monospace;
  --accent: #b8451f;
  --accent-glow: rgba(184, 69, 31, 0.4);
}

/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 760px) {
  .wrap {
    padding: 0 20px;
  }
}

/* Utility Animations & Reveal Styles */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rv.on {
  opacity: 1;
  transform: none;
}

@keyframes slide {
  to {
    transform: translate(-50%);
  }
}

@keyframes bFade {
  to {
    opacity: 1;
  }
}

@keyframes bRise {
  to {
    transform: none;
  }
}

@keyframes bSlam {
  0% {
    opacity: 0;
    transform: scale(0.35);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bBurst {
  to {
    opacity: 1;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1);
  }
}

@keyframes bFloat {
  50% {
    transform: translateY(-10px);
  }
}

@keyframes cardScan {
  0% {
    top: -4%;
  }
  100% {
    top: 104%;
  }
}

@keyframes hudFlick {
  50% {
    opacity: 0.3;
  }
}

@keyframes xGlitch {
  0%, 90%, 100% {
    text-shadow: none;
    transform: none;
  }
  90.9% {
    text-shadow: -5px 0 #1f8a5b, 5px 0 #f02e12d9;
    transform: translate(3px) skew(-4deg);
  }
  91.8% {
    text-shadow: 5px 0 #1f8a5b, -5px 0 #f02e12d9;
    transform: translate(-3px, 1px);
  }
  92.7% {
    text-shadow: -3px 0 #1f8a5b, 3px 0 #f02e12d9;
    transform: translate(2px, -1px) skew(3deg);
  }
  93.6% {
    text-shadow: none;
    transform: none;
  }
}

@keyframes stampPop {
  50% {
    transform: scale(1.35);
  }
}

@keyframes heat {
  0%, 100% {
    text-shadow: 0 0 rgba(0,0,0,0);
    transform: none;
  }
  50% {
    text-shadow: 0 18px 48px rgba(240, 46, 18, 0.45);
    transform: translateY(-4px);
  }
}

@keyframes colUp {
  to {
    transform: translateY(-50%);
  }
}

@keyframes colDown {
  0% {
    transform: translateY(-50%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes wallSlide {
  to {
    transform: translate(-50%);
  }
}

@keyframes wallSlideRev {
  0% {
    transform: translate(-50%);
  }
  to {
    transform: translate(0);
  }
}

@keyframes beat {
  50% {
    opacity: 0.55;
  }
}

@keyframes streak {
  to {
    transform: translate(2000px);
  }
}

@keyframes sceneIn {
  0% {
    opacity: 0;
  }
}

@keyframes wordIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes briefIn {
  0% {
    opacity: 0;
    transform: perspective(1500px) rotateY(-12deg) rotateX(3deg) translateY(34px);
  }
  100% {
    opacity: 1;
    transform: perspective(1500px) rotateY(-5deg) rotateX(1.5deg) translateY(0);
  }
}

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

@keyframes chipPop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes drift {
  0% {
    transform: perspective(1500px) rotateY(-9deg) translate(45px);
  }
  100% {
    transform: perspective(1500px) rotateY(-4deg) translate(-45px);
  }
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes barUp {
  0% {
    transform: scaleY(0);
  }
}

@keyframes meterFill {
  0% {
    width: 12%;
  }
  55% {
    width: 84%;
  }
  70% {
    width: 78%;
  }
  100% {
    width: 12%;
  }
}

@keyframes dotDown {
  0% {
    opacity: 0;
    top: 0;
  }
  18% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    top: 100%;
  }
}

@keyframes dotDown2 {
  0% {
    opacity: 0;
    top: -44px;
  }
  18% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    top: 0;
  }
}

@keyframes stackSwap {
  0%, 100% {
    opacity: 1;
    transform: rotate(0);
  }
  45% {
    opacity: 1;
    transform: rotate(0) translateY(-6px);
  }
  50% {
    opacity: 0;
  }
  55% {
    opacity: 1;
    transform: rotate(0) translateY(4px);
  }
}

@keyframes fadeAway {
  0%, 35% {
    opacity: 1;
    transform: none;
  }
  75% {
    opacity: 0.25;
    transform: translateY(8px) rotate(-3deg);
  }
  90%, 100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes chipCycle {
  0%, 88%, 100% {
    opacity: 0;
    transform: scale(0.4);
  }
  8%, 70% {
    opacity: 1;
    transform: none;
  }
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -12px;
  }
}

@keyframes bandPan {
  to {
    background-position: -1200px 0;
  }
}

@keyframes statPop {
  0% {
    transform: scale(0.7);
  }
}

@keyframes gridDrift {
  to {
    background-position: 0 72px, 72px 0;
  }
}

@keyframes heroScan {
  0% {
    top: -2%;
  }
  62%, 100% {
    top: 103%;
  }
}

@keyframes glitchIn {
  0% {
    clip-path: inset(0 0 62%);
  }
  20% {
    clip-path: inset(38% 0 18%);
  }
  40% {
    clip-path: inset(8% 0 52%);
  }
  60% {
    clip-path: inset(55% 0 4%);
  }
  80% {
    clip-path: inset(22% 0 30%);
  }
  100% {
    clip-path: inset(0);
  }
}

@keyframes bandScan {
  0% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}

@keyframes nudge {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: translate(5px);
  }
}

/* Topbar Header */
.topbar {
  z-index: 40;
  justify-content: space-between;
  align-items: center;
  padding: 24px 36px;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

@media (max-width: 760px) {
  .topbar {
    padding: 16px 18px;
  }
  .topbar-cta {
    display: none;
  }
}

.wordmark {
  letter-spacing: -0.02em;
  color: var(--ink);
  align-items: baseline;
  gap: 1px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
}

.wordmark .mk {
  align-self: baseline;
  width: 0.78em;
  height: 0.72em;
  margin: 0 0.04em;
}

.wordmark .mk path {
  stroke: var(--accent);
}

.wordmark .ai {
  color: var(--accent);
}

/* Button & Link styles */
.group {
  position: relative;
  overflow: hidden;
}

.topbar-cta, .hero-cta-button {
  background: #1c1410;
  color: white;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 42px -18px rgba(28, 20, 16, 0.6);
  transition: background-color 450ms ease-out, box-shadow 450ms ease-out;
  cursor: pointer;
}

.topbar-cta:hover, .hero-cta-button:hover {
  background: var(--accent);
  box-shadow: 0 22px 48px -18px var(--accent-glow);
}

.topbar-cta span.label, .hero-cta-button span.label {
  padding: 15px 56px;
  font-weight: 600;
  font-size: 15px;
  display: block;
}

.icon-wrapper {
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  transition: all 450ms cubic-bezier(0.65, 0, 0.35, 1);
}

.left-icon {
  left: 6px;
  z-index: 10;
}

.right-icon {
  right: 6px;
  z-index: 10;
  transform: translateX(-16px);
  opacity: 0;
}

.circle-bg {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
}

.group:hover .left-icon {
  transform: translateX(16px);
  opacity: 0;
}

.group:hover .right-icon {
  transform: translateX(0);
  opacity: 1;
}

.pill-cta {
  background: var(--red-soft);
  color: var(--red);
  border-radius: 999px;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
}

.pill-cta:hover {
  background: var(--red);
  color: #fff;
}

.pill-cta .arr {
  transition: transform 0.2s;
}

.pill-cta:hover .arr {
  transform: translateX(3px);
}

/* Hero Section */
.hero2 {
  padding: 0;
  position: relative;
  overflow: hidden;
}

.burst {
  place-items: center;
  min-height: 100vh;
  padding: 110px 24px 0;
  display: grid;
  position: relative;
  overflow: hidden;
}

.burst:before {
  content: "";
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(rgba(16, 16, 16, 0.05) 1px, transparent 1px) 0 0/100% 72px,
              linear-gradient(90deg, rgba(16, 16, 16, 0.05) 1px, transparent 1px) 0 0/72px 100%;
  animation: 30s linear infinite gridDrift;
  position: absolute;
  inset: 0;
  -webkit-mask-image: radial-gradient(78% 78%, #000 28%, transparent 100%);
  mask-image: radial-gradient(78% 78%, #000 28%, transparent 100%);
}

.burst:after {
  content: "";
  inset-inline: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 8%, rgba(240, 46, 18, 0.25) 50%, transparent 92%);
  opacity: 0.5;
  height: 2px;
  animation: 8s linear infinite heroScan;
  position: absolute;
  top: -2%;
}

.hero2-center {
  text-align: center;
  position: relative;
  z-index: 5;
  padding: 40px 0 26px;
}

.b-kick {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  font-size: 13px;
  font-weight: 700;
  animation: 0.6s 0.1s forwards bFade;
}

.hero2 h1 {
  margin-top: 14px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-size: clamp(64px, 11vw, 184px);
  font-weight: 800;
  line-height: 0.92;
}

.b-line {
  padding-bottom: 0.06em;
  display: block;
  overflow: hidden;
}

.b-line i {
  animation: 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards bRise;
  animation-delay: var(--d, 0.2s);
  font-style: normal;
  display: inline-block;
  transform: translateY(112%) rotate(2deg);
}

.b-x {
  display: block;
}

.hero2 h1 i.red {
  color: var(--red);
  opacity: 0;
  animation: 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) 1.05s forwards bSlam, 6.5s step-end 4.5s infinite xGlitch;
  display: inline-block;
  transform: scale(0.35);
}

.b-ctas-wrap {
  opacity: 0;
  animation: 0.7s 1.4s forwards bFade;
}

.b-flip {
  align-items: baseline;
  gap: 10px;
  margin-top: 26px;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  display: inline-flex;
}

.b-flip .slot {
  text-align: left;
  vertical-align: bottom;
  height: 1.35em;
  display: inline-grid;
  overflow: hidden;
}

.b-flip .slot b {
  color: var(--red);
  opacity: 0;
  white-space: nowrap;
  grid-area: 1/1;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(100%);
}

.b-flip .slot b.in {
  opacity: 1;
  transform: none;
}

.b-flip .slot b.out {
  opacity: 0;
  transform: translateY(-100%);
}

.hero2-ctas {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  display: flex;
}

.hero2-note {
  color: var(--ink-soft);
  margin-top: 18px;
  font-size: 12.5px;
}

.hero2-count {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.hero2-count b {
  color: var(--red);
}

.b-score {
  background: var(--red-soft);
  color: var(--red);
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
}

.b-score.pop {
  animation: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) stampPop;
}

.b-redeal {
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: #fff;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 0.15s, color 0.15s;
  display: inline-flex;
}

.b-redeal:hover {
  border-color: var(--red);
  color: var(--red);
}

.hero2-ph {
  margin-top: 24px;
  transition: transform 0.2s, opacity 0.2s;
  display: inline-block;
}

.hero2-ph:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.hero2-ph img {
  display: block;
}

/* Floating Burst Cards */
.b-cards {
  z-index: 2;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.b-card {
  aspect-ratio: 4/5;
  cursor: pointer;
  pointer-events: auto;
  width: 168px;
  opacity: 0;
  will-change: transform;
  background: none;
  border: none;
  border-radius: 14px;
  transition: translate 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.2);
}

.b-cards.go .b-card {
  animation: 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards bBurst;
  animation-delay: var(--d, 1s);
}

.b-card .inner {
  background: var(--bg);
  animation: bFloat 5.5s ease-in-out infinite calc(3.3s + var(--fd, 0s));
  border-radius: 14px;
  position: absolute;
  inset: 0;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0,0,0,0.05), 0 10px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.b-card:hover .inner {
  transform: scale(1.05);
}

.b-card img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: opacity 0.22s;
  transform: scale(1.04);
}

.b-card.swapping img {
  opacity: 0.7;
}

.b-card .tag {
  z-index: 4;
  color: var(--ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 9.5px;
  font-weight: 700;
  position: absolute;
  bottom: 10px;
  left: 10px;
}

.b-card .stamp {
  z-index: 4;
  width: 28px;
  height: 28px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, color 0.2s;
  display: grid;
  position: absolute;
  top: 10px;
  right: 10px;
  transform: scale(0);
}

.b-card.ok .stamp {
  background: var(--red);
  color: #fff;
  animation: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) stampPop;
  transform: scale(1);
}

.b-card.ok:after {
  content: "";
  box-shadow: inset 0 0 0 2.5px var(--red);
  border-radius: 14px;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.b-card .scan {
  inset-inline: 0;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  background: var(--red);
  height: 2px;
  box-shadow: 0 0 14px var(--red);
  position: absolute;
  top: -4%;
}

.b-card.swapping .scan {
  opacity: 0.85;
  animation: 0.55s linear infinite cardScan;
}

.b-card .hud {
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 7px;
}

.b-card.swapping .hud {
  opacity: 1;
  animation: 0.3s steps(2, end) infinite hudFlick;
}

.b-card .hud:before, .b-card .hud:after {
  content: "";
  border: 2px solid var(--red);
  width: 13px;
  height: 13px;
  position: absolute;
}

.b-card .hud:before {
  border-bottom: 0;
  border-right: 0;
  top: 0;
  left: 0;
}

.b-card .hud:after {
  border-top: 0;
  border-left: 0;
  bottom: 0;
  right: 0;
}

@media (max-width: 1020px) {
  .b-cards {
    display: none;
  }
  .burst {
    min-height: 0;
    padding-top: 130px;
    padding-bottom: 60px;
  }
}

/* Marquee Band */
.marquee-band {
  border-block: 1px solid var(--line);
  margin: 88px 0;
  padding: 26px 0;
  overflow: hidden;
}

.marquee-head {
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 20px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
}

.marquee-head em {
  color: var(--ink-soft);
  font-style: normal;
}

.marquee {
  width: max-content;
  animation: 36s linear infinite slide;
  display: flex;
}

.marquee span {
  color: var(--ink-soft);
  white-space: nowrap;
  align-items: center;
  gap: 38px;
  padding-right: 38px;
  font-size: 19px;
  font-weight: 600;
  display: inline-flex;
}

.marquee b {
  color: var(--red);
  font-size: 22px;
  line-height: 0;
}

/* Film / Demo Walkthrough Section */
.film-sect {
  padding: 110px 0 40px;
}

.film-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
  padding: 0 24px;
}

.film-head .h2 {
  margin-top: 18px;
}

.h2 {
  letter-spacing: -0.025em;
  text-wrap: balance;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.04;
}

.h2 .red {
  color: var(--red);
  background: linear-gradient(transparent 72%, var(--red-soft) 0) no-repeat left 88% / 0% 92%;
}

.h2.rv.on .red {
  background-size: 100% 92%;
  transition: background-size 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s;
}

.h2 .em {
  font-style: italic;
}

.sect-sub {
  color: var(--ink-soft);
  max-width: 62ch;
  font-size: clamp(15px, 1.6vw, 17.5px);
}

.film {
  aspect-ratio: 16/8;
  transform-origin: 50%;
  width: 100vw;
  max-height: 90vh;
  transform: scale(var(--film-scale, 0.92));
  will-change: transform;
  background: #16100b;
  margin-left: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

@media (max-width: 700px) {
  .film {
    aspect-ratio: 8/5;
  }
}

.film-stage {
  z-index: 2;
  width: 1200px;
  height: 750px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.film-vignette {
  pointer-events: none;
  z-index: 6;
  background: linear-gradient(rgba(12, 8, 4, 0.55), transparent 18% 82%, rgba(12, 8, 4, 0.55));
  position: absolute;
  inset: 0;
}

.film-glow {
  z-index: 0;
  background: radial-gradient(58% 52% at 50% 44%, rgba(240, 46, 18, 0.22), transparent 70%);
  animation: 4s ease-in-out infinite beat;
  position: absolute;
  inset: 0;
}

.streak {
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(240, 46, 18, 0.8), transparent);
  filter: blur(1px);
  animation: streak var(--dur, 10s) linear infinite var(--delay, 0s);
  border-radius: 999px;
  position: absolute;
  left: -740px;
}

.scene {
  z-index: 3;
  display: none;
  position: absolute;
  inset: 0;
}

.scene.on {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 34px;
  animation: 0.5s both sceneIn;
  display: flex;
}

.f-kicker {
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(240, 226, 216, 0.6);
  font-size: 14px;
  font-weight: 600;
}

.f-big {
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fdf0e6;
  text-align: center;
  filter: drop-shadow(0 0 26px rgba(240, 46, 18, 0.38));
  font-weight: 800;
  line-height: 1;
}

.scene.on .f-w {
  opacity: 0;
  animation: 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards wordIn;
  animation-delay: var(--d, 0s);
  display: inline-block;
  transform: translateY(40px) scale(1.18) rotate(3deg);
}

.scene.on .f-w:nth-child(2n) {
  transform: translateY(40px) scale(1.18) rotate(-3deg);
}

.f-brief {
  border: 1.5px solid #ff7a3c;
  width: 560px;
  max-width: 90%;
  box-shadow: 0 40px 80px -30px #000, 0 0 40px -8px rgba(240, 46, 18, 0.45);
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  transform: perspective(1500px) rotateY(-5deg) rotateX(1.5deg);
}

.scene.on .f-brief {
  opacity: 0;
  animation: 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards briefIn;
}

.f-brief .t {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b6157;
  font-size: 13px;
  font-weight: 600;
}

.f-brief .txt {
  white-space: pre-line;
  color: #211a15;
  min-height: 145px;
  margin-top: 16px;
  font-size: 20px;
  line-height: 1.65;
}

.f-cursor {
  color: var(--red);
  animation: 0.85s step-end infinite blink;
}

.f-brief .chips2 {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  display: flex;
}

.f-brief .chips2 span {
  background: var(--red-soft);
  color: var(--red);
  opacity: 0;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 15px;
  font-weight: 600;
  transform: scale(0);
}

.scene.on .f-brief .chips2 span {
  animation: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards chipPop;
  animation-delay: var(--d, 2.2s);
}

.f-genrow {
  align-items: center;
  gap: 22px;
  display: flex;
}

.f-spin {
  border: 4px solid rgba(240, 226, 216, 0.18);
  border-top-color: var(--red);
  border-radius: 50%;
  flex: none;
  width: 38px;
  height: 38px;
  animation: 0.9s linear infinite spin;
}

.f-cards {
  align-items: center;
  gap: 18px;
  display: flex;
  margin-top: 20px;
}

.scene.on .f-cards {
  animation: drift var(--driftdur, 3.4s) linear forwards;
}

.f-card {
  border: 1px solid #ff7a3c;
  box-shadow: 0 32px 64px -22px #000, 0 0 30px -6px rgba(240, 46, 18, 0.5);
  border-radius: 18px;
  flex: none;
  position: relative;
  overflow: hidden;
}

.scene.on .f-card {
  opacity: 0;
  animation: 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards cardIn;
  animation-delay: var(--d, 0.3s);
  transform: translateY(36px) scale(0.86);
}

.f-card img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.f-card .cl {
  inset-inline: 0;
  z-index: 2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  padding: 26px 12px 10px;
  font-size: 13px;
  font-weight: 700;
  position: absolute;
  bottom: 0;
}

.f-card .ratio {
  z-index: 2;
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: rgba(0,0,0,0.55);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  position: absolute;
  top: 10px;
  left: 10px;
}

.film-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.film-dots button {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 9px;
  height: 9px;
  transition: all 0.3s;
}

.film-dots button.on {
  background: var(--red);
  transform: scale(1.3);
}

/* Process Section */
.process {
  padding-block: 110px 40px;
}

.process .kicker {
  margin-bottom: 18px;
}

.kicker {
  color: var(--ink);
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
}

.kicker:before {
  content: "";
  background: var(--ink);
  width: 44px;
  height: 1px;
  transition: width 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s;
}

.kicker.rv.on:before {
  width: 44px;
}

.stairs {
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 64px;
  display: grid;
  position: relative;
}

@media (max-width: 980px) {
  .stairs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .stairs {
    grid-template-columns: 1fr;
  }
}

.step {
  border-radius: var(--radius);
  background: var(--bone);
  flex-direction: column;
  min-height: 230px;
  padding: 26px 24px 30px;
  display: flex;
  transition: box-shadow 0.25s, transform 0.25s;
}

.step .n {
  margin-bottom: auto;
  font-size: 12px;
  font-weight: 700;
  transition: color 0.2s;
}

.step h3 {
  margin: 44px 0 8px;
  font-size: 21px;
  font-weight: 700;
}

.step p {
  color: var(--ink-soft);
  font-size: 14px;
}

.step.dark {
  background: var(--ink);
  color: #fff;
}

.step.dark p {
  color: rgba(255,255,255,0.66);
}

.step.dark .n {
  color: rgba(255,255,255,0.5);
}

.step:hover {
  box-shadow: 0 26px 52px -30px rgba(16, 16, 16, 0.4);
  transform: translateY(-4px);
}

.step:hover .n {
  color: var(--red);
}

@media (min-width: 981px) {
  .step:nth-child(2) {
    transform: translateY(34px);
  }
  .step:nth-child(3) {
    transform: translateY(68px);
  }
  .step:nth-child(4) {
    transform: translateY(102px);
  }
  .step:nth-child(2):hover {
    transform: translateY(30px);
  }
  .step:nth-child(3):hover {
    transform: translateY(64px);
  }
  .step:nth-child(4):hover {
    transform: translateY(98px);
  }
  .stairs {
    margin-bottom: 100px;
  }
}

.tools {
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 64px 0 22px;
  display: flex;
}

.tool {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 16.5px;
  font-weight: 700;
  display: inline-flex;
  box-shadow: 0 12px 28px -18px rgba(16, 16, 16, 0.35);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.tool svg, .tool img {
  object-fit: contain;
  width: 22px;
  height: 22px;
}

.tool:nth-child(odd) {
  transform: rotate(-2.2deg);
}

.tool:nth-child(2n) {
  transform: rotate(1.8deg);
}

.tool:hover {
  box-shadow: 0 18px 36px -16px rgba(16, 16, 16, 0.4);
  transform: rotate(0) scale(1.08) !important;
}

.tools-note {
  text-align: center;
  color: var(--ink-soft);
  max-width: 78ch;
  margin: 26px auto 0;
  font-size: clamp(15px, 1.7vw, 18px);
}

/* Learning Loop section */
.learn-sect {
  padding-block: 110px;
}

.learn-grid {
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  margin-top: 22px;
  display: grid;
}

@media (max-width: 980px) {
  .learn-grid {
    grid-template-columns: 1fr;
  }
}

.learn-points {
  gap: 0;
  margin-top: 30px;
  display: grid;
}

.learn-point {
  border-top: 1px solid var(--line);
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 20px 0;
  display: grid;
}

.learn-point .ln {
  color: var(--red);
  padding-top: 3px;
  font-size: 12px;
  font-weight: 700;
}

.learn-point b {
  letter-spacing: -0.01em;
  font-size: 17px;
  display: block;
}

.learn-point span {
  color: var(--ink-soft);
  font-size: 14px;
}

.learn-sect a.case-study {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--red);
  transition: transform 0.2s;
}

.learn-sect a.case-study:hover {
  transform: translateX(4px);
}

/* Learning Loop Visual Chart */
.flow {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 22px;
  gap: 0;
  padding: 30px 28px 26px 74px;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.02);
}

.flow-head {
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  display: flex;
}

.flow-head .t {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.flow-head .live-pill {
  color: var(--red);
  background: var(--red-soft);
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
}

.flow-head .live-pill:before {
  content: "";
  background: var(--red);
  border-radius: 50%;
  width: 7px;
  height: 7px;
  animation: 1.2s ease infinite beat;
}

.fnode {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 16px;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  display: flex;
  position: relative;
  z-index: 5;
}

.fnode .nlab {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 700;
}

.fnode b {
  letter-spacing: -0.01em;
  font-size: 15.5px;
  display: block;
}

.fnode .nsub {
  color: var(--ink-soft);
  font-size: 12.5px;
}

.fconn {
  background: linear-gradient(var(--line) 60%, transparent 60%) 0 0 / 2px 8px repeat-y;
  width: 2px;
  height: 44px;
  margin: 0 auto;
  position: relative;
}

.fconn .fdot {
  background: var(--red);
  width: 8px;
  height: 8px;
  animation: dotDown 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite var(--dd, 0s);
  box-shadow: 0 0 0 4px rgba(240, 46, 18, 0.14);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -4px);
}

.fbrief-thumb {
  background: var(--red-soft);
  width: 46px;
  height: 46px;
  color: var(--red);
  border-radius: 10px;
  flex: none;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  display: grid;
}

.fstack {
  flex: none;
  width: 56px;
  height: 70px;
  position: relative;
}

.fstack img {
  object-fit: cover;
  border: 1.5px solid #fff;
  border-radius: 9px;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  box-shadow: 0 8px 18px -8px rgba(16, 16, 16, 0.4);
}

.fstack img:nth-child(1) {
  transform: rotate(-7deg) translate(-7px);
}

.fstack img:nth-child(2) {
  transform: rotate(5deg) translate(7px);
}

.fstack img:nth-child(3) {
  animation: 4.2s ease-in-out infinite stackSwap;
}

.fcount {
  font-variant-numeric: tabular-nums;
  color: var(--red);
}

.fmeter {
  flex: 1;
  min-width: 120px;
}

.fmeter .bar {
  background: var(--bone);
  border-radius: 999px;
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
}

.fmeter .bar i {
  background: var(--red);
  border-radius: 999px;
  width: 30%;
  height: 100%;
  animation: 4.5s ease-in-out infinite meterFill;
  display: block;
}

.fmeter .scale {
  color: var(--ink-soft);
  justify-content: space-between;
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
}

.fsplit {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 16px;
  display: grid;
  margin-top: 44px;
}

.fbranch {
  position: relative;
}

.fbranch:before {
  content: "";
  background: linear-gradient(var(--line) 60%, transparent 60%) 0 0 / 2px 8px repeat-y;
  width: 2px;
  height: 44px;
  position: absolute;
  top: -44px;
  left: 50%;
}

.fbranch .fdot2 {
  background: var(--red);
  width: 8px;
  height: 8px;
  animation: dotDown2 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite var(--dd, 0.9s);
  border-radius: 50%;
  position: absolute;
  top: -44px;
  left: 50%;
  transform: translate(-50%, -4px);
}

.fwin {
  border-color: rgba(31, 138, 91, 0.45);
  background: #f4f9f7;
}

.fwin .arrow {
  color: #1f8a5b;
  font-size: 19px;
  font-weight: 800;
}

.flose {
  opacity: 0.85;
}

.flose .fimg-sm {
  filter: grayscale(1);
  animation: 5s ease-in-out infinite fadeAway;
}

.fimg-sm {
  object-fit: cover;
  border-radius: 8px;
  flex: none;
  width: 44px;
  height: 55px;
}

.fchips {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  display: flex;
}

.fchips span {
  color: #1f8a5b;
  opacity: 0;
  animation: chipCycle 5.2s ease-in-out infinite var(--cd, 0s);
  background: #e4f1eb;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 700;
  transform: scale(0.4);
}

.floop2 {
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: visible;
}

.floop2 path {
  stroke: var(--red);
  stroke-width: 2px;
  fill: none;
  stroke-dasharray: 5 7;
  opacity: 0.85;
  animation: 1.1s linear infinite dashFlow;
}

.floop2-lab {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
  border: 1px solid rgba(240, 46, 18, 0.3);
  background: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 9.5px;
  font-weight: 700;
  position: absolute;
  transform: translate(-50%, -50%) rotate(-90deg);
}

@media (max-width: 560px) {
  .floop2, .floop2-lab {
    display: none;
  }
  .flow {
    padding-left: 28px;
  }
  .fsplit {
    grid-template-columns: 1fr;
  }
}

/* Stats Section */
.stats {
  background: var(--dark);
  color: #fff;
  padding: 84px 0;
  position: relative;
  overflow: hidden;
  background-image: repeating-linear-gradient(115deg, transparent 0 88px, rgba(255, 255, 255, 0.04) 88px 89px);
  animation: 60s linear infinite bandPan;
}

.stats:after {
  content: "";
  inset-inline: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
  background: linear-gradient(90deg, transparent, rgba(240, 46, 18, 0.55), transparent);
  height: 1px;
  animation: 6.5s linear infinite bandScan;
  position: absolute;
  top: 0;
}

.stats-grid {
  text-align: center;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  display: grid;
}

@media (max-width: 860px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat .v {
  letter-spacing: -0.02em;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 700;
}

.stat.rv.on .v {
  animation: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both statPop;
}

.stat .l {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
}

/* Math Comparison Section */
.math {
  padding-block: 110px;
}

.math-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 20px;
  margin-top: 56px;
  display: grid;
}

@media (max-width: 860px) {
  .math-grid {
    grid-template-columns: 1fr;
  }
}

.mcard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bone);
  padding: 28px 26px;
  position: relative;
}

.mcard.hot {
  border: 2px solid var(--red);
  background: #fff;
  box-shadow: 0 36px 70px -34px rgba(240, 46, 18, 0.45);
}

@media (min-width: 861px) {
  .mcard.hot {
    transform: translateY(-18px);
  }
}

.mcard .patch {
  background: var(--red);
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  position: absolute;
  top: -13px;
  left: 24px;
}

.mcard .who {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.mcard.hot .who {
  color: var(--red);
}

.mcard .price {
  letter-spacing: -0.02em;
  margin: 10px 0 18px;
  font-size: 30px;
  font-weight: 700;
}

.mcard dl {
  gap: 10px;
  font-size: 14.5px;
  display: grid;
}

.mcard dl div {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  display: flex;
}

.mcard dt {
  color: var(--ink-soft);
}

.mcard dd {
  font-weight: 600;
}

.mcard.hot dd.win {
  color: var(--red);
}

/* Founder Note Section */
.founder {
  padding-block: 20px 110px;
}

.founder .fcard {
  background: var(--bone);
  border-radius: 22px;
  max-width: 920px;
  margin: 48px auto 0;
  padding: clamp(30px, 4.5vw, 60px);
  position: relative;
}

.founder .fcard .qmark {
  color: var(--ink);
  margin-bottom: 30px;
  font-size: 80px;
  font-weight: 800;
  line-height: 0.4;
  display: block;
}

.founder .fcard blockquote {
  letter-spacing: -0.015em;
  text-wrap: pretty;
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.3;
}

.founder .fcard blockquote .red {
  color: var(--red);
}

.founder .fcard .note {
  color: var(--ink-soft);
  max-width: 60ch;
  margin-top: 18px;
  font-size: 15px;
}

.founder .fcard .sig {
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  display: flex;
}

.founder .fcard .sig img {
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  width: 52px;
  height: 52px;
}

.founder .fcard .sig .nm {
  font-size: 15.5px;
  font-weight: 700;
}

.founder .fcard .sig .rl {
  color: var(--ink-soft);
  font-size: 13px;
}

/* Pricing Section */
.pricing {
  text-align: center;
  padding-block: 30px 110px;
}

.plans-tag {
  background: var(--red-soft);
  color: var(--red);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 18px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
}

.price-grid {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 22px;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 60px;
  display: grid;
  overflow: hidden;
}

@media (max-width: 1000px) {
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
}

.plan {
  border-right: 1px solid var(--line);
  background: #fff;
  flex-direction: column;
  padding: 34px 28px 38px;
  display: flex;
  transition: transform 0.3s;
}

.plan:last-child {
  border-right: 0;
}

@media (max-width: 1000px) {
  .plan {
    border-bottom: 1px solid var(--line);
  }
}

.plan .badge {
  background: var(--red);
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 5px 12px;
  font-size: 10.5px;
  font-weight: 700;
}

.plan h3 {
  font-size: 23px;
  font-weight: 600;
}

.plan .amount {
  letter-spacing: -0.02em;
  margin: 10px 0 4px;
  font-size: clamp(28px, 2.6vw, 34px);
  font-weight: 700;
}

.plan .amount s {
  color: var(--ink-soft);
  margin-left: 6px;
  font-size: 0.6em;
  font-weight: 500;
}

.plan .per {
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-size: 13px;
}

.plan ul {
  color: var(--ink-soft);
  gap: 11px;
  margin-bottom: 28px;
  font-size: 14px;
  list-style: none;
  display: grid;
}

.plan li {
  align-items: baseline;
  gap: 10px;
  display: flex;
}

.plan li:before {
  content: "✓";
  color: var(--red);
  flex: none;
  font-weight: 700;
}

.plan .cta {
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 600;
  transition: background 0.2s;
  display: inline-flex;
}

.plan .cta:hover {
  background: #2c2c2c;
}

.plan.dark {
  background: var(--dark);
  color: #fff;
}

.plan.dark .per, .plan.dark ul {
  color: var(--on-dark-soft);
}

.plan.dark .cta {
  background: var(--red);
}

.plan.dark .cta:hover {
  background: var(--red-deep);
}

.plan.dark .cta:after {
  content: "";
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  width: 34%;
  animation: 3.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s infinite ctaSweep;
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -45%;
  transform: skew(-18deg);
}

/* FAQ Section */
.faq {
  padding-block: 0 110px;
}

.faq-list {
  max-width: 820px;
  margin: 48px auto 0;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 4px;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  display: flex;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary .pl {
  color: var(--red);
  flex: none;
  font-size: 22px;
  font-weight: 500;
  transition: transform 0.25s;
}

.faq-list details[open] summary .pl {
  transform: rotate(45deg);
}

.faq-list .a {
  color: var(--ink-soft);
  max-width: 68ch;
  padding: 0 4px 22px;
  font-size: 15px;
}

/* Closing CTA Section */
.close2 {
  text-align: left;
  color: #f4ece6;
  background: #1c1410;
  padding: 130px 0 140px;
  position: relative;
  overflow: hidden;
}

.close2:before {
  content: "";
  pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 88px, rgba(244, 236, 230, 0.07) 88px 89px);
  position: absolute;
  inset: 0;
}

.close2:after {
  content: "";
  inset-inline: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
  background: linear-gradient(90deg, transparent, rgba(240, 46, 18, 0.55), transparent);
  height: 1px;
  animation: 6.5s linear infinite bandScan;
  position: absolute;
  top: 0;
}

.close2 .ckick {
  color: var(--red);
  margin-bottom: 16px;
  font-size: 17px;
  font-weight: 700;
  position: relative;
}

.close2 .ghost {
  letter-spacing: -0.04em;
  color: rgba(244, 236, 230, 0.05);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  font-size: 22vw;
  font-weight: 800;
  line-height: 1;
  position: absolute;
  top: 8px;
  right: -2%;
}

.close2 .glow {
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(240, 46, 18, 0.26), transparent);
  width: 620px;
  height: 420px;
  animation: 4s ease-in-out infinite beat;
  position: absolute;
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
}

.close2 h2 {
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 16ch;
  margin: 0;
  font-size: clamp(40px, 6.5vw, 86px);
  font-weight: 800;
  line-height: 1;
  position: relative;
}

.close2 h2 .red {
  color: var(--red);
}

.close2 .sub {
  color: rgba(240, 226, 216, 0.72);
  max-width: 46ch;
  margin: 22px 0 0;
  font-size: 16.5px;
  position: relative;
}

.close2 .row2 {
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
  display: flex;
  position: relative;
}

.close2 .mini {
  color: rgba(240, 226, 216, 0.6);
  font-size: 12.5px;
}

/* Floating Demo Banner */
.demo-float {
  z-index: 70;
  background: var(--bg);
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  border-radius: 20px;
  width: 232px;
  padding: 10px;
  display: block;
  position: absolute;
  bottom: 7vh;
  right: 3vw;
  box-shadow: 0 34px 70px -26px rgba(16, 16, 16, 0.5);
  transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s;
}

.demo-float:hover {
  box-shadow: 0 40px 80px -24px rgba(16, 16, 16, 0.6);
  transform: translateY(-4px);
}

.demo-float__media {
  aspect-ratio: 4/3;
  background: #1c1410;
  border-radius: 13px;
  display: block;
  position: relative;
  overflow: hidden;
}

.demo-float__media img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.demo-float__play {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  place-items: center;
  width: 46px;
  height: 46px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: grid;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.demo-float:hover .demo-float__play {
  transform: translate(-50%, -50%) scale(1.12);
}

.demo-float__foot {
  display: block;
  padding: 12px 6px 4px;
}

.demo-float__t {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
}

.demo-float__s {
  color: var(--ink-soft);
  display: block;
  font-size: 12.5px;
}

/* Footer styles */
footer.main {
  padding: 0 0 140px;
}

.foot-strip {
  border-bottom: 1px solid var(--ink);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 30px 0;
  display: flex;
}

.foot-strip .s1 {
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 600;
}

.foot-strip a {
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  display: inline-flex;
}

.foot-strip a .arr {
  animation: 1.8s ease-in-out infinite nudge;
  display: inline-block;
}

.foot-center {
  text-align: center;
  padding: 72px 0 0;
}

.foot-nav {
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 34px;
  margin-top: 44px;
  font-size: 15.5px;
  font-weight: 500;
  display: flex;
}

.foot-nav a:hover {
  color: var(--red);
}

.foot-social {
  justify-content: center;
  gap: 16px;
  margin-top: 44px;
  display: flex;
}

.foot-social a {
  background: var(--bone);
  border-radius: 50%;
  place-items: center;
  width: 52px;
  height: 52px;
  transition: background 0.2s, color 0.2s;
  display: grid;
}

.foot-social a:hover {
  background: var(--ink);
  color: #fff;
}

.foot-ph {
  margin-top: 40px;
  transition: transform 0.2s, opacity 0.2s;
  display: inline-flex;
}

.foot-ph:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.foot-ph img {
  display: block;
}

.foot-copy {
  color: var(--ink-soft);
  margin-top: 44px;
  font-size: 15px;
}

/* Floating Dock */
.dock {
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--line);
  z-index: 60;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  align-items: center;
  gap: 26px;
  padding: 10px 22px 10px 10px;
  font-size: 14.5px;
  font-weight: 600;
  transition: opacity 0.3s, transform 0.3s;
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%);
  box-shadow: 0 24px 60px -24px rgba(16, 16, 16, 0.35);
}

.dock.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
}

.dock .dlogo {
  border-radius: 10px;
  place-items: center;
  width: 40px;
  height: 40px;
  display: grid;
  overflow: hidden;
}

.dock .dlogo img {
  width: 100%;
  height: 100%;
}

.dock a:hover {
  color: var(--red);
}

.dock .sep {
  background: var(--line);
  width: 1px;
  height: 22px;
}

.dock .go {
  color: var(--red);
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.dock-links {
  align-items: center;
  gap: 26px;
  display: inline-flex;
}

.dock-toggle {
  display: none;
}

@media (max-width: 760px) {
  .dock {
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    bottom: 14px;
    left: 14px;
    right: 14px;
    transform: none;
    box-shadow: 0 16px 44px -14px rgba(16, 16, 16, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  }

  .dock.hide {
    transform: translateY(22px);
  }

  .dock .sep {
    display: none;
  }

  .dock .dlogo {
    order: 1;
  }

  .dock .go {
    color: #fff;
    background: linear-gradient(180deg, #ff4c2d, var(--red));
    box-shadow: 0 8px 20px -8px rgba(240, 46, 18, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    flex: 1;
    order: 2;
    justify-content: center;
    padding: 13px 14px;
    font-size: 15px;
  }

  .dock .go .arr {
    color: #fff;
  }

  .dock-toggle {
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    flex-direction: column;
    flex: none;
    order: 3;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    box-shadow: inset 0 1px rgba(255,255,255,0.6);
  }

  .dock-toggle span {
    background: var(--ink);
    border-radius: 2px;
    width: 18px;
    height: 2px;
    transition: transform 0.2s, opacity 0.2s;
  }

  .dock-toggle[aria-expanded=true] span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .dock-toggle[aria-expanded=true] span:nth-child(2) {
    opacity: 0;
  }

  .dock-toggle[aria-expanded=true] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .dock-links {
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    opacity: 0;
    transform-origin: bottom;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    transition: opacity 0.22s, transform 0.22s;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    right: 0;
    overflow: hidden;
    transform: translateY(10px) scale(0.98);
    box-shadow: 0 24px 60px -18px rgba(16, 16, 16, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  .dock-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .dock-links .dl {
    color: var(--ink);
    border-bottom: 1px solid rgba(16, 16, 16, 0.07);
    padding: 15px 18px;
    font-size: 16px;
    display: block;
    text-align: left;
  }

  .dock-links .dl:last-child {
    border-bottom: 0;
  }

  .dock-links .dl:active {
    background: rgba(16, 16, 16, 0.05);
  }
}

/* Page top progress bar */
.pbar {
  z-index: 90;
  background: linear-gradient(90deg, var(--red), #e0572b);
  width: 0;
  height: 3px;
  position: fixed;
  top: 0;
  left: 0;
  transition: width 0.3s;
}

/* Custom Grid background in closed CTA */
.close2 .ghost {
  font-family: var(--font-sans);
}

/* Video Modal Styling */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 8, 4, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.video-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.video-container {
  width: 90%;
  max-width: 800px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  position: relative;
}

.video-container iframe, .video-container video {
  width: 100%;
  height: 100%;
  border: none;
}

.close-modal {
  position: absolute;
  top: -45px;
  right: 0;
  color: #fff;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
}

/* Mobile responsiveness adjustments */
@media (max-width: 760px) {
  /* Hide topbar CTA button to prevent logo overlap */
  .topbar-cta {
    display: none !important;
  }

  /* Make hero CTA button more compact */
  .hero-cta-button span.label {
    padding: 13px 36px;
    font-size: 14px;
  }

  /* Hero typography */
  .hero2 h1 {
    font-size: clamp(38px, 12vw, 60px);
    line-height: 0.96;
  }

  /* Hide floating demo card to prevent clashing */
  .demo-float {
    display: none !important;
  }

  /* Founder card padding and font size */
  .founder .fcard {
    padding: 24px 20px;
    margin-top: 24px;
  }
  .founder .fcard blockquote {
    font-size: 20px;
    line-height: 1.35;
  }
  .founder .fcard .note {
    font-size: 13.5px;
  }

  /* Marquee band margin */
  .marquee-band {
    margin: 48px 0;
    padding: 16px 0;
  }

  /* Close CTA typography */
  .close2 {
    padding: 80px 0 90px;
  }
  .close2 h2 {
    font-size: clamp(30px, 9vw, 44px);
    line-height: 1.05;
  }
  .close2 .sub {
    font-size: 14.5px;
    margin-top: 14px;
  }
  .close2 .row2 {
    margin-top: 24px;
  }
}

/* Learning flow card tight container padding on small screens */
@media (max-width: 560px) {
  .flow {
    padding: 24px 16px !important;
  }
}

/* Pricing Grid border fixes */
@media (max-width: 1000px) {
  .plan {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .plan:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 560px) {
  .plan {
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .plan:last-child {
    border-bottom: none !important;
  }
}
