@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --rtpv-bg: #0a1628;
  --rtpv-surface: #122038;
  --rtpv-card: #1a2d4a;
  --rtpv-accent: #14b8a6;
  --rtpv-warn: #f59e0b;
  --rtpv-text: #e8f0fa;
  --rtpv-muted: #8ba3c0;
  --rtpv-border: #ffffff14;
  --rtpv-radius: 14px;
  --rtpv-mono: 'JetBrains Mono', monospace;
  --rtpv-sans: 'Outfit', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--rtpv-sans);
  background: var(--rtpv-bg);
  color: var(--rtpv-text);
  line-height: 1.68;
  font-size: 1rem;
}

.rtpv-wrap {
  width: min(100% - 1.75rem, 1100px);
  margin-inline: auto;
}

/* Header */
.rtpv-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--rtpv-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rtpv-border);
}

.rtpv-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
  flex-wrap: wrap;
}

.rtpv-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: inherit;
}

.rtpv-brand img {
  height: 44px;
  width: auto;
  max-width: min(180px, 42vw);
  object-fit: contain;
  border-radius: 8px;
}

.rtpv-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.rtpv-brand-text strong {
  font-size: .95rem;
  color: var(--rtpv-accent);
}

.rtpv-brand-text small {
  font-size: .72rem;
  color: var(--rtpv-muted);
}

.rtpv-head-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}

.rtpv-burger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--rtpv-border);
  background: var(--rtpv-surface);
  border-radius: 10px;
  color: var(--rtpv-text);
  cursor: pointer;
  font-size: 1.2rem;
}

.rtpv-nav {
  display: none;
  width: 100%;
  padding-bottom: .85rem;
}

.rtpv-nav.is-open { display: block; }

.rtpv-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .3rem;
}

.rtpv-nav a {
  display: block;
  padding: .55rem .8rem;
  background: var(--rtpv-surface);
  border-radius: 10px;
  color: var(--rtpv-text);
  text-decoration: none;
  font-size: .88rem;
}

.rtpv-nav a:hover { color: var(--rtpv-accent); }

/* Buttons */
.rtpv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1.25rem;
  border: none;
  border-radius: 11px;
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}

.rtpv-btn:active { transform: scale(.98); }

.rtpv-btn-play {
  background: linear-gradient(135deg, var(--rtpv-accent), #0d9488);
  color: #042f2e;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--rtpv-accent) 35%, transparent);
}

.rtpv-btn-ghost {
  background: var(--rtpv-surface);
  color: var(--rtpv-text);
  border: 1px solid var(--rtpv-border);
}

.rtpv-btn-sm {
  min-height: 40px;
  padding: .45rem .9rem;
  font-size: .85rem;
}

/* Hero */
.rtpv-hero {
  padding: 2.2rem 0 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, color-mix(in srgb, var(--rtpv-accent) 18%, transparent), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, color-mix(in srgb, var(--rtpv-warn) 10%, transparent), transparent);
}

.rtpv-hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.rtpv-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .65rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--rtpv-accent) 22%, transparent);
  color: var(--rtpv-accent);
  margin-bottom: .6rem;
}

.rtpv-hero h1 {
  margin: 0 0 .75rem;
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  line-height: 1.1;
  font-weight: 700;
}

.rtpv-lead {
  color: var(--rtpv-muted);
  font-size: 1.06rem;
  max-width: 58ch;
  margin: 0 0 1.25rem;
}

.rtpv-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 1.5rem;
}

.rtpv-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .65rem;
}

.rtpv-stat {
  background: var(--rtpv-card);
  border: 1px solid var(--rtpv-border);
  border-radius: var(--rtpv-radius);
  padding: .95rem 1rem;
}

.rtpv-stat b {
  display: block;
  font-family: var(--rtpv-mono);
  font-size: 1.25rem;
  color: var(--rtpv-accent);
}

.rtpv-stat small {
  color: var(--rtpv-muted);
  font-size: .82rem;
}

.rtpv-hero-visual {
  background: var(--rtpv-card);
  border: 1px solid var(--rtpv-border);
  border-radius: var(--rtpv-radius);
  padding: 1rem;
  text-align: center;
}

.rtpv-hero-visual img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 10px;
}

.rtpv-hero-visual figcaption {
  margin-top: .65rem;
  font-size: .82rem;
  color: var(--rtpv-muted);
}

/* Content blocks */
.rtpv-main { padding: 1.5rem 0 2.5rem; }

.rtpv-section { margin-bottom: 2rem; }

.rtpv-section h2 {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  margin: 0 0 .85rem;
  color: var(--rtpv-text);
}

.rtpv-section h3 {
  font-size: 1.08rem;
  margin: 1.25rem 0 .5rem;
  color: var(--rtpv-accent);
}

.rtpv-card {
  background: var(--rtpv-surface);
  border: 1px solid var(--rtpv-border);
  border-radius: var(--rtpv-radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}

.rtpv-card p:last-child { margin-bottom: 0; }

.rtpv-note {
  border-left: 3px solid var(--rtpv-warn);
  padding: .75rem 1rem;
  background: color-mix(in srgb, var(--rtpv-warn) 8%, transparent);
  border-radius: 0 10px 10px 0;
  color: var(--rtpv-muted);
  font-size: .92rem;
}

.rtpv-math {
  font-family: var(--rtpv-mono);
  font-size: .88rem;
  background: var(--rtpv-bg);
  padding: .85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--rtpv-border);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

th, td {
  padding: .65rem .75rem;
  border-bottom: 1px solid var(--rtpv-border);
  text-align: left;
}

th { color: var(--rtpv-muted); font-weight: 600; }

.rtpv-crumb {
  font-size: .84rem;
  color: var(--rtpv-muted);
  padding: 1.1rem 0 .25rem;
}

.rtpv-crumb a { color: var(--rtpv-accent); text-decoration: none; }

.rtpv-page-head {
  padding: .5rem 0 1.25rem;
}

.rtpv-page-head h1 {
  margin: .35rem 0;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
}

/* CTA band */
.rtpv-cta-band {
  background: linear-gradient(120deg, color-mix(in srgb, var(--rtpv-accent) 20%, transparent), color-mix(in srgb, var(--rtpv-warn) 12%, transparent));
  border: 1px solid var(--rtpv-border);
  border-radius: var(--rtpv-radius);
  padding: 1.35rem;
  text-align: center;
  margin: 2rem 0;
}

.rtpv-cta-band p {
  margin: 0 0 .85rem;
  color: var(--rtpv-muted);
}

/* Footer */
.rtpv-foot {
  margin-top: 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rtpv-border);
  color: var(--rtpv-muted);
  font-size: .88rem;
}

.rtpv-sitemap {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rtpv-border);
}

.rtpv-sitemap p {
  margin: .3rem 0;
  font-size: .8rem;
  line-height: 1.75;
}

.rtpv-sitemap a {
  color: var(--rtpv-muted);
  text-decoration: none;
}

.rtpv-sitemap a:hover { color: var(--rtpv-accent); }

/* Responsive */
@media (min-width: 768px) {
  .rtpv-burger { display: none; }
  .rtpv-nav {
    display: block !important;
    width: auto;
    padding: 0;
  }
  .rtpv-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .15rem;
  }
  .rtpv-nav a {
    background: transparent;
    padding: .35rem .55rem;
    font-size: .82rem;
  }
  .rtpv-stat-row { grid-template-columns: repeat(4, 1fr); }
  .rtpv-hero-grid { grid-template-columns: 1.05fr .95fr; }
}

@media (max-width: 520px) {
  .rtpv-brand-text { display: none; }
}
