/* Rivalert — Glassmorphism Design System */

:root {
  --bg: #0a0a1a;
  --primary: #0a0a1a;
  --accent: #00d4ff;
  --highlight: #fbbf24;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #f0f0f8;
  --text-muted: rgba(240, 240, 248, 0.6);
  --danger: #ff4757;
  --success: #2ed573;
  --blur: blur(20px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Blobs */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #4c00ff 0%, transparent 70%);
  top: -200px; left: -200px;
}

.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #00d4ff 0%, transparent 70%);
  top: 30%; right: -150px;
}

.blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #ff6b6b 0%, transparent 70%);
  bottom: 10%; left: 30%;
  opacity: 0.25;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 26, 0.7);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 24px;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-cta {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.nav-cta:hover { opacity: 0.75; }

/* Glassmorphism Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
}

/* Hero */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.badge {
  display: inline-block;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero-headline {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.accent {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Forms */
.hero-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.email-input {
  flex: 1;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.email-input::placeholder { color: var(--text-muted); }
.email-input:focus {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.08);
}

.btn-primary {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent), #4c00ff);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: block;
  text-align: center;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.06);
  color: var(--accent);
}

.form-note {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 12px;
}

/* Social proof bar */
.social-proof-bar {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.proof-item {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.proof-sep { color: rgba(255,255,255,0.2); }

/* Sections */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.col h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 12px 0 16px;
  line-height: 1.35;
}

.col p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Quote block */
.quote-block {
  margin-top: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

.quote-block p {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 8px;
}

.quote-block span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Demo */
.demo-card { padding: 32px; }

.demo-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.demo-url-input {
  flex: 1;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.demo-url-input::placeholder { color: var(--text-muted); }
.demo-url-input:focus { border-color: var(--accent); }

.demo-result {
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}

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

.demo-loader {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 12px 0;
}

.loader-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.2s infinite;
}

.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

.monitor-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.monitor-icon { font-size: 1.2rem; flex-shrink: 0; }

.monitor-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.monitor-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  text-align: center;
  padding: 36px 28px;
}

.step-num {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card { padding: 28px; }

.stars {
  color: var(--highlight);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  padding: 36px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing-featured {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.07);
  transform: scale(1.02);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #4c00ff);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  white-space: nowrap;
}

.plan-name {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-num {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -2px;
}

.price-period {
  color: var(--text-muted);
  font-size: 1rem;
}

.plan-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.plan-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 32px;
}

/* FAQ */
.faq-list { padding: 8px; }

.faq-item {
  padding: 24px 32px;
  cursor: pointer;
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.2s;
}

.faq-item:last-child { border-bottom: none; }
.faq-item:hover { background: rgba(255,255,255,0.03); border-radius: 12px; }

.faq-q {
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-q::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}

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

.faq-a {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding-top 0.2s;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding-top: 14px;
}

/* CTA section */
.cta-section { padding: 60px 0 100px; }

.cta-card {
  text-align: center;
  padding: 64px 40px;
}

.cta-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.cta-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
}

.footer-links a:hover { text-decoration: underline; }

/* Success state */
.success-msg {
  color: var(--success);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 12px;
  text-align: center;
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 70px 0 60px; }
  .hero-form { flex-direction: column; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-featured { transform: none; }
  .demo-input-row { flex-direction: column; }
  .social-proof-bar { flex-direction: column; gap: 8px; }
  .proof-sep { display: none; }
  .glass-card { padding: 24px; }
  .faq-item { padding: 20px; }
}

.site-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}
