:root {
  --bg: #0a0a0a;
  --fg: #e8e8e8;
  --fg-muted: #888;
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --surface: #141414;
  --surface-border: #222;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.hero-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.4rem 1.2rem;
  margin-bottom: 3rem;
}

/* DOOM chars in the badge wordmark */
.doom-badge {
  color: var(--fg);
  font-weight: 700;
}

/* "Why the name" blurb beneath the hero waitlist */
.hero-why {
  margin-top: 2.5rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
  line-height: 1.8;
  letter-spacing: 0.01em;
  border-top: 1px solid var(--surface-border);
  padding-top: 1.5rem;
}

.hero-formula {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--fg);
}

.hero-formula .doom {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--fg-muted);
  font-style: italic;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.06;
}

.grid-line {
  position: absolute;
  background: var(--accent);
}

.grid-line:nth-child(1) { left: 20%; top: 0; width: 1px; height: 100%; }
.grid-line:nth-child(2) { left: 40%; top: 0; width: 1px; height: 100%; }
.grid-line:nth-child(3) { left: 60%; top: 0; width: 1px; height: 100%; }
.grid-line:nth-child(4) { left: 80%; top: 0; width: 1px; height: 100%; }
.grid-line:nth-child(5) { left: 0; top: 50%; width: 100%; height: 1px; }

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 6rem 2rem;
  border-top: 1px solid var(--surface-border);
}

.manifesto-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.manifesto-label,
.products-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.manifesto-block {
  border-left: 2px solid var(--surface-border);
  padding-left: 1.5rem;
}

.manifesto-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-dim);
  margin-bottom: 1rem;
}

.manifesto-block h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.manifesto-block p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ===== PRODUCTS ===== */
.products {
  padding: 6rem 2rem;
  border-top: 1px solid var(--surface-border);
  background: var(--surface);
}

.products-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.product-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--surface-border);
  overflow: hidden;
  transition: border-color 0.3s;
}

.product-card:hover {
  border-color: var(--accent-dim);
}

.product-visual {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.tee-mockup {
  width: 160px;
  height: 180px;
  background: #1a1a1a;
  border-radius: 4px 4px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid #333;
}

.tee-mockup::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 8px;
  background: #1a1a1a;
  border-radius: 4px 4px 0 0;
  border: 1px solid #333;
  border-bottom: none;
}

.tee-text {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
}

.tee-alt .tee-text-small {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.3rem;
}

.tee-subtext {
  font-family: var(--font-mono);
  font-size: 0.45rem;
  color: var(--fg-muted);
  text-align: center;
  line-height: 1.5;
}

.tee-minimal .tee-text-tiny {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.product-info {
  padding: 1.25rem;
  border-top: 1px solid var(--surface-border);
}

.product-info h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.product-info p {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ===== CLOSING ===== */
.closing {
  padding: 8rem 2rem;
  text-align: center;
  border-top: 1px solid var(--surface-border);
  position: relative;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing-formula {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0.6;
}

.closing h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.closing-text {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== WAITLIST FORM ===== */
.hero-waitlist {
  margin-top: 3rem;
}

.waitlist-form {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
  border: 1px solid var(--surface-border);
  transition: border-color 0.2s;
}

.waitlist-form:focus-within {
  border-color: var(--accent);
}

.waitlist-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.85rem 1.2rem;
  min-width: 0;
}

.waitlist-input::placeholder {
  color: var(--fg-muted);
}

.waitlist-btn {
  background: var(--accent);
  color: #000;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.waitlist-btn:hover:not(:disabled) {
  background: var(--accent-dim);
}

.waitlist-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.waitlist-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-top: 1rem;
  min-height: 1.2em;
}

.waitlist-success { color: var(--accent); }
.waitlist-error   { color: #ff5555; }

/* ===== PRODUCT REVEAL ===== */
.product-reveal {
  padding: 6rem 2rem;
  border-top: 1px solid var(--surface-border);
  background: var(--surface);
}

.product-reveal-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.product-reveal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 3rem;
}

/* CSS t-shirt mockup for the reveal */
.reveal-tee {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reveal-tee-body {
  width: 260px;
  height: 300px;
  background: #111;
  border: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  /* Shoulders */
  clip-path: polygon(12% 0%, 34% 0%, 50% 12%, 66% 0%, 88% 0%, 100% 18%, 100% 100%, 0% 100%, 0% 18%);
}

.reveal-formula {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
  text-align: center;
}

.reveal-sub {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--fg-muted);
  text-align: center;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.reveal-colorways {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.colorway {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #333;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.colorway:hover {
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(0,255,136,0.3);
}

.colorway-black { background: #111; }
.colorway-white { background: #e8e8e8; }
.colorway-slate { background: #4a5568; }

.product-reveal-copy {
  max-width: 420px;
}

.reveal-caption {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.reveal-desc {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.reveal-form-wrap .waitlist-form {
  max-width: 100%;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 2rem;
  border-top: 1px solid var(--surface-border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.footer-meta {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.footer-link {
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid #333;
  transition: color 0.2s, border-color 0.2s;
}

.footer-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-showcase {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-reveal-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .product-reveal-copy {
    max-width: 100%;
  }

  .manifesto { padding: 4rem 1.5rem; }
  .products { padding: 4rem 1.5rem; }
  .product-reveal { padding: 4rem 1.5rem; }
  .closing { padding: 5rem 1.5rem; }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-btn {
    width: 100%;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-formula {
    font-size: 3rem;
  }

  .product-visual {
    padding: 1.5rem;
  }

  .reveal-tee-body {
    width: 200px;
    height: 230px;
  }

  .reveal-formula {
    font-size: 1.2rem;
  }
}

/* ===== PRODUCT IMAGE CARDS ===== */
.product-visual-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-visual-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
  display: block;
}

.product-card:hover .product-visual-img img {
  transform: scale(1.03);
}

/* ===== FOOTER WORDMARK ===== */
.footer-wordmark {
  opacity: 0.7;
  display: block;
  height: 28px;
  width: auto;
  transition: opacity 0.2s ease;
}

.footer-wordmark:hover {
  opacity: 1;
}