:root {
  --bg: #0b0f1a;
  --bg-alt: #111827;
  --surface: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f7fb;
  --muted: #b2bfd6;
  --accent: #55f5c5;
  --accent-2: #2dd4bf;
  --glow: rgba(85, 245, 197, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 20px 60px rgba(4, 8, 20, 0.55);
  --max-width: 1160px;
  --font-main: "Space Grotesk", "IBM Plex Sans", "Manrope", sans-serif;
  --font-mono: "Space Mono", "IBM Plex Mono", "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: radial-gradient(circle at top left, rgba(58, 163, 255, 0.2), transparent 55%),
    radial-gradient(circle at 30% 20%, rgba(85, 245, 197, 0.18), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.page {
  overflow: hidden;
}

body.demo-overlay-open {
  overflow: hidden;
}

.demo-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.demo-overlay[hidden] {
  display: none;
}

.demo-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 18, 0.74);
  backdrop-filter: blur(10px);
}

.demo-overlay__panel {
  position: relative;
  width: min(1160px, 100%);
  height: min(780px, 100%);
  border-radius: var(--radius-lg);
  background: rgba(10, 13, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-overlay__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-overlay__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.demo-overlay__mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.demo-overlay__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.demo-overlay__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 0.85rem;
}

.demo-overlay__link:hover {
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--glow);
  color: var(--text);
}

.demo-overlay__close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.demo-overlay__close:hover {
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--glow);
}

.demo-overlay__frame {
  width: 100%;
  height: calc(100% - 56px);
  border: 0;
  background: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.btn-disabled {
  cursor: not-allowed;
  opacity: 0.62;
  filter: saturate(0.7);
  pointer-events: none;
}

.btn-disabled.btn-primary {
  animation: none !important;
  box-shadow: 0 10px 30px rgba(85, 245, 197, 0.14);
}

.btn-disabled.btn-primary::before {
  opacity: 0.24;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    110deg,
    var(--accent) 0%,
    rgba(85, 245, 197, 0.92) 28%,
    var(--accent-2) 66%,
    var(--accent) 100%
  );
  background-size: 220% 220%;
  color: #061018;
  box-shadow: 0 10px 30px rgba(85, 245, 197, 0.24);
  animation: btn-fade 7s ease-in-out infinite;
}

.btn-primary.btn-live {
  animation: btn-fade 7s ease-in-out infinite, btn-glow 2.6s ease-in-out infinite;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.38), transparent 52%);
  opacity: 0.55;
  transform: rotate(-12deg);
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(85, 245, 197, 0.28);
  filter: saturate(1.1);
}

.btn-primary.btn-live:hover {
  /* Pause the glow loop on hover so the stronger hover glow feels intentional. */
  animation: btn-fade 7s ease-in-out infinite;
  box-shadow: 0 18px 46px rgba(85, 245, 197, 0.32), 0 0 42px rgba(85, 245, 197, 0.28);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--glow);
}

@keyframes btn-fade {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes btn-glow {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(85, 245, 197, 0.22), 0 0 0 rgba(85, 245, 197, 0.0);
  }
  50% {
    box-shadow: 0 16px 40px rgba(85, 245, 197, 0.28), 0 0 46px rgba(85, 245, 197, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary {
    animation: none;
  }
}

.hero {
  position: relative;
  padding: 56px 0 56px;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
}

.hero-logo img {
  width: 72px;
  height: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(11, 15, 26, 0.9) 0%, rgba(11, 15, 26, 0.4) 60%),
    url("assets/img/hero-bg.jpg") center/cover no-repeat;
  opacity: 0.7;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(85, 245, 197, 0.35), transparent 45%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  line-height: 1.05;
  margin: 18px 0 20px;
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}


.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: min(100%, 520px);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
}

.hero-orbit {
  position: absolute;
  inset: 8% 10% 6% 10%;
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(85, 245, 197, 0.18), rgba(58, 163, 255, 0.08)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px);
  box-shadow: 0 0 30px rgba(85, 245, 197, 0.18);
  filter: blur(0.2px);
  opacity: 0.7;
  animation: pulse 7s ease-in-out infinite;
}

.section {
  padding: 90px 0;
}

.section:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.02);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.tm {
  font-size: 0.8em;
  vertical-align: super;
  letter-spacing: 0;
  margin-left: 0.12em;
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin: 0;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  align-items: center;
}

.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.split-copy p {
  color: var(--muted);
}

.lowdown .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(85, 245, 197, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::after {
  opacity: 1;
}

.card-icon {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.story {
  position: relative;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  align-items: center;
}

.story-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.press {
  background: linear-gradient(120deg, rgba(17, 24, 39, 0.85), rgba(11, 15, 26, 0.85));
}

.press-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 34px 32px;
  align-items: center;
  justify-items: center;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.press-wall-logo {
  width: 100%;
  max-width: 280px;
  height: 72px;
  object-fit: contain;
  opacity: 0.92;
  filter: var(--logo-filter, none);
  --logo-scale: 1;
  transform: scale(var(--logo-scale));
  transform-origin: center;
  will-change: transform;
  transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.press-wall-logo:hover {
  opacity: 0.96;
  filter: var(--logo-filter-hover, saturate(1.08) brightness(1.06));
  transform: translateY(-1px) scale(var(--logo-scale));
}

.press-wall-logo--boost {
  --logo-scale: 1.35;
}

.press-wall-logo--boost-smh {
  --logo-scale: 1.25;
  max-width: 320px;
}

.press-wall-logo--boost-vb {
  --logo-scale: 2.2;
  max-width: 440px;
}

.press-wall-logo--boost-sdt {
  --logo-scale: 1.55;
  max-width: 340px;
}

.press-wall-logo--boost-wef {
  --logo-scale: 1.25;
  max-width: 220px;
}

/* BBC News wordmark tends to be short; give it a bit more presence. */
.press-wall-logo--boost-bbc {
  --logo-scale: 1.58;
  max-width: 380px;
}

/* WSJ source asset had a baked checkerboard. We matte it to white and invert via CSS so it reads clean on dark. */
.press-wall-logo--wsj {
  --logo-filter: invert(1) brightness(1.17) contrast(1.08);
  --logo-filter-hover: invert(1) brightness(1.22) contrast(1.1);
  opacity: 0.88;
}

.sdk {
  position: relative;
}

@media (max-width: 520px) {
  .press-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 20px;
    padding: 26px;
  }

  .press-wall-logo {
    height: 62px;
  }
}

.sdk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  align-items: center;
}

.sdk-media {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.sdk-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 18px;
}

.store-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.store-badges img {
  height: 40px;
}

.sdk-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer {
  padding: 60px 0 30px;
  background: #0a0d16;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-visual {
  display: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.footer-grid a {
  color: var(--muted);
}

.footer-logo {
  width: 84px;
  margin-bottom: 12px;
}

.footer-title {
  font-weight: 600;
}

.footer-email {
  display: block;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
}

.footer-social {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  line-height: 1;
}

.footer-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .footer-links {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .footer-social {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.8rem;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(0.98);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.85;
  }
}

@media (max-width: 900px) {
  .hero-orbit {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-grid {
    position: relative;
    grid-template-columns: 1fr;
  }

  /* On narrow layouts, let the phone graphic sit behind the copy instead of stacking below it. */
  .hero-visual {
    position: absolute;
    inset: -24px -34px -24px -34px;
    z-index: 0;
    opacity: 0.40;
    pointer-events: none;
  }

  .hero-visual img {
    width: min(560px, 96vw);
    filter:
      drop-shadow(0 24px 46px rgba(0, 0, 0, 0.50))
      saturate(1.05)
      brightness(0.94);
  }

  .hero-copy {
    position: relative;
    z-index: 1;
  }

  .sdk-media {
    display: none;
  }

  .sdk {
    padding-bottom: 56px;
  }

  .site-footer {
    position: relative;
    overflow: hidden;
    padding-top: 48px;
  }

  .footer-visual {
    display: flex;
    position: absolute;
    inset: -24px -34px -24px -34px;
    z-index: 0;
    opacity: 0.68;
    pointer-events: none;
    justify-content: center;
    align-items: center;
  }

  .footer-visual img {
    width: min(560px, 96vw);
    filter:
      blur(0.8px)
      drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5))
      saturate(1.22)
      brightness(1.18)
      contrast(1.05);
  }

  .footer-grid,
  .footer-bottom {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 600px) {
  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-visual {
    inset: -22px -26px -22px -26px;
    opacity: 0.30;
  }
}

@media (max-width: 640px) {
  .demo-overlay {
    padding: 0;
  }

  .demo-overlay__panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}
