:root {
  --brand-orange: #ff6a00;
  --brand-pink: #ff3fb3;
  --brand-purple: #a07bff;
  --bg-dark: #050308;
  --bg-panel: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --text-main: #f7f5ff;
  --text-muted: #cfc7d6;
  --radius: 16px;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 18px;
  --space-lg: 28px;
  --space-xl: 48px;
}

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

body {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 0%, rgba(255, 63, 179, 0.1), transparent 40%),
              radial-gradient(circle at 80% 10%, rgba(255, 106, 0, 0.12), transparent 38%),
              linear-gradient(160deg, #04020a, #050308 45%, #05040f);
  color: var(--text-main);
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  padding: 80px 18px 64px;
  overflow-x: hidden;
  position: relative;
  text-align: center;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('rhr-logo.png');
  background-repeat: no-repeat;
  background-position: 84% 12%;
  background-size: 520px;
  opacity: 0.04;
  pointer-events: none;
  mix-blend-mode: lighten;
  z-index: 0;
}

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

a:hover,
a:focus-visible {
  color: #fff;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  border-radius: 12px;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
  z-index: 20;
}

.skip-link:focus {
  transform: translateY(0);
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 14px 18px;
  margin: -42px -18px var(--space-lg);
  backdrop-filter: blur(12px);
  background: rgba(5, 3, 8, 0.82);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.brand img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 8px rgba(255, 106, 0, 0.8))
          drop-shadow(0 0 4px rgba(255, 63, 179, 0.6));
  animation: brandGlow 2.5s ease-in-out infinite alternate;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 106, 0, 0.9),
               0 0 8px rgba(255, 63, 179, 0.6),
               0 0 4px rgba(160, 123, 255, 0.4);
  animation: textGlow 2.5s ease-in-out infinite alternate;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  padding: 10px 14px;
  background: linear-gradient(120deg, var(--brand-pink), var(--brand-orange));
  color: #0a050a;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(255, 106, 0, 0.35);
}

.section {
  padding: var(--space-xl) 0;
}

.section-header {
  text-align: left;
  margin-bottom: var(--space-md);
}

.section-kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffcbf2;
  font-size: 0.85rem;
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: var(--space-xs);
}

.section-subtext {
  color: var(--text-muted);
  max-width: 720px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-xl);
  margin-bottom: var(--space-md);
  background: linear-gradient(145deg, rgba(255, 63, 179, 0.08), rgba(255, 106, 0, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 40%, rgba(255, 63, 179, 0.14), transparent 50%),
              radial-gradient(circle at 80% 30%, rgba(255, 106, 0, 0.2), transparent 50%);
  opacity: 0.9;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  animation: fadeInHero 0.9s ease-out both;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
  width: 100%;
}

.hero-logo-full {
  max-width: 560px;
  width: 100%;
  height: auto;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 0 35px rgba(255, 106, 0, 0.85)) 
          drop-shadow(0 0 25px rgba(255, 63, 179, 0.7))
          drop-shadow(0 0 15px rgba(160, 123, 255, 0.6));
  animation: neonGlow 3s ease-in-out infinite alternate;
}

@keyframes neonGlow {
  from { 
    filter: drop-shadow(0 0 30px rgba(255, 106, 0, 0.75)) 
            drop-shadow(0 0 20px rgba(255, 63, 179, 0.6))
            drop-shadow(0 0 12px rgba(160, 123, 255, 0.5));
  }
  to { 
    filter: drop-shadow(0 0 45px rgba(255, 106, 0, 0.95)) 
            drop-shadow(0 0 32px rgba(255, 63, 179, 0.8))
            drop-shadow(0 0 22px rgba(160, 123, 255, 0.7));
  }
}

@keyframes brandGlow {
  from { 
    filter: drop-shadow(0 0 6px rgba(255, 106, 0, 0.7))
            drop-shadow(0 0 3px rgba(255, 63, 179, 0.5));
  }
  to { 
    filter: drop-shadow(0 0 10px rgba(255, 106, 0, 0.9))
            drop-shadow(0 0 6px rgba(255, 63, 179, 0.7));
  }
}

@keyframes textGlow {
  from { 
    text-shadow: 0 0 10px rgba(255, 106, 0, 0.8),
                 0 0 6px rgba(255, 63, 179, 0.5),
                 0 0 3px rgba(160, 123, 255, 0.3);
  }
  to { 
    text-shadow: 0 0 15px rgba(255, 106, 0, 1),
                 0 0 10px rgba(255, 63, 179, 0.7),
                 0 0 6px rgba(160, 123, 255, 0.5);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: #ffcbf2;
}

h1 {
  font-size: clamp(2.7rem, 4vw, 3.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1:not(.visually-hidden) {
  text-shadow: 0 0 26px rgba(255, 106, 0, 0.7), 0 0 18px rgba(255, 30, 30, 0.8), 0 0 34px rgba(255, 63, 179, 0.9);
}

.lede {
  color: var(--text-muted);
  max-width: 680px;
}

.hero-checks {
  display: grid;
  gap: var(--space-xs);
}

.hero-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: var(--space-xs);
  color: var(--text-muted);
}

.hero-check::before {
  content: "✓";
  color: var(--brand-orange);
  font-weight: 800;
  font-size: 1rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.badge {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 0.95rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.cta-row.tight {
  margin-top: var(--space-xs);
}

.kofi-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: 20px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kofi-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 50px rgba(255, 77, 103, 0.35);
}

.kofi-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease;
}

.kofi-link:hover {
  transform: scale(1.05);
}

.kofi-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #ff4d67, #59b7ff);
  box-shadow: 0 0 18px rgba(89, 183, 255, 0.45);
  flex-shrink: 0;
}

.kofi-icon svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.kofi-text {
  font-size: 1.1rem;
  text-align: left;
}

.kofi-caption {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease, filter 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-pink));
  color: #0c060c;
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.5);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 24px rgba(255, 106, 0, 0.8), 0 0 32px rgba(255, 63, 179, 0.5);
  filter: drop-shadow(0 0 10px rgba(255, 63, 179, 0.35));
}

.btn-ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 18px rgba(255, 63, 179, 0.35);
}

.btn-icon {
  font-size: 1rem;
}

.kofi-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

@keyframes fadeInHero {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.card {
  padding: var(--space-md);
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: var(--space-xs);
}

.card p {
  color: var(--text-muted);
}

.feature-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-sm);
  align-items: start;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--brand-orange), var(--brand-pink));
  box-shadow: 0 0 16px rgba(255, 106, 0, 0.35);
  -webkit-mask: url('favicon.svg') center/60% 60% no-repeat;
  mask: url('favicon.svg') center/60% 60% no-repeat;
}

.feature-chip {
  display: inline-block;
  margin-top: var(--space-xs);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.timeline-step {
  padding: var(--space-md);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.timeline-step strong {
  display: block;
  margin-bottom: var(--space-xs);
}

.timeline-step p {
  color: var(--text-muted);
}

.safety .pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.pillar {
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(255, 106, 0, 0.05), rgba(255, 63, 179, 0.04));
  box-shadow: var(--shadow);
}

.pillar p {
  color: var(--text-muted);
}

.download-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow);
}

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-sm);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.download-btn:hover,
.download-btn:focus-visible {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 18px rgba(255, 63, 179, 0.35);
}

.download-btn.is-disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.download-icon {
  font-size: 1.1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.15);
  color: #ffd5b0;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 106, 0, 0.35);
}

.notify-box {
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  border-radius: 12px;
  border: 1px dashed var(--border);
  color: var(--text-muted);
}

.notify-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.community-card {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-md);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 63, 179, 0.08), rgba(255, 106, 0, 0.08));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.community-card:hover,
.community-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 63, 179, 0.35);
}

.community-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--brand-pink), var(--brand-orange));
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.55);
}

.brand-icon {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.community-title {
  font-weight: 800;
}

.community-subtitle {
  color: var(--text-muted);
}

.support-box {
  padding: var(--space-md);
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.support-heading {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.support-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #ff4d67, #59b7ff);
  box-shadow: 0 0 10px rgba(89, 183, 255, 0.45);
}

.support-box p {
  color: var(--text-muted);
}

.version-box,
.changelog {
  padding: var(--space-md);
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.changelog ul {
  margin-top: 6px;
  padding-left: 16px;
  color: var(--text-muted);
}

.changelog li + li {
  margin-top: 4px;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 63, 179, 0.05), rgba(255, 106, 0, 0.05));
  box-shadow: var(--shadow);
  padding: var(--space-md);
}

.carousel input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.slides {
  display: flex;
  gap: var(--space-sm);
  transition: transform 0.6s ease;
  width: 300%;
}

.slide {
  flex: 1 0 33.3333%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.slide img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.06), transparent 60%);
}

.slide figcaption {
  padding: var(--space-sm);
  font-weight: 700;
}

#slide-1:checked ~ .slides { transform: translateX(0%); }
#slide-2:checked ~ .slides { transform: translateX(-33.3333%); }
#slide-3:checked ~ .slides { transform: translateX(-66.6666%); }

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

#slide-1:checked ~ .carousel-controls label[for="slide-1"],
#slide-2:checked ~ .carousel-controls label[for="slide-2"],
#slide-3:checked ~ .carousel-controls label[for="slide-3"] {
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-pink));
  transform: scale(1.1);
}

.screenshot-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.fake-window {
  background: linear-gradient(140deg, rgba(255, 63, 179, 0.06), rgba(255, 106, 0, 0.06));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.fake-bar {
  height: 34px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  padding-left: 12px;
}

.fake-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 16px 0 var(--brand-pink), 32px 0 #ff1e1e;
}

.fake-body {
  height: 140px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0,
    rgba(255, 255, 255, 0.06) 60px,
    rgba(255, 255, 255, 0.03) 60px,
    rgba(255, 255, 255, 0.03) 120px
  );
}

.fake-window figcaption {
  padding: 10px 12px 14px;
  color: #fff;
  font-weight: 700;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

.gallery-card {
  padding: var(--space-md);
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.gallery-card p {
  color: var(--text-muted);
  margin: var(--space-xs) 0;
}

.list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--text-muted);
}

.list-inline span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

.faq-item {
  padding: var(--space-md);
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.faq-item p {
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.footer {
  border-top: 1px solid var(--border);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer-title {
  font-weight: 800;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

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

.footer a:hover,
.footer a:focus-visible {
  color: #fff;
}

@media (max-width: 720px) {
  body {
    padding: 70px 14px 56px;
  }

  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
  }

  .slides {
    width: 100%;
  }

  .slide {
    flex-basis: 100%;
  }

  #slide-1:checked ~ .slides,
  #slide-2:checked ~ .slides,
  #slide-3:checked ~ .slides {
    transform: translateX(0);
  }
}

@supports (animation-timeline: view()) {
  .section {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
