/* ---------- tokens ---------- */
:root {
  --bg: #000;
  --fg: #fafafa;
  --muted-1: #d4d4d4;
  --muted-2: #a3a3a3;
  --muted-3: #737373;
  --muted-4: rgba(255, 255, 255, 0.5);
  --line-1: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.1);
  --line-3: rgba(255, 255, 255, 0.16);
  --accent: #0075ff;
  --accent-hover: #0065db;
  --accent-soft: rgba(0, 117, 255, 0.18);
  --accent-border: rgba(0, 117, 255, 0.32);
  --accent-bg: rgba(0, 117, 255, 0.06);
  --accent-glow: rgba(0, 117, 255, 0.22);
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  position: relative;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--accent-soft);
  color: var(--fg);
}

/* ---------- ambient backdrop ---------- */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 117, 255, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(0, 117, 255, 0.06), transparent 60%);
}

main {
  position: relative;
  z-index: 1;
}

/* ---------- layout (matches morphic.com container scale) ---------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (max-width: 1316px) {
  .container {
    padding-inline: 2rem;
  }
}

@media (max-width: 639px) {
  .container {
    padding-inline: 1.5rem;
  }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

@media (max-width: 639px) {
  .header-inner {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 15px;
  color: var(--fg);
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.pill-link:hover {
  color: var(--fg);
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 479px) {
  .pill-link span {
    display: none;
  }
  .pill-link {
    padding: 8px;
  }
  .header-actions {
    gap: 6px;
  }
}

/* ---------- hero ---------- */
.hero {
  padding-top: 160px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 112px;
    padding-bottom: 88px;
  }
}

@media (max-width: 479px) {
  .hero {
    padding-top: 96px;
    padding-bottom: 72px;
  }
}

.hero-title {
  margin: 0 auto 24px;
  color: var(--fg);
  font-size: clamp(2.25rem, 5.6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

@media (max-width: 479px) {
  .hero-title {
    letter-spacing: -0.025em;
    margin-bottom: 20px;
  }
}

.hero-subtitle {
  margin: 0 auto 40px;
  max-width: 52ch;
  color: var(--muted-2);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.015em;
}

@media (max-width: 479px) {
  .hero-subtitle {
    margin-bottom: 32px;
  }
}

.hero-ctas {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 80ms ease;
  white-space: nowrap;
  border: 1px solid transparent;
  text-align: center;
}

@media (max-width: 479px) {
  .btn {
    height: 48px;
    padding: 0 18px;
    font-size: 14.5px;
  }
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--fg);
  color: #0a0a0a;
}

.btn-primary:hover {
  background: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-3);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

.btn-wide {
  align-self: center;
  min-width: min(420px, 100%);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

/* ---------- generic section ---------- */
.eyebrow {
  margin: 0 0 18px;
  color: var(--muted-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 20px;
  color: var(--fg);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-body {
  margin: 0 auto 40px;
  max-width: 52ch;
  color: var(--muted-2);
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* ---------- episode ---------- */
.episode {
  padding-top: 40px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (max-width: 768px) {
  .episode {
    padding-top: 32px;
    padding-bottom: 96px;
  }
}

@media (max-width: 479px) {
  .episode {
    padding-top: 24px;
    padding-bottom: 80px;
  }
}

.video-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 24px auto 36px;
}

.video-frame {
  position: relative;
  z-index: 10;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  outline: 1px solid var(--line-2);
  outline-offset: -1px;
  background: #0a0a0a;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-glow {
  position: absolute;
  inset: -100px;
  z-index: 1;
  background: radial-gradient(
    ellipse at center,
    var(--accent-glow) 0%,
    rgba(0, 117, 255, 0.06) 35%,
    transparent 70%
  );
  filter: blur(50px);
  pointer-events: none;
}

@media (max-width: 768px) {
  .video-glow {
    inset: -50px;
  }
}

/* ---------- made / notify ---------- */
.made,
.notify {
  padding-top: 80px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (max-width: 768px) {
  .made,
  .notify {
    padding-top: 64px;
    padding-bottom: 96px;
  }
}

@media (max-width: 479px) {
  .made,
  .notify {
    padding-top: 56px;
    padding-bottom: 80px;
  }
}

/* ---------- subscribe ---------- */
.subscribe {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 440px;
}

.subscribe input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.subscribe input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.subscribe input:focus {
  border-color: rgba(0, 117, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.subscribe button {
  height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: var(--fg);
  color: #0a0a0a;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 160ms ease, transform 80ms ease;
}

.subscribe button:hover {
  background: #fff;
}

.subscribe button:active {
  transform: translateY(1px);
}

@media (max-width: 479px) {
  .subscribe {
    gap: 6px;
  }
  .subscribe button {
    padding: 0 18px;
  }
}

/* ---------- footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line-1);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12.5px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  color: var(--muted-2);
}

.footer-nav a {
  transition: color 160ms ease;
}

.footer-nav a:hover {
  color: var(--fg);
}

.footer-copy {
  margin: 0;
  color: var(--muted-3);
}

@media (max-width: 768px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 40px;
  }
}
