:root {
  --ink: #132033;
  --muted: #667085;
  --line: #dce4ef;
  --panel: #ffffff;
  --bg: #f5f8fc;
  --brand: #1b67f2;
  --brand-2: #16a3c7;
  --accent: #10b981;
  --dark: #0d1b31;
  --shadow: 0 22px 70px rgba(16, 36, 70, .14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220, 228, 239, .8);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.site-nav { display: flex; justify-content: center; gap: 24px; color: #344054; font-size: 14px; }
.site-nav a:hover { color: var(--brand); }
.header-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 7px;
  font-weight: 750;
  white-space: nowrap;
}
.header-cta, .btn.primary { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 28px rgba(27, 103, 242, .24); }
.btn.secondary { color: var(--brand); background: #eef5ff; border: 1px solid #cfe0ff; }
.btn.full { width: 100%; }
.nav-toggle { display: none; padding: 8px 10px; border-radius: 7px; background: #eef5ff; color: var(--brand); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 60px clamp(18px, 5vw, 72px) 54px;
  background:
    radial-gradient(circle at 8% 18%, rgba(27, 103, 242, .14), transparent 31%),
    linear-gradient(135deg, #f9fbff 0%, #eef5ff 52%, #eafafc 100%);
}
.eyebrow { margin: 0 0 12px; color: var(--brand); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
h1, h2, h3, p { letter-spacing: 0; }
h1 { margin: 0; max-width: 820px; font-size: clamp(42px, 6vw, 76px); line-height: .98; }
h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.06; }
h3 { margin: 0; font-size: 21px; }
.lead { max-width: 720px; margin: 22px 0 0; color: #475467; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.trust-row span { padding: 8px 10px; border: 1px solid #d5e3f8; border-radius: 999px; background: rgba(255, 255, 255, .68); color: #475467; font-size: 13px; }

.product-frame { background: #101c31; border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid rgba(255,255,255,.2); }
.window-bar { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 14px; color: #c7d7f2; border-bottom: 1px solid rgba(255,255,255,.1); }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.window-bar span:nth-child(2) { background: #ffbd2e; }
.window-bar span:nth-child(3) { background: #28c840; margin-right: 8px; }
.dashboard-preview { display: grid; grid-template-columns: 150px 1fr; min-height: 455px; background: #f5f8fc; }
.dashboard-preview aside { background: #15233d; color: #b8c4dc; padding: 20px 14px; }
.dashboard-preview aside b { display: block; color: #fff; margin-bottom: 18px; }
.dashboard-preview aside p { margin: 7px 0; padding: 9px 10px; border-radius: 6px; font-size: 13px; }
.dashboard-preview aside .active { color: #fff; background: rgba(79, 140, 255, .25); }
.dashboard-preview section { padding: 20px; }
.preview-top { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 16px; }
.preview-top small, .config-grid span { display: block; color: var(--muted); font-size: 12px; }
.preview-top button { padding: 8px 12px; border-radius: 6px; color: #fff; background: var(--brand); }
.config-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.config-grid div, .fake-table { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 12px; }
.fake-table { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0; padding: 0; overflow: hidden; font-size: 13px; }
.fake-table div { padding: 12px; border-bottom: 1px solid var(--line); }
.fake-table div:nth-child(-n+3) { font-weight: 800; background: #f8fbff; }
.fake-table em { font-style: normal; color: #087a55; background: #e9fbf4; padding: 3px 7px; border-radius: 999px; }

.section { padding: 82px clamp(18px, 5vw, 72px); }
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 800px; margin-bottom: 34px; }
.section-head p:not(.eyebrow), .split-section p, .demo-section p, .checkout-copy p { color: var(--muted); line-height: 1.7; font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats div { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbff; }
.stats strong { display: block; font-size: 34px; color: var(--brand); }
.stats span { color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid article, .price-card, .checkout-card, .demo-card, .cases .case-row div, .faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.feature-grid article { padding: 24px; }
.feature-grid span { display: inline-flex; margin-bottom: 18px; color: var(--brand); font-weight: 800; }
.feature-grid p, .price-card p, .price-card li, .faq p { color: var(--muted); line-height: 1.65; }

.split-section { display: grid; grid-template-columns: 1fr 430px; gap: 46px; align-items: center; background: #0f1b2e; color: #fff; }
.split-section p, .split-section .eyebrow { color: #b9c7dd; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.check-list li { padding-left: 28px; position: relative; color: #e6edf7; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.pipeline { display: grid; gap: 12px; }
.pipeline div { padding: 18px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }

.cases { background: #fff; }
.case-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.case-row div { padding: 22px; min-height: 150px; }
.case-row b { display: block; margin-bottom: 10px; }
.case-row span { color: var(--muted); line-height: 1.6; }

.billing-toggle { display: inline-flex; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-top: 18px; }
.billing-toggle button { padding: 9px 13px; border-radius: 6px; background: transparent; color: var(--muted); }
.billing-toggle .active { color: #fff; background: var(--dark); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price-card { position: relative; padding: 24px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-10px); }
.badge { display: inline-flex; align-self: flex-start; margin: 0 0 8px; padding: 4px 8px; border-radius: 999px; background: #e9fbf4; color: #087a55 !important; font-size: 12px; font-weight: 800; }
.plan { margin: 0 0 10px; color: var(--brand) !important; font-weight: 800; }
.price-card h3 { font-size: 42px; margin: 0; }
.price-card h3 small { font-size: 14px; color: var(--muted); }
.price-card ul { padding-left: 18px; margin: 16px 0 24px; flex: 1; }

.checkout-section { display: grid; grid-template-columns: 1fr minmax(360px, 520px); gap: 42px; align-items: start; background: #fff; }
.payment-logos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.payment-logos span { padding: 8px 11px; border-radius: 6px; background: #f3f6fb; border: 1px solid var(--line); color: #344054; font-weight: 750; }
.checkout-card { padding: 24px; box-shadow: var(--shadow); }
.summary { display: grid; gap: 4px; padding: 16px; border-radius: 8px; background: #f8fbff; border: 1px solid var(--line); margin-bottom: 18px; }
.summary span, .fine-print { color: var(--muted); font-size: 13px; }
.summary b { font-size: 34px; }
.summary small { font-size: 13px; color: var(--muted); }
label { display: grid; gap: 8px; color: #344054; font-weight: 700; margin-bottom: 14px; }
input, select { width: 100%; min-height: 42px; border: 1px solid #cfd8e6; border-radius: 7px; padding: 9px 12px; outline: none; background: #fff; }
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27, 103, 242, .13); }
.payment-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.payment-tabs button { min-height: 40px; border-radius: 7px; color: #344054; background: #f3f6fb; border: 1px solid var(--line); }
.payment-tabs .active { color: #fff; background: var(--brand); border-color: var(--brand); }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.demo-section { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: center; }
.demo-card { padding: 26px; background: linear-gradient(135deg, #ffffff, #f0f7ff); }
.faq { padding-top: 50px; }
.faq details { padding: 18px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 800; }

.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 34px clamp(18px, 5vw, 72px); background: var(--dark); color: #d8e2f2; }
.site-footer p { color: #9fb0c8; margin: 10px 0 0; }
.site-footer div:last-child { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }

.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(9, 20, 36, .62); }
.modal-backdrop[hidden], .toast[hidden] { display: none; }
.modal { position: relative; width: min(520px, 100%); background: #fff; border-radius: 8px; padding: 28px; box-shadow: var(--shadow); }
.modal h2 { font-size: 30px; }
.modal p { color: var(--muted); line-height: 1.65; }
.modal-close { position: absolute; right: 16px; top: 16px; padding: 7px 9px; border-radius: 6px; background: #f3f6fb; color: #344054; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 40; max-width: 360px; background: #101828; color: #fff; padding: 14px 16px; border-radius: 8px; box-shadow: var(--shadow); }

@media (max-width: 1120px) {
  .hero, .split-section, .checkout-section, .demo-section { grid-template-columns: 1fr; }
  .product-frame { max-width: 720px; }
  .feature-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .case-row, .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav { grid-column: 1 / -1; display: none; flex-direction: column; align-items: stretch; padding: 12px 0 2px; }
  .site-nav.open { display: flex; }
  .hero { padding-top: 38px; }
  h1 { font-size: 42px; }
  .dashboard-preview { grid-template-columns: 1fr; }
  .dashboard-preview aside { display: none; }
  .config-grid, .feature-grid, .pricing-grid, .case-row, .stats { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .payment-tabs, .two-cols { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}
