:root {
  --bg: #f5f7fb;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --bg-strong: #ffffff;
  --text: #102138;
  --muted: #5f718c;
  --line: rgba(16, 33, 56, 0.12);
  --brand: #ff5c65;
  --brand-2: #ff9950;
  --brand-ink: #fff7f4;
  --accent: #2f8fff;
  --shadow: 0 24px 60px rgba(15, 29, 51, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shell: 1180px;
  --sans: "Avenir Next", "Avenir", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07111f;
    --bg-elevated: rgba(10, 23, 40, 0.72);
    --bg-strong: #0c1a2b;
    --text: #ebf4ff;
    --muted: #9db1c9;
    --line: rgba(235, 244, 255, 0.12);
    --brand: #ff6d78;
    --brand-2: #ff9e63;
    --brand-ink: #120d10;
    --accent: #67b4ff;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background:
    radial-gradient(circle at top left, rgba(255, 153, 80, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(47, 143, 255, 0.15), transparent 24%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(127, 127, 127, 0.14);
  padding: 0.15rem 0.35rem;
  border-radius: 0.45rem;
}

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin: 0 auto;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 24%),
    repeating-linear-gradient(
      -32deg,
      transparent 0,
      transparent 18px,
      rgba(255, 255, 255, 0.018) 18px,
      rgba(255, 255, 255, 0.018) 36px
    );
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(245, 247, 251, 0.66);
  border-bottom: 1px solid var(--line);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(7, 17, 31, 0.7);
  }
}

.header-shell,
.footer-shell,
.hero-shell,
.intro-grid,
.story-grid,
.recap-grid,
.page-hero-shell {
  display: grid;
  gap: 1.5rem;
}

.header-shell {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  box-shadow: var(--shadow);
}

.brand-wordmark {
  font-size: 1.15rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.main-nav-link,
.header-cta,
.pagination-link,
.tag-pill,
.term-card,
.button,
.recap-pills span {
  border: 1px solid var(--line);
}

.main-nav-link,
.header-cta,
.button,
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.main-nav-link:hover,
.header-cta:hover,
.button:hover,
.pagination-link:hover,
.term-card:hover,
.tag-pill:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.main-nav-link.is-active,
.main-nav-link:hover {
  background: var(--bg-elevated);
}

.header-cta,
.button-primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: var(--brand-ink);
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(255, 92, 101, 0.22);
}

.header-cta.is-disabled,
.button.is-disabled,
.pagination-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
}

.button-secondary {
  background: var(--bg-elevated);
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-shell {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.hero h1,
.page-hero h1,
.intro-band h2,
.story-panel h2,
.recap-card h2,
.section-heading h2 {
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero h1 {
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  max-width: 10ch;
}

.hero-summary,
.page-subtitle,
.intro-grid p,
.feature-copy p,
.story-panel p,
.recap-card p,
.watch-promo-copy p,
.news-card-summary,
.article-summary {
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions,
.hero-points,
.detail-list,
.footer-links,
.tag-row,
.recap-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-actions {
  margin: 2rem 0 1rem;
}

.button {
  font-weight: 700;
}

.hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
}

.hero-points li {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 43rem;
}

.hero-phone-stack {
  position: absolute;
  inset: 3rem 0 0 0;
}

.phone-card {
  position: absolute;
  width: min(24rem, 74%);
  border-radius: 2.2rem;
  box-shadow: var(--shadow);
}

.phone-card-front {
  right: 0;
  top: 0;
  transform: rotate(-3deg);
}

.phone-card-back {
  left: 0;
  top: 7rem;
  transform: rotate(5deg);
}

.hero-watch-card {
  position: absolute;
  left: 8%;
  bottom: 2rem;
  width: 12.5rem;
  padding: 0.8rem;
  border-radius: 1.8rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-watch-card img {
  border-radius: 1.2rem;
}

.hero-orbit {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.8;
}

.hero-orbit-a {
  top: 2rem;
  left: 8%;
  width: 11rem;
  height: 11rem;
  background: radial-gradient(circle at 30% 30%, rgba(255, 153, 80, 0.6), transparent 72%);
}

.hero-orbit-b {
  right: 4%;
  bottom: 4rem;
  width: 15rem;
  height: 15rem;
  background: radial-gradient(circle at 40% 40%, rgba(47, 143, 255, 0.5), transparent 74%);
}

.intro-band,
.feature-grid-section,
.story-section,
.recap-section,
.news-preview-section,
.page-section {
  padding: 1.25rem 0 4rem;
}

.intro-grid,
.story-grid,
.recap-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.intro-band h2,
.story-panel h2,
.recap-card h2,
.section-heading h2,
.page-hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 4.3rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card,
.story-panel,
.recap-card,
.watch-promo,
.news-card,
.term-card,
.article-shell {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.feature-card {
  display: grid;
  gap: 1.3rem;
  padding: 1.35rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.feature-card img,
.story-panel-visual img,
.watch-promo img {
  border-radius: 1.4rem;
  box-shadow: 0 12px 32px rgba(13, 22, 40, 0.18);
}

.feature-card-dashboard {
  grid-column: span 5;
  background: linear-gradient(180deg, rgba(47, 143, 255, 0.08), transparent), var(--bg-elevated);
}

.feature-card-eddington {
  grid-column: span 3;
  background: linear-gradient(180deg, rgba(35, 75, 129, 0.16), transparent), var(--bg-elevated);
}

.feature-card-stats {
  grid-column: span 4;
  background: linear-gradient(180deg, rgba(255, 153, 80, 0.12), transparent), var(--bg-elevated);
}

.feature-copy h3,
.watch-promo-copy h3,
.news-card-title,
.article-header h1 {
  margin: 0 0 0.7rem;
  letter-spacing: -0.04em;
}

.feature-copy h3,
.watch-promo-copy h3 {
  font-size: 2rem;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  flex-direction: column;
}

.detail-list li {
  padding-left: 1.2rem;
  position: relative;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
}

.story-panel,
.recap-card,
.watch-promo,
.news-card,
.term-card,
.article-shell {
  border-radius: var(--radius-xl);
}

.story-panel,
.recap-card,
.watch-promo {
  padding: 1.5rem;
}

.story-panel-visual {
  padding: 1rem;
}

.recap-pills span,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: var(--bg-strong);
}

.watch-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem;
  align-items: center;
  gap: 1rem;
}

.watch-promo img {
  width: 100%;
}

.section-heading,
.news-card-footer,
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.news-grid,
.term-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.news-card,
.term-card {
  padding: 1.25rem;
}

.news-card-meta,
.article-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.news-card-title {
  font-size: 1.55rem;
}

.news-card-summary,
.article-summary {
  margin-bottom: 1.2rem;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

.page-hero {
  padding: 3rem 0 1.4rem;
}

.page-intro > :first-child {
  margin-top: 0;
}

.article-shell {
  max-width: 52rem;
  margin: 3rem auto 4rem;
  padding: 2rem;
}

.article-content p,
.article-content li {
  font-size: 1.05rem;
}

.article-content ul {
  padding-left: 1.25rem;
}

.article-footer {
  margin-top: 2rem;
}

.term-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.term-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.term-name {
  font-weight: 700;
}

.term-count,
.footer-copy {
  color: var(--muted);
}

.pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.pagination-status {
  color: var(--muted);
}

.site-footer {
  padding: 0 0 2.5rem;
}

.footer-shell {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  align-items: start;
}

.footer-brand {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.footer-links {
  justify-content: end;
}

.empty-state {
  color: var(--muted);
}

@media (max-width: 960px) {
  .header-shell,
  .hero-shell,
  .intro-grid,
  .story-grid,
  .recap-grid,
  .footer-shell,
  .watch-promo,
  .news-grid,
  .term-grid {
    grid-template-columns: 1fr;
  }

  .header-shell {
    justify-items: start;
  }

  .main-nav {
    justify-content: start;
  }

  .hero-visual {
    min-height: 32rem;
  }

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

  .feature-card-dashboard,
  .feature-card-eddington,
  .feature-card-stats {
    grid-column: auto;
  }

  .phone-card {
    width: min(18rem, 66%);
  }

  .hero-watch-card {
    left: auto;
    right: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .header-shell {
    grid-template-columns: 1fr;
    padding: 1rem 0 1.1rem;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-visual {
    min-height: 27rem;
  }

  .phone-card {
    width: 68%;
  }

  .phone-card-back {
    top: 5rem;
  }

  .hero-watch-card {
    width: 9.5rem;
    bottom: 0;
  }

  .article-shell {
    padding: 1.3rem;
    margin-top: 1.5rem;
  }

  .section-heading,
  .news-card-footer,
  .footer-links,
  .article-meta,
  .pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}
