/* TwitcherDeck — td2 homepage styles (Wildwood theme) */

/* -- THEME VARS -------------------------------------------- */
:root {
  --td2-bg:       #0f1a14;
  --td2-bg2:      #0a120d;
  --td2-panel:    #15241b;
  --td2-panel2:   #1b2e22;
  --td2-ink:      #eef3ec;
  --td2-soft:     #8fa896;
  --td2-line:     rgba(255,255,255,0.10);
  --td2-accent:   #5fbf7a;
  --td2-aink:     #06140b;
  --td2-nav:      rgba(16,28,20,0.82);
  --td2-display:  'Fraunces', Georgia, serif;
  --td2-ui:       'Outfit', system-ui, sans-serif;
}

/* -- FONTS -------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,700&family=Outfit:wght@400;500;600;700&display=swap');

/* -- GLOBAL OVERRIDES for homepage -------------------------- */
body.home {
  background: var(--td2-bg);
  color: var(--td2-ink);
  font-family: var(--td2-ui);
}

body.home .td-nav {
  background: var(--td2-nav) !important;
  border-bottom-color: var(--td2-line) !important;
}

body.home .td-nav-logo-text { color: var(--td2-ink) !important; }
body.home .td-nav-logo-text span { color: var(--td2-accent) !important; }
body.home nav ul a { color: var(--td2-soft) !important; }
body.home nav ul a:hover { color: var(--td2-ink) !important; }
body.home .nav-cta { background: var(--td2-accent) !important; color: var(--td2-aink) !important; }

body.home .td-footer { background: var(--td2-panel) !important; }
body.home .td-footer-bottom { border-top-color: var(--td2-line) !important; background: var(--td2-panel) !important; }
body.home .td-footer-copy,
body.home .td-footer-bottom .td-container { color: var(--td2-soft) !important; }
body.home .td-footer-col ul a { color: var(--td2-soft) !important; }
body.home .td-footer-col ul a:hover { color: var(--td2-ink) !important; }
body.home .td-footer-col-title { color: var(--td2-soft) !important; opacity: 0.6; }
body.home .td-footer-logo,
body.home .td-footer-logo span { color: var(--td2-ink) !important; }
body.home .td-footer-conservation { color: rgba(95,191,122,0.6) !important; }

/* -- CONTAINER --------------------------------------------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* -- TYPOGRAPHY -------------------------------------------- */
.td2-eyebrow {
  font-family: var(--td2-ui); font-size: 12.5px; font-weight: 700;
  letter-spacing: 2.4px; text-transform: uppercase; color: var(--td2-accent);
}
.td2-h1 {
  font-family: var(--td2-display); font-weight: 700; letter-spacing: -1.2px;
  line-height: 1.02; font-size: clamp(40px, 6vw, 74px); color: var(--td2-ink);
  margin: 0;
}
.td2-h1 em { font-style: italic; color: var(--td2-accent); }
.td2-h2 {
  font-family: var(--td2-display); font-weight: 700; letter-spacing: -0.6px;
  line-height: 1.06; font-size: clamp(30px, 3.6vw, 46px); color: var(--td2-ink);
  margin: 14px 0 0;
}
.td2-lede {
  font-size: clamp(16.5px, 1.7vw, 19.5px); line-height: 1.6; color: var(--td2-soft);
  max-width: 30em; margin: 22px 0 0;
}
.td2-subhead { font-size: 17px; line-height: 1.6; color: var(--td2-soft); margin: 16px 0 0; }

/* -- BUTTONS ----------------------------------------------- */
.td2-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; cursor: pointer; border: none; font-family: var(--td2-ui);
  font-weight: 700; white-space: nowrap; text-decoration: none;
  transition: transform .14s, filter .14s, background .15s;
}
.td2-btn:hover { transform: translateY(-1px); }
.td2-btn-primary { background: var(--td2-accent); color: var(--td2-aink); padding: 13px 22px; border-radius: 13px; font-size: 15px; box-shadow: 0 14px 30px -12px var(--td2-accent); }
.td2-btn-primary:hover { filter: brightness(1.07); color: var(--td2-aink); }
.td2-btn-ghost { background: transparent; color: var(--td2-ink); padding: 13px 20px; border-radius: 13px; font-size: 15px; box-shadow: inset 0 0 0 1.5px var(--td2-line); }
.td2-btn-ghost:hover { background: var(--td2-panel2); color: var(--td2-ink); }
.td2-btn-lg { padding: 17px 30px; font-size: 16.5px; border-radius: 15px; }
.td2-btn-cta-primary { background: var(--td2-aink); color: var(--td2-accent); box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }
.td2-btn-cta-primary:hover { filter: brightness(1.1); color: var(--td2-accent); }
.td2-btn-cta-ghost { background: transparent; color: var(--td2-aink); box-shadow: inset 0 0 0 1.5px rgba(6,20,11,0.4); }
.td2-btn-cta-ghost:hover { background: rgba(6,20,11,0.1); color: var(--td2-aink); }

/* -- HERO --------------------------------------------------- */
.td2-hero { position: relative; overflow: hidden; background: var(--td2-bg); }
.td2-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 55% at 78% 8%, color-mix(in srgb, var(--td2-accent) 22%, transparent), transparent 70%);
}
.td2-hero-in {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.02fr);
  gap: 36px; padding: 88px 0 80px; position: relative;
}
.td2-hero-copy { display: flex; flex-direction: column; justify-content: center; }
.td2-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--td2-soft);
  background: var(--td2-panel); border: 1px solid var(--td2-line);
  padding: 6px 14px; border-radius: 99px; margin-bottom: 24px; width: fit-content;
}
.td2-cta-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.td2-proof { display: flex; align-items: center; gap: 13px; margin-top: 26px; }
.td2-pile { display: flex; }
.td2-pile span { width: 34px; height: 34px; border-radius: 99px; margin-left: -10px; border: 2.5px solid var(--td2-bg); }
.td2-pile span:first-child { margin-left: 0; }
.td2-proof-text { font-size: 13px; color: var(--td2-soft); line-height: 1.45; }

/* -- FAN OF CARDS ------------------------------------------- */
.td2-hero-side { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.td2-fan { position: relative; width: 320px; height: 380px; margin: 0 auto; }

/* -- CARD --------------------------------------------------- */
.td2-card {
  position: absolute; width: 170px;
  background: #1a2a1e; border: 1.5px solid var(--rc, rgba(255,255,255,0.2));
  border-radius: 14px; padding: 10px;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.5), 0 0 0 1px var(--td2-line);
  transform: rotate(var(--rot, 0deg));
  transform-origin: 50% 110%;
  transition: transform .3s ease, box-shadow .3s ease;
  left: 50%; margin-left: -85px; top: 0;
}
.td2-fan .td2-card:hover {
  transform: rotate(var(--rot,0deg)) translateY(-16px) scale(1.05);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px var(--td2-line);
  z-index: 10 !important;
}

/* small variant for rarity section */
.td2-card-sm { position: relative; width: 100%; transform: none; transform-origin: initial; left: auto; margin: 0; }
.td2-card-sm:hover { transform: translateY(-4px); box-shadow: 0 14px 40px -10px rgba(0,0,0,.4); }

.td2-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.td2-card-rarity { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.td2-card-dotrow { display: flex; gap: 3px; }
.td2-card-dotrow i { width: 6px; height: 6px; border-radius: 99px; display: block; }

.td2-card-art {
  aspect-ratio: 1; border-radius: 9px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: flex-start; padding: 6px 8px;
  inner-shadow: inset 0 0 0 1px rgba(0,0,0,.3);
}
.td2-card-letter {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: var(--td2-display); font-size: 64px; font-weight: 700; font-style: italic;
  color: rgba(255,255,255,0.08); pointer-events: none; user-select: none; line-height: 1;
}
.td2-card-art-label {
  font-size: 7px; font-weight: 700; letter-spacing: 1.2px; color: rgba(255,255,255,0.3);
  text-transform: uppercase; font-family: monospace; position: relative; z-index: 2;
}

/* foil overlay */
.td2-foil-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(125deg,#ff5e9c40,#ffd24d40,#5effc640,#5eb4ff40,#c08bff40,#ff5e9c40);
  background-size: 300% 300%;
  animation: tdFoil 6s ease-in-out infinite;
  mix-blend-mode: color-dodge;
  border-radius: 9px;
}
@keyframes tdFoil {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) { .td2-foil-overlay { animation: none; } }

.td2-card-name { font-family: var(--td2-display); font-size: 11px; font-weight: 700; color: var(--td2-ink); margin-top: 8px; line-height: 1.2; }
.td2-card-sci  { font-size: 9px; font-style: italic; color: var(--td2-soft); margin-top: 2px; }

/* toasts */
.td2-toast {
  position: absolute; display: flex; align-items: center; gap: 7px;
  background: var(--td2-panel); border: 1px solid var(--td2-line);
  border-radius: 99px; padding: 7px 14px; font-size: 12.5px; font-weight: 600;
  color: var(--td2-ink); white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.td2-toast-1 { top: 8%;  right: -10px; animation: tdFloat 4s ease-in-out infinite; }
.td2-toast-2 { bottom: 22%; left: -10px; animation: tdFloat 4s 1.5s ease-in-out infinite; }
@keyframes tdFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* -- STAT BAND --------------------------------------------- */
.td2-stats-band { background: var(--td2-bg); border-top: 1px solid var(--td2-line); border-bottom: 1px solid var(--td2-line); }
.td2-stats { display: flex; flex-wrap: wrap; gap: 18px; padding: 30px 0; }
.td2-stat { flex: 1; min-width: 150px; }
.td2-stat-n { font-family: var(--td2-display); font-weight: 700; font-size: 38px; letter-spacing: -1px; color: var(--td2-ink); line-height: 1; }
.td2-stat-l { font-size: 13.5px; color: var(--td2-soft); margin-top: 9px; font-weight: 600; }

/* -- SECTIONS ---------------------------------------------- */
.td2-section { padding: 86px 0; background: var(--td2-bg); }
.td2-section-alt { background: var(--td2-panel2); }
.td2-section-head { max-width: 680px; margin-bottom: 50px; }
.td2-center { margin-left: auto; margin-right: auto; text-align: center; }

/* -- STEPS -------------------------------------------------- */
.td2-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.td2-step {
  background: var(--td2-panel); border: 1px solid var(--td2-line);
  border-radius: 22px; padding: 30px 28px 32px; position: relative; overflow: hidden;
}
.td2-step-n {
  font-family: var(--td2-display); font-weight: 700; font-size: 15px;
  width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center;
  color: var(--td2-aink); background: var(--td2-accent); margin-bottom: 22px;
}
.td2-step-h { font-family: var(--td2-display); font-weight: 700; font-size: 23px; letter-spacing: -0.3px; color: var(--td2-ink); margin: 0 0 9px; }
.td2-step-p { font-size: 15px; line-height: 1.6; color: var(--td2-soft); margin: 0; }
.td2-step-line { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--td2-accent), transparent); opacity: .5; }

/* -- RARITY TIER RAIL -------------------------------------- */
.td2-tier-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: end; }
.td2-tier { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.td2-tier-card { width: 100%; }
.td2-tier-meta { text-align: center; }
.td2-tier-dots { display: flex; gap: 4px; justify-content: center; margin: 8px 0 6px; }
.td2-tier-dots i { width: 7px; height: 7px; border-radius: 99px; display: block; }
.td2-tier-name { font-family: var(--td2-display); font-weight: 700; font-size: 17px; }
.td2-tier-desc { font-size: 12.5px; color: var(--td2-soft); line-height: 1.45; max-width: 16em; margin: 0 auto; }

.td2-rarity-chips { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.td2-rarity-chip {
  display: flex; align-items: center; gap: 11px; padding: 14px 18px;
  border-radius: 14px; background: var(--td2-panel); border: 1px solid var(--td2-line);
  flex: 1; min-width: 240px;
}
.td2-chip-icon { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; }
.td2-rarity-chip b { font-family: var(--td2-display); font-size: 15px; color: var(--td2-ink); display: block; }
.td2-rarity-chip p { margin: 2px 0 0; font-size: 13px; color: var(--td2-soft); line-height: 1.4; }

/* -- RAFFLE CTA -------------------------------------------- */
.td2-raffle-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 44px; }
.td2-raffle-note { font-size: 13.5px; color: var(--td2-soft); text-align: center; }

/* -- FAQ ---------------------------------------------------- */
.td2-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.td2-faq-item { border-bottom: 1px solid var(--td2-line); padding: 4px 0; }
.td2-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; background: none; border: none; cursor: pointer; padding: 22px 0;
  font-family: var(--td2-display); font-weight: 700; font-size: 19px; letter-spacing: -0.2px;
  color: var(--td2-ink); text-align: left;
}
.td2-faq-ico { flex-shrink: 0; width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; background: var(--td2-panel2); transition: transform .25s, background .15s; color: var(--td2-soft); }
.td2-faq-item.open .td2-faq-ico { transform: rotate(45deg); background: var(--td2-accent); color: var(--td2-aink); }
.td2-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.td2-faq-item.open .td2-faq-a { max-height: 240px; padding: 0 0 22px; }
.td2-faq-a p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--td2-soft); max-width: 90%; }

/* -- CLOSING CTA BAND -------------------------------------- */
.td2-cta-band {
  position: relative; overflow: hidden; border-radius: 30px; padding: 72px 48px;
  background: linear-gradient(150deg, var(--td2-accent), color-mix(in srgb, var(--td2-accent) 55%, #000));
  text-align: center;
}
.td2-cta-inner { position: relative; z-index: 2; }
.td2-cta-orbit { position: absolute; border-radius: 99px; border: 1.5px solid rgba(255,255,255,.16); }
.td2-cta-sub { color: color-mix(in srgb, #06140b 80%, transparent); font-size: 17px; line-height: 1.55; max-width: 32em; margin: 16px auto 0; }

/* -- RESPONSIVE -------------------------------------------- */
@media (max-width: 880px) {
  .td2-hero-in { grid-template-columns: 1fr; padding: 60px 0 50px; }
  .td2-hero-side { display: none; }
  .td2-steps { grid-template-columns: 1fr; }
  .td2-tier-rail { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .td2-tier-desc { display: block; }
  .td2-faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .td2-section { padding: 64px 0; }
  .td2-cta-band { padding: 52px 24px; border-radius: 22px; }
  .td2-stat-n { font-size: 28px; }
}
