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

:root {
  --blue-900: #1e3a5f;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;
  --blue-100: #dbeafe;

  --navy:     #0a0f1e;
  --navy-2:   #0d1526;
  --navy-3:   #111827;
  --card:     #1a2235;
  --card-2:   #1f2d44;
  --border:   #1e3a5f;
  --text:     #f1f5f9;
  --muted:    #94a3b8;
  --dimmed:   #64748b;

  --radius:   10px;
  --radius-lg: 16px;
  --shadow:   0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:0 8px 48px rgba(0,0,0,0.5);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html { scroll-behavior: smooth; }

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

a { color: var(--blue-400); text-decoration: none; }
a:hover { color: var(--blue-300); }

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

/* ─── Utility ──────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(96,165,250,0.3);
  color: var(--blue-300);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.badge svg { width: 13px; height: 13px; }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(37,99,235,0);
}
.btn-primary:hover {
  background: var(--blue-700);
  box-shadow: 0 0 20px rgba(37,99,235,0.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--blue-500);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--text); }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30,58,95,0.6);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav-logo img { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .btn { padding: 8px 18px; font-size: 14px; }

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

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge { margin-bottom: 20px; }

.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.65;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 32px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--dimmed);
}
.trust-item svg { width: 14px; height: 14px; color: var(--blue-400); }

/* Screenshot */
.hero-visual { position: relative; }

.browser-frame {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(37,99,235,0.12);
}

.browser-bar {
  background: var(--card-2);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.browser-dots {
  display: flex;
  gap: 6px;
}
.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
  flex: 1;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--dimmed);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-frame img {
  width: 100%;
  display: block;
}

.hero-visual-link {
  display: block;
  transition: transform 0.2s;
}
.hero-visual-link:hover { transform: translateY(-3px); }
.hero-visual-link:hover .browser-frame {
  box-shadow: var(--shadow-lg), 0 0 80px rgba(37,99,235,0.22);
}

.screenshot-caption {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--dimmed);
}
.screenshot-caption a { color: var(--blue-400); }
.screenshot-caption a:hover { color: var(--blue-300); }

/* ─── Trust bar ────────────────────────────────────────────── */
.trust-bar {
  padding: 40px 0;
  border-top: 1px solid rgba(30,58,95,0.5);
  border-bottom: 1px solid rgba(30,58,95,0.5);
  background: rgba(13,21,38,0.6);
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.trust-stat .number {
  font-size: 36px;
  font-weight: 800;
  color: var(--blue-400);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.trust-stat .label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

/* ─── Section headings ─────────────────────────────────────── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.section-header { margin-bottom: 56px; text-align: center; }
.section-header .badge { margin-bottom: 16px; }
.section-header h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Feature pillars ──────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 0;
}

.pillar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.pillar:hover {
  border-color: var(--blue-600);
  transform: translateY(-2px);
}
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-400));
  opacity: 0;
  transition: opacity 0.2s;
}
.pillar:hover::before { opacity: 1; }

.pillar-icon {
  width: 44px;
  height: 44px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue-400);
}
.pillar-icon svg { width: 22px; height: 22px; }

.pillar h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.pillar p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── Unit Operations ──────────────────────────────────────── */
.unit-ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.unit-op {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.unit-op:hover {
  border-color: var(--blue-600);
  background: var(--card-2);
}
.unit-op-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-500);
  flex-shrink: 0;
}

/* ─── Comparison table ─────────────────────────────────────── */
.comparison-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

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

.comparison-table th {
  padding: 18px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--card-2);
  border-bottom: 1px solid var(--border);
}
.comparison-table th.highlight {
  color: var(--blue-300);
  background: rgba(37,99,235,0.12);
}

.comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(30,58,95,0.4);
  color: var(--muted);
  vertical-align: middle;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table td:first-child {
  font-weight: 500;
  color: var(--text);
}
.comparison-table td.highlight {
  background: rgba(37,99,235,0.06);
}
.comparison-table tr:hover td { background: rgba(255,255,255,0.02); }
.comparison-table tr:hover td.highlight { background: rgba(37,99,235,0.1); }

.check { color: #34d399; font-size: 16px; }
.cross { color: #f87171; font-size: 16px; }
.partial { color: #fbbf24; font-size: 16px; }

/* ─── How it works ─────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(33.33% - 16px);
  right: calc(33.33% - 16px);
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--blue-700), var(--border));
}

.step {
  text-align: center;
  padding: 32px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px rgba(37,99,235,0.35);
}

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

/* ─── Pricing ──────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.pricing-card:hover {
  transform: translateY(-3px);
}

.pricing-card.featured {
  border-color: var(--blue-600);
  background: linear-gradient(160deg, rgba(37,99,235,0.1), var(--card));
}
.pricing-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-600);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 12px;
}

.pricing-price {
  margin-bottom: 8px;
}
.pricing-price .amount {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.pricing-price .period {
  font-size: 15px;
  color: var(--muted);
  margin-left: 4px;
}

.pricing-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}
.pricing-features li .check { flex-shrink: 0; margin-top: 1px; }

.pricing-card .btn { width: 100%; justify-content: center; }
.pricing-card.featured .btn-primary {
  background: var(--blue-500);
}
.pricing-card.featured .btn-primary:hover {
  background: var(--blue-600);
}

.pricing-note {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--dimmed);
}
.pricing-note a { color: var(--blue-400); }

/* ─── CTA banner ───────────────────────────────────────────── */
.cta-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(29,78,216,0.06));
  border-top: 1px solid rgba(37,99,235,0.25);
  border-bottom: 1px solid rgba(37,99,235,0.25);
}
.cta-inner {
  position: relative;
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-inner p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(30,58,95,0.5);
  padding: 48px 0 32px;
  background: var(--navy-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p {
  font-size: 14px;
  color: var(--dimmed);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--dimmed);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid rgba(30,58,95,0.4);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: var(--dimmed); }

.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.25);
  color: var(--blue-400);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-sub { max-width: 100%; }
  .hero h1 { font-size: 36px; }
  .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .trust-bar-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .comparison-table { font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
