:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #475569;
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --accent: #0ea5e9;
  --success: #16a34a;
  --paper-bg: #fffefb;
  --mono: "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* Navbar */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.brand-logo.small {
  width: 30px;
  height: 30px;
  font-size: 1rem;
  border-radius: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.05rem;
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  padding: 13px 22px;
  font-size: 0.98rem;
  border-radius: 12px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.24);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 22px rgba(29, 78, 216, 0.32);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--surface-alt);
  border-color: #cbd5e1;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.btn-white {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
}

.btn-white:hover {
  background: #f8fafc;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.12), transparent 52%),
              radial-gradient(circle at 10% 80%, rgba(14, 165, 233, 0.08), transparent 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.1vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(120deg, var(--primary), #0284c7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 0 28px;
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 56ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric strong {
  font-size: 1.05rem;
  color: var(--text);
}

.metric span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.metric-sep {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* Hero Receipt Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 16px 12px;
}

.floating-chip {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.floating-chip strong {
  display: block;
  font-size: 0.82rem;
}

.floating-chip small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.chip-top {
  top: 24px;
  left: -8px;
}

.chip-bottom {
  bottom: 28px;
  right: -8px;
}

.chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #dcfce7;
  color: var(--success);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.chip-icon.chip-blue {
  background: #dbeafe;
  color: var(--primary);
}

.slip-frame {
  width: 318px;
  background: var(--paper-bg);
  color: #18181b;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.42;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18), 0 4px 14px rgba(15, 23, 42, 0.08);
  transform: rotate(1.2deg);
  transition: transform 0.25s ease;
}

.slip-frame:hover {
  transform: rotate(0deg) translateY(-4px);
}

.slip-edge-top,
.slip-edge-bottom {
  height: 8px;
  width: 100%;
  background-size: 12px 8px;
  background-repeat: repeat-x;
}

.slip-edge-top {
  background-image: linear-gradient(135deg, var(--bg) 50%, transparent 50%),
                    linear-gradient(225deg, var(--bg) 50%, transparent 50%);
}

.slip-edge-bottom {
  background-image: linear-gradient(45deg, var(--bg) 50%, transparent 50%),
                    linear-gradient(315deg, var(--bg) 50%, transparent 50%);
}

.slip-body {
  padding: 14px 16px;
}

.slip-center {
  text-align: center;
}

.slip-title {
  font-size: 1.2em;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.slip-doc {
  font-weight: 700;
  font-size: 0.9em;
  letter-spacing: 0.05em;
}

.slip-muted {
  font-size: 0.85em;
  color: #3f3f46;
}

.slip-dash {
  border-top: 1px dashed #3f3f46;
  margin: 6px 0;
}

.slip-dot {
  border-top: 1px dotted #52525b;
  margin: 4px 0;
}

.slip-double {
  border-top: 1px solid #18181b;
  border-bottom: 1px solid #18181b;
  height: 3px;
  margin: 6px 0;
}

.slip-kv {
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
}

.slip-row {
  display: grid;
  grid-template-columns: 1fr 28px 56px;
  gap: 6px;
  font-size: 0.9em;
}

.slip-row span:nth-child(2),
.slip-row span:nth-child(3) {
  text-align: right;
}

.slip-head {
  font-weight: 700;
}

.slip-grand {
  display: flex;
  justify-content: space-between;
  font-size: 1.15em;
  font-weight: 800;
}

.slip-codes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}

.slip-code-label {
  font-size: 0.78em;
  color: #3f3f46;
  margin-bottom: 4px;
}

/* Trust Strip */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-tags span {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
}

/* Sections */
.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 44px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.f-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.step-num {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--primary);
  background: #dbeafe;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Pricing Card */
.pricing-wrap {
  max-width: 540px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 20px 45px rgba(29, 78, 216, 0.12);
}

.pricing-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.plan-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: #dbeafe;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.pricing-top h3 {
  margin: 0 0 4px;
  font-size: 1.4rem;
}

.pricing-top p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.price-box {
  text-align: right;
}

.price {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.currency {
  font-size: 1.35rem;
  vertical-align: top;
  margin-right: 2px;
}

.period {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-box small {
  display: block;
  margin-top: 4px;
  color: var(--success);
  font-weight: 600;
  font-size: 0.78rem;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 22px 0;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--success);
  font-weight: 800;
  font-size: 0.75rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pricing-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-disclaimer {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-container {
  max-width: 760px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}

.faq-list summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-list summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--primary);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* Bottom CTA */
.cta-banner {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: #fff;
  padding: 54px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-inner h2 {
  margin: 0 0 6px;
  font-size: 1.75rem;
}

.cta-inner p {
  margin: 0;
  color: #dbeafe;
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Dummy Checkout Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-card h2 {
  margin: 4px 0 6px;
  font-size: 1.35rem;
}

.modal-sub {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.order-summary {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
}

.summary-row.muted {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.m-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.m-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.m-field input,
.m-field select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
}

.success-view {
  text-align: center;
  padding: 12px 0 4px;
}

.success-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--success);
  font-size: 1.6rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .features-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chip-top {
    left: 6px;
  }
  .chip-bottom {
    right: 6px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .price-box {
    text-align: left;
  }
  .floating-chip {
    display: none;
  }
}
