/* ============================================================
   REVIEW IQ — RETRO Y2K LANDING
   Pixel borders, neon accents, scanline effects, matrix aesthetic
   ============================================================ */

/* === RESET & VARS === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #0a0012;
  --bg-surface: #110020;
  --bg-card: #1a0033;
  --bg-card-hover: #220044;
  --violet: #7c3aed;
  --violet-light: #a78bfa;
  --violet-bright: #b07cff;
  --pink: #ec4899;
  --pink-light: #f9a8d4;
  --neon-violet: #b07cff;
  --neon-pink: #ff6eb4;
  --neon-green: #39ff14;
  --text: #e8e0f0;
  --text-muted: #9b8ab8;
  --text-dim: #6a5a80;
  --border: #2a1a44;
  --border-glow: #7c3aed55;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 0px;
  --glow-violet: 0 0 20px rgba(124, 58, 237, 0.4), 0 0 60px rgba(124, 58, 237, 0.15);
  --glow-pink: 0 0 20px rgba(236, 72, 153, 0.4), 0 0 60px rgba(236, 72, 153, 0.15);
  --glow-text-violet: 0 0 10px rgba(124, 58, 237, 0.6);
  --glow-text-pink: 0 0 10px rgba(236, 72, 153, 0.6);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* === SCANLINE OVERLAY === */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 4px
  );
}

/* === CONTAINER === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 0, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px dashed var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.logo-bracket {
  color: var(--text-dim);
}

.logo-accent {
  color: var(--neon-pink);
  text-shadow: var(--glow-text-pink);
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-violet);
  text-decoration: none;
  padding: 8px 20px;
  border: 1px dashed var(--violet);
  transition: all 0.2s;
  letter-spacing: 0.05em;
}

.nav-cta:hover {
  background: var(--violet);
  color: #fff;
  box-shadow: var(--glow-violet);
  border-style: solid;
}

/* === HERO === */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
    var(--bg-dark);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 99px, rgba(124, 58, 237, 0.06) 99px, rgba(124, 58, 237, 0.06) 100px),
    repeating-linear-gradient(0deg, transparent, transparent 99px, rgba(124, 58, 237, 0.06) 99px, rgba(124, 58, 237, 0.06) 100px);
  pointer-events: none;
}

/* Terminal widget */
.hero-terminal {
  max-width: 520px;
  margin: 0 auto 40px;
  border: 1px dashed var(--violet);
  background: rgba(17, 0, 32, 0.9);
  text-align: left;
  position: relative;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-bottom: 1px dashed var(--border);
  background: rgba(26, 0, 51, 0.8);
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.terminal-dot:first-child { background: #ef4444; }
.terminal-dot:nth-child(2) { background: #f59e0b; }
.terminal-dot:nth-child(3) { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-left: auto;
}

.terminal-body {
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
}

.terminal-line {
  color: var(--text-muted);
}

.prompt {
  color: var(--neon-violet);
  text-shadow: var(--glow-text-violet);
}

.cmd-text.highlight {
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}

/* Glitch text */
.glitch {
  position: relative;
  display: inline-block;
  color: var(--neon-pink);
  text-shadow: var(--glow-text-pink);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.glitch::before {
  color: var(--neon-violet);
  animation: glitch-shift 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.glitch::after {
  color: var(--neon-pink);
  animation: glitch-shift 3s infinite reverse;
  clip-path: polygon(0 66%, 100% 66%, 100% 100%, 0 100%);
}

@keyframes glitch-shift {
  0%, 95%, 100% { transform: translate(0); }
  96% { transform: translate(-3px, 1px); }
  97% { transform: translate(3px, -1px); }
  98% { transform: translate(-1px, 2px); }
  99% { transform: translate(2px, -2px); }
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  position: relative;
}

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

/* Forms */
.hero-form,
.cta-form {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto 16px;
}

.hero-form input,
.cta-form input {
  flex: 1;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: var(--bg-surface);
  color: var(--text);
  border: 1px dashed var(--violet);
  border-right: none;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-form input:focus,
.cta-form input:focus {
  border-color: var(--neon-violet);
  box-shadow: inset 0 0 12px rgba(124, 58, 237, 0.2);
}

.hero-form input::placeholder,
.cta-form input::placeholder {
  color: var(--text-dim);
}

.hero-form button,
.cta-form button {
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--violet);
  border: 1px dashed var(--violet);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-form button:hover,
.cta-form button:hover {
  background: var(--pink);
  border-color: var(--pink);
  box-shadow: var(--glow-pink);
}

.hero-form button:disabled,
.cta-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-proof {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.skip-link {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--violet-light);
  text-decoration: none;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.skip-link:hover {
  color: var(--neon-pink);
}

/* === SECTIONS === */
.section {
  padding: 80px 0;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-violet);
  text-shadow: var(--glow-text-violet);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 40px;
  text-align: center;
}

/* === PROBLEM === */
.section-problem {
  background: var(--bg-surface);
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}

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

.problem-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--pink));
  opacity: 0;
  transition: opacity 0.3s;
}

.problem-card:hover {
  border-color: var(--violet);
  background: var(--bg-card-hover);
  box-shadow: var(--glow-violet);
}

.problem-card:hover::before {
  opacity: 1;
}

.problem-icon {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--neon-pink);
  text-shadow: var(--glow-text-pink);
  margin-bottom: 16px;
}

.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

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

/* === HOW IT WORKS === */
.section-how {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
    var(--bg-dark);
}

.steps-grid {
  display: flex;
  align-items: center;
  gap: 0;
}

.step-card {
  flex: 1;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  text-align: center;
  transition: all 0.3s;
}

.step-card:hover {
  border-color: var(--violet);
  box-shadow: var(--glow-violet);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--neon-violet);
  text-shadow: var(--glow-text-violet);
  margin-bottom: 12px;
  line-height: 1;
}

.step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.step-connector {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--neon-pink);
  text-shadow: var(--glow-text-pink);
  padding: 0 8px;
  flex-shrink: 0;
}

/* === FEATURES === */
.section-features {
  background: var(--bg-surface);
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--pink);
  box-shadow: var(--glow-pink);
}

.feature-icon {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--neon-violet);
  text-shadow: var(--glow-text-violet);
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* === SOCIAL PROOF === */
.section-proof {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
    var(--bg-dark);
}

.proof-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
  padding: 36px 40px;
  border: 1px dashed var(--violet);
  background: var(--bg-card);
}

.proof-stat {
  text-align: center;
}

.proof-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--neon-pink);
  text-shadow: var(--glow-text-pink);
  line-height: 1.2;
}

.proof-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.4;
}

.proof-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

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

.testimonial-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  transition: all 0.3s;
}

.testimonial-card:hover {
  border-color: var(--violet);
  box-shadow: var(--glow-violet);
}

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

.testimonial-text::before {
  content: '"';
  display: none;
}

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

.author-avatar {
  width: 36px;
  height: 36px;
  border: 1px dashed var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neon-violet);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
}

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

/* === BOTTOM CTA === */
.section-cta {
  padding: 100px 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
    var(--bg-dark);
}

.cta-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 48px;
  background: var(--bg-card);
  border: 1px dashed var(--violet);
  position: relative;
}

.cta-glitch-border {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 1px dashed var(--pink);
  pointer-events: none;
  animation: glitch-border 4s infinite;
}

@keyframes glitch-border {
  0%, 92%, 100% { transform: translate(0); opacity: 0.4; }
  93% { transform: translate(2px, -1px); opacity: 0.8; }
  94% { transform: translate(-2px, 1px); opacity: 0.6; }
  95% { transform: translate(1px, 2px); opacity: 0.9; }
}

.cta-box h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cta-box > p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.cta-subtext {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 12px;
  letter-spacing: 0.05em;
}

/* === FAQ === */
.section-faq {
  background: var(--bg-surface);
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px dashed var(--border);
}

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

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--neon-violet);
}

.faq-toggle {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--violet-light);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

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

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

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 0 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* === FOOTER === */
.footer {
  padding: 48px 0;
  text-align: center;
  border-top: 1px dashed var(--border);
}

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

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-credit {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-credit a {
  color: var(--violet-light);
  text-decoration: none;
}

.footer-credit a:hover {
  color: var(--neon-pink);
  text-decoration: underline;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* === FORM MESSAGES === */
.form-msg {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-top: 10px;
  text-align: center;
  letter-spacing: 0.03em;
}

.form-msg.success {
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

.form-msg.error {
  color: #ff6b6b;
  text-shadow: 0 0 8px rgba(255, 107, 107, 0.4);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .problem-grid,
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid {
    flex-direction: column;
    gap: 12px;
  }

  .step-connector {
    transform: rotate(90deg);
    padding: 4px 0;
  }

  .proof-banner {
    flex-direction: column;
    gap: 24px;
    padding: 28px 24px;
  }

  .proof-divider {
    width: 60px;
    height: 1px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .hero-form,
  .cta-form {
    flex-direction: column;
  }

  .hero-form input,
  .cta-form input {
    border-right: 1px dashed var(--violet);
  }

  .hero-form button,
  .cta-form button {
    width: 100%;
  }

  .problem-grid,
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .proof-number {
    font-size: 1.8rem;
  }

  .section {
    padding: 56px 0;
  }

  .section-label {
    font-size: 0.7rem;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .cta-box h2 {
    font-size: 1.7rem;
  }

  .hero-terminal {
    margin: 0 auto 28px;
  }

  .terminal-body {
    font-size: 0.75rem;
  }
}
