/* ===== Revorakey — Custom Styles ===== */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #111128;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: #f0f0f5;
  --text-secondary: #9ca3af;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.25);
  --gradient-hero: linear-gradient(135deg, #0a0a1a 0%, #1a1040 50%, #0a0a1a 100%);
  --gradient-accent: linear-gradient(135deg, #6366f1, #a855f7);
  --gradient-cta: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: #c4b5fd; }

img { max-width: 100%; height: auto; }

/* ---------- Particle Canvas ---------- */
#particle-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Glassmorphism ---------- */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
}

.glass:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 30px var(--accent-glow), inset 0 0 30px rgba(99, 102, 241, 0.03);
  transform: translateY(-4px);
}

.glass-static {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---------- Gradient Mesh Background ---------- */
.gradient-mesh {
  position: relative;
  overflow: hidden;
}

.gradient-mesh::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  z-index: 0;
  animation: meshFloat 20s ease-in-out infinite;
}

@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -1%) rotate(1deg); }
  66% { transform: translate(-1%, 2%) rotate(-1deg); }
}

/* ---------- Header ---------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
}

#site-header.scrolled {
  background: rgba(10, 10, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.65rem 0;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active { color: var(--text-primary); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%;
  width: 0; height: 2px;
  background: var(--gradient-accent);
  transition: all var(--transition);
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: 280px; height: 100vh;
  background: rgba(10, 10, 26, 0.97);
  backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 1001;
  padding: 5rem 2rem 2rem;
  border-left: 1px solid var(--border-glass);
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-nav-overlay.open { opacity: 1; pointer-events: auto; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1002;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .desktop-nav { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--gradient-cta);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Section Utilities ---------- */
.section { padding: 6rem 1.5rem; position: relative; }
.section-lg { padding: 8rem 1.5rem; }

.container { max-width: 1200px; margin: 0 auto; width: 100%; }
.container-sm { max-width: 900px; margin: 0 auto; width: 100%; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-content {
  text-align: center;
  max-width: 860px;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.trust-item svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }

/* ---------- Stat Cards ---------- */
.stat-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.stat-number {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------- Feature Cards ---------- */
.feature-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.feature-icon svg { width: 26px; height: 26px; color: var(--accent-light); }

.feature-card h3 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Timeline (How It Works) ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 40px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), #a855f7, var(--accent));
  opacity: 0.3;
}

.timeline-step {
  text-align: center;
  padding: 0 1rem;
  position: relative;
}

.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
}

.timeline-step h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.timeline-step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .timeline::before {
    top: 0; bottom: 0;
    left: 24px; right: auto;
    width: 2px; height: auto;
  }
  .timeline-step {
    text-align: left;
    padding-left: 4rem;
  }
  .step-number {
    position: absolute;
    left: 0;
    margin: 0;
  }
}

/* ---------- Comparison Table ---------- */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
}

.comparison-table thead th {
  background: rgba(99, 102, 241, 0.08);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.comparison-table tbody tr { transition: background var(--transition); }
.comparison-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.comparison-table tbody tr:last-child td { border-bottom: none; }

.comparison-table .highlight-col {
  background: rgba(99, 102, 241, 0.05);
  font-weight: 600;
}

.check { color: var(--green); }
.cross { color: #ef4444; }

@media (max-width: 640px) {
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* ---------- Benefit Grid ---------- */
.benefit-card {
  padding: 2rem;
}

.benefit-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  padding: 2rem;
}

.testimonial-card .quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.testimonial-card .author {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-card .role {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  margin-top: 3rem;
}

.stats-bar-item { text-align: center; }

.stats-bar-item .num {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-light);
}

.stats-bar-item .lbl {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--border-glass);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--accent-light); }

.faq-chevron {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-secondary);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

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

/* ---------- Final CTA ---------- */
.cta-section {
  text-align: center;
  padding: 8rem 1.5rem;
}

.cta-section .section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
}

/* ---------- Footer ---------- */
#site-footer {
  border-top: 1px solid var(--border-glass);
  padding: 4rem 1.5rem 2rem;
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.35rem 0;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ---------- Contact Form ---------- */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Inter', system-ui, sans-serif;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255, 255, 255, 0.2); }

.form-error {
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 0.3rem;
  display: none;
}

.form-group.error .form-error { display: block; }
.form-group.error input,
.form-group.error textarea { border-color: #ef4444; }

/* Honeypot */
.ohnohoney { position: absolute; left: -9999px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s ease;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--green); color: #fff; }
.toast.error { background: #ef4444; color: #fff; }

/* ---------- About Page ---------- */
.about-hero {
  padding-top: 10rem;
  padding-bottom: 6rem;
}

.value-card {
  padding: 2rem;
  text-align: center;
}

.value-card h4 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.value-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }

.value-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.value-icon svg { width: 24px; height: 24px; color: var(--accent-light); }

/* ---------- Contact Page ---------- */
.contact-hero { padding-top: 10rem; padding-bottom: 4rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
}

.contact-info-card .icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-card .icon-wrap svg { width: 20px; height: 20px; color: var(--accent-light); }
.contact-info-card h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.contact-info-card p { color: var(--text-secondary); font-size: 0.88rem; }

/* ---------- Utility ---------- */
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

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

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 4rem 1rem; }
  .section-lg { padding: 5rem 1rem; }
  .hero { min-height: auto; padding: 8rem 1rem 5rem; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .stat-number { font-size: 2.5rem; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- Selection ---------- */
::selection { background: var(--accent); color: #fff; }
