/* ============================================
   TeleVerify Marketing Site — Design System
   ============================================ */

:root {
  --primary: #0f766e;
  --primary-dark: #0d5f58;
  --primary-darker: #134e4a;
  --primary-light: #14b8a6;
  --accent: #34d399;
  --danger: #dc2626;
  --danger-dark: #b91c1c;
  --warning: #d97706;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--gray-800); line-height: 1.6; background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Container */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 640px; margin: 0 auto; padding: 0 24px; }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
}
.navbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.navbar-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.15s;
}
.navbar-links a:hover { color: var(--primary); text-decoration: none; }
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gray-700); margin: 5px 0; transition: 0.3s; border-radius: 2px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(15,118,110,0.3); }

.btn-secondary { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-200); }
.btn-secondary:hover { background: var(--gray-200); }

.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--gray-50); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.btn-ghost { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.25); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-dark); }

.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }
.btn-block { width: 100%; }

/* ---- CARDS ---- */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); }
.card-padded { padding: 32px; }

/* ---- BADGES ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.badge-primary { background: rgba(15,118,110,0.1); color: var(--primary); }
.badge-light { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.badge-danger { background: rgba(220,38,38,0.1); color: var(--danger); }

/* ---- SECTION SPACING ---- */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 100px 0; }
.section-gray { background: var(--gray-50); }
.section-dark { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary-darker) 100%); color: #fff; }

/* ---- TYPOGRAPHY ---- */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.text-small { font-size: 0.875rem; }
.text-xs { font-size: 0.8125rem; }

h1, .h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; letter-spacing: -1px; }
h2, .h2 { font-size: 2.25rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; }
h3, .h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
h4, .h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.0625rem; color: var(--gray-500); }

/* ---- GRIDS ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- STATS BAR ---- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number { font-size: 1.75rem; font-weight: 800; }
.stat-label { font-size: 0.8125rem; color: var(--gray-500); }

/* ---- FEATURE CARDS ---- */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* ---- STEP NUMBERS ---- */
.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 20px;
}

/* ---- PRICING CARDS ---- */
.pricing-card { text-align: center; padding: 40px 28px; position: relative; }
.pricing-card.featured { border: 2px solid var(--primary); }
.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.pricing-tier {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.pricing-amount {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.pricing-amount span { font-size: 1rem; font-weight: 400; color: var(--gray-500); }
.pricing-desc {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-bottom: 24px;
}
.pricing-features {
  list-style: none;
  text-align: left;
  font-size: 0.9375rem;
  color: var(--gray-600);
  margin-bottom: 32px;
}
.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-check { color: var(--primary); font-weight: 700; flex-shrink: 0; }
.pricing-x { color: var(--gray-300); flex-shrink: 0; }

/* ---- TERMINAL DEMO ---- */
.terminal {
  background: #1a1a2e;
  border-radius: var(--radius-lg);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #e2e8f0;
  line-height: 1.7;
}
.terminal-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-dots .red { background: #ef4444; }
.terminal-dots .yellow { background: #eab308; }
.terminal-dots .green { background: #22c55e; }
.terminal-muted { color: #64748b; }
.terminal-key { color: #818cf8; }
.terminal-success {
  margin-top: 12px;
  padding: 12px;
  background: rgba(34,197,94,0.1);
  border-radius: var(--radius);
  border-left: 3px solid #22c55e;
}
.terminal-success strong { color: #22c55e; }

/* ---- FOOTER ---- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { color: #fff; font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; }
.footer-desc { font-size: 0.875rem; line-height: 1.6; max-width: 300px; }
.footer h4 { color: #fff; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: var(--gray-400); font-size: 0.875rem; text-decoration: none; transition: color 0.15s; }
.footer ul a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}
.footer-bottom a { color: var(--gray-400); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  h1, .h1 { font-size: 2.25rem; }
  h2, .h2 { font-size: 1.75rem; }
  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-bar { gap: 24px; }

  .navbar-links { display: none; }
  .nav-toggle { display: block; }
  .navbar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }
  .navbar-actions .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  h1, .h1 { font-size: 1.875rem; }
  .container { padding: 0 16px; }
  .card-padded { padding: 24px; }
  .pricing-card { padding: 28px 20px; }
}

/* ---- UTILITIES ---- */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-top: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-sm { gap: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-16 { gap: 16px; }
