/* ==========================================================
   Electric Shift – Apple-inspired Redesign v2
   Based on DESIGN.md (Apple Design System)
   ========================================================== */

:root {
  /* Section backgrounds — cinematic rhythm (dark-themed variant) */
  --bg-black: #000000;
  --bg-elevated: #131318;
  --bg-surface: #1f1f25;
  --bg-surface-hi: #2a2a30;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-tertiary: rgba(255, 255, 255, 0.48);

  /* Interactive accent — the ONLY chromatic color */
  --accent: #81DCED;
  --accent-text: #64c8dd;   /* slightly darker for inline links on dark bg */
  --accent-on-light: #1d1d1f;

  /* Radii */
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 980px;

  /* Layout */
  --max-width: 980px;
  --banner-h: 44px;

  /* Shadow — single soft diffused shadow */
  --shadow-card: rgba(0, 0, 0, 0.22) 3px 5px 30px 0px;
}

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

/* ==========================================================
   GLOBAL
   ========================================================== */

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont,
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg-black);
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  overflow-x: hidden;
}

::selection {
  background: rgba(129, 220, 237, 0.3);
  color: #fff;
}

/* Headings use SF Pro Display optical sizing (20px+) */
h1, h2, h3, .display {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont,
               "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
  color: var(--accent-text);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent);
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

img { display: block; }

/* Global focus reset for all interactive */
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================
   LAYOUT CONTAINER
   ========================================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 734px) {
  .container { padding: 0 20px; }
}

/* ==========================================================
   NEWS BANNER — fixed announcement bar above the nav
   ========================================================== */

.news-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--banner-h);
  padding: 0 16px;
  background: var(--accent);
  color: var(--accent-on-light);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.2s ease;
}
.news-banner:hover {
  background: #9de6f3;
  color: var(--accent-on-light);
}
.news-banner:focus-visible {
  outline: 2px solid var(--accent-on-light);
  outline-offset: -4px;
}

.news-banner__badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: var(--accent-on-light);
  color: var(--accent);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

.news-banner__text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-banner__arrow {
  flex-shrink: 0;
  font-weight: 600;
  transition: transform 0.2s ease;
}
.news-banner:hover .news-banner__arrow {
  transform: translateX(3px);
}

/* ==========================================================
   NAV — translucent dark glass
   ========================================================== */

.nav {
  position: fixed;
  top: var(--banner-h);
  left: 0;
  right: 0;
  z-index: 100;
  height: 48px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  color: var(--text-primary);
}
.nav__brand:hover {
  color: var(--text-primary);
  opacity: 0.88;
}

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.12px;
  line-height: 1.33;
  color: var(--text-primary);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.nav__links a:hover {
  opacity: 1;
  color: var(--text-primary);
}

/* News — highlighted as the new sister site */
.nav__links a.nav__news {
  color: var(--accent);
  font-weight: 600;
  opacity: 1;
}
.nav__links a.nav__news:hover {
  color: var(--accent);
  opacity: 0.82;
}

@media (max-width: 734px) {
  .nav__inner { padding: 0 20px; }
  .nav__links { gap: 20px; }
}

/* ==========================================================
   HERO
   ========================================================== */

.hero {
  padding: calc(128px + var(--banner-h)) 0 96px; /* banner + nav offset + generous spacing */
  text-align: center;
  background: var(--bg-black);
}

.hero__logo {
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto 56px;
  border-radius: var(--radius-lg);
}

.hero__headline {
  /* Apple Display Hero: 56px, 600, line-height 1.07, letter-spacing -0.28px */
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.28px;
  max-width: 720px;
  margin: 0 auto 20px;
  color: var(--text-primary);
}

.hero__sub {
  /* Apple sub-heading: 21px, 400, line-height 1.19, letter-spacing 0.231px */
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont,
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.19;
  letter-spacing: 0.231px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ==========================================================
   CTA PILLS
   ========================================================== */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.224px;
  line-height: 1.43;
  text-decoration: none;
  transition: background 0.2s ease;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.pill:hover {
  background: rgba(129, 220, 237, 0.1);
  color: var(--accent);
}
.pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pill .icon-img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Primary pill — filled accent */
.pill--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-on-light);
}
.pill--primary:hover {
  background: #9de6f3;
  border-color: #9de6f3;
  color: var(--accent-on-light);
}
.pill--primary span { color: var(--accent-on-light); }

/* ==========================================================
   SECTIONS — alternating cinematic rhythm
   ========================================================== */

.section {
  padding: 120px 0;
}

/* Alternating backgrounds for cinematic rhythm (dark variant) */
.section--dark {
  background: var(--bg-black);
}
.section--elevated {
  background: var(--bg-elevated);
}

.section__label {
  font-family: "SF Pro Text", -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  line-height: 1.29;
  color: var(--accent);
  margin-bottom: 8px;
}

.section__title {
  /* Apple Section Heading: 40px, 600, line-height 1.10 */
  font-size: 40px;
  font-weight: 600;
  line-height: 1.10;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section__desc {
  /* Apple body emphasis */
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
}

/* ==========================================================
   ABOUT
   ========================================================== */

.about__text {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 20px;
}

.about__text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about__text a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.about__text a:hover {
  color: var(--accent);
}

/* ==========================================================
   VIDEO — product-as-hero container
   ========================================================== */

.video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================
   EPISODES — static cards, no hover lift
   ========================================================== */

.episodes {
  display: grid;
  gap: 16px;
}

.episode {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 28px;
  /* No border. No hover lift. Only links within are interactive. */
}

.episode h3 {
  /* Apple Card Title: 21px, 700, line-height 1.19, letter-spacing 0.231px */
  font-size: 21px;
  font-weight: 700;
  line-height: 1.19;
  letter-spacing: 0.231px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.episode .date {
  font-family: "SF Pro Text", -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.12px;
  line-height: 1.33;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.episode p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: -0.224px;
  color: var(--text-secondary);
}

audio {
  width: 100%;
  margin-top: 18px;
  height: 36px;
  border-radius: var(--radius-sm);
}

/* ==========================================================
   SUBSCRIBE — static cards, content speaks for itself
   ========================================================== */

.subscribe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.subscribe-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.2s ease;
}

.subscribe-card:hover {
  background: #222225;
  color: var(--text-primary);
}
.subscribe-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.subscribe-card .icon-img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.subscribe-card__text {
  display: flex;
  flex-direction: column;
}

.subscribe-card__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.374px;
  line-height: 1.24;
  color: var(--text-primary);
}

.subscribe-card__hint {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.12px;
  line-height: 1.33;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ==========================================================
   FOOTER
   ========================================================== */

.footer {
  padding: 40px 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.12px;
  line-height: 1.33;
  color: var(--text-tertiary);
  background: var(--bg-black);
}

.footer a {
  color: var(--text-secondary);
}
.footer a:hover {
  color: var(--text-primary);
}

.footer span {
  color: var(--text-secondary);
}

/* ==========================================================
   SCROLL REVEAL
   ========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .section {
    padding: 96px 0;
  }

  .hero {
    padding: calc(112px + var(--banner-h)) 0 80px;
  }

  .hero__headline {
    font-size: 48px;
  }

  .section__title {
    font-size: 32px;
  }
}

/* Mobile */
@media (max-width: 734px) {
  .section {
    padding: 72px 0;
  }

  .news-banner {
    font-size: 12.5px;
    gap: 8px;
    padding: 0 12px;
  }

  .news-banner__badge {
    font-size: 10px;
    padding: 2px 7px;
  }

  .hero {
    padding: calc(88px + var(--banner-h)) 0 56px;
  }

  .hero__logo {
    width: 200px;
    max-width: 200px;
    margin-bottom: 24px;
    border-radius: var(--radius-md);
  }

  .hero__headline {
    font-size: 32px;
    line-height: 1.10;
    letter-spacing: -0.16px;
    margin-bottom: 14px;
  }

  .hero__sub {
    font-size: 17px;
    letter-spacing: -0.374px;
    margin-bottom: 28px;
  }

  .cta-row {
    gap: 10px;
  }

  .pill {
    padding: 9px 18px;
    font-size: 13px;
  }

  .section__title {
    font-size: 26px;
    letter-spacing: -0.13px;
  }

  .subscribe-grid {
    grid-template-columns: 1fr;
  }

  .episode {
    padding: 22px 20px;
  }

  .episode h3 {
    font-size: 19px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    transition: none !important;
  }
}

/* ==========================================================
   UTILITY
   ========================================================== */

.muted { color: var(--text-tertiary); }
.highlight { color: var(--text-primary); }
.icon-img { display: block; }
.icon-link { display: inline-flex; align-items: center; gap: 8px; }
