:root {
  color-scheme: light;
  --bg: #fff4dc;
  --ink: #21160d;
  --muted: #775f48;
  --cream: #fff8eb;
  --paper: #c89456;
  --paper-dark: #8f6030;
  --green: #3bdc72;
  --mint: #bbf2d1;
  --blue: #54d8ff;
  --gold: #ffd46b;
  --orange: #f5a067;
  --line: rgba(132, 85, 41, 0.22);
  --panel: rgba(255, 248, 235, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.76);
  --shadow: 0 28px 70px rgba(95, 66, 33, 0.18);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}

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

.soft-bg,
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.soft-bg {
  z-index: -2;
  background:
    radial-gradient(circle at 8% 8%, rgba(84, 216, 255, 0.42), transparent 24%),
    radial-gradient(circle at 78% 18%, rgba(187, 242, 209, 0.78), transparent 24%),
    radial-gradient(circle at 42% 82%, rgba(255, 212, 107, 0.5), transparent 26%),
    linear-gradient(135deg, #fff4dc 0%, #f5e4c9 46%, #eaf8ef 100%);
}

.confetti-canvas {
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(16px, 4vw, 54px);
  background: rgba(255, 248, 235, 0.74);
  border-bottom: 1px solid rgba(132, 85, 41, 0.16);
  backdrop-filter: blur(18px);
}

.brand,
.top-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-weight: 950;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid rgba(33, 22, 13, 0.12);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #07130c;
  box-shadow: 0 12px 28px rgba(59, 220, 114, 0.22);
}

.nav-link {
  display: grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  font-weight: 950;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-link:hover,
.button:hover,
.terminal-link:hover {
  transform: translateY(-2px) rotate(-1deg);
  background: #fff;
  box-shadow: 0 16px 34px rgba(84, 216, 255, 0.2);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: calc(100vh - 77px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
  padding: clamp(34px, 6vw, 82px) 0 28px;
}

.eyebrow,
.card-kicker,
.prompt {
  color: var(--paper-dark);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 16px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3.6rem, 10.5vw, 8rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 10px 0 rgba(255, 255, 255, 0.78), 0 24px 44px rgba(132, 85, 41, 0.18);
}

.ticker-row,
.hero-actions,
.playbook-items,
.terminal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ticker-row {
  align-items: center;
  margin-bottom: 22px;
}

.ticker-badge {
  padding: 12px 16px;
  border: 1px solid rgba(132, 85, 41, 0.2);
  border-radius: 16px;
  background: var(--gold);
  color: #21160d;
  font-size: 1.06rem;
  font-weight: 950;
  box-shadow: 8px 8px 0 rgba(255, 255, 255, 0.65);
}

.ticker-note,
.hero-text,
.info-card p,
.playbook-item p,
footer {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 28px;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-weight: 950;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button-primary {
  border-color: rgba(59, 220, 114, 0.4);
  background: var(--green);
}

.hero-visual {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
}

.sticker-shadow {
  position: absolute;
  width: min(84vw, 520px);
  aspect-ratio: 1;
  border-radius: 38% 62% 52% 48%;
  background:
    radial-gradient(circle at 28% 22%, rgba(84, 216, 255, 0.38), transparent 34%),
    radial-gradient(circle at 72% 72%, rgba(59, 220, 114, 0.38), transparent 38%),
    linear-gradient(135deg, rgba(255, 212, 107, 0.34), rgba(255, 255, 255, 0.14));
  filter: blur(0.2px);
  animation: blob-drift 9s ease-in-out infinite;
}

.portrait {
  position: relative;
  width: min(82vw, 455px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 10px solid #fff;
  border-radius: 36px;
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  animation: portrait-float 4s ease-in-out infinite;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.bubble {
  position: absolute;
  padding: 10px 13px;
  border: 1px solid rgba(132, 85, 41, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 18px 34px rgba(95, 66, 33, 0.16);
}

.bubble-a {
  top: 12%;
  left: 1%;
}

.bubble-b {
  top: 22%;
  right: 2%;
  background: var(--gold);
}

.bubble-c {
  right: 5%;
  bottom: 12%;
  background: var(--mint);
}

.ticker-strip {
  overflow: hidden;
  margin: 4px 0 54px;
  border-block: 1px solid var(--line);
  background: rgba(255, 248, 235, 0.58);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tape 20s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  color: var(--paper-dark);
  font-weight: 950;
  text-transform: uppercase;
}

.ticker-track span:nth-child(2n) {
  color: #159f48;
}

.info-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.75fr;
  gap: 16px;
  margin-bottom: 16px;
}

.info-card,
.playbook,
.terminal {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.info-card {
  min-height: 205px;
  padding: clamp(20px, 4vw, 32px);
}

.main-card h2,
.playbook h2 {
  max-width: 720px;
  margin: 8px 0 16px;
  font-size: clamp(1.8rem, 5vw, 3.25rem);
  line-height: 1;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin: 22px 0 12px;
  color: var(--paper-dark);
  font-size: clamp(2rem, 6vw, 3.7rem);
  line-height: 0.9;
}

.playbook {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  margin-bottom: 16px;
  padding: clamp(20px, 4vw, 34px);
}

.playbook-item {
  flex: 1 1 180px;
  min-height: 180px;
  padding: 18px;
  border: 1px solid rgba(132, 85, 41, 0.16);
  border-radius: 22px;
  background: var(--panel-strong);
}

.playbook-item span {
  display: inline-block;
  margin-bottom: 20px;
  color: #159f48;
  font-weight: 950;
}

.playbook-item h3 {
  margin-bottom: 10px;
  text-transform: uppercase;
}

.playbook-item.is-active {
  border-color: rgba(59, 220, 114, 0.42);
  box-shadow: inset 0 -8px 0 rgba(59, 220, 114, 0.12);
}

.terminal {
  margin-bottom: 44px;
  overflow: hidden;
}

.terminal-top {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.terminal-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
}

.terminal-top span:nth-child(2) {
  background: var(--gold);
}

.terminal-top span:nth-child(3) {
  background: var(--orange);
}

.terminal-body {
  padding: clamp(18px, 4vw, 28px);
}

.prompt {
  margin-bottom: 18px;
}

.muted {
  margin: 18px 0 0;
  color: rgba(119, 95, 72, 0.72);
}

.terminal-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(132, 85, 41, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.terminal-link span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: var(--green);
  color: #07130c;
  font-weight: 950;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  padding: 28px 16px 34px;
  border-top: 1px solid rgba(132, 85, 41, 0.16);
  text-align: center;
  font-size: 0.88rem;
}

@keyframes blob-drift {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(7deg) scale(1.04); }
}

@keyframes portrait-float {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes tape {
  to { transform: translateX(-50%); }
}

@media (max-width: 860px) {
  .hero,
  .info-grid,
  .playbook {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 470px;
  }
}

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions .button,
  .terminal-link {
    width: 100%;
  }

  .portrait {
    width: min(88vw, 360px);
    border-radius: 26px;
  }

  .bubble {
    position: static;
    margin: 8px 4px 0;
  }

  .hero-visual {
    display: flex;
    min-height: auto;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 0;
  }

  .sticker-shadow {
    display: none;
  }
}

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