/* ============================================================
   Korvix Landing Page — korvix.app
   Brand: #5B5CF6 purple, #0B0F1A dark, Inter font
   ============================================================ */

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

:root {
  --primary: #5B5CF6;
  --primary-light: #7B7CFF;
  --primary-dark: #4445D0;
  --dark: #0B0F1A;
  --dark-soft: #131825;
  --light-bg: #F8FAFC;
  --white: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --success: #19C37D;
  --border: #E2E8F0;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.nav-logo,
.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--primary-light);
}

/* ---- Hero ---- */
.hero {
  background: var(--dark);
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(91, 92, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  background: rgba(91, 92, 246, 0.12);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(91, 92, 246, 0.2);
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-cta {
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.email-input {
  flex: 1;
  padding: 14px 20px;
  font-size: 15px;
  font-family: inherit;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
}

.email-input::placeholder {
  color: var(--text-muted);
}

.email-input:focus {
  border-color: var(--primary);
}

.btn-primary {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--white);
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--primary-light);
}

.btn-primary:active {
  transform: scale(0.98);
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Features ---- */
.features {
  padding: 120px 0;
  background: var(--light-bg);
}

.features h2,
.how-it-works h2,
.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 64px;
}

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 32px rgba(91, 92, 246, 0.08);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 92, 246, 0.08);
  color: var(--primary);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- How It Works ---- */
.how-it-works {
  padding: 120px 0;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  background: var(--primary);
  border-radius: 50%;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-line {
  width: 60px;
  height: 2px;
  background: var(--border);
  margin-top: 24px;
  flex-shrink: 0;
}

/* ---- CTA Section ---- */
.cta-section {
  padding: 100px 0;
  background: var(--dark);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 40px;
}

.cta-inner .waitlist-form {
  max-width: 440px;
  margin: 0 auto;
}

/* ---- Footer ---- */
.footer {
  padding: 48px 0;
  background: var(--dark-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-copy p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero {
    padding: 140px 0 80px;
  }

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

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .step-line {
    width: 2px;
    height: 32px;
    margin: 0;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
