/* ============================================
   KERNEL MEDIA — Landing Page Styles
   Design system: forest / editorial / web3
   ============================================ */

:root {
  /* Core palette — from the pitch deck */
  --ink: #060E09;
  --ink-deep: #030705;
  --forest: #071A0E;
  --forest-card: #0A1F11;
  --forest-line: #0F2A18;
  --green-primary: #22C55E;
  --green-mint: #4ADE80;
  --green-soft: #86EFAC;
  --green-muted: #6B8F71;
  --paper: #F5F1E8;
  --paper-warm: #EDE6D3;
  --bone: #E8E1CE;
  --ash: #8A9A8E;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing rhythm */
  --container: 1280px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
ul { list-style: none; }

em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

strong {
  font-weight: 600;
  color: var(--paper);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================
   ATMOSPHERIC BACKGROUND
   ============================================ */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

.bg-layers {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(34, 197, 94, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 197, 94, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.9), transparent 70%);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}

.bg-glow--1 {
  top: -20%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.25), transparent 70%);
}

.bg-glow--2 {
  top: 40%;
  right: -15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.15), transparent 70%);
}

/* ============================================
   NAV
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.25rem var(--gutter);
  background: linear-gradient(to bottom, rgba(6, 14, 9, 0.85), rgba(6, 14, 9, 0.0));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s var(--ease);
}

.nav.is-scrolled {
  background: rgba(6, 14, 9, 0.92);
  border-bottom: 1px solid rgba(34, 197, 94, 0.1);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--green-primary);
}

.nav__mark {
  width: 28px;
  height: 28px;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.01em;
}

.nav__wordmark em {
  color: var(--green-mint);
  font-weight: 400;
}

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  font-size: 0.85rem;
  color: var(--ash);
  font-weight: 400;
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.2s var(--ease);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--green-primary);
  transition: right 0.3s var(--ease);
}

.nav__links a:hover {
  color: var(--paper);
}

.nav__links a:hover::after {
  right: 0;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--green-primary);
  color: var(--ink-deep);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all 0.2s var(--ease);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
}

.nav__cta:hover {
  background: var(--green-mint);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
  transform: translateY(-1px);
}

/* CTA wrap: pill button + subtitle date below */
.nav__cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.nav__cta-sub {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--green-mint);
  opacity: 0.85;
  white-space: nowrap;
}

/* Highlight link in nav (NFT Discounts) — yellowey-green, bold, slightly larger */
.nav__links-highlight {
  color: #A3E635 !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  position: relative;
  padding: 0.35rem 0.75rem !important;
  border: 1px solid rgba(163, 230, 53, 0.35);
  border-radius: 999px;
  background: rgba(163, 230, 53, 0.06);
  transition: all 0.2s var(--ease) !important;
}

.nav__links-highlight::after {
  display: none !important;
}

.nav__links-highlight:hover {
  color: #BEF264 !important;
  border-color: rgba(163, 230, 53, 0.7);
  background: rgba(163, 230, 53, 0.12);
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__cta-sub { display: none; }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--green-primary);
  color: var(--ink-deep);
  box-shadow:
    0 0 0 0 rgba(34, 197, 94, 0.6),
    0 20px 40px -20px rgba(34, 197, 94, 0.6);
}

.btn--primary:hover {
  background: var(--green-mint);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 6px rgba(34, 197, 94, 0.15),
    0 30px 50px -20px rgba(34, 197, 94, 0.7);
}

.btn--ghost {
  color: var(--paper);
  border: 1px solid rgba(139, 159, 143, 0.25);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--green-primary);
  color: var(--green-mint);
  background: rgba(34, 197, 94, 0.04);
}

.btn--lg {
  padding: 1.1rem 1.8rem;
  font-size: 1rem;
}

/* Discount CTA — yellowey-green, used in Ecosystem section */
.btn--discount-cta {
  background: #A3E635;
  color: var(--ink-deep);
  font-weight: 700;
  padding: 1.1rem 2rem;
  font-size: 1rem;
  letter-spacing: 0.005em;
  box-shadow:
    0 0 0 0 rgba(163, 230, 53, 0.6),
    0 20px 40px -20px rgba(163, 230, 53, 0.6);
}

.btn--discount-cta:hover {
  background: #BEF264;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 6px rgba(163, 230, 53, 0.15),
    0 30px 50px -20px rgba(163, 230, 53, 0.7);
}

/* Center wrapper for the discount CTA */
.ecosystem__cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* Discount CTA inside Kernies section needs slightly different treatment */
.kernies__discount-cta {
  margin-top: 2rem;
  display: inline-flex;
}


/* ============================================
   DISCOUNT CARDS
   ============================================ */

.discount-card__footnote {
  margin-top: 1rem;
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--ash);
  opacity: 0.6;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 8rem var(--gutter) 0;
  z-index: 1;
}

.hero__frame {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--green-muted);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.2s forwards;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-primary);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5.25vw, 4.55rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 3rem;
  max-width: 1100px;
}

.hero__line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.1s var(--ease-out) forwards;
}

.hero__line--1 {
  color: var(--paper);
  font-weight: 500;
  animation-delay: 0.35s;
}

.hero__line--1 em {
  color: var(--green-mint);
  font-weight: 400;
}

.hero__line--2 {
  color: var(--paper);
  font-weight: 500;
  animation-delay: 0.5s;
}

.hero__line--2 em {
  color: var(--green-mint);
  font-weight: 400;
}

.hero__line--3 {
  color: var(--paper);
  font-weight: 500;
  animation-delay: 0.7s;
  margin-top: 0.3em;
}

.hero__line--3 em {
  color: var(--green-mint);
  font-weight: 400;
  font-style: italic;
}

.ampersand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--green-primary);
  font-size: 1.15em;
  display: inline-block;
  transform: translateY(0.05em);
  margin: 0 0.05em;
}

.hero__date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem 0.55rem 0.8rem;
  margin-bottom: 2rem;
  background: rgba(163, 230, 53, 0.08);
  border: 1px solid rgba(163, 230, 53, 0.4);
  border-radius: 999px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.85s forwards;
}

.hero__date-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #A3E635;
  box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.7);
  animation: pulse-yellow 2.4s infinite;
}

@keyframes pulse-yellow {
  0% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(163, 230, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); }
}

.hero__date-text {
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  color: #BEF264;
}

.hero__date-text strong {
  color: #A3E635;
  font-weight: 700;
}

.hero__sub-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: end;
  max-width: 1100px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.9s forwards;
}

.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--paper-warm);
  max-width: 580px;
  font-weight: 300;
}

.hero__cta-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .hero__sub-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero__cta-group { justify-content: flex-start; }
}

/* Hero Kernie */
.hero-kernie {
  position: absolute;
  right: -30px;
  bottom: 5rem;
  width: 260px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 1.1s forwards;
  pointer-events: none;
}

.hero-kernie__halo {
  position: absolute;
  inset: -10% -5% -5% -5%;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.08) 45%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
  animation: halo-breathe 6s ease-in-out infinite;
}

.hero-kernie__img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(34, 197, 94, 0.4))
          drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
  animation: kernie-float 7s ease-in-out infinite;
}

.hero-kernie__label {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--green-muted);
  font-size: 0.62rem;
  white-space: nowrap;
  padding: 0.4rem 0.8rem;
  background: rgba(6, 14, 9, 0.7);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 2px;
  backdrop-filter: blur(6px);
}

@media (max-width: 1280px) {
  .hero-kernie {
    width: 240px;
    height: 320px;
  }
}

@media (max-width: 1100px) {
  .hero-kernie { display: none; }
}

/* Ticker */
/* Ticker */
.ticker {
  position: relative;
  margin-top: 5rem;
  margin-left: calc(var(--gutter) * -1);
  margin-right: calc(var(--gutter) * -1);
  overflow: hidden;
  border-top: 1px solid rgba(34, 197, 94, 0.1);
  border-bottom: 1px solid rgba(34, 197, 94, 0.1);
  padding: 0.85rem 0;
  background: rgba(7, 26, 14, 0.4);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.ticker__track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--green-muted);
}

.ticker__track span {
  display: inline-block;
}

.dot-sep {
  color: var(--green-primary);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SECTION LABELS & TITLES (shared)
   ============================================ */

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  color: var(--green-muted);
}

.section-label .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(34, 197, 94, 0.4), transparent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.section-title em {
  color: var(--green-mint);
}

.section-lede {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.55;
  color: var(--paper-warm);
  max-width: 620px;
  font-weight: 300;
  margin-bottom: 3rem;
}

/* ============================================
   THESIS
   ============================================ */

.thesis {
  position: relative;
  padding: 7rem 0 5rem;
  z-index: 1;
}

.thesis__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 5rem;
  align-items: start;
}

.thesis__quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--paper-warm);
}

.thesis__quote p + p { margin-top: 1em; }

.thesis__link {
  color: var(--green-mint);
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 222, 128, 0.3);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.thesis__link:hover {
  color: var(--green-soft);
  border-bottom-color: var(--green-mint);
}

.strike {
  position: relative;
  color: var(--ash);
}

.strike::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  top: 52%;
  height: 2px;
  background: var(--green-primary);
  transform: rotate(-3deg);
}

.thesis__answer em {
  color: var(--green-mint);
  font-weight: 500;
}

.thesis__stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(107, 143, 113, 0.2);
}

.stat:last-child { border-bottom: 1px solid rgba(107, 143, 113, 0.2); }

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  font-weight: 400;
  color: var(--green-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat__num sup {
  font-size: 0.4em;
  vertical-align: super;
  color: var(--green-mint);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ash);
  line-height: 1.4;
}

@media (max-width: 820px) {
  .thesis__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ============================================
   NETWORK — PILLARS
   ============================================ */

.network {
  position: relative;
  padding: 6rem 0 8rem;
  z-index: 1;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 4rem;
}

.pillar {
  position: relative;
  padding: 2.5rem 2.25rem;
  background: linear-gradient(165deg, var(--forest-card), var(--forest));
  border: 1px solid rgba(34, 197, 94, 0.12);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.pillar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.pillar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-top: 1px solid var(--green-primary);
  border-left: 1px solid var(--green-primary);
  opacity: 0.3;
  transition: all 0.3s var(--ease);
}

.pillar:hover {
  border-color: rgba(34, 197, 94, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(34, 197, 94, 0.3);
}

.pillar:hover::before { opacity: 1; }

.pillar:hover::after {
  width: 60px;
  height: 60px;
  opacity: 1;
}

.pillar__index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--green-primary);
  margin-bottom: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.pillar__icon {
  width: 48px;
  height: 48px;
  color: var(--green-mint);
  margin-bottom: 1.5rem;
}

.pillar__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 1rem;
}

.pillar__title em {
  color: var(--green-mint);
}

.pillar__body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--paper-warm);
  font-weight: 300;
  margin-bottom: 1.75rem;
}

.pillar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pillar__tags li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.18);
  color: var(--green-soft);
  border-radius: 2px;
}

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

/* ============================================
   KERNIES FEATURE
   ============================================ */

.kernies {
  position: relative;
  padding: 8rem 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(34, 197, 94, 0.1), transparent 60%),
    linear-gradient(to bottom, var(--forest), var(--ink));
  z-index: 1;
  overflow: hidden;
}

.kernies::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(34, 197, 94, 0.04) 1px, transparent 1px);
  background-size: 40px 100%;
  pointer-events: none;
}

.kernies__intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.kernies__intro-copy .section-lede--light + .section-lede--light {
  margin-top: 1.25rem;
}

.kernies__kicker {
  color: var(--green-primary);
  margin-bottom: 1.25rem;
  display: block;
}

/* Kernie character display */
.kernies__character {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.kernies__character-halo {
  position: absolute;
  inset: 5% 5% 0 5%;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(34, 197, 94, 0.35), rgba(34, 197, 94, 0.12) 40%, transparent 68%);
  filter: blur(10px);
  z-index: 0;
  animation: halo-breathe 6s ease-in-out infinite;
}

@keyframes halo-breathe {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.kernies__character-rings {
  position: absolute;
  inset: 0;
  color: var(--green-primary);
  z-index: 1;
  animation: slow-rotate 80s linear infinite;
  opacity: 0.6;
  transform-origin: center center;
}

.kernies__character-img {
  position: relative;
  z-index: 2;
  max-width: 92%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(34, 197, 94, 0.35))
          drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  animation: kernie-float 7s ease-in-out infinite;
}

@keyframes kernie-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.kernies__character-caption {
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(34, 197, 94, 0.25);
  background: linear-gradient(to top, rgba(6, 14, 9, 0.8), transparent);
  color: var(--green-muted);
  font-size: 0.65rem;
}

@media (max-width: 980px) {
  .kernies__intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .kernies__character {
    max-width: 420px;
    margin: 0 auto;
  }
}

.section-title--light { color: var(--paper); }
.section-lede--light { color: var(--paper-warm); }
.section-label--on-dark { color: var(--green-soft); }

.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.tier {
  position: relative;
  padding: 2.75rem 2.5rem;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 6px;
  background: rgba(7, 26, 14, 0.6);
  backdrop-filter: blur(6px);
  transition: all 0.4s var(--ease);
  overflow: hidden;
}

.tier--guardian {
  color: var(--green-soft);
}

.tier--sentinel {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(34, 197, 94, 0.15), transparent 60%),
    rgba(7, 26, 14, 0.85);
  border-color: var(--green-primary);
  color: var(--green-mint);
}

.tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(34, 197, 94, 0.4);
}

.tier__flag {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.3rem 0.65rem;
  background: var(--green-primary);
  color: var(--ink-deep);
  border-radius: 2px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  z-index: 3;
}

/* Tier showcase — character hero area */
.tier__showcase {
  position: relative;
  width: calc(100% + 5rem);
  margin: -2.75rem -2.5rem 2rem;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(34, 197, 94, 0.12), transparent 70%),
    linear-gradient(to bottom, rgba(10, 31, 17, 0.4), rgba(7, 26, 14, 0));
  border-bottom: 1px solid rgba(34, 197, 94, 0.12);
}

.tier__showcase--sentinel {
  background:
    radial-gradient(ellipse at 50% 60%, rgba(74, 222, 128, 0.18), transparent 70%),
    linear-gradient(to bottom, rgba(10, 31, 17, 0.5), rgba(7, 26, 14, 0));
  border-bottom-color: rgba(34, 197, 94, 0.3);
}

.tier__showcase-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 320px;
  height: 320px;
  margin-left: -160px;
  margin-top: -160px;
  background:
    radial-gradient(circle, rgba(34, 197, 94, 0.28), rgba(34, 197, 94, 0.08) 45%, transparent 70%);
  filter: blur(18px);
  z-index: 0;
  animation: halo-breathe 6s ease-in-out infinite;
  pointer-events: none;
}

.tier__showcase--sentinel .tier__showcase-halo {
  background:
    radial-gradient(circle, rgba(74, 222, 128, 0.35), rgba(34, 197, 94, 0.1) 45%, transparent 70%);
}

.tier__showcase-rings {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 340px;
  height: 340px;
  margin-left: -170px;
  margin-top: -170px;
  color: var(--green-primary);
  z-index: 1;
  animation: slow-rotate 100s linear infinite;
  pointer-events: none;
}

.tier__showcase--sentinel .tier__showcase-rings {
  color: var(--green-mint);
  animation-duration: 80s;
}

.tier__showcase-img {
  position: relative;
  z-index: 2;
  max-height: 300px;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(34, 197, 94, 0.4))
          drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
  animation: kernie-float 8s ease-in-out infinite;
}

.tier--sentinel .tier__showcase-img {
  filter: drop-shadow(0 25px 50px rgba(74, 222, 128, 0.5))
          drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
}

@media (max-width: 640px) {
  .tier__showcase {
    height: 260px;
  }
  .tier__showcase-halo,
  .tier__showcase-rings {
    width: 260px;
    height: 260px;
    margin-left: -130px;
    margin-top: -130px;
  }
  .tier__showcase-img {
    max-height: 240px;
  }
}

.tier__header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tier__emblem {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  color: var(--green-primary);
}

.tier__emblem--sentinel {
  color: var(--green-mint);
  animation: slow-rotate 20s linear infinite;
}

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

.tier__kicker {
  color: var(--green-muted);
  margin-bottom: 0.4rem;
  display: block;
}

.tier__name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.tier__name em { color: var(--green-mint); }

.tier__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(34, 197, 94, 0.15);
  border-bottom: 1px solid rgba(34, 197, 94, 0.15);
}

.tier__price-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--paper);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tier__price-unit {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--green-muted);
}

.tier__benefits {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tier__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--paper-warm);
  font-weight: 300;
}

.tier__benefits li strong {
  color: var(--green-mint);
  font-weight: 500;
}

.tier__benefits li em {
  color: var(--green-mint);
}

.check {
  color: var(--green-primary);
  font-weight: 500;
  font-size: 1rem;
  margin-top: 0.05em;
}

.tier__cta {
  margin-top: 2rem;
  width: 100%;
  justify-content: center;
  padding: 1rem 1.4rem;
  font-size: 0.95rem;
}

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

/* Mint strip */
.mint-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.5rem;
  background: linear-gradient(to right, rgba(34, 197, 94, 0.08), rgba(74, 222, 128, 0.04));
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 4px;
  flex-wrap: wrap;
  gap: 1rem;
}

.mint-strip__block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mint-strip__label {
  color: var(--green-muted);
}

.mint-strip__value {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 500;
  color: var(--paper);
  line-height: 1;
  letter-spacing: -0.01em;
}

.mint-strip__value em {
  color: var(--green-mint);
  font-weight: 400;
}

.mint-strip__divider {
  width: 1px;
  height: 32px;
  background: rgba(34, 197, 94, 0.2);
}

@media (max-width: 820px) {
  .mint-strip { flex-direction: column; align-items: flex-start; }
  .mint-strip__divider { display: none; }
}

/* ============================================
   ECOSYSTEM DISCOUNTS
   ============================================ */

.ecosystem {
  position: relative;
  padding: 7rem 0;
  z-index: 1;
}

.ecosystem__grid {
  display: block;
  margin-bottom: 4rem;
}

.ecosystem__copy {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.ecosystem__copy .section-title {
  margin-bottom: 1.5rem;
}

.ecosystem__copy .section-lede {
  margin: 0 auto;
}

.ecosystem__tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.token-chip {
  display: inline-block;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: -0.005em;
  transition: all 0.2s var(--ease);
  background: rgba(7, 26, 14, 0.4);
  text-decoration: none;
  cursor: pointer;
}

.token-chip:hover {
  border-color: var(--green-primary);
  color: var(--green-mint);
  background: rgba(34, 197, 94, 0.08);
  transform: translateY(-2px);
}

.token-chip--more {
  font-style: italic;
  color: var(--green-muted);
  border-style: dashed;
}

.discount-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.discount-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 4px;
  background: linear-gradient(135deg, var(--forest-card), var(--forest));
  transition: all 0.3s var(--ease);
}

.discount-row:hover {
  border-color: rgba(34, 197, 94, 0.35);
  transform: translateX(4px);
}

.discount-row--flagship {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(34, 197, 94, 0.1), transparent 60%),
    linear-gradient(135deg, var(--forest-card), var(--forest));
  border-color: rgba(34, 197, 94, 0.35);
}

.discount-row__tag {
  color: var(--green-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.discount-row--flagship .discount-row__tag {
  color: var(--green-mint);
}

.discount-row__desc {
  font-size: 1rem;
  color: var(--paper-warm);
  font-weight: 300;
  line-height: 1.5;
  max-width: 500px;
}

.discount-row__right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.discount-row__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--green-mint);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.discount-row__unit {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--green-muted);
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .discount-row { grid-template-columns: 1fr; gap: 1.5rem; text-align: left; }
  .discount-row__right { text-align: left; flex-direction: row; align-items: baseline; gap: 0.75rem; }
}

/* ============================================
   KNL TOKEN
   ============================================ */

.knl {
  position: relative;
  padding: 7rem 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(34, 197, 94, 0.08), transparent 60%);
  z-index: 1;
}

.knl__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.knl__symbol {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--green-primary);
  font-size: 0.7em;
  letter-spacing: -0.02em;
  display: inline-block;
  margin-bottom: 0.3em;
}

.knl__utility {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.utility-card {
  padding: 2.25rem 1.75rem;
  background: linear-gradient(165deg, var(--forest-card), var(--forest));
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 4px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.utility-card:hover {
  border-color: var(--green-primary);
  transform: translateY(-4px);
}

.utility-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--green-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.utility-card:hover::before { opacity: 1; }

.utility-card__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--green-primary);
  margin-bottom: 1.25rem;
}

.utility-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--paper);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.utility-card__body {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--paper-warm);
  font-weight: 300;
}

@media (max-width: 820px) {
  .knl__grid { grid-template-columns: 1fr; gap: 3rem; }
  .knl__utility { grid-template-columns: 1fr; }
}

/* ============================================
   FINAL CTA
   ============================================ */

.final {
  position: relative;
  padding: 8rem var(--gutter) 10rem;
  z-index: 1;
  text-align: center;
  overflow: hidden;
}

.final__frame {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.final__stage {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.final__stage::before {
  /* Atmospheric green glow behind Kernie */
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  height: 560px;
  background:
    radial-gradient(circle, rgba(34, 197, 94, 0.28), rgba(34, 197, 94, 0.08) 45%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
  animation: halo-breathe 5s ease-in-out infinite;
  pointer-events: none;
}

.final__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 560px;
  height: 560px;
  margin-left: -280px;
  margin-top: -280px;
  color: var(--green-primary);
  animation: slow-rotate 90s linear infinite;
  z-index: 1;
  opacity: 0.85;
  pointer-events: none;
}

.final__kernie {
  position: relative;
  z-index: 2;
  height: 420px;
  width: auto;
  filter: drop-shadow(0 25px 60px rgba(34, 197, 94, 0.55))
          drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
  animation: kernie-float 7s ease-in-out infinite;
}

@media (max-width: 640px) {
  .final__stage {
    height: 320px;
    max-width: 400px;
  }
  .final__stage::before,
  .final__mark {
    width: 400px;
    height: 400px;
  }
  .final__kernie {
    height: 320px;
  }
}

.final__kicker {
  color: var(--green-primary);
  margin-bottom: 1.5rem;
}

.final__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 3rem;
}

.final__title em {
  color: var(--green-mint);
  display: inline-block;
}

.final__cta-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Date badge in final CTA — centered, larger than hero's */
.final__date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem 0.75rem 1rem;
  margin: 2.5rem auto 0;
  background: rgba(163, 230, 53, 0.08);
  border: 1px solid rgba(163, 230, 53, 0.4);
  border-radius: 999px;
}

.final__date-badge .hero__date-text {
  font-size: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  position: relative;
  padding: 5rem 0 3rem;
  border-top: 1px solid rgba(34, 197, 94, 0.15);
  background: var(--ink-deep);
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--green-primary);
}

.footer__brand .nav__wordmark {
  margin-top: 0.2rem;
}

.footer__tag {
  font-size: 0.85rem;
  color: var(--ash);
  margin-top: 0.75rem;
  max-width: 280px;
  line-height: 1.5;
}

.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-muted);
  margin-bottom: 1.25rem;
}

.footer__col a {
  display: block;
  font-size: 0.92rem;
  color: var(--paper-warm);
  padding: 0.3rem 0;
  transition: color 0.2s var(--ease);
}

.footer__col a:hover { color: var(--green-mint); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(34, 197, 94, 0.08);
  color: var(--green-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ============================================
   MOTION / UTILITIES
   ============================================ */

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

/* Reveal-on-scroll (JS adds .reveal to hide, .is-visible to show) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

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

/* No-JS fallback: if .reveal is never applied, content stays visible */
