/* ======================================
   Reset & Base
   ====================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #0b0b0f;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }

/* ======================================
   Tokens (match index.html)
   ====================================== */
:root {
  --primary: #0056b3;
  --primary-contrast: #ffffff;
  --accent: #00a0ff;
  --accent-secondary: #0056b3;
  --muted: #6b7280;
  --shadow: 0 10px 25px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.06);
  --radius-2xl: 36px;
  --container-width: 1200px;

  /* used by features sections */
  --secondary: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --light: #f8fafc;
  --dark: #0f172a;
  --border: #e2e8f0;
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --radius: .75rem;
  --radius-lg: 1rem;
}

/* ======================================
   Background (make features match index)
   Your HTML has <div class="bg-gradient"> — keep it, but style like index's bg-glow
   ====================================== */
.bg-gradient {
  position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden;
  background:
    radial-gradient(600px 300px at 10% 70%, rgba(0, 160, 255, .2), transparent 60%),
    radial-gradient(600px 300px at 90% 75%, rgba(0, 86, 179, .2), transparent 60%),
    linear-gradient(135deg, rgba(240, 249, 255, 0.6) 0%, rgba(214, 240, 255, 0.6) 100%);
}

/* ======================================
   Container
   ====================================== */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }

/* ======================================
   Navbar (match index.html visuals)
   Your HTML uses: <header class="container navbar"> … </header>
   ====================================== */
.navbar {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .2px; }
.brand .logo {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
  background: #0b0b0f; color: #fff; font-weight: 900; font-size: 20px; position: relative;
  box-shadow: var(--shadow);
}
.brand .logo::after {
  content: ''; position: absolute; bottom: 8px; right: 8px; width: 12px; height: 12px;
  border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,62,165,0.25);
}
.brand .brand-text { font-size: 22px; color: var(--primary); font-weight: 900; }

.nav-links { display: flex; align-items: center; gap: 28px; color: #1f2937; }
.nav-links a { opacity: .85; font-weight: 500; }
.nav-links a:hover { opacity: 1; }

/* ======================================
   Buttons (match index look)
   ====================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid rgba(0,0,0,.08); background: #fff; color: #111;
  padding: 10px 16px; border-radius: 12px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary); color: var(--primary-contrast);
  border-color: transparent; padding: 12px 18px; border-radius: 14px; font-weight: 600;
}
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: #fff; }
.btn-large { padding: 1rem 2rem; font-size: 1.125rem; }

/* ======================================
   Hero
   ====================================== */
.hero { text-align: center; padding: 56px 0 24px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-radius: 999px; background: #e6f5ff; border: none; font-weight: 600; font-size: 14px; color: #0056b3;
}
.hero h1 {
  font-size: clamp(36px, 5.2vw, 64px); line-height: 1.05; margin: 18px 0 16px; letter-spacing: -0.02em;
}
.hero-subtitle {
  max-width: 880px; margin: 0 auto; color: #4b5563; font-size: clamp(16px, 2.2vw, 20px);
}

/* ======================================
   Features Section (kept, lightly aligned)
   ====================================== */
.features-section { padding: 4rem 1.5rem; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem; margin-top: 2rem;
}
.feature-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-sm); transition: all 0.3s ease; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: 0; transition: opacity 0.3s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { opacity: 1; }

.main-feature {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white; border: none;
}
.main-feature .feature-icon { color: white; background: rgba(255, 255, 255, 0.2); }
.main-feature::before { background: rgba(255, 255, 255, 0.2); opacity: 1; }
.main-feature .feature-content p { color: rgba(255, 255, 255, 0.9); }
.main-feature .feature-benefits li { color: rgba(255, 255, 255, 0.9); }
.main-feature .feature-benefits li::before { background: rgba(255, 255, 255, 0.3); }

.feature-icon {
  width: 4rem; height: 4rem; background: var(--light); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 1.5rem;
}
.feature-content h3 { font-size: 1.5rem; font-weight: 700; margin: 0 0 1rem 0; }
.feature-content p { color: var(--secondary); margin-bottom: 1.5rem; line-height: 1.7; }

.feature-benefits { list-style: none; padding: 0; margin: 0; }
.feature-benefits li {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; color: var(--secondary);
}
.feature-benefits li::before {
  content: '✓'; width: 1.25rem; height: 1.25rem; background: var(--success); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: bold; flex-shrink: 0;
}

/* ======================================
   CTA
   ====================================== */
.cta-section { padding: 5rem 1.5rem; text-align: center; }
.cta-content h2 { font-size: 2.5rem; font-weight: 800; margin: 0 0 1rem 0; color: var(--dark); }
.cta-content p { font-size: 1.25rem; color: var(--secondary); margin-bottom: 2.5rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ======================================
   Footer
   ====================================== */
.footer { background: var(--dark); color: white; padding: 3rem 0 1rem; }
.footer-content {
  display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; margin-bottom: 2rem;
}
.footer-brand p { color: rgba(255, 255, 255, 0.7); margin-top: 1rem; }
.footer-brand .logo { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.footer-brand .brand-text { color: white; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-column h4 { font-weight: 600; margin-bottom: 1rem; color: white; }
.footer-column a {
  display: block; color: rgba(255, 255, 255, 0.7); text-decoration: none; margin-bottom: 0.5rem; transition: color 0.2s ease;
}
.footer-column a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1rem; text-align: center; color: rgba(255, 255, 255, 0.7);
}

/* ======================================
   Accessibility & small polish
   ====================================== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent) 60%, white);
  outline-offset: 2px; border-radius: 10px;
}

/* ======================================
   Responsive
   ====================================== */
@media (max-width: 1024px) {
  .main-feature { grid-column: span 1; }
  .features-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (max-width: 768px) {
  .navbar { flex-direction: column; gap: 1rem; padding: 1rem 1.5rem; }
  .nav-links { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .hero { padding: 3rem 1.5rem 2rem; }
  .features-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-card { padding: 1.5rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .feature-card { padding: 1rem; }
  .feature-icon { width: 3rem; height: 3rem; }
  .cta-content h2 { font-size: 2rem; }
  .cta-content p { font-size: 1rem; }
}
