/* LegalCheckup Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #9b1c1c; /* Deep Crimson */
  --primary-dark: #7f1d1d;
  --primary-light: #c81e1e;
  --primary-rgb: 155, 28, 28;
  --secondary: #0f172a; /* Slate 900 */
  --accent: #3b82f6; /* Blue for highlights */
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #020617;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-focus: #9b1c1c;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --transition: all .3s cubic-bezier(.4, 0, .2, 1);
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--secondary);
  line-height: 1.2;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

.btn-success {
  background: var(--success);
  color: #fff;
}

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

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
}

.btn-ghost:hover {
  background: rgba(37, 99, 235, .08);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
  border-radius: var(--radius);
}

.btn-sm {
  padding: 8px 16px;
  font-size: .85rem;
}

/* ── Public Layout ── */
.public-nav { height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 0 8%; background: transparent; position: fixed; top: 0; width: 100%; z-index: 1000; transition: var(--transition); }
.public-nav.scrolled { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(226, 232, 240, 0.8); box-shadow: var(--shadow-sm); height: 70px; }

.public-nav .brand { display: flex; align-items: center; gap: 12px; color: var(--secondary); font-weight: 800; font-size: 1.5rem; font-family: var(--font-heading); }
.public-nav .nav-links { display: flex; gap: 40px; }
.public-nav .nav-links a { color: var(--text); font-size: .95rem; font-weight: 500; }
.public-nav .nav-links a:hover { color: var(--primary); }
.public-nav .nav-actions { display: flex; gap: 16px; }

/* ── Hero ── */
.hero { min-height: 100vh; display: flex; align-items: center; background: radial-gradient(circle at 100% 0%, #fff1f2 0%, #f8fafc 50%); color: var(--secondary); position: relative; overflow: hidden; padding: 120px 8% 80px; }
.hero-content { max-width: 680px; position: relative; z-index: 2; }
.hero h1 { font-size: 4.5rem; font-weight: 800; line-height: 1; margin-bottom: 24px; letter-spacing: -0.04em; color: var(--secondary); }
.hero h1 .highlight { color: var(--primary); background: linear-gradient(135deg, var(--primary), #e11d48); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; line-height: 1.6; max-width: 580px; }
.hero-image { position: absolute; right: -2%; top: 50%; transform: translateY(-50%); width: 50%; z-index: 1; pointer-events: none; }
.hero-image img { width: 100%; height: auto; filter: drop-shadow(0 40px 80px rgba(15,23,42,.1)); animation: float 6s ease-in-out infinite; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-30px) rotate(2deg); } }

/* ── Features ── */
.features {
  padding: 120px 5%;
  background: #fff;
  position: relative;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(37, 99, 235, .1);
  color: var(--primary);
  border-radius: 30px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 64px;
  font-size: 1.15rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transition: var(--transition);
  transform-origin: bottom;
}

.feature-card:hover::before {
  transform: scaleY(1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: rotate(10deg) scale(1.1);
}

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

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

/* ── Stats ── */
.stats-bar {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-item h4 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-item span {
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── CTA ── */
.cta-section {
  padding: 120px 5%;
  background: var(--secondary);
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 20px;
}

.cta-section p {
  color: #94a3b8;
  font-size: 1.25rem;
  margin-bottom: 48px;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, .1) 0%, transparent 70%);
}

.public-footer {
  padding: 80px 5% 40px;
  background: #fff;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 64px;
  max-width: 1280px;
  margin: 0 auto 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.footer-links h5 {
  margin-bottom: 24px;
  color: var(--secondary);
  font-weight: 700;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: .95rem;
}

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

@media (max-width: 1100px) {
  .hero h1 {
    font-size: 3rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .public-nav .nav-links {
    display: none;
  }

  .hero {
    text-align: center;
    padding-top: 140px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-image {
    position: relative;
    width: 100%;
    right: 0;
    top: 0;
    transform: none;
    margin-top: 40px;
  }

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

  .hero-actions {
    justify-content: center;
  }

  .stats-bar {
    justify-content: center;
  }
}

/* ── Trust Section ── */
.trust-section { overflow: hidden; white-space: nowrap; }
.trust-logos { display: flex; align-items: center; justify-content: space-between; animation: scrollLogos 20s linear infinite; }
@keyframes scrollLogos { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Workflow ── */
.workflow-step { position: relative; transition: var(--transition); padding: 40px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); }
.workflow-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.step-number { width: 60px; height: 60px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 800; margin: 0 auto 24px; position: relative; z-index: 2; box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3); }

/* ── Footer ── */
.public-footer .footer-links a { color: #64748b; transition: var(--transition); }
.public-footer .footer-links a:hover { color: #fff; transform: translateX(5px); }

@media (max-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .trust-section { padding: 40px 5% !important; }
  .workflow-grid { grid-template-columns: 1fr !important; }
}

/* ── Animations ── */
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fade { animation: fadeIn .4s ease; }