/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #0a84ff;
  --blue-dark: #0055cc;
  --dark: #0f172a;
  --dark2: #1e293b;
  --mid: #475569;
  --muted: #64748b;
  --light: #94a3b8;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark2);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.2; font-weight: 800; color: var(--dark); }

/* ── Container ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, background 0.15s;
  border: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(10,132,255,0.3);
}
.btn-primary:hover { background: var(--blue-dark); }

.btn-hero {
  background: #fff;
  color: var(--dark);
  font-size: 18px;
  padding: 16px 36px;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.btn-hero:hover { background: #f1f5f9; }

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 12px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); }

.btn-sm { padding: 10px 20px; font-size: 14px; border-radius: 10px; }

/* ── Section helpers ──────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { padding: 96px 0; background: var(--bg-alt); }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(10,132,255,0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}
.section-alt h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 56px;
  max-width: 560px;
}

/* ── NAV ──────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  color: var(--dark);
  flex-shrink: 0;
}
.nav-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--mid);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--dark); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark2);
  border-radius: 2px;
  transition: transform 0.2s;
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  gap: 4px;
}
.nav-mobile-menu a {
  font-size: 16px;
  font-weight: 600;
  color: var(--mid);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-menu a:last-child { border: none; margin-top: 8px; }

/* ── HERO ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0a4a3a 100%);
  color: #fff;
  padding: 100px 0 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(10,132,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
  letter-spacing: 0.2px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  line-height: 1.08;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  line-height: 1.65;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.hero-wave {
  width: 100%;
  line-height: 0;
  margin-top: -1px;
}
.hero-wave svg { width: 100%; height: 80px; display: block; }

/* ── PROBLEM ──────────────────────────────────────── */
.problem { padding: 64px 0; background: var(--bg); }
.problem-inner { text-align: center; }
.problem-lead {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--mid);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}
.problem-lead strong { color: var(--dark); }

/* ── FEATURES ─────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.feature-card-highlight {
  border-color: #0ea5e9;
  background: linear-gradient(135deg, #f0f9ff 0%, #f5f3ff 100%);
}
.feature-card-highlight h3 {
  color: #0369a1;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 14px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── HOW IT WORKS ─────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 48px;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(10,132,255,0.3);
  flex-shrink: 0;
}

.step-body h3 { font-size: 17px; margin-bottom: 8px; }
.step-body p { font-size: 14px; color: var(--muted); line-height: 1.65; }

.step-arrow {
  font-size: 24px;
  color: var(--light);
  padding-top: 14px;
  flex-shrink: 0;
}

.how-cta { text-align: center; }

/* ── COMPARE ──────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}

.compare-table thead tr {
  background: var(--dark);
  color: #fff;
}

.compare-table thead th {
  padding: 16px 18px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.compare-table thead th:first-child { text-align: left; }

.col-fbc {
  background: rgba(10,132,255,0.12) !important;
  position: relative;
}

thead .col-fbc {
  background: rgba(10,132,255,0.25) !important;
}

.col-fbc-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
}

.col-fbc-logo {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}

.col-badge {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.compare-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.compare-table tbody tr:last-child { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--bg-alt); }

.compare-table tbody td {
  padding: 14px 18px;
  text-align: center;
  color: var(--mid);
  vertical-align: middle;
}
.compare-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--dark2);
}

.compare-table tbody td small {
  font-size: 11px;
  color: var(--light);
  display: block;
}

td.yes { color: #16a34a; font-size: 18px; }
td.no { color: #dc2626; font-size: 18px; }
td.partial { color: #d97706; font-size: 18px; }

.compare-group {
  margin-bottom: 40px;
}

.compare-group-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--dark2);
  margin-bottom: 14px;
}

.compare-group-icon {
  font-size: 20px;
  line-height: 1;
}

.compare-group-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--light);
  margin-left: 2px;
}

.compare-note {
  font-size: 12px;
  color: var(--light);
  text-align: right;
}

/* ── USE CASES ────────────────────────────────────── */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.usecase-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.usecase-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.usecase-icon {
  font-size: 32px;
  margin-bottom: 14px;
  line-height: 1;
}

.usecase-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.usecase-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── FAQ ──────────────────────────────────────────── */
.faq-inner { max-width: 720px; margin: 0 auto; }
.faq-inner h2 { margin-bottom: 40px; }

.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-item summary {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  gap: 16px;
  transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--light);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--blue);
}
.faq-item summary:hover { color: var(--blue); }

.faq-item p {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── FINAL CTA ────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0a4a3a 100%);
  padding: 100px 0;
  text-align: center;
  color: #fff;
}

.cta-inner h2 {
  font-size: clamp(28px, 4vw, 44px);
  color: #fff;
  margin-bottom: 16px;
}

.cta-inner > p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
}

.cta-hint {
  margin-top: 16px !important;
  font-size: 13px !important;
  color: rgba(255,255,255,0.4) !important;
}

/* ── FOOTER ───────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: 48px 0;
}

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

.footer-brand .nav-logo { color: #fff; margin-bottom: 6px; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.4); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }

.footer-copy { font-size: 12px; width: 100%; text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .section, .section-alt { padding: 64px 0; }
  .hero { padding: 72px 0 0; }
  .hero-inner { padding-bottom: 64px; }

  .nav-links { display: none; }
  .nav-inner > .btn { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-menu.is-open { display: flex; }

  .steps {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }
  .step { flex-direction: row; text-align: left; align-items: flex-start; padding: 0; gap: 20px; }
  .step-num { margin-bottom: 0; flex-shrink: 0; width: 44px; height: 44px; font-size: 18px; }
  .step-arrow { display: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: left; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn-hero, .btn-ghost { width: 100%; text-align: center; justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }
}
