/* What's New / Latest Breakthroughs — cinematic release hub */

.whats-new-page {
  --wn-glow-cyan: rgba(34, 211, 238, 0.45);
  --wn-glow-violet: rgba(167, 139, 250, 0.5);
  --wn-surface: rgba(10, 16, 32, 0.78);
  --wn-border: rgba(129, 140, 248, 0.32);
}

/* ── Hero ── */
.whats-new-hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 140% 90% at 50% -30%, rgba(99, 102, 241, 0.32), transparent 58%),
    radial-gradient(ellipse 80% 70% at 95% 35%, rgba(168, 85, 247, 0.2), transparent 52%),
    radial-gradient(ellipse 70% 60% at 5% 55%, rgba(34, 211, 238, 0.16), transparent 48%),
    linear-gradient(168deg, #030508 0%, #080e1c 40%, #0a1020 100%);
  border-bottom: 1px solid rgba(129, 140, 248, 0.4);
}

.whats-new-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 47px,
      rgba(34, 211, 238, 0.025) 47px,
      rgba(34, 211, 238, 0.025) 48px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 47px,
      rgba(99, 102, 241, 0.02) 47px,
      rgba(99, 102, 241, 0.02) 48px
    );
  opacity: 0.7;
  animation: wn-grid-shift 24s linear infinite;
}

.whats-new-hero::after {
  content: "";
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(34, 211, 238, 0.12), transparent 55%);
  animation: wn-hero-glow 8s ease-in-out infinite alternate;
}

@keyframes wn-grid-shift {
  0% { transform: translateY(0); }
  100% { transform: translateY(48px); }
}

@keyframes wn-hero-glow {
  0% { opacity: 0.45; transform: scale(1); }
  100% { opacity: 0.85; transform: scale(1.05); }
}

.whats-new-hero .container {
  position: relative;
  z-index: 1;
}

.whats-new-hero__kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #67e8f9;
}

.whats-new-hero__title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #fff;
}

.whats-new-hero__title-accent {
  display: block;
  margin-top: 0.15rem;
  background: linear-gradient(92deg, #67e8f9 0%, #a78bfa 52%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.whats-new-hero__lead {
  margin: 1.15rem 0 0;
  max-width: 42rem;
  font-size: clamp(1.02rem, 2.1vw, 1.14rem);
  line-height: 1.65;
  color: #cbd5e1;
}

.whats-new-hero__cta {
  margin-top: 1.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.whats-new-hero__tags {
  position: relative;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  min-height: 5.5rem;
}

.whats-new-hero__tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e0e7ff;
  background: rgba(14, 20, 36, 0.82);
  border: 1px solid rgba(129, 140, 248, 0.45);
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.18);
  animation: wn-tag-float 6s ease-in-out infinite;
  white-space: nowrap;
}

.whats-new-hero__tag:nth-child(1) { top: 0; left: 2%; animation-delay: 0s; }
.whats-new-hero__tag:nth-child(2) { top: 12%; left: 28%; animation-delay: -1.2s; border-color: rgba(34, 211, 238, 0.5); }
.whats-new-hero__tag:nth-child(3) { top: 4%; left: 52%; animation-delay: -2.4s; }
.whats-new-hero__tag:nth-child(4) { top: 38%; left: 8%; animation-delay: -0.8s; }
.whats-new-hero__tag:nth-child(5) { top: 42%; left: 38%; animation-delay: -3.1s; border-color: rgba(34, 211, 238, 0.45); }
.whats-new-hero__tag:nth-child(6) { top: 30%; left: 68%; animation-delay: -1.8s; }

@keyframes wn-tag-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 640px) {
  .whats-new-hero__tags {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    min-height: 0;
  }

  .whats-new-hero__tag {
    position: static;
    animation: none;
  }
}

/* ── Sticky mini nav ── */
.whats-new-subnav-wrap {
  position: sticky;
  top: var(--site-header-h, 4rem);
  z-index: 40;
  background: rgba(6, 8, 16, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.whats-new-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0;
}

.whats-new-subnav__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-right: 0.25rem;
}

.whats-new-subnav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.whats-new-subnav a:hover,
.whats-new-subnav a.is-active {
  color: #fff;
  background: rgba(99, 102, 241, 0.25);
}

/* ── Section shells ── */
.whats-new-section {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  scroll-margin-top: calc(var(--site-header-h, 4rem) + 3.5rem);
}

.whats-new-section--dim {
  background: linear-gradient(180deg, rgba(8, 12, 24, 0.55) 0%, rgba(6, 8, 16, 0.85) 100%);
}

.whats-new-section__head {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.whats-new-section__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #fff;
}

.whats-new-section__desc {
  margin: 0;
  max-width: 38rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #94a3b8;
}

.whats-new-gradient-sep {
  height: 1px;
  margin: 0;
  border: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--wn-glow-cyan) 20%,
    var(--wn-glow-violet) 50%,
    var(--wn-glow-cyan) 80%,
    transparent 100%
  );
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.25);
}

/* ── Reusable: release-badge ── */
.release-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
}

.release-badge--live {
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.15);
}

.release-badge--live::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee;
  animation: vision-pulse 2s ease-in-out infinite;
}

.release-badge--new {
  color: #c4b5fd;
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(167, 139, 250, 0.45);
}

.release-badge--progress {
  color: #fde68a;
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(250, 204, 21, 0.4);
}

/* ── Reusable: update-category-pill ── */
.update-category-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(14, 20, 36, 0.65);
  border: 1px solid rgba(71, 85, 105, 0.55);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.update-category-pill:hover {
  color: #e2e8f0;
  border-color: rgba(129, 140, 248, 0.45);
}

.update-category-pill.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(99, 102, 241, 0.28));
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.12);
}

.whats-new-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}

/* ── Featured release card ── */
.release-card--featured {
  position: relative;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: calc(var(--radius, 14px) + 4px);
  background: var(--wn-surface);
  border: 1px solid var(--wn-border);
  overflow: hidden;
}

.release-card--featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.55), rgba(99, 102, 241, 0.35), rgba(168, 85, 247, 0.45));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@media (min-width: 900px) {
  .release-card--featured {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
}

.release-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.release-card__icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.release-card__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}

.release-card__summary {
  margin: 0 0 1.15rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.release-card__pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.release-card__pill {
  padding: 0.22rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a5b4fc;
  background: rgba(30, 27, 75, 0.45);
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 999px;
}

.release-card__cols {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .release-card__cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

.release-card__col {
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius, 14px);
  border: 1px solid rgba(71, 85, 105, 0.5);
  background: rgba(8, 12, 24, 0.55);
}

.release-card__col-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #67e8f9;
}

.release-card__col p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #94a3b8;
}

.release-card__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius, 14px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45);
}

/* ── Timeline stream ── */
.whats-new-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-left: 0;
}

@media (min-width: 768px) {
  .whats-new-timeline {
    padding-left: 2.25rem;
  }

  .whats-new-timeline::before {
    content: "";
    position: absolute;
    left: 0.55rem;
    top: 0.75rem;
    bottom: 0.75rem;
    width: 2px;
    background: linear-gradient(
      180deg,
      rgba(34, 211, 238, 0.15),
      rgba(34, 211, 238, 0.55) 15%,
      rgba(167, 139, 250, 0.55) 85%,
      rgba(167, 139, 250, 0.15)
    );
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.25);
  }
}

/* ── Reusable: timeline-node + release-card ── */
.timeline-node {
  position: relative;
}

@media (min-width: 768px) {
  .timeline-node::before {
    content: "";
    position: absolute;
    left: -2.25rem;
    top: 1.35rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #0a1020;
    border: 2px solid rgba(34, 211, 238, 0.65);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
    transform: translateX(-50%);
    z-index: 2;
  }

  .timeline-node.is-visible::before {
    animation: wn-node-pulse 2.5s ease-in-out infinite;
  }
}

@keyframes wn-node-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(34, 211, 238, 0.35); }
  50% { box-shadow: 0 0 24px rgba(34, 211, 238, 0.55); }
}

.release-card {
  position: relative;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius, 14px);
  background: var(--wn-surface);
  border: 1px solid var(--wn-border);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.release-card:hover {
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(99, 102, 241, 0.12);
  transform: translateY(-2px);
}

.release-card.is-hidden {
  display: none;
}

.release-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.release-card__head-left {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

.release-card__head-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.release-card__head .release-card__title {
  margin: 0;
  font-size: 1.08rem;
}

.release-card__teaser {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #94a3b8;
}

.release-card__expand {
  border-top: 1px solid rgba(71, 85, 105, 0.4);
  padding-top: 0.75rem;
}

.release-card__expand-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  color: #67e8f9;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.release-card__expand-toggle:hover {
  color: #a5f3fc;
}

.release-card__expand-toggle::after {
  content: "+";
  font-size: 1.1rem;
  font-weight: 400;
  color: #94a3b8;
  transition: transform 0.25s;
}

.release-card.is-open .release-card__expand-toggle::after {
  transform: rotate(45deg);
}

.release-card__expand-body {
  display: none;
  padding-top: 0.85rem;
}

.release-card.is-open .release-card__expand-body {
  display: block;
}

.release-card__expand-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.release-card__expand-body li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.release-card__expand-body li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #a78bfa;
  font-size: 0.75rem;
}

.release-card__expand-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: #67e8f9;
  text-decoration: none;
}

.release-card__expand-link:hover {
  text-decoration: underline;
}

.release-card__thumb {
  margin-top: 0.85rem;
  border-radius: calc(var(--radius, 14px) - 2px);
  overflow: hidden;
}

.release-card__thumb img {
  display: block;
  width: 100%;
  height: auto;
}

/* Scroll reveal */
.whats-new-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.whats-new-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mini evolving grid ── */
.whats-new-evolving-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.whats-new-evolving-card {
  padding: 1rem 1.05rem;
  border-radius: var(--radius, 14px);
  background: rgba(8, 12, 24, 0.72);
  border: 1px solid rgba(71, 85, 105, 0.5);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.whats-new-evolving-card:hover {
  border-color: rgba(250, 204, 21, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.whats-new-evolving-card h3 {
  margin: 0.55rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: #fff;
}

.whats-new-evolving-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #64748b;
}

/* ── Philosophy ── */
.whats-new-philosophy {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius, 14px);
  border: 1px solid rgba(129, 140, 248, 0.3);
  background: linear-gradient(155deg, rgba(30, 27, 75, 0.35), rgba(8, 12, 24, 0.75));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.whats-new-philosophy p {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 550;
  line-height: 1.55;
  color: #e2e8f0;
}

/* ── CTA footer band ── */
.whats-new-cta-footer {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(99, 102, 241, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(6, 8, 16, 0.5) 0%, #060810 100%);
}

.whats-new-cta-footer h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: #fff;
}

.whats-new-cta-footer p {
  margin: 0 auto 1.35rem;
  max-width: 32rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #94a3b8;
}

.whats-new-cta-footer .vision-breakthrough__cta-row {
  justify-content: center;
}

.whats-new-empty {
  display: none;
  padding: 2rem;
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  border: 1px dashed rgba(71, 85, 105, 0.55);
  border-radius: var(--radius, 14px);
}

.whats-new-empty.is-visible {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .whats-new-hero::before,
  .whats-new-hero::after,
  .whats-new-hero__tag,
  .timeline-node.is-visible::before {
    animation: none;
  }

  .whats-new-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
