/* ==========================================================================
   site-08 — SaaS hiện đại đáng tin cậy (xanh dương/trắng, Stripe/Linear-inspired)
   ========================================================================== */

:root {
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-500: #2563eb;
  --brand-600: #1d4ed8;
  --brand-700: #1e40af;
  --brand-900: #172554;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --ink-100: #f1f5f9;

  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);

  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  margin: 0 0 12px;
  line-height: 1.2;
}

p {
  margin: 0 0 16px;
  color: var(--ink-700);
}

a {
  color: var(--brand-600);
  text-decoration: none;
}

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 780px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--brand-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: #fff;
  color: var(--ink-900);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--brand-500);
  color: var(--brand-600);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink-900);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: 15px;
}

.nav a:hover {
  color: var(--brand-600);
}

.btn-nav-cta {
  padding: 10px 20px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 72px;
  background: linear-gradient(180deg, var(--brand-50) 0%, #ffffff 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-visual {
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-700);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-700);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-price {
  font-size: 14px;
  color: var(--ink-500);
  font-weight: 600;
}

/* ---------- Hero visual: browser mock ---------- */

.browser-mock {
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.browser-mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--ink-100);
  border-bottom: 1px solid var(--border);
  min-width: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #f87171; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #34d399; }

.browser-mock-url {
  margin-left: 12px;
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--ink-500);
  font-family: var(--font-body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-mock-body {
  padding: 24px;
  background: var(--bg-alt);
}

.ext-popup {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 18px;
}

.ext-popup-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ext-popup-logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand-600);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ext-popup-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-900);
}

.ext-popup-status {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-600);
  background: var(--brand-50);
  padding: 4px 10px;
  border-radius: 999px;
}

.ext-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-bottom: 14px;
}

.ext-table th {
  text-align: left;
  color: var(--ink-500);
  font-weight: 600;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}

.ext-table td {
  padding: 7px 8px;
  color: var(--ink-700);
  border-bottom: 1px solid var(--ink-100);
}

.ext-popup-foot {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ext-progress {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--ink-100);
  overflow: hidden;
}

.ext-progress span {
  display: block;
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
  border-radius: 999px;
}

.ext-count {
  font-size: 11.5px;
  color: var(--ink-500);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Trust strip ---------- */

.trust {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.trust-label {
  text-align: center;
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 600;
  margin-bottom: 20px;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.trust-logos span {
  font-family: "Inter", monospace;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-300);
}

/* ---------- Top 3 features ---------- */

.top-features {
  padding: 64px 0 8px;
}

.top-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.top-feature-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.top-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.top-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.top-feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.top-feature-card p {
  font-size: 14.5px;
  margin: 0;
}

/* Section styles (features grid, steps, use cases, pricing, testimonials,
   FAQ, final CTA, footer, buy-modal override) split to sections.css to keep
   this file under the 800-line limit. */
