/* ===== Design tokens ｜ dark forest ===== */
:root {
  /* Dark forest greens */
  --bg-0:    #090f0a;
  --bg-1:    #0d160e;
  --bg-2:    #111d12;
  --bg-3:    #172218;
  --bg-4:    #1e2e1f;
  --bg-5:    #253526;
  --bg-6:    #2e4030;

  /* Foliage accent greens */
  --leaf-3:  #3a6642;
  --leaf-4:  #4a7d52;
  --leaf-5:  #5d9465;
  --leaf-6:  #7db884;
  --leaf-7:  #a8d4ae;
  --leaf-8:  #cde7cf;

  /* Warm gold ｜ points/stars */
  --gold-4:  #b8892a;
  --gold-5:  #d4a83a;
  --gold-6:  #e8c050;
  --gold-7:  #f5d470;
  --gold-8:  #fce89a;

  /* Red accent */
  --red-4:   #8b2a22;
  --red-5:   #b33a2e;
  --red-6:   #d14a3c;

  /* Text */
  --text-0:  #f2eee0;
  --text-1:  #d4d0c0;
  --text-2:  #a8b09a;
  --text-3:  #728070;

  /* Rarity */
  --rar-n:   #7aaa50;
  --rar-r:   #4a8cc8;
  --rar-sr:  #a060d0;
  --rar-ssr: #e8a030;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html,
body,
#root {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg-1);
  color: var(--text-0);
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  font-weight: 500;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ===== Shared background textures ===== */
/* Noise grain overlay ｜ applied via pseudo-elements */
.noise-layer::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' seed='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}
.noise-layer { position: relative; }
.noise-layer > * { position: relative; z-index: 2; }

/* Dot grid pattern */
.dot-grid {
  background-image: radial-gradient(circle, rgba(93,148,101,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Diagonal line texture */
.hatch-bg {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 14px,
    rgba(46,64,48,0.35) 14px,
    rgba(46,64,48,0.35) 15px
  );
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--text-0);
}
p { margin: 0; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Keep inline SVG art inside its card instead of stretching the layout. */
.logo-badge svg,
.footer-logo svg,
.phone svg,
.feat-bug-circle svg,
.dex-featured-img svg,
.dex-mini svg,
.rarity-card svg,
.collection-bug svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Audience toggle ===== */
.audience-toggle {
  display: flex; gap: 2px;
  min-width: 0;
  flex-shrink: 0;
  background: var(--bg-3);
  border: 1px solid var(--bg-5);
  border-radius: 999px;
  padding: 3px;
}
.aud-btn {
  background: none; border: none;
  color: var(--text-3); padding: 6px 16px;
  border-radius: 999px; font-family: inherit;
  font-weight: 700; font-size: 13px; cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
}
.aud-btn.active { background: var(--leaf-4); color: #fff; }
.aud-btn:not(.active):hover { color: var(--text-0); }

/* ===== Interactive element cursors ===== */
button, [role=button] { cursor: pointer !important; }
.faq-q { cursor: pointer; }
.faq-q:hover { color: var(--leaf-7); }
.faq-item { transition: box-shadow 0.15s; }
.faq-item:hover { box-shadow: 0 0 0 1px var(--leaf-4) inset; }
.dex-mini:not(.locked) { cursor: pointer; }
.feat-tab { cursor: pointer; }
.rarity-card { cursor: default; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 22, 14, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-5);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
  font-weight: 900; font-size: 20px;
  color: var(--text-0); text-decoration: none;
  letter-spacing: 0.04em;
}
.logo-text {
  display: inline-flex; align-items: center; line-height: 1;
}
.logo-badge {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-5);
  border: 1px solid var(--leaf-4);
  display: grid; place-items: center; padding: 4px;
}
.logo-sub {
  font-size: 10px; font-weight: 500;
  color: var(--leaf-6); letter-spacing: 0.2em;
  display: block; line-height: 1;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: var(--text-2); text-decoration: none;
  font-weight: 700; font-size: 14px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--leaf-7); }
.nav-cta {
  background: var(--leaf-4) !important;
  color: var(--bg-1) !important;
  padding: 9px 18px; border-radius: 999px;
  font-weight: 900 !important; font-size: 14px;
}
.nav-cta:hover { background: var(--leaf-5) !important; color: var(--bg-0) !important; }

/* ===== Hero ===== */
.hero {
  padding: 100px 0 80px;
  min-height: 80vh;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--bg-0);
  position: relative; overflow: hidden;
}
/* subtle leaf silhouette background */
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><path d='M80 20 Q40 80 60 160 Q100 200 140 160 Q160 80 80 20Z' fill='%23a8d4ae'/><path d='M300 60 Q260 120 280 200 Q320 240 360 200 Q380 120 300 60Z' fill='%23a8d4ae'/><path d='M40 280 Q20 340 50 380 Q80 400 110 380 Q140 340 100 280 Q70 260 40 280Z' fill='%23a8d4ae'/><path d='M320 260 Q290 320 310 370 Q340 400 370 380 Q400 350 380 300 Q360 260 320 260Z' fill='%23a8d4ae'/></svg>");
  background-size: 400px 400px;
}
.hero > * { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(74,125,82,0.35); color: var(--leaf-8);
  border: 1px solid rgba(168,212,174,0.35);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; margin-bottom: 16px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}
.hero-appname {
  display: flex; align-items: center;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  font-family: 'Zen Maru Gothic', sans-serif;
}

.hero-wordmark-wrap {
  width: min(420px, 100%);
  margin: -2px 0 14px;
  transform: rotate(-1.2deg);
  filter: drop-shadow(0 12px 26px rgba(0,0,0,0.32));
}
.hero-wordmark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.hero-wordmark-bug {
  transform-origin: 266px 62px;
  animation: wordmarkBugFloat 4.2s ease-in-out infinite;
}
@keyframes wordmarkBugFloat {
  0%, 100% { transform: translate(218px, 4px) rotate(-6deg); }
  50% { transform: translate(218px, -2px) rotate(2deg); }
}
.hero h1 {
  font-size: clamp(32px, 3.6vw, 48px);
  margin-bottom: 20px; color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  white-space: normal;
  max-width: 100%;
}
.hero-title-line {
  display: block;
  white-space: nowrap;
}
.hero h1 .hl {
  color: var(--gold-6);
  display: block;
}
.hero-lead {
  font-size: 16px; color: var(--leaf-8);
  margin-bottom: 32px;
  text-wrap: pretty; max-width: 560px;
  line-height: 1.85;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 100%;
  background: var(--leaf-4); color: var(--bg-0);
  padding: 15px 28px; border-radius: 999px;
  font-size: 16px; font-weight: 900;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(74,125,82,0.4);
  transition: all 0.12s; border: none; cursor: pointer;
}
.btn-primary:hover {
  background: var(--leaf-5);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74,125,82,0.5);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 100%;
  background: transparent; color: var(--text-1);
  padding: 13px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 15px;
  border: 1px solid var(--bg-6);
  transition: all 0.15s;
}
.btn-secondary:hover { border-color: var(--leaf-4); color: var(--leaf-7); }

.hero-meta {
  display: flex; gap: 20px; margin-top: 28px;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--text-2);
}
.hero-badge .ico {
  width: 16px; height: 16px; color: var(--leaf-5); flex-shrink: 0;
}
.hero-badge .ico svg { width: 100%; height: 100%; }

/* Phone mock */
.forest-bg {
  isolation: isolate;
}
.phone-wrap {
  display: grid; place-items: center; position: relative;
}
.phone-wrap::before {
  content: '';
  position: absolute;
  inset: 10% 6% 12% 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(148, 228, 98, 0.22) 0%, rgba(148, 228, 98, 0.12) 20%, rgba(148, 228, 98, 0.04) 42%, transparent 70%),
    radial-gradient(circle at 55% 56%, rgba(255, 220, 100, 0.10) 0%, transparent 34%);
  filter: blur(8px);
  opacity: 0.95;
  transform: translateY(10px);
}
.phone-wrap::after {
  content: '';
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 5%;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,0.36) 0%, rgba(0,0,0,0.16) 48%, transparent 72%);
  filter: blur(8px);
}
.phone {
  position: relative;
  z-index: 1;
  width: 290px;
  background: #000;
  border-radius: 48px;
  padding: 10px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.7), 0 0 0 1px #333;
  transform: rotate(-2deg);
}
.phone-screen {
  border-radius: 40px; overflow: hidden;
  background: var(--bg-2);
  min-height: 580px;
  display: flex; flex-direction: column;
}
.phone-notch {
  width: 90px; height: 10px;
  background: #000; border-radius: 999px;
  margin: 10px auto 0;
}

/* ===== Shared section ===== */
section { padding: 72px 0; }
.sec-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--leaf-5); text-transform: uppercase; margin-bottom: 10px;
  display: block;
}
.sec-title {
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 14px;
  text-wrap: pretty;
}
.sec-lead {
  font-size: 16px; color: var(--text-2);
  max-width: 580px; text-wrap: pretty;
}
.sec-head { margin-bottom: 56px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-lead { margin: 0 auto; }

/* ===== Flow section ===== */
.flow {
  background:
    radial-gradient(ellipse 1000px 300px at 50% 0%, rgba(46,64,48,0.8), transparent),
    var(--bg-2);
  position: relative;
}
.flow::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(93,148,101,0.12) 1px, transparent 1px);
  background-size: 32px 32px;
}
.flow > * { position: relative; z-index: 1; }
.flow-steps {
  display: grid;
  grid-template-columns: 1fr 36px 1fr 36px 1fr 36px 1fr;
  align-items: center; gap: 8px;
}
.flow-step {
  background: var(--bg-4);
  border: 1px solid var(--bg-6);
  border-radius: var(--radius-lg);
  padding: 28px 20px; text-align: center;
  transition: border-color 0.2s;
}
.flow-step:hover { border-color: var(--leaf-4); }
.flow-step-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg-5);
  border: 1px solid var(--leaf-4);
  display: grid; place-items: center;
  margin: 0 auto 14px; color: var(--leaf-6);
}
.flow-step-icon svg { width: 24px; height: 24px; }
.flow-step h4 { font-size: 16px; margin-bottom: 6px; color: var(--text-0); }
.flow-step p { font-size: 13px; color: var(--text-2); }
.flow-arrow { color: var(--bg-6); display: grid; place-items: center; }
.flow-arrow svg { width: 20px; height: 20px; }

/* ===== Hero animations ===== */
@keyframes silhouetteFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%       { transform: translateY(-18px) rotate(calc(var(--r, 0deg) + 8deg)); }
}
@keyframes fireflyPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.3); }
}

/* ===== Buttons ｜ improved contrast ===== */
.btn-primary {
  background: #5aaa62 !important;
  color: #fff !important;
  font-size: 16px;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 24px rgba(90,170,98,0.35) !important;
}
.btn-primary:hover {
  background: #6bbf74 !important;
  color: #fff !important;
  box-shadow: 0 8px 32px rgba(90,170,98,0.5) !important;
}
.btn-secondary {
  background: rgba(255,255,255,0.06) !important;
  color: var(--text-0) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: var(--leaf-5) !important;
  color: var(--leaf-7) !important;
}
.nav-cta {
  background: #5aaa62 !important;
  color: #fff !important;
}
.nav-cta:hover { background: #6bbf74 !important; }

/* ===== Features ｜ tab style ===== */
.features {
  background:
    radial-gradient(ellipse 600px 400px at 0% 50%, rgba(30,46,32,0.7), transparent),
    radial-gradient(ellipse 500px 300px at 100% 30%, rgba(46,80,54,0.4), transparent),
    var(--bg-1);
  position: relative; overflow: hidden;
}
.features::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><path d='M150 10 Q80 80 100 180 Q140 230 180 180 Q200 80 150 10Z' fill='none' stroke='%23a8d4ae' stroke-width='1' opacity='0.12'/><path d='M150 10 L150 220' stroke='%23a8d4ae' stroke-width='0.6' opacity='0.1'/><path d='M150 60 L100 90 M150 100 L90 130 M150 140 L100 170 M150 60 L200 90 M150 100 L210 130 M150 140 L200 170' stroke='%23a8d4ae' stroke-width='0.6' opacity='0.1'/></svg>");
  background-size: 300px 300px;
  background-position: -60px center;
}
.features > * { position: relative; z-index: 1; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: start; }
.feature-card {
  background: var(--bg-3);
  border: 1px solid var(--bg-5);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--leaf-4), var(--leaf-6));
  opacity: 0; transition: opacity 0.2s;
}
.feature-card:hover { border-color: var(--leaf-4); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }
.feat-tabs {
  display: flex; gap: 4px;
  background: var(--bg-4);
  border-radius: var(--radius-lg);
  padding: 4px; margin-bottom: 28px;
  max-width: 440px;
}
.feat-tab {
  flex: 1; background: none; border: none;
  color: var(--text-2); padding: 10px 16px;
  border-radius: var(--radius-md); font-family: inherit;
  font-weight: 700; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: all 0.15s;
}
.feat-tab.active {
  background: var(--leaf-4); color: #fff;
}
.feat-tab-num {
  font-size: 10px; opacity: 0.7; letter-spacing: 0.1em;
}
.feat-panel {
  display: grid; grid-template-columns: 380px 1fr;
  gap: 48px; align-items: center;
  background: var(--bg-3); border: 1px solid var(--bg-5);
  border-radius: var(--radius-xl); padding: 48px;
  min-height: 340px;
}
.feat-panel-visual {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.feat-bug-circle {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--bg-5), var(--bg-4));
  border: 1px solid var(--bg-6);
  display: grid; place-items: center; padding: 24px;
  box-shadow: 0 0 60px rgba(74,125,82,0.12);
  transition: all 0.3s;
}
.feat-bug-circle:hover { box-shadow: 0 0 80px rgba(74,125,82,0.22); }
.feat-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.feat-panel-num {
  font-size: 11px; letter-spacing: 0.2em; font-weight: 700;
  color: var(--leaf-5); margin-bottom: 4px;
}
.feat-panel-title { font-size: 36px; margin-bottom: 6px; }
.feat-panel-tagline {
  font-size: 14px; color: var(--leaf-6); font-weight: 700;
  margin-bottom: 16px;
}
.feat-panel-desc { font-size: 15px; color: var(--text-2); text-wrap: pretty; line-height: 1.8; }

@media (max-width: 900px) {
  .feat-panel { grid-template-columns: 1fr; padding: 28px; }
  .feat-bug-circle { width: 160px; height: 160px; }
  .feat-tabs { max-width: 100%; }
}
.feature-icon {
  width: 64px; height: 64px; border-radius: var(--radius-md);
  background: var(--bg-5);
  display: grid; place-items: center; margin-bottom: 20px;
  color: var(--leaf-6);
}
.feature-icon svg { width: 30px; height: 30px; }
.feature-card h3 { font-size: 22px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-2); text-wrap: pretty; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chip {
  background: var(--bg-5); color: var(--leaf-7);
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; border: 1px solid var(--bg-6);
}

/* ===== Rarity ===== */
.rarity {
  background:
    repeating-linear-gradient(
      -60deg,
      transparent,
      transparent 40px,
      rgba(30,46,32,0.3) 40px,
      rgba(30,46,32,0.3) 41px
    ),
    radial-gradient(ellipse 800px 400px at 50% 100%, rgba(58,102,66,0.2), transparent),
    var(--bg-2);
  position: relative;
}
.rarity-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.rarity-card {
  background: var(--bg-3);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  border: 1px solid var(--bg-5);
  text-align: center; position: relative; overflow: hidden;
}
.rarity-card.n { border-top: 3px solid var(--rar-n); }
.rarity-card.r { border-top: 3px solid var(--rar-r); }
.rarity-card.sr { border-top: 3px solid var(--rar-sr); }
.rarity-card.ssr { border-top: 3px solid var(--rar-ssr); }
.rarity-badge {
  display: inline-block; font-size: 12px; font-weight: 900;
  padding: 3px 12px; border-radius: 999px; margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.rarity-card.n .rarity-badge { background: rgba(122,170,80,0.15); color: var(--rar-n); }
.rarity-card.r .rarity-badge { background: rgba(74,140,200,0.15); color: var(--rar-r); }
.rarity-card.sr .rarity-badge { background: rgba(160,96,208,0.15); color: var(--rar-sr); }
.rarity-card.ssr .rarity-badge { background: rgba(232,160,48,0.15); color: var(--rar-ssr); }
.rarity-count { font-size: 32px; font-weight: 900; line-height: 1; margin: 8px 0; }
.rarity-card.n .rarity-count { color: var(--rar-n); }
.rarity-card.r .rarity-count { color: var(--rar-r); }
.rarity-card.sr .rarity-count { color: var(--rar-sr); }
.rarity-card.ssr .rarity-count { color: var(--rar-ssr); }
.rarity-label { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.rarity-examples { font-size: 12px; color: var(--text-3); text-wrap: pretty; }

/* ===== Level system ===== */
.levels {
  background:
    radial-gradient(ellipse 700px 500px at 80% 50%, rgba(26,46,28,0.6), transparent),
    radial-gradient(ellipse 400px 300px at 5% 20%, rgba(46,80,54,0.3), transparent),
    var(--bg-1);
  position: relative;
}
.levels::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><circle cx='40' cy='40' r='1.5' fill='%237db884'/></svg>");
  background-size: 28px 28px;
}
.levels > * { position: relative; z-index: 1; }
.level-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.level-cards { display: grid; gap: 12px; }
.level-card {
  background: var(--bg-3); border: 1px solid var(--bg-5);
  border-radius: var(--radius-md); padding: 20px 22px;
  display: flex; gap: 16px; align-items: start;
  transition: border-color 0.15s;
}
.level-card:hover { border-color: var(--leaf-4); }
.level-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px; background: var(--bg-5);
  display: grid; place-items: center; color: var(--leaf-6);
}
.level-icon svg { width: 22px; height: 22px; }
.level-card strong { display: block; font-size: 15px; margin-bottom: 4px; }
.level-card span { font-size: 13px; color: var(--text-2); }
.level-points {
  font-size: 12px; font-weight: 700; color: var(--gold-6);
  margin-top: 4px;
}

.level-chart {
  background: var(--bg-3); border: 1px solid var(--bg-5);
  border-radius: var(--radius-xl); padding: 32px;
}
.level-chart h4 {
  font-size: 17px; margin-bottom: 20px; color: var(--text-0);
}
.level-rule {
  display: flex; gap: 10px; align-items: center;
  font-size: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--bg-5);
  color: var(--text-1);
}
.level-rule:last-child { border-bottom: none; }
.level-rule-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; background: var(--bg-5); display: grid; place-items: center; }
.level-rule-icon svg { width: 16px; height: 16px; }
.rule-up { color: var(--leaf-6); }
.rule-down { color: var(--red-6); }

/* ===== Dex ===== */
.dex {
  background:
    radial-gradient(ellipse 900px 500px at 50% 50%, rgba(22,38,24,0.9), transparent),
    var(--bg-2);
  position: relative; overflow: hidden;
}
/* corner botanical decorations */
.dex::before, .dex::after {
  content: '';
  position: absolute; pointer-events: none;
  width: 280px; height: 280px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><path d='M20 180 Q40 120 80 100 Q120 80 160 20' fill='none' stroke='%233a6642' stroke-width='2' opacity='0.4'/><path d='M20 180 Q30 140 60 120' fill='none' stroke='%233a6642' stroke-width='1.5' opacity='0.3'/><path d='M80 100 Q60 110 50 130' fill='none' stroke='%233a6642' stroke-width='1.5' opacity='0.3'/><path d='M120 60 Q100 70 90 90' fill='none' stroke='%233a6642' stroke-width='1.5' opacity='0.3'/><ellipse cx='55' cy='125' rx='18' ry='12' transform='rotate(-30 55 125)' fill='%232e4030' stroke='%233a6642' stroke-width='1' opacity='0.5'/><ellipse cx='92' cy='92' rx='18' ry='12' transform='rotate(-45 92 92)' fill='%232e4030' stroke='%233a6642' stroke-width='1' opacity='0.5'/><ellipse cx='130' cy='56' rx='18' ry='12' transform='rotate(-60 130 56)' fill='%232e4030' stroke='%233a6642' stroke-width='1' opacity='0.5'/></svg>");
  background-size: contain; background-repeat: no-repeat;
}
.dex::before { bottom: -20px; left: -20px; transform: rotate(0deg); }
.dex::after  { top: -20px; right: -20px; transform: rotate(180deg); }
.dex > * { position: relative; z-index: 1; }
.dex-book {
  background: var(--bg-3);
  border: 1px solid var(--bg-5);
  border-radius: var(--radius-xl);
  padding: 28px;
  max-width: 980px; margin: 0 auto; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.dex-divider {
  position: absolute;
  left: 50%; top: 28px; bottom: 28px;
  width: 1px; background: var(--bg-5);
  transform: translateX(-0.5px);
}
.dex-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dex-page { min-height: 360px; }
.dex-page-title {
  font-size: 11px; letter-spacing: 0.18em; font-weight: 700;
  color: var(--leaf-5); text-transform: uppercase;
  padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 1px solid var(--bg-5);
}
.dex-featured { text-align: center; }
.dex-featured-img {
  width: 140px; height: 140px;
  margin: 0 auto 14px;
  background: var(--bg-4); border-radius: 50%;
  border: 1px solid var(--bg-6);
  display: grid; place-items: center; padding: 10px;
}
.dex-featured h4 { font-size: 18px; margin-bottom: 4px; }
.dex-featured .sub { font-size: 12px; color: var(--text-3); }
.dex-featured .rarity-line {
  font-size: 12px; font-weight: 700;
  color: var(--rar-ssr); margin: 6px 0;
}
.dex-fields {
  margin-top: 12px; text-align: left;
  background: var(--bg-4); padding: 12px 14px;
  border-radius: var(--radius-sm); font-size: 12px;
  display: grid; gap: 6px;
}
.dex-field { display: flex; justify-content: space-between; gap: 8px; }
.dex-field-k { color: var(--leaf-6); font-weight: 700; white-space: nowrap; }
.dex-field-v { color: var(--text-2); text-align: right; }
.dex-grid-label { font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.dex-mini-grid {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 6px;
}
.dex-mini {
  aspect-ratio: 1; border-radius: 10px;
  background: var(--bg-4); border: 1px solid var(--bg-5);
  display: grid; place-items: center; padding: 4px;
  overflow: hidden;
}
.dex-mini.locked {
  background: var(--bg-3);
  color: var(--text-3); font-size: 16px; font-weight: 900;
}

/* ===== Parent section ===== */
.parent-sec {
  background:
    radial-gradient(ellipse 600px 600px at 100% 0%, rgba(30,46,32,0.5), transparent),
    radial-gradient(ellipse 400px 300px at 0% 100%, rgba(46,64,48,0.3), transparent),
    var(--bg-1);
  position: relative;
}
.parent-sec::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><rect x='0' y='0' width='60' height='60' fill='none' stroke='%237db884' stroke-width='0.5'/></svg>");
  background-size: 60px 60px;
}
.parent-sec > * { position: relative; z-index: 1; }
.parent-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.parent-card {
  background: var(--bg-3); border: 1px solid var(--bg-5);
  border-radius: var(--radius-xl); padding: 28px;
  transition: border-color 0.2s;
}
.parent-card:hover { border-color: var(--leaf-4); }
.parent-card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--bg-5); display: grid; place-items: center;
  margin-bottom: 16px; color: var(--leaf-6);
}
.parent-card-icon svg { width: 22px; height: 22px; }
.parent-card h4 { font-size: 17px; margin-bottom: 10px; color: var(--text-0); }
.parent-card p { font-size: 14px; color: var(--text-2); text-wrap: pretty; }
.parent-list {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: grid; gap: 8px;
}
.parent-list li {
  display: flex; align-items: start; gap: 8px;
  font-size: 13px; color: var(--text-2);
}
.parent-list .ck {
  width: 18px; height: 18px; flex-shrink: 0;
  color: var(--leaf-5); margin-top: 2px;
}
.parent-list .ck svg { width: 100%; height: 100%; }

/* ===== Subjects ===== */
.subject-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.subject-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-4); color: var(--leaf-7);
  border: 1px solid var(--bg-6);
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 700;
}
.subject-chip svg { width: 14px; height: 14px; }

/* ===== FAQ ===== */
.faq-sec {
  background:
    radial-gradient(ellipse 1000px 400px at 50% 100%, rgba(46,64,48,0.3), transparent),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(37,53,38,0.25) 60px,
      rgba(37,53,38,0.25) 61px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(37,53,38,0.25) 60px,
      rgba(37,53,38,0.25) 61px
    ),
    var(--bg-2);
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.faq-item {
  background: rgba(17, 29, 18, 0.92);
  border: 1px solid var(--bg-5);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.faq-item.open {
  border-color: rgba(125, 184, 132, 0.46);
  background: rgba(22, 38, 24, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.faq-q {
  width: 100%;
  min-height: 58px;
  text-align: left;
  background: none;
  border: none;
  padding: 17px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-0);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  -webkit-tap-highlight-color: transparent;
}
.faq-q-text {
  min-width: 0;
  line-height: 1.55;
}
.faq-q-label {
  color: var(--leaf-5);
  margin-right: 6px;
}
.faq-toggle {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 999px;
  color: var(--leaf-6);
  background: rgba(125, 184, 132, 0.11);
  border: 1px solid rgba(125, 184, 132, 0.24);
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-item.open .faq-toggle {
  background: rgba(245, 212, 112, 0.14);
  border-color: rgba(245, 212, 112, 0.32);
  color: var(--gold-6);
  transform: scale(1.02);
}
.faq-item.open .faq-toggle::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.4);
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-3px);
  transition: grid-template-rows 0.24s ease, opacity 0.18s ease, transform 0.18s ease;
}
.faq-a-inner {
  min-height: 0;
  overflow: hidden;
}
.faq-a-content {
  padding: 0 20px 18px 42px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
  text-wrap: pretty;
}
.faq-item.open .faq-a {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .faq-list {
    gap: 9px;
  }
  .faq-q {
    min-height: 56px;
    padding: 16px 16px;
    font-size: 14px;
    gap: 12px;
  }
  .faq-a-content {
    padding: 0 16px 16px 36px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-toggle,
  .faq-toggle::before,
  .faq-toggle::after,
  .faq-a {
    transition: none;
  }
}

/* ===== CTA ===== */
.final-cta {
  background: var(--bg-0);
  border-top: 1px solid var(--bg-3);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(76px, 9vw, 116px) 0;
}
.final-cta-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 620px 420px at 74% 46%, rgba(78, 152, 86, 0.15), transparent 68%),
    radial-gradient(ellipse 500px 320px at 18% 58%, rgba(245, 212, 112, 0.055), transparent 70%),
    linear-gradient(180deg, rgba(17, 29, 18, 0.08), transparent 32%, rgba(17, 29, 18, 0.12));
}
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 416px);
  gap: clamp(40px, 6vw, 86px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-copy {
  min-width: 0;
  max-width: 680px;
}
.cta-copy h2 {
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: 1.28;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.cta-copy h2 .hl {
  color: var(--gold-7);
}
.cta-copy p {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 30px;
  text-wrap: pretty;
  max-width: 430px;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.cta-main-btn {
  font-size: 17px;
  padding: 16px 32px;
}
.cta-url {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(30, 46, 31, 0.92);
  color: var(--leaf-7);
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 14px;
  border: 1px dashed var(--bg-6);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s, transform 0.15s;
}
.cta-url:hover {
  border-color: var(--leaf-5);
  color: var(--leaf-8);
  background: var(--bg-5);
  transform: translateY(-1px);
}
.collection-preview {
  min-width: 0;
  width: 100%;
  display: grid;
  place-items: center;
}
.collection-card {
  width: min(100%, 416px);
  margin: 0 auto;
  border: 1px solid rgba(78, 152, 86, 0.46);
  border-radius: 22px;
  overflow: hidden;
  background: #0b1f0c;
  box-shadow:
    0 24px 68px rgba(0, 0, 0, 0.54),
    0 0 0 1px rgba(168, 216, 168, 0.04) inset;
}
.collection-head {
  min-height: 50px;
  padding: 13px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, #102814, #0a1a0b);
  border-bottom: 1px solid rgba(78, 152, 86, 0.34);
}
.collection-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 900;
  font-size: 14px;
  color: #a8d8a8;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.collection-title-icon {
  width: 17px;
  height: 17px;
  color: #a8d8a8;
  display: grid;
  place-items: center;
}
.collection-title-icon svg {
  width: 100%;
  height: 100%;
}
.collection-head > span:last-child {
  font-size: 12px;
  font-weight: 800;
  color: rgba(168, 216, 168, 0.62);
  white-space: nowrap;
}
.collection-body {
  padding: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(90, 170, 98, 0.1), transparent 55%),
    linear-gradient(180deg, #0a1e0a, #0d2b0d);
}
.collection-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.collection-cell {
  min-width: 0;
  aspect-ratio: 1;
  background: rgba(20, 40, 20, 0.64);
  border: 1px solid rgba(78, 152, 86, 0.28);
  border-radius: 13px;
  padding: 8px;
  display: grid;
  place-items: center;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.collection-cell.is-hovered {
  background: rgba(45, 122, 45, 0.20);
  border-color: var(--cell-accent);
  box-shadow: 0 8px 24px var(--cell-glow);
  transform: scale(1.04);
}
.collection-bug {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.collection-bug svg {
  width: 100%;
  height: 100%;
  display: block;
}
.collection-locked-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  opacity: 0.38;
}
.collection-locked {
  aspect-ratio: 1;
  background: rgba(10, 20, 10, 0.82);
  border: 1px solid rgba(78, 152, 86, 0.18);
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: rgba(168, 216, 168, 0.48);
  font-weight: 900;
  font-size: 18px;
}
.collection-note {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: rgba(168, 216, 168, 0.50);
  font-weight: 800;
}

/* ===== Footer ===== */
footer {
  background: var(--bg-0);
  border-top: 1px solid var(--bg-3);
  padding: 40px 0;
}
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo-bug {
  width: 30px;
  height: 30px;
  background: var(--bg-4);
  border-radius: 8px;
  padding: 3px;
  border: 1px solid var(--bg-6);
}
.footer-logo span { font-weight: 900; font-size: 16px; letter-spacing: 0.06em; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a,
.footer-links button {
  color: var(--text-3);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.footer-links a:hover,
.footer-links button:hover { color: var(--leaf-6); }
footer small { color: var(--text-3); font-size: 12px; }

.legal-modal-ov {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.legal-modal {
  width: min(680px, 100%);
  max-height: min(78vh, 720px);
  overflow-y: auto;
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(168, 216, 168, 0.22);
  background:
    radial-gradient(circle at 20% 0%, rgba(93, 200, 93, 0.14), transparent 35%),
    linear-gradient(145deg, rgba(17, 35, 18, 0.98), rgba(6, 14, 7, 0.98));
  box-shadow: 0 24px 80px rgba(0,0,0,0.62);
  padding: 30px;
}

.legal-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(168, 216, 168, 0.2);
  background: rgba(255,255,255,0.06);
  color: var(--text-0);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.legal-modal-kicker {
  color: var(--leaf-6);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}

.legal-modal h2 {
  font-size: clamp(24px, 4vw, 34px);
  margin-bottom: 20px;
}

.legal-modal-body {
  display: grid;
  gap: 10px;
}

.legal-modal-body section {
  padding-top: 2px;
}

.legal-modal-body h3 {
  color: var(--gold-6);
  font-size: 15px;
  margin-bottom: 4px;
}

.legal-modal-body p {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 560px) {
  .legal-modal-ov {
    align-items: flex-end;
    padding: 12px;
  }
  .legal-modal {
    max-height: 82vh;
    padding: 24px 20px 28px;
    border-radius: 24px;
  }
}
.footer-note-link { color: var(--leaf-6); text-decoration: none; }
.footer-note-link:hover { color: var(--leaf-7); }

/* ===== Tweaks panel ===== */
.tweaks-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: var(--bg-3); border: 1px solid var(--bg-6);
  border-radius: var(--radius-lg); padding: 18px 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  width: 260px; display: none; font-size: 13px;
}
.tweaks-panel.visible { display: block; }
.tweaks-panel h4 { margin: 0 0 14px; font-size: 14px; color: var(--text-0); }
.tweaks-row { display: grid; gap: 6px; margin-bottom: 14px; }
.tweaks-row > label { font-weight: 700; font-size: 11px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; }
.tweaks-row .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks-row .opts button {
  background: var(--bg-4); border: 1px solid var(--bg-6);
  color: var(--text-2); padding: 5px 12px; border-radius: 999px;
  font-size: 12px; cursor: pointer; font-family: inherit; transition: all 0.1s;
}
.tweaks-row .opts button.active {
  background: var(--leaf-4); color: var(--bg-0); border-color: var(--leaf-4);
}

/* ===== Section wave dividers ===== */
.wave-divider {
  display: block; width: 100%; overflow: hidden;
  line-height: 0; background: transparent;
}
.wave-divider svg { display: block; width: 100%; }

/* ===== Hero bokeh lights ===== */
.bokeh {
  position: absolute; border-radius: 50%;
  filter: blur(60px); pointer-events: none; z-index: 0;
  animation: bokehPulse 6s ease-in-out infinite;
}
@keyframes bokehPulse {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50%       { opacity: 0.22; transform: scale(1.12); }
}

/* ===== Dex book leather texture ===== */
.dex-book {
  background: var(--bg-3);
  border: 1px solid var(--bg-5);
  border-radius: var(--radius-xl);
  padding: 28px;
  max-width: 980px; margin: 0 auto; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(255,255,255,0.012) 28px,
      rgba(255,255,255,0.012) 29px
    );
}

/* ===== Rarity card glow on hover ===== */
.rarity-card.n:hover  { box-shadow: 0 0 32px rgba(122,170,80,0.15); border-color: var(--rar-n); }
.rarity-card.r:hover  { box-shadow: 0 0 32px rgba(74,140,200,0.15); border-color: var(--rar-r); }
.rarity-card.sr:hover { box-shadow: 0 0 32px rgba(160,96,208,0.15); border-color: var(--rar-sr); }
.rarity-card.ssr:hover{ box-shadow: 0 0 32px rgba(232,160,48,0.2);  border-color: var(--rar-ssr); }
.rarity-card { transition: border-color 0.2s, box-shadow 0.2s; }

.bg-bugs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bg-bug { position: absolute; opacity: 0.06; animation: bgFloat 12s ease-in-out infinite; }
@keyframes bgFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-24px) rotate(calc(var(--r) + 10deg)); }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .hero { padding: 72px 0 64px; min-height: auto; }
  .hero-grid, .level-grid, .parent-grid, .cta-inner { grid-template-columns: 1fr !important; }
  .hero-grid { gap: 42px; }
  .cta-inner { gap: 44px; }
  .cta-copy { text-align: center; }
  .cta-copy p { margin-left: auto; margin-right: auto; }
  .cta-actions { align-items: center; }
  .collection-card { max-width: 430px; }
  .feature-grid { grid-template-columns: 1fr; }
  .rarity-grid { grid-template-columns: repeat(2,1fr); }
  .flow-steps { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .dex-pages { grid-template-columns: 1fr; }
  .dex-divider { display: none; }
  .nav-links a:not(.nav-cta) { display: none; }
  .phone { transform: rotate(0deg); width: min(290px, 88vw); }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav-inner { height: auto; min-height: 60px; padding: 10px 0; gap: 10px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo-badge { width: 34px; height: 34px; }
  .aud-btn { padding: 5px 10px; font-size: 12px; }
  .nav-links { display: none; }
  .hero h1 { font-size: clamp(30px, 8.4vw, 38px); white-space: normal; }
  .hero-title-line { white-space: nowrap !important; }
  .hero-lead { font-size: 15px; }
  .hero-ctas { align-items: stretch; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary { justify-content: center; width: 100%; }
  .hero-meta { gap: 12px 16px; }
  section { padding: 58px 0; }
  .sec-head { margin-bottom: 36px; }
  .flow-step { padding: 24px 18px; }
  .feat-tabs { overflow-x: auto; }
  .feat-tab { min-width: 110px; justify-content: center; }
  .feat-panel { padding: 24px 18px; }
  .feat-panel-title { font-size: 30px; }
  .rarity-grid, .parent-grid { grid-template-columns: 1fr; }
  .dex-book { padding: 18px; }
  .dex-mini-grid { grid-template-columns: repeat(4,1fr) !important; }
  .final-cta { padding: 64px 0 72px; }
  .cta-copy h2 { font-size: clamp(31px, 9vw, 40px); }
  .cta-main-btn { width: 100%; justify-content: center; padding: 15px 24px; }
  .collection-card { border-radius: 18px; }
  .collection-head { padding: 11px 13px; }
  .collection-body { padding: 10px; }
  .collection-row,
  .collection-locked-row { gap: 6px; }
  .collection-cell { border-radius: 10px; padding: 5px; }
  .collection-locked { border-radius: 10px; }
}

/* ===== UX refinements: kid copy, mobile dex feedback, CTA preview role ===== */
.dex-mini {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}
.dex-mini:disabled {
  cursor: default;
}
.dex-mini.selected {
  transform: scale(1.04);
}
.dex-mini-selected-label {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(8, 24, 10, 0.86);
  border: 1px solid rgba(168, 216, 88, 0.45);
  color: var(--gold-6);
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
}
.dex-mobile-result {
  display: none;
}
.collection-preview {
  pointer-events: none;
}
.collection-caption {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: 0 auto 10px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(168, 216, 88, 0.28);
  background: rgba(8, 24, 10, 0.58);
  color: var(--leaf-6);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

@keyframes dexResultPop {
  0% { transform: translateY(4px) scale(0.98); opacity: 0.45; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 640px) {
  .dex-page-title {
    letter-spacing: 0.1em;
  }
  .dex-mini-grid {
    gap: 8px;
  }
  .dex-mini {
    min-height: 58px;
    border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
  }
  .dex-mini.selected {
    box-shadow: 0 0 0 3px rgba(255, 218, 96, 0.18), 0 0 18px rgba(255, 218, 96, 0.28) !important;
  }
  .dex-mini-selected-label {
    display: block;
  }
  .dex-mobile-result {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(168, 216, 88, 0.3);
    background: linear-gradient(135deg, rgba(22, 46, 24, 0.95), rgba(8, 24, 10, 0.92));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 24px rgba(0,0,0,0.22);
    animation: dexResultPop 0.2s ease-out;
  }
  .dex-mobile-result-bug {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bg-4);
    border: 1px solid var(--bg-6);
    padding: 4px;
  }
  .dex-mobile-result-bug svg {
    width: 100%;
    height: 100%;
  }
  .dex-mobile-result strong,
  .dex-mobile-result span {
    display: block;
  }
  .dex-mobile-result strong {
    color: var(--leaf-6);
    font-size: 11px;
    margin-bottom: 2px;
  }
  .dex-mobile-result span {
    color: var(--text-0);
    font-size: 15px;
    font-weight: 900;
  }
  .collection-caption {
    font-size: 11px;
    margin-bottom: 8px;
  }
}


/* ===== Final mobile template fixes: hero and dex selection feedback ===== */
.dex-mobile-current {
  display: none;
}

@keyframes dexCurrentPop {
  0% { transform: translateY(4px) scale(0.985); opacity: 0.58; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes dexCurrentFlash {
  0% { box-shadow: 0 0 0 0 rgba(255, 218, 96, 0.0), 0 16px 34px rgba(0,0,0,0.28); }
  45% { box-shadow: 0 0 0 5px rgba(255, 218, 96, 0.18), 0 18px 40px rgba(0,0,0,0.36); }
  100% { box-shadow: 0 0 0 0 rgba(255, 218, 96, 0.0), 0 16px 34px rgba(0,0,0,0.28); }
}

@media (max-width: 900px) {
  .phone-wrap {
    max-width: 100%;
    overflow: hidden;
  }
  .phone {
    width: min(260px, 78vw);
  }
}

@media (max-width: 640px) {
  html,
  body,
  #root {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav {
    background: rgba(5, 16, 7, 0.94);
  }

  .nav-inner {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    align-items: center;
    min-height: 62px;
    height: auto;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .logo {
    font-size: 18px;
    gap: 8px;
    min-width: 0;
  }

  .logo-badge {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .audience-toggle {
    justify-self: end;
    max-width: 100%;
    flex-shrink: 1;
  }

  .aud-btn {
    padding: 6px 12px;
    font-size: 12px;
    letter-spacing: 0;
  }

  .hero {
    min-height: auto !important;
    padding: 54px 0 42px !important;
    justify-content: flex-start;
    background:
      radial-gradient(ellipse 380px 260px at 72% 8%, rgba(84, 160, 92, 0.18), transparent 68%),
      linear-gradient(180deg, #071308 0%, #0b1e0c 64%, #0a170b 100%);
  }

  .forest-bg {
    opacity: 0.32;
  }

  .forest-bg > :not(:first-child) {
    display: none !important;
  }

  .hero::before {
    opacity: 0.025;
    background-size: 260px 260px;
  }

  .hero-grid {
    display: block !important;
  }

  .hero-kicker {
    margin-bottom: 14px;
    font-size: 11px;
    padding: 5px 11px;
    background: rgba(74, 125, 82, 0.26);
  }


  .hero-wordmark-wrap {
    width: min(330px, 96vw);
    margin: -4px 0 12px;
    transform: rotate(-1deg);
  }

  .hero h1 {
    font-size: clamp(30px, 8.4vw, 38px) !important;
    line-height: 1.2;
    margin-bottom: 16px;
    white-space: normal !important;
    max-width: 100%;
  }

  .hero-title-line {
    display: block;
    white-space: nowrap !important;
  }

  .hero-lead {
    font-size: 14px !important;
    line-height: 1.78;
    margin-bottom: 20px;
    color: rgba(211, 230, 210, 0.86);
  }

  .hero-ctas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
    min-height: 54px;
    justify-content: center;
    padding: 14px 18px;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
  }

  .hero-badge {
    min-width: 0;
    gap: 7px;
    padding: 9px 10px;
    border-radius: 14px;
    background: rgba(16, 40, 20, 0.68);
    border: 1px solid rgba(168, 216, 168, 0.14);
    font-size: 12px;
    line-height: 1.25;
    color: rgba(226, 238, 223, 0.82);
  }

  .hero-badge .ico {
    width: 17px;
    height: 17px;
  }

  .phone-wrap {
    display: none !important;
  }

  .wave-divider {
    display: none;
  }

  .dex {
    overflow: visible;
  }

  .dex-book {
    overflow: visible;
    padding: 16px !important;
    border-radius: 22px;
  }

  .dex-pages {
    display: block !important;
  }

  .dex-detail-page {
    display: none;
  }

  .dex-grid-page {
    min-height: auto;
  }

  .dex-grid-page .dex-page-title {
    position: relative;
    z-index: 2;
    margin-bottom: 12px;
  }

  .dex-mobile-current {
    position: sticky;
    top: 74px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    padding: 11px 12px;
    border-radius: 18px;
    border: 1px solid rgba(168, 216, 88, 0.34);
    background:
      radial-gradient(circle at 14% 50%, rgba(255, 218, 96, 0.16), transparent 36%),
      linear-gradient(135deg, rgba(20, 46, 22, 0.98), rgba(7, 22, 9, 0.96));
    box-shadow: 0 16px 34px rgba(0,0,0,0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: dexCurrentPop 0.18s ease-out;
  }

  .dex-mobile-current.just-changed {
    animation: dexCurrentPop 0.18s ease-out, dexCurrentFlash 0.85s ease-out;
    border-color: rgba(255, 218, 96, 0.72);
  }

  .dex-mobile-current-bug {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(168, 216, 168, 0.18);
    padding: 5px;
  }

  .dex-mobile-current-bug svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  .dex-mobile-current-text {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .dex-mobile-current-text strong {
    color: var(--gold-6);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
  }

  .dex-mobile-current-text span {
    color: var(--text-0);
    font-size: 17px;
    line-height: 1.25;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dex-mobile-current-text em {
    font-style: normal;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
  }

  .dex-mini-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .dex-mini {
    min-height: 72px !important;
    border-radius: 15px !important;
    background: rgba(30, 62, 32, 0.74);
    touch-action: manipulation;
  }

  .dex-mini:not(.locked):active {
    transform: scale(0.97) !important;
  }

  .dex-mini.selected {
    border-color: var(--gold-6) !important;
    box-shadow:
      0 0 0 3px rgba(255, 218, 96, 0.20),
      0 0 22px rgba(255, 218, 96, 0.28) !important;
  }

  .dex-mini-selected-label {
    bottom: 5px;
    padding: 3px 8px;
    background: rgba(255, 218, 96, 0.94);
    color: #13210d;
    border: none;
    font-size: 10px;
  }

  .dex-mobile-result {
    display: none !important;
  }
}


/* ===== Hard guard against mobile horizontal scroll ===== */
html, body, #root, .nav, .hero, section, footer {
  max-width: 100vw;
}

@media (max-width: 420px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .logo {
    font-size: 16px;
  }
  .logo-sub {
    font-size: 9px;
    letter-spacing: 0.14em;
  }
  .logo-badge {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .aud-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .hero-wordmark-wrap {
    width: min(300px, 96vw);
  }

  .hero h1 {
    font-size: clamp(29px, 8.1vw, 34px) !important;
  }
  .hero-lead {
    font-size: 13.5px !important;
  }
  .hero-badge {
    font-size: 11.5px;
    padding: 8px 8px;
  }
}

@media (max-width: 360px) {
  .logo-sub {
    display: none;
  }
  .aud-btn {
    padding: 5px 8px;
    font-size: 10.5px;
  }
  .hero-title-line {
    white-space: normal !important;
  }
  .hero-meta {
    grid-template-columns: 1fr;
  }
}

/* ===== Final hero art direction v2 ｜ glowing forest concept ===== */
.hero {
  padding: 96px 0 92px;
  min-height: calc(100vh - 64px);
  background: #050d07;
  overflow: hidden;
  isolation: isolate;
}
.hero::before { display: none; }
.hero > * { position: relative; z-index: 2; }

.forest-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  background: #050d07;
}
.forest-base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 620px 480px at 70% 40%, rgba(112, 218, 88, 0.20), transparent 70%),
    radial-gradient(ellipse 520px 360px at 24% 47%, rgba(78, 162, 86, 0.14), transparent 72%),
    radial-gradient(ellipse 820px 520px at 50% 95%, rgba(38, 72, 34, 0.48), transparent 70%),
    linear-gradient(180deg, #050a08 0%, #07150c 34%, #0b2412 62%, #050b06 100%);
}
.forest-depth {
  position: absolute;
  inset: 0;
  opacity: .64;
  mix-blend-mode: screen;
}
.forest-depth-a {
  background:
    radial-gradient(circle at 8% 18%, rgba(222, 255, 148, .12) 0 8px, transparent 13px),
    radial-gradient(circle at 94% 24%, rgba(228, 255, 118, .14) 0 6px, transparent 12px),
    radial-gradient(circle at 63% 16%, rgba(228, 255, 118, .10) 0 4px, transparent 10px),
    radial-gradient(circle at 54% 70%, rgba(228, 255, 118, .10) 0 5px, transparent 12px);
  filter: blur(.2px);
}
.forest-depth-b {
  background:
    radial-gradient(ellipse 360px 180px at 18% 70%, rgba(36, 116, 46, .12), transparent 72%),
    radial-gradient(ellipse 300px 220px at 88% 70%, rgba(62, 140, 52, .12), transparent 72%),
    radial-gradient(ellipse 460px 360px at 73% 33%, rgba(130, 232, 82, .08), transparent 74%);
  filter: blur(4px);
}
.forest-depth-c {
  background-image: radial-gradient(circle, rgba(231,255,210,.075) 1px, transparent 1.6px);
  background-size: 170px 112px;
  opacity: .52;
}
.forest-canopy,
.forest-trail,
.forest-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.forest-canopy-back { opacity: .78; }
.forest-trunks path { fill: rgba(3, 12, 7, .74); }
.forest-leaf-masses ellipse { fill: rgba(7, 24, 13, .86); }
.forest-leaf-dots circle { fill: rgba(29, 67, 31, .54); }
.forest-canopy-mid {
  top: auto;
  bottom: -1px;
  height: 74%;
  opacity: .46;
  filter: blur(.6px);
}
.forest-canopy-mid ellipse { fill: rgba(3, 15, 7, .82); }
.forest-trail {
  opacity: .88;
  z-index: 2;
}
.trail-glow {
  fill: none;
  stroke: rgba(164, 235, 91, .22);
  stroke-width: 13;
  stroke-linecap: round;
  filter: url(#trailGlow);
}
.trail-line {
  fill: none;
  stroke: rgba(156, 226, 87, .82);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: 3 14;
}
.trail-dot-gold circle { fill: #ffe66a; }
.trail-dot-green circle { fill: #a8ec59; }
.trail-leaf path:first-child { fill: rgba(119, 219, 82, .72); }
.trail-leaf path:last-child {
  fill: none;
  stroke: rgba(213, 255, 160, .42);
  stroke-width: 3;
  stroke-linecap: round;
}
.forest-frame {
  inset: auto;
  opacity: .38;
  z-index: 3;
}
.forest-frame path:first-child { fill: rgba(106, 186, 70, .46); }
.forest-frame path:last-child {
  fill: none;
  stroke: rgba(187, 246, 122, .18);
  stroke-width: 5;
  stroke-linecap: round;
}
.forest-frame-left {
  left: -34px;
  top: 70px;
  width: 280px;
  height: 260px;
}
.forest-frame-right {
  right: -22px;
  top: 18px;
  width: 260px;
  height: 320px;
}
.forest-fireflies i {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(235, 255, 116, .9);
  box-shadow: 0 0 10px 4px rgba(198, 255, 84, .25), 0 0 22px 9px rgba(107, 220, 72, .13);
  animation: fireflyPulse 3.2s ease-in-out infinite;
  z-index: 4;
}
.forest-vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    radial-gradient(ellipse 84% 74% at 50% 42%, transparent 0%, rgba(0,0,0,.12) 58%, rgba(0,0,0,.56) 100%),
    linear-gradient(180deg, rgba(0,0,0,.24) 0%, transparent 20%, transparent 72%, rgba(0,0,0,.48) 100%);
}

.hero-grid {
  grid-template-columns: minmax(0, .98fr) minmax(330px, .92fr);
  gap: clamp(36px, 5vw, 74px);
  align-items: center;
}
.hero-kicker {
  background: rgba(33, 62, 35, .78);
  border: 1px solid rgba(185, 234, 169, .38);
  color: rgba(238, 249, 229, .92);
  box-shadow: 0 12px 30px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.10);
}
.hero-wordmark-wrap {
  width: min(375px, 100%);
  margin: -2px 0 20px;
  filter: drop-shadow(0 11px 18px rgba(0,0,0,.38)) drop-shadow(0 0 14px rgba(137, 255, 82, .12));
}
.hero h1 {
  font-family: 'M PLUS Rounded 1c', 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-size: clamp(42px, 4.25vw, 60px);
  line-height: 1.13;
  letter-spacing: .005em;
  margin-bottom: 22px;
  text-shadow: 0 5px 20px rgba(0,0,0,.48), 0 0 1px rgba(255,255,255,.25);
}
.hero h1 .hl {
  color: #ffd75c;
  text-shadow: 0 5px 20px rgba(0,0,0,.46), 0 0 20px rgba(255, 203, 78, .14);
}
.hero-lead {
  color: rgba(232, 244, 226, .88);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.9;
  text-shadow: 0 3px 16px rgba(0,0,0,.42);
}
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #6edb73, #43ae4c);
  border: 1px solid rgba(201,255,185,.26);
  box-shadow: 0 13px 34px rgba(62, 199, 71, .24), inset 0 1px 0 rgba(255,255,255,.24);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #7bed7d, #47bc51);
}
.btn-secondary {
  background: rgba(9, 20, 12, .48);
  color: rgba(242, 245, 230, .92);
  border-color: rgba(202, 236, 177, .28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.hero-meta {
  gap: 18px 22px;
}
.hero-badge {
  color: rgba(224, 238, 218, .86);
  text-shadow: 0 3px 12px rgba(0,0,0,.45);
}
.hero-badge .ico {
  color: #95d46d;
  filter: drop-shadow(0 0 8px rgba(146, 234, 89, .24));
}

.phone-wrap {
  transform: translateX(8px);
  align-self: center;
  overflow: visible;
}
.phone-wrap::before {
  inset: 2% -10% 8% -8%;
  background:
    radial-gradient(circle at 50% 40%, rgba(163, 242, 94, .26) 0%, rgba(120, 224, 84, .15) 24%, rgba(66, 152, 67, .06) 52%, transparent 74%),
    radial-gradient(circle at 48% 72%, rgba(255, 227, 88, .12) 0%, transparent 35%);
  filter: blur(12px);
  opacity: .92;
  z-index: 0;
}
.phone-wrap::after {
  left: 8%;
  right: 1%;
  bottom: -5%;
  height: 108px;
  border-radius: 52% 48% 42% 50% / 56% 50% 42% 40%;
  background:
    radial-gradient(circle at 56% 12%, rgba(205, 250, 102, .40), transparent 14%),
    radial-gradient(circle at 46% 30%, rgba(112, 188, 65, .32), transparent 34%),
    linear-gradient(165deg, rgba(58, 80, 36, .88), rgba(21, 25, 15, .96) 62%, rgba(5, 10, 5, 1));
  box-shadow: 0 32px 44px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.10);
  filter: blur(.2px);
  transform: rotate(-8deg);
  z-index: 0;
}
.phone {
  width: min(350px, 31vw);
  border-radius: 54px;
  padding: 11px;
  transform: rotate(4deg) translateY(10px);
  background: linear-gradient(135deg, #020403, #020202 42%, #17220e 100%);
  box-shadow: 0 44px 88px rgba(0,0,0,.68), 0 0 0 1px rgba(221,255,146,.18), 0 0 52px rgba(151,235,79,.12);
}
.phone-screen {
  min-height: 610px !important;
  border-radius: 44px;
}
.phone-notch {
  height: 11px;
  margin-top: 11px;
}

@media (max-width: 900px) {
  .hero {
    padding: 72px 0 64px;
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 34px;
  }
  .phone-wrap {
    transform: none;
  }
  .phone {
    width: min(310px, 82vw) !important;
    transform: rotate(2.2deg) translateY(0) !important;
  }
  .phone-screen {
    min-height: 585px !important;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    grid-template-columns: auto 1fr;
  }
  .nav-links {
    display: none !important;
  }
  .audience-toggle {
    justify-self: end;
  }
  .hero {
    padding: 38px 0 54px !important;
    background: #050d07 !important;
  }
  .forest-bg {
    opacity: 1 !important;
  }
  .forest-bg > :not(:first-child) {
    display: block !important;
  }
  .forest-trail {
    opacity: .46;
    transform: translate(-170px, 12px) scale(1.22);
  }
  .forest-frame-left {
    left: -78px;
    top: 10px;
    opacity: .24;
  }
  .forest-frame-right {
    right: -84px;
    top: 18px;
    opacity: .2;
  }
  .forest-canopy-mid {
    opacity: .30;
  }
  .hero-grid {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }
  .hero-wordmark-wrap {
    width: min(330px, 96vw);
    margin-bottom: 16px;
  }
  .hero h1 {
    font-size: clamp(34px, 9.4vw, 44px) !important;
    line-height: 1.15;
    margin-bottom: 18px;
  }
  .hero-title-line {
    white-space: normal !important;
  }
  .hero-lead {
    font-size: 14px !important;
    line-height: 1.82;
    margin-bottom: 22px;
  }
  .hero-ctas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
  }
  .hero-badge {
    background: rgba(5, 18, 9, .58);
    border: 1px solid rgba(194, 236, 173, .16);
    border-radius: 15px;
  }
  .phone-wrap {
    display: grid !important;
    max-width: 100%;
    overflow: visible;
    margin-top: 0;
    transform: none;
  }
  .phone-wrap::before {
    inset: 7% 6% 7% 6%;
    opacity: .62;
  }
  .phone-wrap::after {
    left: 14%;
    right: 8%;
    bottom: -4%;
    height: 64px;
    opacity: .82;
  }
  .phone {
    width: min(270px, 76vw) !important;
    border-radius: 46px;
    padding: 9px;
    transform: rotate(1.5deg) !important;
  }
  .phone-screen {
    min-height: 518px !important;
    border-radius: 38px;
  }
}

@media (max-width: 420px) {
  .hero-wordmark-wrap {
    width: min(308px, 96vw);
  }
  .hero h1 {
    font-size: clamp(30px, 8.7vw, 38px) !important;
  }
  .phone {
    width: min(248px, 78vw) !important;
  }
  .phone-screen {
    min-height: 490px !important;
  }
}

.hero-parent .hero-title-line {
  white-space: normal;
}
.hero-parent h1 {
  font-size: clamp(36px, 3.7vw, 54px);
  max-width: 680px;
}

/* ===== Hero fine tune v3 ｜ balance / parent copy / spacing ===== */
.hero {
  padding: 78px 0 54px !important;
  min-height: auto !important;
}

.wave-divider svg {
  height: 34px !important;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, .72fr) !important;
  gap: clamp(34px, 4.1vw, 58px) !important;
  align-items: center !important;
}

.hero-wordmark-wrap {
  width: min(342px, 100%) !important;
  margin: -4px 0 18px !important;
}

.hero h1 {
  font-size: clamp(40px, 3.8vw, 56px) !important;
  line-height: 1.12 !important;
  margin-bottom: 20px !important;
  max-width: 660px;
}

.hero-parent h1 {
  font-size: clamp(35px, 3.05vw, 46px) !important;
  max-width: 720px !important;
  letter-spacing: -.01em;
}

.hero-parent .hero-title-line {
  white-space: nowrap !important;
}

.hero-lead {
  max-width: 620px;
  font-size: 15.8px !important;
  line-height: 1.82 !important;
  margin-bottom: 28px !important;
}

.hero-parent .hero-lead {
  max-width: 650px;
  font-size: 15.4px !important;
  line-height: 1.86 !important;
}

.hero-ctas {
  margin-top: 0 !important;
}

.hero-meta {
  margin-top: 24px !important;
  gap: 15px 20px !important;
}

/* background: quieter, less decorative, more readable */
.forest-bg {
  opacity: .86 !important;
}
.forest-base {
  background:
    radial-gradient(ellipse 520px 380px at 68% 39%, rgba(112, 218, 88, 0.14), transparent 72%),
    radial-gradient(ellipse 440px 300px at 24% 47%, rgba(78, 162, 86, 0.09), transparent 74%),
    radial-gradient(ellipse 740px 420px at 50% 95%, rgba(38, 72, 34, 0.36), transparent 72%),
    linear-gradient(180deg, #050a08 0%, #07130b 36%, #09200f 62%, #050b06 100%) !important;
}
.forest-depth { opacity: .46 !important; }
.forest-depth-b { opacity: .70 !important; }
.forest-depth-c { opacity: .28 !important; }
.forest-canopy-back { opacity: .42 !important; }
.forest-leaf-masses ellipse { fill: rgba(7, 24, 13, .70) !important; }
.forest-leaf-dots circle { fill: rgba(29, 67, 31, .22) !important; }
.forest-canopy-mid { opacity: .25 !important; }
.forest-trail { opacity: .58 !important; }
.trail-glow { stroke: rgba(164, 235, 91, .13) !important; stroke-width: 10 !important; }
.trail-line { stroke: rgba(156, 226, 87, .56) !important; stroke-width: 2.2 !important; }
.trail-leaf { opacity: .58 !important; }
.forest-frame { opacity: .20 !important; }
.forest-fireflies i {
  opacity: .72 !important;
  box-shadow: 0 0 8px 3px rgba(198, 255, 84, .18), 0 0 18px 7px rgba(107, 220, 72, .09) !important;
}
.forest-vignette {
  background:
    radial-gradient(ellipse 78% 68% at 50% 42%, transparent 0%, rgba(0,0,0,.16) 58%, rgba(0,0,0,.64) 100%),
    linear-gradient(180deg, rgba(0,0,0,.30) 0%, transparent 22%, transparent 72%, rgba(0,0,0,.54) 100%) !important;
}

/* phone: smaller and less dominant */
.phone-wrap {
  transform: translateX(-2px) !important;
}
.phone-wrap::before {
  inset: 6% -2% 13% -2% !important;
  opacity: .62 !important;
  filter: blur(14px) !important;
}
.phone-wrap::after {
  left: 14% !important;
  right: 10% !important;
  bottom: 0 !important;
  height: 72px !important;
  opacity: .72 !important;
}
.phone {
  width: min(304px, 25vw) !important;
  border-radius: 46px !important;
  padding: 9px !important;
  transform: rotate(3.2deg) translateY(2px) !important;
  box-shadow: 0 34px 64px rgba(0,0,0,.60), 0 0 0 1px rgba(221,255,146,.14), 0 0 36px rgba(151,235,79,.09) !important;
}
.phone-screen {
  min-height: 528px !important;
  border-radius: 38px !important;
}
.phone-notch {
  height: 9px !important;
  margin-top: 9px !important;
}

/* parent mode: more adult, cleaner hierarchy */
.hero-parent .hero-kicker {
  background: rgba(28, 54, 31, .72) !important;
}
.hero-parent .hero-wordmark-wrap {
  margin-bottom: 14px !important;
}
.hero-parent .hero-meta {
  max-width: 560px;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .62fr) !important;
    gap: 34px !important;
  }
  .phone {
    width: min(282px, 25vw) !important;
  }
  .phone-screen {
    min-height: 500px !important;
  }
  .hero-parent h1 {
    font-size: clamp(33px, 3.2vw, 42px) !important;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 54px 0 42px !important;
  }
  .hero-grid {
    gap: 28px !important;
  }
  .phone {
    width: min(286px, 70vw) !important;
  }
  .phone-screen {
    min-height: 520px !important;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 34px 0 38px !important;
  }
  .hero-wordmark-wrap {
    width: min(292px, 92vw) !important;
  }
  .hero h1 {
    font-size: clamp(32px, 8.7vw, 40px) !important;
    max-width: 100% !important;
  }
  .hero-parent h1 {
    font-size: clamp(30px, 8.0vw, 37px) !important;
  }
  .hero-parent .hero-title-line {
    white-space: normal !important;
  }
  .hero-lead,
  .hero-parent .hero-lead {
    font-size: 13.8px !important;
    line-height: 1.76 !important;
    margin-bottom: 20px !important;
  }
  .hero-meta {
    margin-top: 16px !important;
  }
  .forest-trail {
    opacity: .30 !important;
  }
  .forest-canopy-back,
  .forest-frame {
    opacity: .18 !important;
  }
  .phone {
    width: min(236px, 68vw) !important;
    transform: rotate(1deg) !important;
  }
  .phone-screen {
    min-height: 456px !important;
  }
  .phone-wrap::before {
    opacity: .42 !important;
  }
  .phone-wrap::after {
    height: 48px !important;
  }
}

@media (max-width: 420px) {
  .hero-wordmark-wrap {
    width: min(276px, 92vw) !important;
  }
  .phone {
    width: min(220px, 70vw) !important;
  }
  .phone-screen {
    min-height: 434px !important;
  }
}

/* ===== Final polish v4 ｜ footer CTA desktop + real-device mobile hero ===== */
/* Bottom CTA: make desktop button area intentional, not stacked awkwardly */
@media (min-width: 901px) {
  .final-cta {
    padding: 66px 0 78px !important;
  }

  .cta-inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(330px, 390px) !important;
    gap: clamp(44px, 5vw, 72px) !important;
  }

  .cta-copy h2 {
    font-size: clamp(34px, 3.7vw, 48px) !important;
    line-height: 1.22 !important;
    margin-bottom: 18px !important;
  }

  .cta-copy p {
    max-width: 520px !important;
    margin-bottom: 28px !important;
  }

  .cta-actions {
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
  }

  .cta-main-btn {
    min-width: 224px !important;
    justify-content: center !important;
    padding: 16px 28px !important;
  }

  .cta-url {
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 16px !important;
    border-radius: 14px !important;
    background: rgba(20, 35, 22, 0.76) !important;
    border-color: rgba(146, 208, 118, 0.28) !important;
    color: rgba(194, 229, 190, 0.82) !important;
  }

  .collection-card {
    width: min(100%, 386px) !important;
  }
}

/* Mobile: prevent phone mock from dominating and avoid internal text wrapping */
@media (max-width: 640px) {
  .hero {
    padding: 26px 0 30px !important;
  }

  .hero-grid {
    gap: 20px !important;
  }

  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }

  .hero-badge {
    min-height: 48px !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
  }

  .phone-wrap {
    margin-top: 4px !important;
    transform: none !important;
  }

  .phone-wrap::before {
    opacity: .30 !important;
    inset: 8% 14% 10% 14% !important;
  }

  .phone-wrap::after {
    display: none !important;
  }

  .phone {
    width: min(200px, 58vw) !important;
    padding: 7px !important;
    border-radius: 38px !important;
    transform: rotate(0.7deg) !important;
    box-shadow: 0 26px 44px rgba(0,0,0,.54), 0 0 0 1px rgba(221,255,146,.12), 0 0 24px rgba(151,235,79,.08) !important;
  }

  .phone-screen {
    min-height: 382px !important;
    border-radius: 31px !important;
  }

  .phone-notch {
    width: 70px !important;
    height: 7px !important;
    margin-top: 8px !important;
  }

  .phone-screen .phone-notch + div {
    padding: 8px 9px 6px !important;
    gap: 6px !important;
    align-items: center !important;
  }

  .phone-screen .phone-notch + div > div:first-child {
    font-size: 8px !important;
    line-height: 1 !important;
    padding: 4px 7px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    max-width: none !important;
  }

  .phone-screen .phone-notch + div > div:last-child {
    font-size: 8.5px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }

  .phone-screen .phone-notch + div + div {
    margin: 2px 9px 9px !important;
    padding: 20px 12px 18px !important;
    border-radius: 20px !important;
  }

  .phone-screen .phone-notch + div + div > div:nth-child(2) {
    font-size: 8px !important;
    margin-bottom: 6px !important;
  }

  .phone-screen .phone-notch + div + div > div:nth-child(3) {
    font-size: 26px !important;
    line-height: 1.14 !important;
  }

  .phone-screen .phone-notch + div + div + div {
    gap: 7px !important;
    padding: 0 9px !important;
  }

  .phone-screen .phone-notch + div + div + div > div {
    border-radius: 15px !important;
    padding: 13px 6px !important;
    font-size: 18px !important;
    box-shadow: 0 4px 0 rgba(0,0,50,.52) !important;
  }

  .phone-screen .phone-notch + div + div + div > div:nth-child(2) {
    box-shadow: 0 4px 0 #006000, 0 6px 16px rgba(0,200,0,.34) !important;
  }

  .phone-screen .phone-notch + div + div + div + div {
    margin: 11px 9px 0 !important;
    padding: 8px 9px !important;
    gap: 8px !important;
    border-radius: 13px !important;
  }

  .phone-screen .phone-notch + div + div + div + div > div:first-child {
    width: 34px !important;
    height: 34px !important;
  }

  .phone-screen .phone-notch + div + div + div + div > div:last-child > div:nth-child(1) {
    font-size: 7px !important;
  }

  .phone-screen .phone-notch + div + div + div + div > div:last-child > div:nth-child(2) {
    font-size: 11px !important;
  }

  .phone-screen .phone-notch + div + div + div + div > div:last-child > div:nth-child(3) {
    font-size: 7px !important;
  }

  .phone-screen .phone-notch + div + div + div + div + div {
    padding: 7px 2px !important;
  }

  .phone-screen .phone-notch + div + div + div + div + div > div {
    width: 42px !important;
    font-size: 6.8px !important;
  }

  .phone-screen .phone-notch + div + div + div + div + div svg {
    width: 15px !important;
    height: 15px !important;
  }

  .final-cta {
    padding: 48px 0 56px !important;
  }

  .cta-actions {
    width: 100% !important;
    align-items: stretch !important;
  }

  .cta-main-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .cta-url {
    width: fit-content !important;
    align-self: center !important;
  }
}

@media (max-width: 420px) {
  .phone {
    width: min(188px, 56vw) !important;
  }

  .phone-screen {
    min-height: 366px !important;
  }

  .phone-screen .phone-notch + div + div {
    padding: 18px 10px 16px !important;
  }

  .phone-screen .phone-notch + div + div > div:nth-child(3) {
    font-size: 24px !important;
  }
}
