/* ============================================================
   style_new.css — R2J Portal Enhanced Stylesheet
   Candidate & Recruiter UI — Matching Ready2Join design
   No class names, IDs, HTML structure, or JS logic changed.
   ============================================================ */

/* ─── Global Reset & Base ───────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f0ff;
  color: #1a1a2e;
  min-height: 100vh;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Page Wrapper ──────────────────────────────────────────── */
.r2j-page {
  min-height: 100vh;
  background: #f5f0ff;
}

/* ─── Navbar ────────────────────────────────────────────────── */
.r2j-navbar {
  background: #ffffff;
  border-bottom: 1px solid #ede8ff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(124, 58, 237, 0.06);
}

.r2j-navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.r2j-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.r2j-logo-badge {
  background: #7c3aed;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 8px;
  letter-spacing: 0.3px;
}

.r2j-logo-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.3px;
}

/* Nav links */
.r2j-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
}

.r2j-nav-link {
  text-decoration: none;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.18s ease;
  letter-spacing: 0.1px;
}

.r2j-nav-link:hover,
.r2j-nav-link.active {
  color: #7c3aed;
}

/* Navbar action buttons */
.r2j-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.r2j-btn-login-nav {
  text-decoration: none;
  color: #7c3aed;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.18s ease;
}

.r2j-btn-login-nav:hover {
  opacity: 0.75;
}

.r2j-btn-register-nav {
  text-decoration: none;
  background: #7c3aed;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 10px;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.r2j-btn-register-nav:hover {
  background: #6d28d9;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.38);
}

/* ─── Hamburger Menu (Mobile Only) ─────────────────────────── */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.hamburger-menu:hover {
  opacity: 0.8;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: #7c3aed;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Hamburger animation to X */
.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100%;
  background: #ffffff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 80px 0 40px 0;
  overflow-y: auto;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-link {
  display: block;
  padding: 18px 32px;
  color: #374151;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
  background: #f5f0ff;
  color: #7c3aed;
  border-left-color: #7c3aed;
}

.mobile-menu-login {
  margin-top: 20px;
  border-top: 1px solid #ede8ff;
  padding-top: 28px;
  font-weight: 600;
  color: #7c3aed;
}

.mobile-menu-login:hover {
  background: linear-gradient(135deg, #f5f0ff 0%, #ede8ff 100%);
}

/* Show hamburger and mobile menu on mobile */
@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
  }

  .mobile-menu,
  .mobile-menu-overlay {
    display: block;
  }

  .r2j-nav-links,
  .r2j-nav-actions {
    display: none;
  }
}

/* ─── Keyframes ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes badgeSlide {
  from { opacity: 0; transform: translateY(-10px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Hero Section ──────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(rgba(245, 240, 255, 0.55), rgba(245, 240, 255, 0.60)), 
              url('https://images.unsplash.com/photo-1565688527174-775059ac429c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxidXNpbmVzcyUyMHJlY3J1aXRtZW50JTIwb2ZmaWNlJTIwcHJvZmVzc2lvbmFsc3xlbnwxfHx8fDE3NzQ1MjgwNDl8MA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral') center/cover no-repeat;
  text-align: center;
  padding: 88px 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-height: auto;
  position: relative;
  overflow: visible;
  color: #1a1a2e;
  background-position: center center;
  transition: background 0.3s ease;
}

/* Override gradient from style.css */
.hero-section::before,
.hero-section::after {
  display: none;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.07);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: #6b21a8;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
  animation: badgeSlide 0.6s ease both;
  letter-spacing: 0.2px;
}

/* H1 override */
.hero-section h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: #111827;
  margin-bottom: 20px;
  animation: fadeInUp 0.65s 0.1s ease both;
  background: none;
  -webkit-text-fill-color: #111827;
  -webkit-background-clip: unset;
  background-clip: unset;
  max-width: 700px;
}

/* "Opportunity" highlight in purple */
.hero-highlight {
  color: #7c3aed;
  display: block;
  -webkit-text-fill-color: #7c3aed;
}

/* Tagline — hidden (not in this design) */
.hero-section .tagline {
  display: none;
}

/* Subtitle */
.hero-section .subtitle {
  font-size: 1rem;
  color: #6b7280;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 44px;
  animation: fadeInUp 0.65s 0.2s ease both;
  opacity: 1;
}

/* ─── CTA Buttons ───────────────────────────────────────────── */
.action-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.65s 0.3s ease both;
  margin-bottom: 0;
}

/* Base button card */
.btn-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 18px 40px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease;
  cursor: pointer;
  border: none;
  min-width: 220px;
  font-family: 'Inter', sans-serif;
}

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

/* Candidate button — white/light with purple border */
.btn-register {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  color: #7c3aed;
}

/* Override second btn-register for recruiter */
.btn-hero.btn-register:last-of-type {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.btn-register:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #d8b4fe;
}

.btn-hero.btn-register:last-of-type:hover {
  background: #6d28d9;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45);
  border-color: #6d28d9;
}

/* Button text layers */
.btn-hero-title {
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
  letter-spacing: 0.1px;
}

.btn-hero-sub {
  font-size: 0.78rem;
  font-weight: 400;
  display: block;
  opacity: 0.75;
  letter-spacing: 0.2px;
}

/* Recruiter button sub-text */
.btn-hero.btn-recruiter .btn-hero-sub,
.btn-hero.btn-register:last-of-type .btn-hero-sub {
  color: rgba(255, 255, 255, 0.85);
  opacity: 1;
}

/* Login button — shown below as tertiary */
.btn-login {
  background: transparent;
  border: 1.5px solid #e5e7eb;
  color: #6b7280;
  box-shadow: none;
  font-size: 0.9rem;
  padding: 12px 28px;
  min-width: auto;
  border-radius: 10px;
}

.btn-login:hover {
  border-color: #7c3aed;
  color: #7c3aed;
  transform: translateY(-1px);
}

/* ─── Stats Section ─────────────────────────────────────────── */
.stats-section {
  background: #f5f0ff;
  padding: 56px 24px 64px;
}

.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(124, 58, 237, 0.08);
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.06);
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.24s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.12);
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #7c3aed;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* ─── Features Section ──────────────────────────────────────── */
.features-section {
  padding: 60px 20px 72px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-section h2 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0;
  letter-spacing: -0.5px;
}

.features-section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: #7c3aed;
  border-radius: 4px;
  margin: 14px auto 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* ─── Feature Cards ─────────────────────────────────────────── */
.feature-card {
  background: #ffffff;
  border: 1px solid #ede8ff;
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.05);
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.26s ease,
              border-color 0.26s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transition: opacity 0.26s ease;
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.12);
  border-color: #c4b5fd;
}

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, #f5f0ff 0%, #ede8ff 100%);
  border-radius: 16px;
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-4deg);
}

.feature-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #7c3aed;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.feature-card p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.7;
}

/* ─── How It Works Section ──────────────────────────────────── */
.how-it-works-section {
  padding: 60px 20px 72px;
  background: #ffffff;
}

.how-it-works-section h2 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0;
  letter-spacing: -0.5px;
}

.how-it-works-section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: #7c3aed;
  border-radius: 4px;
  margin: 14px auto 48px;
}

.how-it-works-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.how-card {
  background: linear-gradient(135deg, #f5f0ff 0%, #ffffff 100%);
  border: 1px solid #ede8ff;
  border-radius: 18px;
  padding: 40px 28px;
  text-align: center;
  position: relative;
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.26s ease;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.06);
}

.how-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.15);
}

.how-number {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #7c3aed;
  line-height: 1;
  margin-bottom: 18px;
  opacity: 0.2;
  letter-spacing: -1px;
}

.how-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.how-card p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.7;
}

/* ─── Testimonials Section ──────────────────────────────────── */
.testimonials-section {
  padding: 60px 20px 72px;
  background: #f5f0ff;
}

.testimonials-section h2 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0;
  letter-spacing: -0.5px;
}

.testimonials-section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: #7c3aed;
  border-radius: 4px;
  margin: 14px auto 48px;
}

.testimonials-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #ede8ff;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.08);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.28s ease,
              border-color 0.28s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.16);
  border-color: #c4b5fd;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ede8ff;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.author-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 3px;
  letter-spacing: -0.1px;
}

.author-role {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
}

.testimonial-quote {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #7c3aed;
  line-height: 1;
  opacity: 0.12;
  margin-bottom: 8px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.75;
  font-style: italic;
  flex-grow: 1;
}

/* ─── Footer ────────────────────────────────────────────────── */
.r2j-footer {
  background: #ffffff;
  border-top: 1px solid #ede8ff;
  padding: 48px 24px 24px;
  color: #9ca3af;
  font-size: 0.83rem;
}

.r2j-footer-main {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Left: Branding Section */
.footer-branding-section {
  flex: 1;
  min-width: 200px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo-badge {
  background: #7c3aed;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 8px;
  letter-spacing: 0.3px;
}

.footer-logo-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.3px;
}

/* Center: Quick Links Section */
.footer-links-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-width: 200px;
  align-items: center;
}

.footer-links-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
  letter-spacing: -0.1px;
}

.footer-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: center;
}

.footer-link {
  text-decoration: none;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-link:hover {
  color: #7c3aed;
}

/* Bottom Row */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid #ede8ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  color: #9ca3af;
  font-size: 0.8rem;
}

.r2j-footer strong {
  color: #7c3aed;
  font-weight: 600;
}

.footer-credit {
  color: #9ca3af;
  font-size: 0.8rem;
}

/* ─── Responsive: Tablet ────────────────────────────────────── */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .r2j-navbar-inner {
    padding: 0 20px;
    gap: 16px;
  }

  .r2j-nav-links {
    display: none;
  }

  .hero-section {
    padding: 64px 20px 56px;
    /* Mobile-optimized background: reduced overlay for clearer image */
    background: linear-gradient(rgba(245, 240, 255, 0.35), rgba(245, 240, 255, 0.45)), 
                url('https://images.unsplash.com/photo-1565688527174-775059ac429c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxidXNpbmVzcyUyMHJlY3J1aXRtZW50JTIwb2ZmaWNlJTIwcHJvZmVzc2lvbmFsc3xlbnwxfHx8fDE3NzQ1MjgwNDl8MA&ixlib=rb-4.1.0&q=80&w=800&utm_source=figma&utm_medium=referral') left center/cover no-repeat;
    background-position: 30% center;
    min-height: 500px;
  }

  .hero-section h1 {
    font-size: 2.4rem;
    letter-spacing: -0.8px;
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.95), 
                 0 4px 20px rgba(245, 240, 255, 0.8);
  }

  .hero-section .subtitle {
    font-size: 0.95rem;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.95),
                 0 3px 12px rgba(245, 240, 255, 0.8);
  }

  .hero-badge {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.15);
  }

  .action-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    gap: 14px;
  }

  .btn-hero {
    width: 100%;
    min-width: auto;
    padding: 16px 28px;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .features-section {
    padding: 60px 20px 72px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .r2j-logo-name {
    font-size: 1rem;
  }

  .r2j-btn-register-nav {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .hero-section {
    padding: 56px 16px 48px;
    /* Enhanced mobile background with balanced overlay for clarity and readability */
    background: linear-gradient(rgba(245, 240, 255, 0.40), rgba(245, 240, 255, 0.50)), 
                url('https://images.unsplash.com/photo-1565688527174-775059ac429c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxidXNpbmVzcyUyMHJlY3J1aXRtZW50JTIwb2ZmaWNlJTIwcHJvZmVzc2lvbmFsc3xlbnwxfHx8fDE3NzQ1MjgwNDl8MA&ixlib=rb-4.1.0&q=80&w=600&utm_source=figma&utm_medium=referral') 25% center/cover no-repeat;
    min-height: 480px;
  }

  .hero-section h1 {
    font-size: 2rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 14px rgba(255, 255, 255, 0.98), 
                 0 4px 24px rgba(245, 240, 255, 0.85),
                 0 1px 3px rgba(124, 58, 237, 0.1);
  }

  .hero-section .subtitle {
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.98),
                 0 3px 16px rgba(245, 240, 255, 0.85);
  }

  .hero-badge {
    font-size: 0.76rem;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 14px rgba(124, 58, 237, 0.18);
  }

  .btn-hero-title {
    font-size: 0.88rem;
  }

  .btn-hero {
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.3);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 22px 14px;
  }

  .stat-number {
    font-size: 1.65rem;
  }

  .features-section {
    padding: 48px 16px 60px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 28px 20px;
  }

  .how-it-works-section {
    padding: 48px 16px 60px;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .how-card {
    padding: 32px 20px;
  }

  .how-number {
    font-size: 2.5rem;
  }

  .testimonials-section {
    padding: 48px 16px 60px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonial-card {
    padding: 28px 24px;
  }

  .testimonial-quote {
    font-size: 2.5rem;
  }

  .r2j-footer-main {
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: center;
  }

  .footer-branding-section {
    min-width: auto;
  }

  .footer-links-section {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}