:root {
  --rh-lime: #00C805;
  --rh-lime-dark: #00A804;
  --rh-lime-light: #E8FFE9;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-500: #868E96;
  --gray-700: #495057;
  --gray-900: #212529;
  --text: #1A1A2E;
  --text-muted: #5C5C6F;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1140px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.15;
  color: var(--gray-900);
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--rh-lime);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gray-900);
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--gray-900);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--rh-lime);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--rh-lime-dark);
}

.btn-outline {
  background: transparent;
  color: var(--gray-900);
  border-color: var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--gray-900);
}

.btn-ghost {
  background: var(--white);
  color: var(--gray-900);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

.x-icon {
  width: 18px;
  height: 18px;
}

.x-icon svg {
  width: 100%;
  height: 100%;
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
  background: linear-gradient(180deg, var(--rh-lime-light) 0%, var(--white) 70%);
  overflow: hidden;
  scroll-margin-top: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy {
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rh-lime-dark);
  background: var(--rh-lime-light);
  border-radius: 999px;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

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

.browser-mockup {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  background: var(--white);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.mockup-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
}

.mockup-bar span:first-child {
  background: #FF6B6B;
}

.mockup-bar span:nth-child(2) {
  background: #FFD93D;
}

.mockup-bar span:nth-child(3) {
  background: var(--rh-lime);
}

.mockup-url {
  flex: 1;
  margin-left: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: var(--gray-500);
  background: var(--white);
  border-radius: 6px;
}

.mockup-body {
  padding: 2rem;
  min-height: 280px;
  background: linear-gradient(135deg, var(--rh-lime-light), var(--white));
}

.mockup-shield {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.mockup-shield-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.mockup-shield-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--gray-900);
}

.mockup-shield-text span {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.mockup-stat {
  padding: 0.85rem;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.mockup-stat strong {
  display: block;
  font-size: 1.1rem;
  color: var(--rh-lime);
}

.mockup-stat span {
  font-size: 0.7rem;
  color: var(--gray-500);
}

/* Feature cards */
.feature-cards {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--white);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.feature-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rh-lime);
}

.feature-card a:hover {
  text-decoration: underline;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.section-label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rh-lime-dark);
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.benefit-item h3 {
  margin-bottom: 0.75rem;
}

.benefit-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.benefit-item em {
  font-style: normal;
  font-weight: 600;
  color: var(--gray-900);
}

/* Comparison slider */
.comparison-section {
  background: var(--white);
}

.comparison-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--gray-100);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.tab-btn:hover {
  color: var(--gray-900);
}

.tab-btn.active {
  color: var(--white);
  background: var(--rh-lime);
}

.comparison-stage {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.comparison-slider-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  user-select: none;
  touch-action: pan-y;
  isolation: isolate;
}

.comparison-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}

.comparison-panel.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.comparison-before,
.comparison-after {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.comparison-before img,
.comparison-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-after {
  clip-path: inset(0 50% 0 0);
}

.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--white);
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 3;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.comparison-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.comparison-labels {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  z-index: 5;
  pointer-events: none;
}

.comparison-label {
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  background: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
}

.comparison-hint {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* Compare cards */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.compare-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s;
}

.compare-card:hover {
  box-shadow: var(--shadow-md);
}

.compare-card h3 {
  margin-bottom: 0.5rem;
}

.compare-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.compare-card a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--rh-lime);
}

.compare-card a:hover {
  text-decoration: underline;
}

/* Download CTA */
.download-cta {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: linear-gradient(135deg, var(--rh-lime) 0%, var(--rh-lime-dark) 100%);
  color: var(--white);
  text-align: center;
}

.download-cta h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.download-cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.download-cta .btn-primary {
  background: var(--white);
  color: var(--rh-lime);
}

.download-cta .btn-primary:hover {
  background: var(--gray-100);
}

.download-cta .btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.download-cta .btn-ghost:hover {
  background: rgba(255,255,255,0.18);
  border-color: #fff;
}

.platform-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
  opacity: 0.85;
  font-size: 0.85rem;
  font-weight: 500;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gray-900);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--rh-lime);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer a {
  color: var(--rh-lime);
  font-weight: 500;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* 404 page */
.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-404 main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.error-code {
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: 800;
  line-height: 1;
  color: var(--rh-lime);
  letter-spacing: -0.05em;
}

.error-title {
  margin: 1rem 0 0.5rem;
}

.error-text {
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 2rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: 0;
    margin-top: 1.5rem;
  }

  .browser-mockup {
    box-shadow: var(--shadow-sm);
  }

  .cards-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .mockup-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}