:root {
  --bg: #0a0a0a;
  --fg: #e8e8e8;
  --fg-muted: #888;
  --accent: #CC0000;
  --accent-dim: #990000;
  --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 ===== */
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes logo-glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 32px rgba(204,0,0,0.35)) drop-shadow(0 4px 64px rgba(204,0,0,0.15)); }
  50%       { filter: drop-shadow(0 0 48px rgba(204,0,0,0.55)) drop-shadow(0 4px 80px rgba(204,0,0,0.25)); }
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem 3rem;
  background: #0a0a0a;
}

.hero-inner {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 860px;
  width: 100%;
  animation: hero-fade-in 0.7s ease both;
}

/* Official brand logo — dominant visual element */
.hero-logo-wrap {
  margin-bottom: 3rem;
}

.hero-logo-img {
  display: block;
  margin: 0 auto;
  width: clamp(280px, 75vw, 720px);
  height: auto;
  animation: logo-glow-pulse 4s ease-in-out infinite;
  transition: transform 0.35s ease;
}

.hero-logo-img:hover {
  transform: scale(1.025);
}

/* Primary headline */
.hero-headline {
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-bottom: 0.6rem;
  animation: hero-fade-in 0.7s ease 0.15s both;
}

/* "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-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--fg-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
  animation: hero-fade-in 0.7s ease 0.25s both;
}

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

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

.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; }

/* ===== BRAND EXPLAINER ===== */
.brand-explainer {
  padding: 5rem 2rem;
  border-top: 1px solid var(--surface-border);
  text-align: center;
}

.brand-explainer-inner {
  max-width: 680px;
  margin: 0 auto;
}

.brand-explainer-line {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}

.brand-explainer-cta {
  margin-top: 1.8rem;
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== 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;
}

/* Official brand logo hero — centerpiece above the product grid */
.brand-logo-hero {
  text-align: center;
  margin-bottom: 5rem;
}

.brand-logo-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}

.brand-logo-img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: clamp(260px, 70%, 600px);
  height: auto;
  /* Subtle lift effect — the red bar should pop on dark bg */
  filter: drop-shadow(0 8px 32px rgba(220, 38, 38, 0.25));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.brand-logo-img:hover {
  filter: drop-shadow(0 12px 48px rgba(220, 38, 38, 0.4));
  transform: scale(1.02);
}

.brand-logo-caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  margin-top: 1.25rem;
  letter-spacing: 0.05em;
}

.products-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}

.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: #fff;
  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: #e8e8e8; }
.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;
}

/* SVG t-shirt mockup for the reveal — matches products.ejs inline SVG approach */
.reveal-tee-svg {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.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(204,0,0,0.4);
}

.colorway-black { background: #111; }
.colorway-white { background: #e8e8e8; border: 1px solid #555; }
.colorway-baby-blue { background: #a8cce8; }

.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-logo-img {
    width: clamp(240px, 88vw, 360px);
  }

  .hero-headline {
    font-size: 1.1rem;
  }

  .product-visual {
    padding: 1.5rem;
  }

  .reveal-tee-svg {
    max-width: 240px;
  }
}

/* ===== 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,
.product-visual-img svg {
  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,
.product-card:hover .product-visual-img svg {
  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;
}

/* ===== PRICE REVEAL ===== */
.hero-price-reveal {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  margin-top: 0.75rem;
  text-transform: uppercase;
}

/* ===== EXTENDED WAITLIST FORM (size + colorway) ===== */
/* Override the horizontal inline layout for extended forms */
.waitlist-form-extended {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--surface-border);
  max-width: 460px;
  margin: 0 auto;
}

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

/* Email row: full width inside the form */
.waitlist-row-email {
  display: flex;
  border-bottom: 1px solid var(--surface-border);
}

.waitlist-row-email .waitlist-input {
  flex: 1;
  border-bottom: none; /* border on parent */
}

/* Selects row: size dropdown + colorway radios */
.waitlist-row-selects {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--surface-border);
  flex-wrap: wrap;
}

.waitlist-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  border-right: 1px solid var(--surface-border);
  outline: none;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.75rem 1.2rem;
  cursor: pointer;
  min-width: 110px;
}

.waitlist-select option {
  background: var(--bg);
  color: var(--fg);
}

/* Colorway radio group */
.waitlist-colorway {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  flex-wrap: wrap;
}

.colorway-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  text-transform: uppercase;
  margin-right: 0.25rem;
}

.colorway-option {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  cursor: pointer;
  user-select: none;
}

.colorway-option input[type="radio"] {
  accent-color: var(--accent);
  cursor: pointer;
}

.colorway-option:hover {
  color: var(--fg);
}

/* Full-width submit button for extended form */
.waitlist-btn-full {
  width: 100%;
  padding: 0.9rem 1.4rem;
}

/* Override reveal-form-wrap for extended forms */
.reveal-form-wrap .waitlist-form-extended {
  max-width: 100%;
}

/* Responsive: stack selects row on mobile */
@media (max-width: 540px) {
  .waitlist-row-selects {
    flex-direction: column;
  }
  .waitlist-select {
    border-right: none;
    border-bottom: 1px solid var(--surface-border);
    min-width: unset;
  }
  .waitlist-colorway {
    padding: 0.6rem 1rem;
  }
}