:root {
  --ink: #0f172a;
  --text: #475569;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-slate: #f1f5f9;
  --accent: #0891b2;
  --accent-700: #0e7490;
  --accent-50: #ecfeff;
  --dark: #0b1220;
  --dark-2: #111a2e;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 50px -18px rgba(15, 23, 42, 0.22);
  --shadow-cyan: 0 18px 40px -16px rgba(8, 145, 178, 0.28);
  --font: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input { font: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.01em; min-width: 0; white-space: nowrap; }
.brand-mark { display: block; width: 34px; height: 26px; flex-shrink: 0; }
.brand-name { font-weight: 700; letter-spacing: 0.01em; }
.nav-links { display: none; gap: 30px; }
.nav-links a { font-size: 0.9rem; color: var(--muted); font-weight: 500; transition: color 160ms ease; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 20px; border-radius: 10px; white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 0.875rem; font-weight: 600;
  transition: background 160ms ease, transform 160ms ease;
}
.nav-cta:hover { background: #1e293b; }
.nav-ghost { font-size: 0.875rem; color: var(--muted); font-weight: 500; }
.nav-ghost:hover { color: var(--ink); }

/* Auth chip in the landing nav: only the button / avatar belongs here - the
   "create an account" helper text is for the in-app header, and the sign-in
   button must match the neighbouring nav buttons. */
.nav-actions { min-width: 0; }
.nav-actions .auth-controls { margin-left: 0; }
.nav-actions .auth-status { display: none; }
.nav-actions .auth-signin-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 18px; border-radius: 10px; white-space: nowrap;
  font-size: 0.875rem; font-weight: 600;
  background: #fff; border: 1px solid var(--border-strong); color: var(--ink);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.nav-actions .auth-signin-btn:hover { background: var(--bg-soft); border-color: var(--muted); color: var(--ink); }
.nav-actions .auth-avatar-btn { width: 38px; height: 38px; }

@media (min-width: 880px) {
  .nav-links { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px; font-size: 0.95rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all 170ms ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1e293b; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-700); transform: translateY(-1px); }
.btn-outline { border-color: var(--border-strong); color: var(--ink); background: #fff; }
.btn-outline:hover { background: var(--bg-soft); border-color: var(--muted); }
.btn-lg { padding: 15px 34px; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); border-bottom: 1px solid var(--border); }
.hero-glow {
  position: absolute; width: 40rem; height: 40rem; border-radius: 9999px; pointer-events: none;
  background: radial-gradient(circle, rgba(8,145,178,0.10) 0%, rgba(8,145,178,0.04) 45%, rgba(255,255,255,0) 70%);
  filter: blur(10px);
}
.hero-glow-1 { top: -14rem; right: -12rem; }
.hero-glow-2 { bottom: -18rem; left: -10rem; }
.hero-inner { position: relative; padding: 84px 0 72px; }
.hero-copy { max-width: 760px; }
.eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-700); margin-bottom: 18px;
  background: var(--accent-50); border: 1px solid #cffafe; padding: 5px 12px; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.025em;
  color: var(--ink); font-weight: 800; margin: 0 0 20px;
}
.hero h1 .hl { color: var(--accent); }
.hero p.lead { font-size: 1.12rem; color: var(--text); max-width: 640px; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pill {
  border: 1px solid var(--border); background: rgba(255,255,255,0.85);
  border-radius: 999px; padding: 7px 14px; font-size: 0.78rem; color: #475569; font-weight: 500;
}

/* ---------- Product preview ---------- */
.preview-wrap { margin-top: 56px; }
.preview {
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-lg);
}
.preview-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-soft); min-width: 0; }
.preview-dot { width: 11px; height: 11px; border-radius: 999px; background: #cbd5e1; flex-shrink: 0; }
.preview-dot.r { background: #fca5a5; } .preview-dot.y { background: #fcd34d; } .preview-dot.g { background: #86efac; }
.preview-title { margin-left: 10px; font-size: 0.78rem; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-body { padding: 0; background: #0e1626; }
.preview-img { display: block; width: 100%; height: auto; }
.preview-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0; }
.chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #a5f3fc; background: var(--accent-50); color: var(--accent-700); border-radius: 999px; padding: 5px 12px; font-size: 0.78rem; font-weight: 600; }
.chip .d { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: var(--dark); color: #cbd5e1; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .eyebrow { background: var(--accent-50); border-color: #cffafe; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -0.02em; color: var(--ink); font-weight: 800; margin: 0 0 12px; }
.section-dark .section-head h2 { color: #fff; }
.section-head p { color: var(--muted); font-size: 1.02rem; margin: 0; }
.section-dark .section-head p { color: #94a3b8; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-cyan); border-color: #67e8f9; }
.icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card h3 { color: var(--ink); font-size: 1.02rem; font-weight: 700; margin: 0 0 8px; }
.card p { font-size: 0.9rem; color: var(--text); margin: 0; line-height: 1.55; }

/* ---------- Showcase rows ---------- */
.showcase { display: grid; gap: 28px; margin-bottom: 48px; }
.showcase:last-child { margin-bottom: 0; }
@media (min-width: 860px) { .showcase { grid-template-columns: 1fr 1fr; align-items: center; } }
.showcase .copy h3 { color: var(--ink); font-size: 1.4rem; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.01em; }
.showcase .copy p { color: var(--text); font-size: 0.96rem; margin: 0 0 16px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--text); }
.checklist .ck { color: var(--accent); font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.visual {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #0e1626;
  box-shadow: var(--shadow-sm); min-height: 280px; display: flex; align-items: center; justify-content: center;
}
.visual img { display: block; width: 100%; height: auto; }
.visual .cap { color: #94a3b8; font-size: 0.78rem; text-align: center; padding: 20px; }

/* ---------- Workflow ---------- */
.steps { display: grid; gap: 22px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.section-soft .step { background: #fff; }
.step .num { width: 40px; height: 40px; border-radius: 999px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; margin-bottom: 16px; }
.step h3 { color: var(--ink); font-size: 1.02rem; font-weight: 700; margin: 0 0 8px; }
.step p { font-size: 0.88rem; color: var(--text); margin: 0; }

/* ---------- Why / dark feature grid ---------- */
.feature-3 { display: grid; gap: 22px; }
@media (min-width: 720px) { .feature-3 { grid-template-columns: repeat(3, 1fr); } }
.dcard { border: 1px solid #1f2c44; background: var(--dark-2); border-radius: var(--radius); padding: 26px; transition: transform 180ms ease, border-color 180ms ease; }
.dcard:hover { transform: translateY(-3px); border-color: #2b3c5c; }
.dcard .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-50); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.dcard h3 { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.dcard p { color: #94a3b8; font-size: 0.88rem; margin: 0; line-height: 1.55; }

/* ---------- Comparison table ---------- */
.compare { max-width: 880px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 20px; text-align: left; font-size: 0.92rem; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--bg-soft); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.compare td:first-child { color: var(--ink); font-weight: 600; }
.compare .us { color: var(--accent-700); font-weight: 700; }
.compare .them { color: #94a3b8; }
.compare tr:last-child td { border-bottom: none; }
.compare .price { font-size: 1.05rem; font-weight: 800; color: var(--ink); }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 22px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; cursor: pointer; position: relative; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow-cyan); position: relative; }
.plan.featured::after { content: "Most popular"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.plan.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,211,238,0.25), var(--shadow-cyan); transform: translateY(-3px); }
.plan-selected-badge { display: none; position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 0.85rem; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); z-index: 2; }
.plan.selected .plan-selected-badge { display: flex; }
.plan .pname { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.plan .pdesc { font-size: 0.82rem; color: var(--muted); min-height: 38px; margin: 0 0 18px; }
.plan .price { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.plan .price small { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.plan .per { font-size: 0.8rem; color: var(--muted); margin: 6px 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.85rem; color: var(--text); }
.plan li .ck { color: var(--accent); font-weight: 800; flex-shrink: 0; }
.plan .btn { width: 100%; }
.plan .plan-select-btn { cursor: pointer; }
.plan-trial { font-size: 0.75rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
.trial-strip { display: none; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 0 26px; padding: 12px 18px; border: 1px dashed rgba(34,211,238,0.5); border-radius: 12px; background: rgba(8,145,178,0.08); color: var(--text); font-size: 0.9rem; text-align: center; }
.trial-strip-badge { background: var(--accent); color: #fff; font-weight: 800; font-size: 0.68rem; letter-spacing: 0.05em; padding: 5px 10px; border-radius: 999px; text-transform: uppercase; }
.plan-select-bar { display: none; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 28px auto 0; max-width: 760px; padding: 16px 22px; border: 1px solid var(--border-strong); border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); }
.plan-select-bar.show { display: flex; }
.plan-select-info { font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.regional-note { text-align: center; margin-top: 30px; font-size: 0.9rem; color: var(--muted); }
.regional-note strong { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 22px; max-width: 720px; margin: 0 auto; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: #fff; transition: transform 180ms ease, box-shadow 180ms ease; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-cyan); border-color: #67e8f9; }
.contact-card .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-50); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.contact-card h3 { color: var(--ink); font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.contact-card p { font-size: 0.86rem; color: var(--text); margin: 0 0 12px; }
.contact-card a { font-size: 0.88rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Final CTA ---------- */
.cta-box { background: linear-gradient(135deg, #0b1220 0%, #102a3a 100%); border-radius: 22px; padding: 64px 32px; text-align: center; }
.cta-box .eyebrow { background: rgba(8,145,178,0.15); border-color: rgba(34,211,238,0.3); color: #67e8f9; }
.cta-box h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 12px; }
.cta-box p { color: #94a3b8; max-width: 560px; margin: 0 auto 30px; font-size: 1.02rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: #fff; }
.footer-top { display: flex; flex-direction: column; gap: 36px; margin-bottom: 40px; }
@media (min-width: 760px) { .footer-top { flex-direction: row; justify-content: space-between; } }
.footer .brand { margin-bottom: 12px; }
.footer-blurb { font-size: 0.85rem; color: var(--muted); max-width: 300px; }
.footer-disclaimer { font-size: 0.78rem; line-height: 1.5; color: var(--muted); opacity: 0.85; max-width: 340px; margin-top: 12px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.82rem; color: var(--ink); font-weight: 700; margin: 0 0 14px; }
.footer-col a { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 9px; transition: color 150ms ease; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 0.78rem; color: var(--muted); }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ---------- Trust strip ---------- */
.trust { background: var(--ink); padding: 22px 0; }
.trust-inner { display: flex; flex-direction: column; gap: 14px; align-items: center; }
@media (min-width: 760px) { .trust-inner { flex-direction: row; justify-content: space-between; } }
.trust-inner p { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #94a3b8; font-weight: 600; margin: 0; }
.trust-tags { display: flex; flex-wrap: wrap; gap: 22px; }
.trust-tags span { font-size: 0.8rem; color: #64748b; font-weight: 600; opacity: 0.8; }

/* ---------- Responsive polish ---------- */
@media (max-width: 980px) {
  /* The nav has to fit brand + auth + CTA once the links collapse away. */
  .nav-actions { gap: 8px; }
  .nav-ghost { display: none; }
}

@media (max-width: 720px) {
  .hero-inner { padding: 60px 0 56px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .cta-box { padding: 48px 22px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .brand { font-size: 0.95rem; gap: 8px; }
  .brand-mark { width: 30px; height: 23px; }
  .nav-cta { height: 34px; padding: 0 14px; font-size: 0.8rem; border-radius: 8px; }
  .nav-actions .auth-signin-btn { height: 34px; padding: 0 12px; font-size: 0.8rem; border-radius: 8px; }
  .nav-actions .auth-avatar-btn { width: 34px; height: 34px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .preview-bar { padding: 10px 12px; }
  .preview-title { font-size: 0.7rem; }
}
