/*
 * Homepage Polish — Visual enhancements for all 14 sections.
 * Depends on rizve-design-system.css (--rj-* tokens must resolve).
 * Load after rizve-os-home. No layout changes; polish only.
 */

/* ============================================================
   === NAVIGATION ===
   ============================================================ */

/* Fixed height */
.rj-header { height: 70px; }

@media (max-width: 768px) {
  .rj-header { height: 60px; }
}

/* Nav link hover → lime */
.rj-nav__link:hover {
  color: var(--rj-lime);
  background: rgba(157, 255, 87, 0.06);
  transition: color var(--rj-ease), background var(--rj-ease);
}

/* Active nav link → lime color (underline already set in design system) */
.rj-nav__link.is-active {
  color: var(--rj-lime);
}

/* Scrolled state: stronger backdrop + lime-tinted shadow seam */
.rj-header--scrolled {
  background: rgba(2, 8, 20, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: rgba(157, 255, 87, 0.08);
  box-shadow: 0 6px 32px -12px rgba(0, 0, 0, 0.65),
              0 1px 0 rgba(157, 255, 87, 0.04);
}

/* Primary CTA in header: extra glow on hover */
.rj-header__actions .rj-btn-primary:hover {
  box-shadow:
    0 0 12px rgba(157, 255, 87, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 0 0 1px rgba(157, 255, 87, 0.3);
}


/* ============================================================
   === HERO ===
   ============================================================ */

/* Headline: min 58px desktop, 36px mobile */
.rj-hero__headline {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
}

/* Accent text (rj-gradient-text) inside headline: subtle glow */
.rj-hero__headline .rj-gradient-text {
  text-shadow: 0 0 40px rgba(157, 255, 87, 0.22);
}

/* Primary CTA: lift + glow */
.rj-hero__actions .rj-btn-primary:hover,
.rj-hero .rj-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(157, 255, 87, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 0 0 1px rgba(157, 255, 87, 0.3);
}

/* Secondary CTA: lime outline, fill on hover */
.rj-hero__actions .rj-btn-secondary,
.rj-hero .rj-btn-secondary {
  border-color: rgba(157, 255, 87, 0.4);
  color: var(--rj-lime);
}

.rj-hero__actions .rj-btn-secondary:hover,
.rj-hero .rj-btn-secondary:hover {
  background: var(--rj-lime);
  color: #08120b;
  border-color: var(--rj-lime);
  transform: translateY(-2px);
}

/* Composite visual (metrics dashboard on right): subtle float */
@keyframes rj-float-up-down {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}

.rj-hero__composite {
  animation: rj-float-up-down 4s ease-in-out infinite alternate;
}

/* Hero background: radial glow behind headline (behind content) */
.rj-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 30% 40%, rgba(157, 255, 87, 0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.rj-hero > .rj-container { position: relative; z-index: 1; }


/* ============================================================
   === STATS BAR ===
   ============================================================ */

/* Stats band borders — homepage uses seamless hero handoff (see home-ui-fixes.css) */
.rj-stat-strip {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 32px;
}

/* Number: bolder + larger */
.rj-stat-card__value {
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--rj-text);
}

/* Label: uppercase, muted */
.rj-stat-card__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rj-text-dim);
  margin-top: 6px;
}

/* Hover: lime number */
.rj-stat-card:hover .rj-stat-card__value {
  color: var(--rj-lime);
  transition: color 0.3s ease;
}

.rj-stat-card {
  transition: background var(--rj-ease);
}


/* ============================================================
   === PARTNER SECTION (About Preview) ===
   ============================================================ */

/* Ring/circle SVG: slow rotation */
@keyframes rj-ring-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.rj-about-preview__photo > svg {
  animation: rj-ring-rotate 30s linear infinite;
  transform-origin: center center;
}

/* H2: larger on desktop */
.rj-about-preview__text h2 {
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.13;
}

/* Gradient text in h2 = "not a template seller" */
.rj-about-preview__text h2 .rj-gradient-text {
  text-shadow: 0 0 32px rgba(157, 255, 87, 0.18);
}

/* Body text */
.rj-about-preview__text p {
  font-size: 17px;
  color: #aaaaaa;
  max-width: 520px;
  line-height: 1.7;
}

/* Section padding */
.rj-about-preview { padding-block: 100px; }


/* ============================================================
   === PAIN SECTION (Problem Grid) ===
   ============================================================ */

/* Main headline */
.rj-problem-grid-section .rj-section-head h2,
.rj-problem-grid-section h2 {
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 700;
}

/* Pain point cards: lime left border */
.rj-problem-card {
  border-left: 2px solid var(--rj-lime);
  padding-left: 18px;
  margin-bottom: 0;
  background: rgba(13, 20, 36, 0.55);
  border-radius: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-right: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Title */
.rj-problem-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--rj-text);
  line-height: 1.3;
}

/* Description */
.rj-problem-card__desc {
  font-size: 14px;
  color: #cccccc;
  line-height: 1.65;
}

/* Staggered fade-in animation */
@keyframes rj-pain-fadein {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rj-problem-card {
  opacity: 0;
  animation: rj-pain-fadein 0.45s ease forwards;
}

.rj-problem-card:nth-child(1) { animation-delay: 0.05s; }
.rj-problem-card:nth-child(2) { animation-delay: 0.15s; }
.rj-problem-card:nth-child(3) { animation-delay: 0.25s; }
.rj-problem-card:nth-child(4) { animation-delay: 0.35s; }
.rj-problem-card:nth-child(5) { animation-delay: 0.45s; }
.rj-problem-card:nth-child(6) { animation-delay: 0.55s; }
.rj-problem-card:nth-child(7) { animation-delay: 0.65s; }
.rj-problem-card:nth-child(8) { animation-delay: 0.75s; }
.rj-problem-card:nth-child(9) { animation-delay: 0.85s; }

/* CTA at bottom of pain section: same as hero primary */
.rj-problem-grid-section .rj-btn-primary:hover,
.rj-problem-grid__footer .rj-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(157, 255, 87, 0.35);
}


/* ============================================================
   === SERVICE CARDS ===
   ============================================================ */

/* Card base: tighter dark bg, distinct border */
.rj-service-card {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover: lift + lime border + shadow */
.rj-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(157, 255, 87, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* Icon area: lime-tinted bg square behind icon */
.rj-service-card__visual-icon {
  background: rgba(157, 255, 87, 0.08);
  border-color: rgba(157, 255, 87, 0.2);
  border-radius: 8px;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* Card title */
.rj-service-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--rj-text);
  margin-bottom: 10px;
}

/* Card description */
.rj-service-card__promise {
  font-size: 14px;
  color: #888888;
  line-height: 1.6;
}

/* Grid: 3 → 2 → 1 */
.rj-services-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .rj-services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .rj-services-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   === AI ASSISTANT DEMO SECTION ===
   ============================================================ */

/* Subtle gradient bg */
.rj-ai-demo-section,
section:has(.rj-ai-demo__inner) {
  background: linear-gradient(to bottom, var(--rj-bg-0), #0b0f18);
}

/* Top separator: lime tint */
.rj-ai-demo-section,
section:has(.rj-chat-window) {
  border-top: 1px solid rgba(157, 255, 87, 0.3);
}

/* Chat window container */
.rj-chat-window {
  background: #111111;
  border-radius: 16px;
  border: 1px solid rgba(157, 255, 87, 0.2);
  box-shadow: 0 0 40px rgba(157, 255, 87, 0.05);
}

/* Headline */
.rj-ai-demo__content h2 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* Gradient text in section headline */
.rj-ai-demo__content h2 .rj-gradient-text {
  text-shadow: 0 0 28px rgba(157, 255, 87, 0.2);
}


/* ============================================================
   === LOCAL BUSINESS SECTION (Industries) ===
   ============================================================ */

/* Section padding */
.rj-industries-section { padding-block: 100px; }

/* Section headline: bigger */
.rj-industries-section h2 {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 700;
}

/* Accent phrase: lime glow */
.rj-industries-section h2 .rj-gradient-text,
.rj-industries-section h2 .rj-lime {
  text-shadow: 0 0 28px rgba(157, 255, 87, 0.2);
}

/* Feature/benefit chips: card style matching service cards */
.rj-industry-chip {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.rj-industry-chip:hover {
  transform: translateY(-4px);
  border-color: rgba(157, 255, 87, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}


/* ============================================================
   === PRICING PACKAGES ===
   ============================================================ */

/* Package card base */
.rj-pkg {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.rj-pkg:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(157, 255, 87, 0.2);
}

/* Featured card */
.rj-pkg--featured {
  background: #161616;
  border-color: var(--rj-lime);
}

.rj-pkg--featured:hover {
  border-color: var(--rj-lime);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(157, 255, 87, 0.2);
}

/* "Most Popular" badge — appended via CSS on featured card tag */
.rj-pkg--featured .rj-pkg__tag {
  background: rgba(157, 255, 87, 0.12);
  color: var(--rj-lime);
  border: 1px solid rgba(157, 255, 87, 0.3);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Price number */
.rj-pkg__price {
  font-size: 40px;
  font-weight: 700;
  color: var(--rj-text);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-block: 16px 8px;
}

.rj-pkg__price small,
.rj-pkg__price--contact {
  font-size: 14px;
  color: #888888;
  font-weight: 400;
  letter-spacing: 0;
}

/* Feature list: lime check marks */
.rj-pkg__list li {
  font-size: 14px;
  color: #cccccc;
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}

.rj-pkg__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rj-lime);
  font-weight: 700;
  font-size: 13px;
}

/* Grid */
.rj-pkgs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .rj-pkgs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .rj-pkgs-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   === PORTFOLIO CASE STUDY CARDS ===
   ============================================================ */

/* Standardize card body background */
.rj-cs-card {
  background: #111111;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rj-cs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* Remove colored backgrounds from card body — keep only thumb area */
.rj-cs-card__body {
  background: #111111;
  padding: 20px;
}

/* Remove colored bg from thumb backgrounds (keep gradient for visual) */
.rj-cs-card__thumb {
  border-bottom: none;
}

/* 3px top border per-project accent — handled by existing modifiers */
.rj-cs-card::before {
  content: "";
  display: block;
  height: 3px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

/* Title */
.rj-cs-card__title a,
.rj-cs-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--rj-text);
  line-height: 1.3;
}

.rj-cs-card__title a:hover { color: var(--rj-lime); }

/* Description */
.rj-cs-card__excerpt {
  font-size: 14px;
  color: #888888;
  line-height: 1.6;
}

/* Grid: 3 → 2 → 1 */
.rj-cases-preview .rj-cs-grid,
.rj-cs-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .rj-cs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .rj-cs-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   === TESTIMONIALS ===
   ============================================================ */

/* Card base */
.rj-testimonial-card {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.rj-testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(157, 255, 87, 0.15);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* Large decorative quote mark */
.rj-testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: -8px;
  left: 16px;
  font-size: 96px;
  font-family: Georgia, serif;
  line-height: 1;
  color: rgba(157, 255, 87, 0.10);
  pointer-events: none;
  z-index: 0;
  font-weight: 700;
}

/* Quote text */
.rj-testimonial-card__quote {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.7;
  font-style: italic;
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  border: none;
  padding: 0;
}

/* Reviewer name */
.rj-testimonial-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--rj-text);
  display: block;
}

/* Reviewer role/company */
.rj-testimonial-card__role {
  font-size: 13px;
  color: #888888;
  display: block;
  margin-top: 2px;
}

/* Grid: 3 → 2 → 1 */
.rj-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .rj-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .rj-testimonials-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   === AUDIT CTA (Free Audit Banner) ===
   ============================================================ */

/* Container: lime glow border */
.rj-free-audit-banner__inner {
  box-shadow: 0 0 60px rgba(157, 255, 87, 0.08) inset;
  border: 1px solid rgba(157, 255, 87, 0.2);
  border-radius: 16px;
}

/* Headline */
.rj-free-audit-banner__copy h2,
.rj-free-audit-banner__content h2 {
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Input field (if present on audit page) */
.rj-audit-input,
.rj-free-audit-banner input[type="url"],
.rj-free-audit-banner input[type="text"],
.rj-free-audit-banner input[type="email"] {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px 20px;
  color: var(--rj-text);
  font-size: 15px;
  width: 100%;
  outline: none;
  transition: border-color 0.3s ease;
}

.rj-audit-input:focus,
.rj-free-audit-banner input:focus {
  border-color: var(--rj-lime);
  box-shadow: 0 0 0 2px rgba(157, 255, 87, 0.12);
}

/* Submit / primary CTA hover */
.rj-free-audit-banner .rj-btn-primary:hover {
  background: var(--rj-lime-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(157, 255, 87, 0.4),
              0 1px 0 rgba(255, 255, 255, 0.5) inset;
}


/* ============================================================
   === FAQ ACCORDION ===
   ============================================================ */

/* Item */
.rj-faq-item {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(13, 20, 36, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Question text */
.rj-faq-item summary {
  font-size: 16px;
  font-weight: 500;
  color: var(--rj-text);
  cursor: pointer;
  transition: color 0.3s ease;
}

/* Chevron: rotate when open */
.rj-faq-item__icn {
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.rj-faq-item[open] .rj-faq-item__icn {
  transform: rotate(45deg);
  color: var(--rj-lime);
}

/* Answer */
.rj-faq-item p {
  font-size: 15px;
  color: #888888;
  line-height: 1.7;
  margin: 14px 0 0;
}

/* Smooth open animation */
.rj-faq-item[open] p {
  animation: rj-faq-open 0.25s ease;
}

@keyframes rj-faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   === FINAL CTA ===
   ============================================================ */

/* Headline */
.rj-final-cta__headline {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Accent phrase */
.rj-final-cta__headline .rj-gradient-text {
  text-shadow: 0 0 32px rgba(157, 255, 87, 0.2);
}

/* Background: radial glow bookend (adds to existing .rj-final-cta__glow) */
.rj-final-cta {
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(157, 255, 87, 0.03) 0%, transparent 70%);
}

/* Primary button hover */
.rj-final-cta .rj-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(157, 255, 87, 0.35);
}

/* Secondary / outline button */
.rj-final-cta .rj-btn-secondary {
  border-color: rgba(157, 255, 87, 0.4);
  color: var(--rj-lime);
}

.rj-final-cta .rj-btn-secondary:hover {
  background: var(--rj-lime);
  color: #08120b;
  border-color: var(--rj-lime);
  transform: translateY(-2px);
}

/* Buttons side by side */
.rj-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
