/* Theme */
:root {
  --bg: #0b0d10;
  --panel: #0f1216;
  --panel-2: #12161c;
  --text: #e5e7eb;
  --text-dim: #a7b0bf;
  --brand: #15d1a0;
  --brand-2: #23a6f2;
  --accent: #7c3aed;
  --border: #1f2630;
  --muted: #0c1118;
  --success: #22c55e;
  --danger: #ef4444;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 2px 10px rgba(0,0,0,0.3);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 64px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Background effects */
.bg-effects { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.bg-effects .radial {
  position: absolute; inset: -20% -20% auto -20%; height: 60vh; background: radial-gradient(60% 80% at 50% 40%, rgba(35, 166, 242, 0.35), rgba(21, 209, 160, 0.12) 40%, transparent 70%);
  filter: blur(40px);
}
.bg-effects .glow { position: absolute; width: 420px; height: 420px; filter: blur(80px); opacity: 0.35; }
.bg-effects .glow-a { top: -60px; right: 5%; background: radial-gradient(circle at 50% 50%, rgba(21, 209, 160, 0.5), transparent 60%); }
.bg-effects .glow-b { bottom: -80px; left: 5%; background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.4), transparent 60%); }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(11, 13, 16, 0.6); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--border); }
.site-header .nav { display: grid; grid-template-columns: auto 1fr; align-items: center; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.2px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo .logo-mark { color: var(--brand); }
.logo .logo-type { color: var(--text); font-weight: 800; }

.primary-nav { display: none; justify-self: center; }
.primary-nav .nav-list { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
.primary-nav a { color: var(--text-dim); font-weight: 500; }
.primary-nav a:hover { color: var(--brand); }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; background: transparent; border: 1px solid var(--border); padding: 8px; border-radius: 10px; color: var(--text); justify-self: end; }
.nav-toggle .bar { width: 22px; height: 2px; background: currentColor; display: block; }

.mobile-menu { background: var(--panel); border-bottom: 1px solid var(--border); }
.mobile-menu nav { display: grid; gap: 12px; padding: 16px; }
.mobile-menu a { color: var(--text-dim); }
.mobile-menu .btn { justify-self: start; }

@media (min-width: 900px) {
  .primary-nav { display: block; position: absolute; left: 50%; transform: translateX(-50%); }
  .site-header .nav { position: relative; grid-template-columns: auto 1fr auto; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); color: var(--text); background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.08)); box-shadow: 0 0 0 0 rgba(21, 209, 160, 0); transition: transform 0.04s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); border-color: #2a3442; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); border-color: var(--brand); box-shadow: 0 10px 30px rgba(21, 209, 160, 0.25); color: var(--text); font-weight: 700; }
.btn-primary:hover { box-shadow: 0 16px 40px rgba(21, 209, 160, 0.35); }
.btn-ghost { background: transparent; }
.site-header .nav-cta .btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: #2a3442; }
.site-header .nav-cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
#mobile-menu .btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: #2a3442; }
#mobile-menu .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-lg { height: 46px; padding: 0 18px; border-radius: 12px; font-size: 16px; }
.w-full { width: 100%; }

/* Sections */
.section { padding: 80px 0; }
.section .section-sub { color: var(--text-dim); margin-top: 8px; }

/* Hero */
.hero { padding: 80px 0 40px; border-bottom: 1px solid var(--border); background: radial-gradient(1200px 600px at 50% -100px, rgba(35,166,242,0.08), transparent 60%); }
.hero .container { position: relative; display: grid; gap: 40px; align-items: center; justify-items: center; }
.hero .hero-badge { position: absolute; top: 12px; right: 12px; background: linear-gradient(180deg, rgba(124,58,237,0.18), rgba(124,58,237,0.08)); border: 1px solid rgba(124,58,237,0.4); color: #c4b5fd; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; backdrop-filter: saturate(140%) blur(6px); box-shadow: 0 6px 18px rgba(0,0,0,0.25), 0 1px 4px rgba(0,0,0,0.18); z-index: 1; }
.hero .hero-content { text-align: center; }
.hero .hero-content { width: 100%; }
.eyebrow { display: inline-block; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; }
.eyebrow-row { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.eyebrow-badge { display: inline-flex; align-items: center; justify-content: center; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: #c4b5fd; background: linear-gradient(180deg, rgba(124,58,237,0.18), rgba(124,58,237,0.08)); border: 1px solid rgba(124,58,237,0.4); text-align: center; }
.hero h1 { font-size: 44px; line-height: 1.05; margin: 10px 0 12px; letter-spacing: -0.02em; }
.hero .sub { color: var(--text-dim); font-size: 18px; max-width: 680px; margin: 0 auto; }
.trust { display: flex; align-items: center; gap: 12px; margin-top: 20px; color: var(--text-dim); }


.avatar-group { display: inline-flex; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--panel); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; margin-left: -6px; font-weight: 700; color: var(--text-dim); }
.avatar:first-child { margin-left: 0; }

.hero-visual { position: relative; }
.window { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.window-top { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.2)); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }
.window-title { margin-left: auto; color: var(--text-dim); font-size: 12px; }
.window-body { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 16px; }
.mock-sidebar { height: 300px; border-radius: 12px; background: linear-gradient(180deg, #0c1117, #0a0e13); border: 1px solid var(--border); }
.mock-chart { height: 160px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(180deg, rgba(21,209,160,0.08), transparent 60%); }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-card { height: 100px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(180deg, rgba(124,58,237,0.08), transparent 60%); }

@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
}

/* Feature grid */
.features h2, .compare h2, .pricing h2, .faq h2, .cta h2, .signup h2 { font-size: 32px; letter-spacing: -0.02em; margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 16px; margin-top: 24px; }
.feature-card { border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.08)); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.feature-card .icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(21,209,160,0.14); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.feature-card h3 { margin: 8px 0 4px; }
.feature-card p { margin: 0; color: var(--text-dim); }

@media (min-width: 700px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Compare */
.compare-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 20px; justify-items: center; }
.compare .card { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); padding: 18px; box-shadow: var(--shadow); }
.compare .card.alt { background: var(--panel-2); }
.compare ul { margin: 10px 0 0; padding-left: 18px; color: var(--text-dim); }

/* Compare table */
.compare-table { width: 100%; max-width: 880px; margin: 0 auto; border-collapse: collapse; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.compare-table thead th { text-align: left; color: var(--text); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.compare-table thead th:not(:first-child) { text-align: center; }
.compare-table .th-sub { display: block; color: var(--text-dim); font-weight: 600; font-size: 12px; }
.compare-table .th-logo { display: inline-flex; align-items: center; justify-content: center; }
.compare-table .th-logo svg { height: 20px; width: auto; display: block; }
.compare-table .th-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.compare-table .th-brand .logo-mark { color: var(--brand); width: 22px; height: 22px; }
.compare-table .th-brand .logo-type { color: var(--text); font-weight: 800; font-size: 14px; }
.compare-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.compare-table tbody td:nth-child(2), .compare-table tbody td:nth-child(3) { text-align: center; color: var(--text); font-weight: 700; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .check { color: var(--success); }
.compare-table .x { color: var(--danger); }

@media (min-width: 900px) { .compare-grid { grid-template-columns: 1fr; justify-items: center; } }

/* Mobile: hide brand words in compare header but keep logos */
@media (max-width: 700px) {
  .compare-table thead .th-brand .logo-type { display: none; }
  .compare-table thead .th-brand { gap: 0; }
  /* Hide original wordmark SVG and replace with compact logo-only mark */
  .compare-table thead .th-logo svg { display: none; }
  .compare-table thead .th-logo { display: inline-block; width: 24px; height: 18px; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 41" fill="none"><path d="M18.3195 40.6842H10.6281L24.1115 9.83167H31.8029L18.3195 40.6842ZM12.5743 31.7535H4.88293L18.3663 0.901001H26.0577L12.5743 31.7535ZM34.214 26.3961H26.5226L34.8292 7.38147H42.5216L34.214 26.3961ZM12.504 9.83167L8.11243 19.8805H0.421021L4.81262 9.83167H12.504Z" fill="%233177FF"/></svg>') no-repeat center; background-size: 100% 100%; }
  .compare-table thead th:nth-child(2),
  .compare-table thead th:nth-child(3) { width: 1%; padding-left: 6px; padding-right: 6px; }
}

/* Pricing */
.pricing-cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
.price-card { position: relative; border: 1px solid var(--border); border-radius: 16px; padding: 18px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.08)); box-shadow: var(--shadow); }
.price-card.highlighted { background: linear-gradient(180deg, rgba(124,58,237,0.12), rgba(255,255,255,0.02)); border-color: rgba(124,58,237,0.4); }
.price-card .badge { position: absolute; top: -10px; right: 12px; background: rgba(124,58,237,0.14); border: 1px solid rgba(124,58,237,0.4); color: #c4b5fd; padding: 4px 8px; border-radius: 999px; font-size: 12px; }
.price-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price { font-size: 28px; font-weight: 800; color: var(--text); }
.price span { color: var(--text-dim); font-size: 14px; font-weight: 600; margin-left: 4px; }
.price-features { margin: 12px 0 16px; padding-left: 18px; color: var(--text-dim); }

@media (min-width: 800px) {
  .pricing-cards { grid-template-columns: 1fr 1fr; }
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
.faq-grid details { border: 1px solid var(--border); border-radius: 12px; background: var(--panel); padding: 14px 16px; box-shadow: var(--shadow); }
.faq-grid summary { cursor: pointer; font-weight: 600; }
.faq-grid p { color: var(--text-dim); margin: 10px 0 0; }

@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1fr; } }

/* CTA */
.cta .cta-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: 16px; padding: 18px; background: linear-gradient(90deg, rgba(21, 209, 160, 0.14), rgba(124,58,237,0.12)); box-shadow: var(--shadow); }
.cta .section-sub { margin: 4px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 30px 0; background: rgba(255,255,255,0.01); }
.site-footer .footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer .brand .fine { color: var(--text-dim); margin: 6px 0 0; font-size: 14px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }

/* Utilities */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Link utility for inline CTA links */
.link { color: var(--brand); text-decoration: none; }
.link:hover { text-decoration: underline; }

