@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

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

:root {
  --pv-bg: #0a0a14;
  --pv-surface: #111122;
  --pv-surface-2: #181832;
  --pv-surface-3: #1e1e3a;
  --pv-border: #222244;
  --pv-border-subtle: #1a1a36;
  --pv-text: #eeeef5;
  --pv-text-dim: #8888aa;
  --pv-text-muted: #5c5c7a;
  --pv-red: #e63946;
  --pv-red-light: #ff6b6b;
  --pv-red-dark: #c52d39;
  --pv-red-glow: rgba(230, 57, 70, 0.12);
  --pv-red-glow-strong: rgba(230, 57, 70, 0.25);
  --pv-white: #ffffff;
  --pv-content-bg: #fafafa;
  --pv-content-text: #2d2d3a;
  --pv-content-text-dim: #5a5a72;
  --pv-max-width: 1120px;
  --pv-radius: 14px;
  --pv-radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--pv-text);
  background: var(--pv-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Scroll Reveal ── */

.pv-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* stagger children */
.pv-features-grid .pv-reveal:nth-child(2) { transition-delay: 0.06s; }
.pv-features-grid .pv-reveal:nth-child(3) { transition-delay: 0.12s; }
.pv-features-grid .pv-reveal:nth-child(4) { transition-delay: 0.18s; }
.pv-features-grid .pv-reveal:nth-child(5) { transition-delay: 0.24s; }
.pv-features-grid .pv-reveal:nth-child(6) { transition-delay: 0.3s; }
.pv-features-grid .pv-reveal:nth-child(7) { transition-delay: 0.36s; }
.pv-features-grid .pv-reveal:nth-child(8) { transition-delay: 0.42s; }
.pv-features-grid .pv-reveal:nth-child(9) { transition-delay: 0.48s; }
.pv-features-grid .pv-reveal:nth-child(10) { transition-delay: 0.54s; }
.pv-features-grid .pv-reveal:nth-child(11) { transition-delay: 0.6s; }

.pv-features-showcase .pv-reveal:nth-child(2) { transition-delay: 0.1s; }
.pv-features-showcase .pv-reveal:nth-child(3) { transition-delay: 0.2s; }

.pv-security-grid .pv-reveal:nth-child(2) { transition-delay: 0.08s; }
.pv-security-grid .pv-reveal:nth-child(3) { transition-delay: 0.16s; }
.pv-security-grid .pv-reveal:nth-child(4) { transition-delay: 0.24s; }

.pv-compat-list .pv-reveal:nth-child(2) { transition-delay: 0.06s; }
.pv-compat-list .pv-reveal:nth-child(3) { transition-delay: 0.12s; }
.pv-compat-list .pv-reveal:nth-child(4) { transition-delay: 0.18s; }
.pv-compat-list .pv-reveal:nth-child(5) { transition-delay: 0.24s; }

/* ── Navigation ── */

.pv-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 20, 0.82);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--pv-border);
  padding: 0.7rem 1.5rem;
}

.pv-nav-inner {
  max-width: var(--pv-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pv-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--pv-text);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.pv-nav-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.pv-nav-links {
  display: flex;
  gap: 1.5rem;
}

.pv-nav-links a {
  color: var(--pv-text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.pv-nav-links a:hover {
  color: var(--pv-text);
}

/* ── Hero ── */

.pv-hero {
  text-align: center;
  padding: 6rem 1.5rem 4.5rem;
  position: relative;
  overflow: hidden;
}

/* Layered background: radial glow + subtle grid pattern */
.pv-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse at center, var(--pv-red-glow-strong) 0%, var(--pv-red-glow) 30%, transparent 65%);
  pointer-events: none;
}

.pv-hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--pv-border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--pv-border-subtle) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center top, rgba(0,0,0,0.3) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center top, rgba(0,0,0,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.pv-hero-inner {
  position: relative;
  max-width: var(--pv-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pv-hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pv-red);
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.18);
  border-radius: 100px;
  padding: 0.4rem 1.1rem;
  margin-bottom: 2rem;
  animation: pv-fade-in-down 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pv-hero-logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(230, 57, 70, 0.15),
    0 0 80px var(--pv-red-glow-strong),
    0 24px 60px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
  animation: pv-fade-in-up 0.7s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pv-hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 0.4rem;
  letter-spacing: -0.035em;
  line-height: 1.1;
  animation: pv-fade-in-up 0.7s 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pv-hero-vault {
  color: var(--pv-red);
}

.pv-hero-subtitle {
  font-size: 1.2rem;
  color: var(--pv-text-dim);
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
  animation: pv-fade-in-up 0.7s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pv-hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--pv-text-muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  font-weight: 600;
  animation: pv-fade-in-up 0.7s 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pv-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--pv-red);
  color: var(--pv-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 24px rgba(230, 57, 70, 0.3), 0 0 0 1px rgba(230, 57, 70, 0.1);
  animation: pv-fade-in-up 0.7s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pv-cta-button:hover {
  background: var(--pv-red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(230, 57, 70, 0.45), 0 0 0 1px rgba(230, 57, 70, 0.15);
}

.pv-cta-button:active {
  transform: translateY(0);
}

.pv-cta-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.pv-hero-platforms {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  animation: pv-fade-in-up 0.7s 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pv-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pv-text-dim);
  background: var(--pv-surface);
  border: 1px solid var(--pv-border);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
}

@keyframes pv-fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pv-fade-in-down {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Marquee ── */

.pv-marquee {
  border-top: 1px solid var(--pv-border);
  border-bottom: 1px solid var(--pv-border);
  background: var(--pv-surface);
  overflow: hidden;
  padding: 0.85rem 0;
  position: relative;
}

.pv-marquee::before,
.pv-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.pv-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--pv-surface) 0%, transparent 100%);
}

.pv-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--pv-surface) 0%, transparent 100%);
}

.pv-marquee-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  animation: pv-marquee-scroll 40s linear infinite;
  width: max-content;
}

.pv-marquee-track span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pv-text-dim);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.pv-marquee-dot {
  width: 4px !important;
  height: 4px;
  border-radius: 50%;
  background: var(--pv-red);
  display: inline-block;
  flex-shrink: 0;
}

@keyframes pv-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Section Label ── */

.pv-section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pv-red);
  background: rgba(230, 57, 70, 0.06);
  border: 1px solid rgba(230, 57, 70, 0.14);
  border-radius: 6px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.25rem;
}

/* ── Sections (General) ── */

.pv-section {
  padding: 5.5rem 1.5rem;
}

.pv-section-inner {
  max-width: var(--pv-max-width);
  margin: 0 auto;
}

.pv-features-section .pv-section-inner {
  text-align: center;
}

.pv-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.pv-section-subtitle {
  text-align: center;
  color: var(--pv-text-dim);
  font-size: 1.05rem;
  font-weight: 600;
  max-width: 560px;
  margin: 0 auto 3.5rem;
  line-height: 1.7;
}

/* ── Features: Showcase (top 3) ── */

.pv-features-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--pv-border);
  border-radius: var(--pv-radius);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--pv-border);
}

.pv-showcase-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  background: var(--pv-surface);
  text-align: left;
  transition: background 0.3s;
}

.pv-showcase-card:hover {
  background: var(--pv-surface-2);
}

.pv-showcase-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 12px;
  background: rgba(230, 57, 70, 0.07);
  border: 1px solid rgba(230, 57, 70, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-showcase-content h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.pv-showcase-content p {
  color: var(--pv-text-dim);
  font-size: 0.9rem;
  line-height: 1.65;
  font-weight: 400;
}

/* ── Features Grid ── */

.pv-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--pv-border);
  border-radius: var(--pv-radius);
  overflow: hidden;
  border: 1px solid var(--pv-border);
}

.pv-feature-card {
  background: var(--pv-surface);
  padding: 1.6rem;
  text-align: left;
  transition: background 0.3s;
  position: relative;
}

.pv-feature-card:hover {
  background: var(--pv-surface-2);
}

.pv-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--pv-radius-sm);
  background: rgba(230, 57, 70, 0.07);
  border: 1px solid rgba(230, 57, 70, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.pv-feature-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.pv-feature-card p {
  color: var(--pv-text-dim);
  font-size: 0.87rem;
  line-height: 1.6;
  font-weight: 400;
}

/* ── Security Section ── */

.pv-security {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(230, 57, 70, 0.04) 0%, transparent 50%),
    var(--pv-surface);
  border-top: 1px solid var(--pv-border);
  border-bottom: 1px solid var(--pv-border);
}

.pv-security .pv-section-inner {
  text-align: center;
}

.pv-security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pv-security-item {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  border-radius: var(--pv-radius);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--pv-border);
  transition: border-color 0.3s, transform 0.3s;
}

.pv-security-item:hover {
  border-color: rgba(230, 57, 70, 0.3);
  transform: translateY(-2px);
}

.pv-security-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.05);
  border: 1.5px solid rgba(230, 57, 70, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.pv-security-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--pv-red);
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pv-security-item h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.pv-security-item p {
  color: var(--pv-text-dim);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* ── Open Standard / No Lock-in ── */

.pv-open {
  position: relative;
}

.pv-open .pv-section-inner {
  max-width: var(--pv-max-width);
}

.pv-open-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.pv-open-text {
  text-align: left;
}

.pv-open-text h2 {
  text-align: left;
  margin-bottom: 1rem;
}

.pv-open-text p {
  color: var(--pv-text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 400;
}

.pv-open-compat {
  text-align: center;
}

.pv-compat-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.pv-compat-tag {
  background: var(--pv-surface);
  border: 1px solid var(--pv-border);
  border-radius: 8px;
  padding: 0.6rem 1.3rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: border-color 0.25s, background 0.25s;
}

.pv-compat-tag:hover {
  border-color: var(--pv-red);
  background: var(--pv-surface-2);
}

.pv-compat-more {
  color: var(--pv-text-dim);
  font-style: italic;
  font-weight: 600;
}

.pv-open-subtext {
  margin-top: 1.25rem;
  color: var(--pv-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Download CTA ── */

.pv-download {
  text-align: center;
  padding: 5.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.pv-download::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, var(--pv-red-glow) 0%, transparent 65%);
  pointer-events: none;
}

.pv-download-inner {
  position: relative;
}

.pv-download h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.pv-download > p,
.pv-download-inner > p {
  color: var(--pv-text-dim);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.pv-price-tag {
  display: inline-block;
  background: var(--pv-surface);
  border: 1px solid var(--pv-border);
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  font-weight: 700;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--pv-text-dim);
}

/* ── Footer ── */

.pv-footer {
  border-top: 1px solid var(--pv-border);
  padding: 2rem 1.5rem;
  text-align: center;
}

.pv-footer-inner {
  max-width: var(--pv-max-width);
  margin: 0 auto;
}

.pv-footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.pv-footer-links a {
  color: var(--pv-text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.pv-footer-links a:hover {
  color: var(--pv-text);
}

.pv-footer-copy {
  color: var(--pv-text-dim);
  font-size: 0.8rem;
}

/* ── Legal Pages ── */

.pv-legal-header {
  background: var(--pv-bg);
  color: var(--pv-text);
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
}

.pv-legal-header-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 40px var(--pv-red-glow);
}

.pv-legal-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.pv-legal-header p {
  color: var(--pv-text-dim);
  font-size: 0.95rem;
}

.pv-legal-body {
  background: var(--pv-content-bg);
}

.pv-legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.pv-legal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pv-content-text);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e5ed;
}

.pv-legal-content h2:first-child {
  margin-top: 0;
}

.pv-legal-content p {
  color: var(--pv-content-text-dim);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.pv-legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.pv-legal-content li {
  color: var(--pv-content-text-dim);
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.pv-legal-content strong {
  color: var(--pv-content-text);
  font-weight: 700;
}

.pv-legal-content a {
  color: var(--pv-red);
  text-decoration: none;
  font-weight: 600;
}

.pv-legal-content a:hover {
  text-decoration: underline;
}

.pv-legal-body .pv-footer {
  background: var(--pv-bg);
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .pv-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pv-security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pv-resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pv-open-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .pv-open-text {
    text-align: center;
  }
  .pv-open-text h2 {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .pv-hero {
    padding: 3.5rem 1rem 2.5rem;
  }
  .pv-hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }
  .pv-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }
  .pv-hero-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.9rem;
    margin-bottom: 1.5rem;
  }
  .pv-section {
    padding: 3.5rem 1rem;
  }
  .pv-features-grid {
    grid-template-columns: 1fr;
  }
  .pv-resources-grid {
    grid-template-columns: 1fr;
  }
  .pv-features-showcase {
    margin-bottom: 1.5rem;
  }
  .pv-showcase-card {
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.5rem;
  }
  .pv-security-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .pv-security-item {
    padding: 1.25rem 0.75rem;
  }
  .pv-security-ring {
    width: 56px;
    height: 56px;
    margin-bottom: 0.9rem;
  }
  .pv-security-ring svg {
    width: 32px;
    height: 32px;
  }
  .pv-download {
    padding: 3.5rem 1rem;
  }
  .pv-footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
  .pv-nav-links {
    gap: 1rem;
  }
  .pv-open-layout {
    gap: 2rem;
  }
  .pv-marquee-track {
    gap: 1rem;
  }
  .pv-marquee-track span {
    font-size: 0.75rem;
  }
}

@media (max-width: 400px) {
  .pv-security-grid {
    grid-template-columns: 1fr;
  }
  .pv-compat-list {
    flex-direction: column;
    align-items: center;
  }
  .pv-hero-platforms {
    flex-direction: column;
    align-items: center;
  }
}

/* ══════════════════════════════════════════════════════════════
   ARTICLE PAGES
   ══════════════════════════════════════════════════════════════ */

/* ── Breadcrumb Navigation ── */

.pv-breadcrumb {
  background: var(--pv-surface);
  border-bottom: 1px solid var(--pv-border);
  padding: 0.75rem 1.5rem;
}

.pv-breadcrumb-inner {
  max-width: var(--pv-max-width);
  margin: 0 auto;
}

.pv-breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.pv-breadcrumb-list li {
  display: flex;
  align-items: center;
}

.pv-breadcrumb-list li:not(:last-child)::after {
  content: '\203A';
  margin: 0 0.6rem;
  color: var(--pv-text-muted);
  font-size: 1rem;
}

.pv-breadcrumb-list a {
  color: var(--pv-text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.pv-breadcrumb-list a:hover {
  color: var(--pv-red);
}

.pv-breadcrumb-list li[aria-current="page"] {
  color: var(--pv-text);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Article Header ── */

.pv-article-header {
  background: var(--pv-bg);
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.pv-article-header::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, var(--pv-red-glow) 0%, transparent 65%);
  pointer-events: none;
}

.pv-article-header-inner {
  position: relative;
  max-width: 740px;
  margin: 0 auto;
}

.pv-article-header h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.pv-article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.pv-article-reading-time,
.pv-article-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--pv-text-dim);
  font-size: 0.88rem;
  font-weight: 600;
}

.pv-article-reading-time svg,
.pv-article-date svg {
  opacity: 0.7;
}

.pv-article-subtitle {
  color: var(--pv-text-dim);
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 600;
  max-width: 640px;
  margin: 0 auto;
}

/* ── Article Body ── */

.pv-article-body {
  background: var(--pv-content-bg);
}

.pv-article-body-inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ── Table of Contents ── */

.pv-toc {
  background: #f0f0f5;
  border: 1px solid #e0e0ea;
  border-radius: var(--pv-radius-sm);
  padding: 0;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.pv-toc-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--pv-content-text);
  cursor: pointer;
  padding: 1rem 1.25rem;
  list-style: none;
  user-select: none;
  transition: background 0.2s;
}

.pv-toc-title:hover {
  background: #e8e8f0;
}

.pv-toc-title::before {
  content: '\25B6';
  font-size: 0.6rem;
  transition: transform 0.2s;
  color: var(--pv-red);
}

.pv-toc[open] > .pv-toc-title::before {
  transform: rotate(90deg);
}

/* Hide default marker in Chrome/Safari */
.pv-toc-title::-webkit-details-marker {
  display: none;
}

.pv-toc-content {
  padding: 0 1.25rem 1rem;
}

.pv-toc-content nav > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pv-toc-content nav > ul > li {
  margin-bottom: 0.15rem;
}

.pv-toc-content nav > ul > li > a {
  display: block;
  padding: 0.3rem 0;
  color: var(--pv-content-text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
}

.pv-toc-content nav > ul > li > a:hover {
  color: var(--pv-red);
  border-left-color: var(--pv-red);
}

/* Nested TOC items (H3) */
.pv-toc-content nav > ul > li > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pv-toc-content nav > ul > li > ul > li > a {
  display: block;
  padding: 0.25rem 0 0.25rem 1.5rem;
  color: var(--pv-content-text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.8;
  transition: color 0.2s, opacity 0.2s;
}

.pv-toc-content nav > ul > li > ul > li > a:hover {
  color: var(--pv-red);
  opacity: 1;
}

/* ── Article Content Typography ── */

.pv-article-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pv-content-text);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e5ed;
  letter-spacing: -0.02em;
  text-align: left;
  line-height: 1.3;
}

.pv-article-content h2:first-child {
  margin-top: 0;
}

.pv-article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pv-content-text);
  margin: 2rem 0 0.5rem;
  letter-spacing: -0.01em;
  text-align: left;
  line-height: 1.35;
}

.pv-article-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pv-content-text);
  margin: 1.5rem 0 0.5rem;
  text-align: left;
}

.pv-article-content p {
  color: var(--pv-content-text-dim);
  margin-bottom: 1.25rem;
  line-height: 1.85;
  font-size: 1rem;
}

.pv-article-content a {
  color: var(--pv-red);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.pv-article-content a:hover {
  color: var(--pv-red-dark);
  text-decoration: underline;
}

.pv-article-content strong {
  color: var(--pv-content-text);
  font-weight: 700;
}

.pv-article-content em {
  font-style: italic;
}

/* ── Lists ── */

.pv-article-content ul,
.pv-article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.pv-article-content li {
  color: var(--pv-content-text-dim);
  margin-bottom: 0.5rem;
  line-height: 1.75;
  font-size: 1rem;
}

.pv-article-content li::marker {
  color: var(--pv-red);
}

.pv-article-content ul ul,
.pv-article-content ol ol,
.pv-article-content ul ol,
.pv-article-content ol ul {
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

/* ── Blockquotes ── */

.pv-article-content blockquote {
  border-left: 4px solid var(--pv-red);
  background: #f2f2f8;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 0 var(--pv-radius-sm) var(--pv-radius-sm) 0;
}

.pv-article-content blockquote p {
  color: var(--pv-content-text);
  margin-bottom: 0;
  font-style: italic;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.75;
}

.pv-article-content blockquote p + p {
  margin-top: 0.75rem;
}

/* ── Code Blocks ── */

.pv-article-content code {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Consolas', 'Monaco', monospace;
  font-size: 0.88em;
  background: #eaeaf0;
  color: var(--pv-content-text);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-weight: 600;
}

.pv-article-content pre {
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: var(--pv-radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  line-height: 1.65;
  border: 1px solid #2a2a3e;
}

.pv-article-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: 0.88rem;
  font-weight: 400;
}

/* ── Images ── */

.pv-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--pv-radius-sm);
  margin: 1.5rem 0;
  display: block;
}

/* ── Tables ── */

.pv-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.pv-article-content thead th {
  background: #eaeaf0;
  color: var(--pv-content-text);
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #dddde5;
}

.pv-article-content tbody td {
  color: var(--pv-content-text-dim);
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #ededf2;
}

.pv-article-content tbody tr:hover {
  background: #f5f5fa;
}

/* ── Horizontal Rules ── */

.pv-article-content hr {
  border: none;
  border-top: 2px solid #e5e5ed;
  margin: 2.5rem 0;
}

/* ── Related Articles Section ── */

.pv-related-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(230, 57, 70, 0.04) 0%, transparent 50%),
    var(--pv-surface);
  border-top: 1px solid var(--pv-border);
}

.pv-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--pv-border);
  border-radius: var(--pv-radius);
  overflow: hidden;
  border: 1px solid var(--pv-border);
}

.pv-related-card {
  background: var(--pv-surface);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--pv-text);
  text-align: left;
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
}

.pv-related-card:hover {
  background: var(--pv-surface-2);
}

.pv-related-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.pv-related-card p {
  color: var(--pv-text-dim);
  font-size: 0.87rem;
  line-height: 1.6;
  font-weight: 400;
  flex: 1;
}

.pv-related-card-meta {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pv-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Article CTA Section ── */

.pv-article-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pv-article-cta::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, var(--pv-red-glow) 0%, transparent 65%);
  pointer-events: none;
}

.pv-article-cta-box {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.pv-article-cta-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 40px var(--pv-red-glow);
}

.pv-article-cta-box h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.pv-article-cta-box p {
  color: var(--pv-text-dim);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.pv-article-cta-box .pv-cta-button {
  animation: none;
}

/* ── Article List (legacy, for list pages) ── */

.pv-article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--pv-border);
  border-radius: var(--pv-radius);
  overflow: hidden;
  border: 1px solid var(--pv-border);
  margin-top: 2.5rem;
}

.pv-article-card {
  background: var(--pv-surface);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--pv-text);
  text-align: left;
  transition: background 0.3s;
}

.pv-article-card:hover {
  background: var(--pv-surface-2);
}

.pv-article-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.pv-article-card p {
  color: var(--pv-text-dim);
  font-size: 0.87rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   ARTICLE RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .pv-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pv-article-header {
    padding: 2.5rem 1rem 2rem;
  }

  .pv-article-header h1 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .pv-article-meta {
    gap: 0.75rem;
  }

  .pv-article-subtitle {
    font-size: 1rem;
  }

  .pv-article-body-inner {
    padding: 2rem 1rem 3rem;
  }

  .pv-breadcrumb {
    padding: 0.6rem 1rem;
  }

  .pv-breadcrumb-list {
    font-size: 0.78rem;
  }

  .pv-breadcrumb-list li[aria-current="page"] {
    max-width: 180px;
  }

  .pv-toc {
    margin-bottom: 2rem;
  }

  .pv-toc[open] {
    /* Keep open but smaller on mobile */
  }

  .pv-article-content h2 {
    font-size: 1.3rem;
    margin-top: 2rem;
  }

  .pv-article-content h3 {
    font-size: 1.1rem;
  }

  .pv-article-content pre {
    padding: 1rem;
    font-size: 0.82rem;
    border-radius: 8px;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

  .pv-related-grid {
    grid-template-columns: 1fr;
  }

  .pv-article-cta-box h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 400px) {
  .pv-article-meta {
    flex-direction: column;
    gap: 0.35rem;
  }
}

/* ── Resources / Silo Grid ── */

.pv-resources-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(230, 57, 70, 0.04) 0%, transparent 50%),
    var(--pv-surface);
  border-top: 1px solid var(--pv-border);
  border-bottom: 1px solid var(--pv-border);
}

.pv-resources-section .pv-section-inner {
  text-align: center;
}

.pv-resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--pv-border);
  border-radius: var(--pv-radius);
  overflow: hidden;
  border: 1px solid var(--pv-border);
}

.pv-resource-card {
  background: var(--pv-surface);
  padding: 1.4rem 1.3rem;
  text-align: left;
  text-decoration: none;
  color: var(--pv-text);
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
}

.pv-resource-card:hover {
  background: var(--pv-surface-2);
}

.pv-resource-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--pv-radius-sm);
  background: rgba(230, 57, 70, 0.07);
  border: 1px solid rgba(230, 57, 70, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.pv-resource-card h3 {
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.pv-resource-card p {
  color: var(--pv-text-dim);
  font-size: 0.84rem;
  line-height: 1.55;
  font-weight: 400;
  margin: 0;
}

/* stagger resources grid children */
.pv-resources-grid .pv-reveal:nth-child(2) { transition-delay: 0.04s; }
.pv-resources-grid .pv-reveal:nth-child(3) { transition-delay: 0.08s; }
.pv-resources-grid .pv-reveal:nth-child(4) { transition-delay: 0.12s; }
.pv-resources-grid .pv-reveal:nth-child(5) { transition-delay: 0.16s; }
.pv-resources-grid .pv-reveal:nth-child(6) { transition-delay: 0.2s; }
.pv-resources-grid .pv-reveal:nth-child(7) { transition-delay: 0.24s; }
.pv-resources-grid .pv-reveal:nth-child(8) { transition-delay: 0.28s; }
.pv-resources-grid .pv-reveal:nth-child(9) { transition-delay: 0.32s; }
.pv-resources-grid .pv-reveal:nth-child(10) { transition-delay: 0.36s; }
.pv-resources-grid .pv-reveal:nth-child(11) { transition-delay: 0.4s; }
.pv-resources-grid .pv-reveal:nth-child(12) { transition-delay: 0.44s; }
.pv-resources-grid .pv-reveal:nth-child(13) { transition-delay: 0.48s; }
.pv-resources-grid .pv-reveal:nth-child(14) { transition-delay: 0.52s; }
.pv-resources-grid .pv-reveal:nth-child(15) { transition-delay: 0.56s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pv-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .pv-marquee-track {
    animation: none;
  }
  .pv-hero-badge,
  .pv-hero-logo,
  .pv-hero h1,
  .pv-hero-subtitle,
  .pv-hero-tagline,
  .pv-cta-button,
  .pv-hero-platforms {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
