/* RateAI — Landing Page Styles */
/* Aesthetic: Dark tech authority — precision-measured, trust-forward */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Barlow:wght@300;400;500;600&family=Barlow+Condensed:wght@300;400;600;700&display=swap');

:root {
  --blue-primary: #1a6fd4;
  --blue-bright: #2d8eff;
  --blue-glow: rgba(45, 142, 255, 0.35);
  --blue-subtle: rgba(45, 142, 255, 0.08);
  --white: #ffffff;
  --off-white: #d8e4f0;
  --muted: #7a92b0;
  --bg-deep: #050a12;
  --bg-card: #0b1524;
  --bg-card-border: rgba(45, 142, 255, 0.18);
  --grid-line: rgba(45, 142, 255, 0.06);
  --danger: #e03a4f;
  --success: #22c982;
  --warn: #f5a623;
  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background-color: var(--bg-deep);
  color: var(--off-white);
  overflow-x: hidden;
  line-height: 1.65;
}

/* ─── GRID BACKGROUND ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(5, 10, 18, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bg-card-border);
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--blue-bright); }

.nav-cta {
  background: var(--blue-primary);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background var(--transition), box-shadow var(--transition) !important;
}
.nav-cta:hover {
  background: var(--blue-bright) !important;
  box-shadow: 0 0 20px var(--blue-glow);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  z-index: 1;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(26, 111, 212, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-subtle);
  border: 1px solid var(--bg-card-border);
  border-radius: 100px;
  padding: 6px 18px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease both;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--blue-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--blue-bright);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-logo {
  width: min(520px, 80vw);
  height: auto;
  margin-bottom: 28px;
  animation: fadeUp 0.9s 0.1s ease both;
  filter: drop-shadow(0 0 40px rgba(26, 111, 212, 0.4));
}

.tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
  animation: fadeUp 0.9s 0.15s ease both;
}

.hero-headline {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 860px;
  margin-bottom: 24px;
  animation: fadeUp 0.9s 0.2s ease both;
}
.hero-headline span {
  color: var(--blue-bright);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 300;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 48px;
  animation: fadeUp 0.9s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.9s 0.4s ease both;
}

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

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-primary);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn-primary:hover {
  background: var(--blue-bright);
  box-shadow: 0 4px 32px var(--blue-glow);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--off-white);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-outline:hover {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
  transform: translateY(-2px);
}

/* ─── STATS STRIP ─── */
.stats-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--bg-card-border);
  border-bottom: 1px solid var(--bg-card-border);
  background: var(--bg-card);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 8px 32px;
  border-right: 1px solid var(--bg-card-border);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'Rajdhani', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--blue-bright);
  line-height: 1;
}
.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ─── SECTIONS ─── */
section {
  position: relative;
  z-index: 1;
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-body {
  font-size: 17px;
  font-weight: 300;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.8;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--bg-card-border);
  max-width: 1200px;
  margin: 0 auto;
}

/* ─── HOW IT WORKS ─── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  margin-top: 56px;
  background: var(--bg-card-border);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.how-step {
  background: var(--bg-card);
  padding: 40px 32px;
  transition: background var(--transition);
  position: relative;
}
.how-step:hover { background: rgba(11, 21, 36, 0.8); }

.step-number {
  font-family: 'Rajdhani', sans-serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--blue-primary);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── PILLARS ─── */
.pillars-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 64px;
}

@media (max-width: 768px) {
  .pillars-intro { grid-template-columns: 1fr; gap: 32px; }
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.pillar-card:hover {
  border-color: rgba(45, 142, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(45,142,255,0.1);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--pillar-color, var(--blue-primary));
}

.pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--pillar-bg, rgba(26, 111, 212, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.pillar-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pillar-color, var(--blue-bright));
  margin-bottom: 6px;
}

.pillar-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.pillar-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.pillar-weight {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border-radius: 100px;
  padding: 2px 10px;
}

/* ─── CERTS ─── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
}
.cert-card.featured {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 1px var(--blue-primary), 0 8px 40px rgba(26, 111, 212, 0.2);
}
.cert-card.featured::after {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-primary);
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: 100px;
}

.cert-tier {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.cert-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.cert-badge {
  font-size: 36px;
  margin-bottom: 16px;
}

.cert-score {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-bright);
  margin-bottom: 20px;
}

.cert-features {
  list-style: none;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
}
.cert-features li::before {
  content: '✓ ';
  color: var(--success);
  font-weight: 700;
}

/* ─── CTA SECTION ─── */
.cta-section {
  text-align: center;
  padding: 100px 24px;
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border-top: 1px solid var(--bg-card-border);
  border-bottom: 1px solid var(--bg-card-border);
}

.cta-section .section-title { margin: 0 auto 16px; }
.cta-section .section-body { margin: 0 auto 40px; }

/* ─── FOOTER ─── */
footer {
  position: relative;
  z-index: 1;
  padding: 48px;
  border-top: 1px solid var(--bg-card-border);
  background: var(--bg-deep);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

.footer-logo img { height: 32px; width: auto; margin-bottom: 12px; }

.footer-brand-desc {
  font-size: 13px;
  color: var(--muted);
  max-width: 260px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li + li { margin-top: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--blue-bright); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-card-border);
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--blue-bright); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  section { padding: 64px 24px; }
  .stats-strip { padding: 24px; gap: 8px; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--bg-card-border); padding: 16px; }
  .stat-item:last-child { border-bottom: none; }
  footer { padding: 40px 24px; }
}

/* ─── SCORE GAUGE (decorative) ─── */
.gauge-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.gauge-item {
  flex: 1;
  min-width: 140px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.gauge-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.gauge-bar {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
}

.gauge-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--bar-color, var(--blue-primary));
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-score {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}
