/*
Theme Name: TRACK TC Pixel Blocks
Theme URI: https://example.com/track-tc
Author: TRACK TC
Description: An English pixel-block WordPress theme for the TRACK TC meme coin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: track-tc
*/

:root {
  --grass: #62c34a;
  --grass-dark: #2f7f35;
  --dirt: #6a3f25;
  --dirt-light: #91613b;
  --stone: #d9e0d8;
  --ink: #0d1710;
  --night: #111b18;
  --blue: #27355f;
  --cream: #fff9dd;
  --pixel-shadow: 6px 6px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  background: var(--night);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.pixel-font { font-family: "Courier New", Tahoma, monospace; font-weight: 900; letter-spacing: -.03em; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(13, 23, 16, .92);
  border-bottom: 4px solid var(--grass);
  backdrop-filter: blur(12px);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; }
.brand-cube {
  width: 40px; height: 40px; display: grid; place-items: center;
  color: var(--ink); background: var(--grass); border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 #275c2d;
}
.nav-links { display: flex; align-items: center; gap: 25px; font-weight: 700; }
.nav-links a:hover { color: #84ed66; }
.nav-buy { padding: 8px 16px; background: var(--grass); color: var(--ink); border: 3px solid var(--ink); box-shadow: 4px 4px 0 #000; }
.menu-toggle { display: none; border: 3px solid var(--grass); color: #fff; background: transparent; padding: 7px 11px; }

.hero {
  position: relative; isolation: isolate; min-height: 750px; display: grid; align-items: center;
  background:
    linear-gradient(rgba(25, 99, 45, .28), rgba(13, 23, 16, .92)),
    repeating-linear-gradient(0deg, transparent 0 59px, rgba(255,255,255,.035) 60px 61px),
    repeating-linear-gradient(90deg, transparent 0 59px, rgba(255,255,255,.035) 60px 61px),
    linear-gradient(135deg, #1d6a39 0%, #162b22 58%, #0f1714 100%);
  overflow: hidden;
}
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; image-rendering: pixelated; }
.hero::before { inset: auto 0 0; height: 96px; background: linear-gradient(#62c34a 0 20%, #765033 20% 100%); clip-path: polygon(0 34%,8% 34%,8% 12%,18% 12%,18% 44%,29% 44%,29% 20%,42% 20%,42% 55%,56% 55%,56% 28%,69% 28%,69% 46%,82% 46%,82% 8%,92% 8%,92% 30%,100% 30%,100% 100%,0 100%); }
.hero::after { width: 280px; height: 280px; left: -80px; top: 90px; background: rgba(98,195,74,.13); transform: rotate(18deg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding-block: 80px 130px; }
.eyebrow { display: inline-flex; gap: 9px; align-items: center; padding: 7px 13px; background: #172b1f; border: 2px solid var(--grass); color: #9eff83; font-weight: 800; }
.live-dot { width: 9px; height: 9px; background: #76ff59; box-shadow: 0 0 12px #76ff59; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
h1 { margin: 22px 0 14px; font-size: clamp(3.3rem, 8vw, 7.4rem); line-height: .88; text-transform: uppercase; text-shadow: 6px 6px 0 #182340, 10px 10px 0 #050706; }
h1 span { display: block; color: #83e568; }
.lead { max-width: 650px; margin: 0 0 30px; color: #dbe7da; font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 15px; }
.pixel-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 10px 25px; border: 4px solid var(--ink); box-shadow: var(--pixel-shadow); font-weight: 900; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.pixel-btn:hover { transform: translate(3px,3px); box-shadow: 3px 3px 0 var(--ink); }
.pixel-btn.primary { background: #72d455; color: #0b160d; }
.pixel-btn.secondary { background: #f1ead2; color: #121612; }
.hero-art { position: relative; display: grid; place-items: center; }
.art-frame { position: relative; width: min(100%, 500px); aspect-ratio: 1/1.08; background: #4e9e43; border: 8px solid var(--ink); box-shadow: 14px 14px 0 #24325c; overflow: hidden; }
.art-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; transform: scale(1.04); }
.coin-badge { position: absolute; left: -18px; bottom: 34px; width: 112px; height: 112px; display: grid; place-items: center; border-radius: 50%; background: #f3c443; color: #1b1b14; border: 7px solid #1c241b; box-shadow: 8px 8px 0 rgba(0,0,0,.85); font-size: 1.7rem; transform: rotate(-9deg); }

.ticker { background: var(--grass); color: #102212; border-block: 5px solid var(--ink); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 42px; min-width: max-content; padding: 11px 0; font-weight: 900; animation: ticker 24s linear infinite; }
@keyframes ticker { to { transform: translateX(50%); } }

.section { padding: 96px 0; }
.section-title { margin: 0 0 15px; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1; }
.section-kicker { color: #8bed72; font-weight: 900; text-transform: uppercase; }
.muted { color: #b9c5bc; }
.story { background: linear-gradient(135deg,#15231b,#0b120e); }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 55px; align-items: center; }
.block-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; transform: rotate(-3deg); }
.block { aspect-ratio: 1; display: grid; place-items: center; border: 4px solid var(--ink); box-shadow: inset -10px -10px rgba(0,0,0,.18); font-size: 2rem; }
.block:nth-child(1),.block:nth-child(5),.block:nth-child(9) { background:#66bd4c; }
.block:nth-child(2),.block:nth-child(6),.block:nth-child(7) { background:#725034; }
.block:nth-child(3),.block:nth-child(4),.block:nth-child(8) { background:#263763; }

.features { background: #f0ead3; color: #101610; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card { padding: 27px; background: white; border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.card-icon { width: 54px; height: 54px; display:grid; place-items:center; background:var(--grass); border:3px solid var(--ink); font-size:1.7rem; }
.card h3 { margin: 18px 0 8px; font-size: 1.3rem; }

.buy-section { position: relative; background: #152e20; }
.buy-box { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 920px; padding: 52px; background: #263760; border: 6px solid #0b0f0c; box-shadow: 13px 13px 0 #060807; text-align: center; }
.buy-intro { max-width: 680px; margin-inline: auto; }
.buy-intro .pixel-btn { margin-top: 10px; }
.contract-box { width: 100%; max-width: 760px; margin-inline: auto; padding: 28px; background: #0d1611; border: 3px solid #66c64d; box-shadow: 7px 7px 0 rgba(0,0,0,.55); }
.contract-box label { display:block; margin-bottom: 10px; color:#8aed70; font-weight:900; }
.contract-row { display:flex; gap:10px; direction:ltr; }
.contract-row input { width:100%; min-width:0; padding:16px; color:#eef8ec; background:#18231c; border:2px solid #415047; outline:none; text-align:center; font-family:"Courier New",monospace; font-weight:700; }
.copy-btn { padding:10px 16px; border:0; background:var(--grass); color:#102012; font-weight:900; cursor:pointer; }
.notice { margin-top: 12px; color:#b9c8bd; font-size:.86rem; }

.roadmap { background: #0c130f; }
.steps { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-top:40px; counter-reset: step; }
.step { position:relative; padding:26px 20px; background:#17251c; border:3px solid #355640; }
.step::before { counter-increment:step; content:"0" counter(step); display:block; color:#7ce260; font:900 2.2rem "Courier New",monospace; }
.step h3 { margin:5px 0; }
.step.done { border-color:#65c64c; }

.site-footer { padding:45px 0; background:#050806; border-top:5px solid #5db645; text-align:center; }
.footer-brand { font-size:2rem; margin-bottom:7px; }
.footer-socials { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; margin:18px 0 22px; }
.footer-socials a { min-width:120px; padding:8px 15px; color:#f8f6e8; background:#142019; border:3px solid #60bd49; box-shadow:4px 4px 0 #000; font-family:"Courier New",monospace; font-weight:900; transition:transform .15s,background .15s; }
.footer-socials a:hover,.footer-socials a:focus-visible { color:#0a120c; background:#70d454; transform:translate(2px,2px); outline:none; }
.scroll-reveal { opacity:0; transform:translateY(46px) scale(.97); transition:opacity .7s ease var(--reveal-delay,0ms),transform .7s cubic-bezier(.2,.7,.2,1) var(--reveal-delay,0ms); will-change:opacity,transform; }
.scroll-reveal.is-visible { opacity:1; transform:translateY(0) scale(1); }
.card.scroll-reveal:nth-child(2),.step.scroll-reveal:nth-child(2) { transform:translateY(58px) rotate(1.5deg); }
.card.scroll-reveal:nth-child(3),.step.scroll-reveal:nth-child(3) { transform:translateY(58px) rotate(-1.5deg); }
.card.scroll-reveal.is-visible,.step.scroll-reveal.is-visible { transform:translateY(0) rotate(0) scale(1); }
.hero-art { transition:transform .12s linear; }
.risk { max-width:760px; margin:20px auto 0; font-size:.8rem; color:#8f9991; }
.toast { position:fixed; z-index:99; left:20px; bottom:20px; padding:12px 18px; background:#72d455; color:#101810; border:3px solid #0b100c; box-shadow:5px 5px 0 #000; font-weight:900; opacity:0; transform:translateY(20px); pointer-events:none; transition:.2s; }
.toast.show { opacity:1; transform:none; }

@media (max-width: 820px) {
  .menu-toggle { display:block; }
  .nav-links { display:none; position:absolute; top:76px; inset-inline:0; flex-direction:column; align-items:stretch; padding:20px; background:#101b14; border-bottom:4px solid var(--grass); }
  .nav-links.open { display:flex; }
  .hero-grid,.story-grid,.buy-box { grid-template-columns:1fr; }
  .hero { min-height:auto; }
  .hero-copy { text-align:center; }
  .lead { margin-inline:auto; }
  .hero-actions { justify-content:center; }
  .hero-art { grid-row:1; }
  .art-frame { width:min(86vw,410px); }
  .cards,.steps { grid-template-columns:1fr 1fr; }
}
@media (max-width: 540px) {
  .section { padding:68px 0; }
  .hero-grid { padding-top:45px; }
  .cards,.steps { grid-template-columns:1fr; }
  .buy-box { padding:25px 18px; }
  .contract-row { flex-direction:column; }
  .pixel-btn { width:100%; }
  .coin-badge { width:82px; height:82px; font-size:1.25rem; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }
