/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --text: #e0e0e0;
  --text-muted: #666;
  --text-grey: #555;
  --accent: #e8572a;
  --content-width: 720px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Starfield ── */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
}

.nav-wordmark {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #fff;
  text-transform: uppercase;
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background: url('CRAFT.jpeg') center center / cover no-repeat;
  will-change: opacity;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.4) 60%,
    rgba(10, 10, 10, 1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 18vh 2rem 4rem;
}

.hero-title {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1.1;
  display: inline-block;
  align-self: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-title.visible {
  opacity: 1;
}


.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.125rem);
  color: var(--text-muted);
  margin-top: 1rem;
  letter-spacing: 0.04em;
}

.hero-tagline {
  font-size: clamp(0.875rem, 1.8vw, 1.125rem);
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-tagline.visible {
  opacity: 0.7;
  transform: translateY(0);
}

/* ── Sections ── */
.section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 3rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.main-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem 0;
}

.main-subtitle {
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin: 0 0 3rem 0;
  text-transform: uppercase;
}

.statement {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 0;
}

.statement-primary {
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  margin-bottom: 2rem;
}

.statement-secondary {
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 600;
}

.statement .word {
  display: inline-block;
  color: var(--text-grey);
  opacity: 0.3;
  transition: color 0.3s ease, opacity 0.3s ease;
  margin: 0 0.15em;
}

.statement .word.fade-in {
  color: #fff;
  opacity: 1;
}

/* ── Whitepaper Button ── */
.section-whitepaper {
  min-height: auto;
  padding: 0.5rem 0.5rem 4rem;
}

.whitepaper-button {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: 2px solid transparent;
  padding: 1.125rem 2.75rem;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  opacity: 0.6;
  transform: translateY(20px);
  box-shadow: 0 4px 16px rgba(232, 87, 42, 0.2);
}

.whitepaper-button.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.whitepaper-button:hover {
  background: #ff6b3d;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(232, 87, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

.whitepaper-button:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 87, 42, 0.4);
}


/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid #1a1a1a;
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 2rem;
}

.footer-founders {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-founders a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.footer-founders a:hover {
  color: var(--accent);
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero-title {
    opacity: 1;
    transition: none;
  }
  .hero-tagline {
    opacity: 1;
    transition-duration: 0.01s;
    transform: none;
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .section {
    padding: 5rem 1.5rem;
    min-height: 50vh;
  }

  .section-whitepaper {
    padding: 0.25rem 1.5rem 1.5rem;
  }
  
  .whitepaper-button {
    font-size: 0.9rem;
    padding: 1rem 2.25rem;
  }

  .main-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 1rem;
  }

  .main-subtitle {
    font-size: 0.7rem;
    margin-bottom: 2rem;
  }

  .statement {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .statement-primary {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
    margin-bottom: 1.5rem;
  }

  .statement-secondary {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  }

  .nav {
    padding: 1rem 1.5rem;
  }
}
