@import url('tokens.css');

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Container ─── */
.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 640px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Fade-in animation ─── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 100ms; }
.fade-in-delay-2 { transition-delay: 250ms; }
.fade-in-delay-3 { transition-delay: 400ms; }
.fade-in-delay-4 { transition-delay: 550ms; }
.fade-in-delay-5 { transition-delay: 700ms; }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-96) var(--space-24);
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.webp') center/cover;
  opacity: 0.15;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(18,17,24,0.5) 0%, var(--bg) 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-logo { width: 160px; height: 160px; margin: 0 auto var(--space-24); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  color: var(--ember);
  line-height: 1;
  margin-bottom: 0.125rem;
}
.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--white);
  margin-bottom: var(--space-24);
}
.hero-tagline {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: var(--space-24);
}
.hero-desc {
  font-size: 0.9375rem;
  color: var(--white);
  max-width: 480px;
  margin: 0 auto var(--space-32);
  line-height: 1.7;
}
.hero-date {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--violet);
  margin-bottom: var(--space-24);
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--ember);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: opacity var(--transition-base);
}
.btn-primary:hover { opacity: 0.9; }

/* ─── Sections ─── */
.section { padding: var(--space-96) var(--space-24); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--space-24);
}
.section-title-center { text-align: center; margin-bottom: var(--space-48); }

/* ─── What Is This ─── */
.about-text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--white);
}

/* ─── Founders ─── */
.founders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
  margin-bottom: var(--space-32);
}
@media (min-width: 640px) {
  .founders-grid { grid-template-columns: 1fr 1fr; gap: var(--space-32); }
}
.founder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  text-align: center;
  transition: transform var(--transition-base), border-color var(--transition-base);
}
.founder-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 90, 43, 0.4);
}
.founder-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ember);
  margin: 0 auto var(--space-16);
}
@media (min-width: 640px) { .founder-photo { width: 144px; height: 144px; } }
.founder-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.founder-identity {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: var(--space-12);
}
.founder-bio {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: var(--space-16);
}
.founder-building {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(224, 90, 43, 0.12);
  color: var(--ember);
  margin-bottom: var(--space-12);
}
.founder-link {
  font-size: 0.875rem;
  color: var(--violet);
}
.founder-link:hover { text-decoration: underline; }
.founders-shared {
  text-align: center;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--muted);
}

/* ─── Format ─── */
.format-section { background: var(--surface); }
.format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
}
@media (min-width: 640px) { .format-grid { grid-template-columns: repeat(4, 1fr); } }
.format-feature { text-align: center; padding: var(--space-16); }
.format-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-12);
  color: var(--ember);
}
.format-label {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.format-desc {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ─── Episodes ─── */
.episode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  max-width: 640px;
  margin: 0 auto;
}
.episode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-12);
}
.episode-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.episode-status {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 107, 107, 0.12);
  color: var(--coral);
}
.episode-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: var(--space-8);
}
.episode-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: var(--space-12);
  line-height: 1.6;
}
.episode-meta {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
}

/* ─── Join / Signup ─── */
.join-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-8);
}
.join-sub {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: var(--space-32);
}
.signup-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  max-width: 420px;
  margin: 0 auto;
}
@media (min-width: 640px) { .signup-form { flex-direction: row; } }
.signup-input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition-base);
}
.signup-input:focus { border-color: var(--ember); }
.signup-input::placeholder { color: var(--muted); }
.signup-success {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--ember);
}

/* ─── Footer ─── */
.footer {
  padding: var(--space-48) var(--space-24);
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: var(--space-16);
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  font-size: 0.875rem;
  list-style: none;
}
.footer-links a:hover { text-decoration: underline; }
.footer-sep { color: var(--muted); }
.footer-year {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: var(--space-16);
}
