@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root{
  --bg: #14171c;
  --surface: #1b1f26;
  --surface-2: #21262f;
  --border: #2b313c;
  --grass: #6fa23f;
  --grass-bright: #8bc257;
  --amber: #e0a72e;
  --text: #ece8de;
  --text-muted: #9199a6;
  --radius: 10px;
}

*{ box-sizing: border-box; }
.hidden{ display: none !important; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before{
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.15;
}

a{ color: inherit; }
.wrap{ max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.pixel{ font-family: 'Silkscreen', monospace; }
.mono{ font-family: 'JetBrains Mono', monospace; }

/* Nav */
.nav{
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.nav__logo{
  display: flex; align-items: center; gap: 10px;
  font-family: 'Silkscreen', monospace;
  font-size: 16px;
  letter-spacing: 0.5px;
}
.nav__logo .chip{
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--grass-bright), var(--grass));
  border-radius: 4px;
  box-shadow: inset -3px -3px 0 rgba(0,0,0,0.25), inset 3px 3px 0 rgba(255,255,255,0.15);
}
.nav__links{ display: flex; gap: 28px; font-size: 14px; color: var(--text-muted); }
.nav__links a:hover{ color: var(--text); }

/* Hero */
.hero{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0 88px;
}
.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Silkscreen', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grass-bright);
  background: rgba(111,162,63,0.12);
  border: 1px solid rgba(111,162,63,0.35);
  padding: 7px 12px;
  border-radius: 6px;
  margin-bottom: 22px;
}
.eyebrow .dot{ width: 6px; height: 6px; background: var(--grass-bright); }

.hero h1{
  font-family: 'Silkscreen', monospace;
  font-weight: 700;
  font-size: 42px;
  line-height: 1.28;
  margin: 0 0 20px;
  letter-spacing: 0.5px;
}
.hero h1 .hl{ color: var(--grass-bright); }

.hero p{
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 32px;
}

/* Upload dropzone */
.dropzone{
  border: 2px dashed #3a4150;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover{ border-color: var(--grass); background: var(--surface-2); }
.dropzone__icon{
  flex: none;
  width: 46px; height: 46px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--grass-bright), var(--grass));
  box-shadow: inset -3px -3px 0 rgba(0,0,0,0.25), inset 3px 3px 0 rgba(255,255,255,0.15);
}
.dropzone__icon svg{ width: 22px; height: 22px; }
.dropzone__text strong{ display: block; font-size: 15px; margin-bottom: 3px; }
.dropzone__text span{ font-size: 13px; color: var(--text-muted); }
.dropzone input{ display: none; }

.hero__meta{
  display: flex; gap: 22px; margin-top: 22px;
  font-size: 12.5px; color: var(--text-muted);
}
.hero__meta span{ display: flex; align-items: center; gap: 7px; }
.hero__meta .check{ color: var(--grass-bright); }

/* Hero visual: self-building block grid */
.rig{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.rig__bar{
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 16px;
}
.rig__bar span{ width: 8px; height: 8px; border-radius: 50%; background: #3a4150; }
.rig__label{
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}
.grid{
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 2px;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: #0f1216;
}
.grid__cell{
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(0.4);
  animation: pop 0.32s ease forwards;
}
@keyframes pop{
  to{ opacity: 1; transform: scale(1); }
}
.rig__foot{
  display: flex; justify-content: space-between;
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-muted);
}
.rig__foot b{ color: var(--amber); font-weight: 600; }

/* Feature cards */
.features{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 90px;
}
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card__icon{
  width: 38px; height: 38px;
  border-radius: 8px;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.card:nth-child(1) .card__icon{ background: rgba(111,162,63,0.15); color: var(--grass-bright); }
.card:nth-child(2) .card__icon{ background: rgba(224,167,46,0.15); color: var(--amber); }
.card:nth-child(3) .card__icon{ background: rgba(122,150,224,0.15); color: #8fa6e8; }
.card__icon svg{ width: 20px; height: 20px; }
.card h3{ font-size: 15.5px; margin: 0 0 8px; }
.card p{ font-size: 13.5px; color: var(--text-muted); margin: 0; }

/* CTA strip */
.cta{
  border-top: 1px solid var(--border);
  padding: 54px 0 70px;
  text-align: center;
}
.cta h2{
  font-family: 'Silkscreen', monospace;
  font-size: 26px;
  margin: 0 0 12px;
}
.cta p{ color: var(--text-muted); margin: 0 0 26px; }
.btn{
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--grass);
  color: #0f1408;
  font-weight: 700;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 0 #4c7229;
  transition: transform .08s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(2px); box-shadow: 0 2px 0 #4c7229; }

footer{
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 860px){
  .hero{ grid-template-columns: 1fr; padding-top: 30px; }
  .features{ grid-template-columns: 1fr; }
  .hero h1{ font-size: 32px; }
}

@media (prefers-reduced-motion: reduce){
  .grid__cell{ animation: none; opacity: 1; transform: none; }
}
