:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-subtle: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --indigo: #4f46e5;
  --indigo-dark: #3730a3;
  --violet: #6d28d9;
  --emerald: #10b981;
  --emerald-soft: #ecfdf5;
  --emerald-ink: #047857;
  --amber-soft: #fffbeb;
  --amber-ink: #b45309;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-brand: 0 14px 32px rgba(79, 70, 229, 0.22);
  --radius-md: 12px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

/* Header & Navigation */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: #1e1b4b;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

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

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--indigo);
}

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

.menu-toggle {
  display: none;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 8px;
  padding: 7px 11px;
  font-weight: 700;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-sm {
  padding: 8px 14px;
  font-size: 13.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-emerald {
  background: var(--emerald);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--surface-soft);
}

/* Pills & Badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pill-green {
  background: var(--emerald-soft);
  color: var(--emerald-ink);
}

.badge-pro {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

/* Hero Section */
.hero {
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.78), rgba(248, 250, 252, 0.98)),
    url("assets/banner_bg.png") center/cover no-repeat;
  border-bottom: 1px solid var(--border);
}

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

.hero h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: #0f172a;
}

.hero-lead {
  font-size: 17.5px;
  color: var(--ink-muted);
  margin-bottom: 24px;
  max-width: 580px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 600;
}

.trust-strip span::before {
  content: "✓ ";
  color: var(--emerald);
  font-weight: 900;
}

.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-md);
}

.hero-visual img {
  border-radius: 12px;
}

/* Section Layout */
.section {
  padding: 64px 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: 720px;
  margin: 0 auto 38px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 16px;
}

/* Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-size: 17.5px;
  margin-bottom: 8px;
  color: #1e293b;
}

.card p {
  font-size: 14.5px;
  color: var(--ink-muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--indigo);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--indigo);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 14px;
}

/* Interactive Live Demo */
.demo-shell {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.mock-form {
  background: #f3effa;
  border: 1px solid #ddd6fe;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mock-form-header {
  background: var(--surface);
  border-top: 8px solid #673ab7;
  border-radius: 12px;
  padding: 16px 18px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mock-form-header h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.mock-form-header p {
  font-size: 13px;
  color: var(--ink-muted);
}

.mock-q {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.mock-q.is-filled {
  border-color: var(--emerald);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.16);
}

.mock-q-label {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 9px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.mock-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald-ink);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mock-q.is-filled .mock-tag {
  opacity: 1;
}

.mock-input,
.mock-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 13.5px;
  background: #fff;
  color: var(--ink);
}

.mock-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mock-pill-opt {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 12.5px;
  color: var(--ink-muted);
  background: #fff;
}

.mock-pill-opt.selected {
  border-color: var(--indigo);
  background: #eef2ff;
  color: #3730a3;
  font-weight: 700;
}

.dock-sim {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 88px;
}

.dock-sim-head {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
}

.dock-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  margin-right: 8px;
}

.dock-sim-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dock-sim-body label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dock-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dock-status {
  font-size: 12.5px;
  color: var(--emerald-ink);
  background: var(--emerald-soft);
  padding: 8px 11px;
  border-radius: 8px;
  min-height: 36px;
}

/* Screenshot Gallery */
.gallery-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tab-btn {
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-muted);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
}

.gallery-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-md);
  max-width: 920px;
  margin: 0 auto;
}

.gallery-frame img {
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  max-height: 540px;
  object-fit: contain;
}

.gallery-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--ink-muted);
}

/* Tables */
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

table.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.cmp-table th,
.cmp-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cmp-table th {
  background: var(--surface-soft);
  font-weight: 700;
  color: var(--ink);
}

.cmp-table tr:last-child td {
  border-bottom: none;
}

.yes {
  color: var(--emerald-ink);
  font-weight: 700;
}

.no {
  color: #b91c1c;
  font-weight: 600;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border: 2px solid var(--indigo);
  box-shadow: 0 20px 42px rgba(79, 70, 229, 0.12);
}

.price-num {
  font-size: 38px;
  font-weight: 800;
  margin: 10px 0 6px;
}

.price-sub {
  font-size: 13.5px;
  color: var(--ink-subtle);
  margin-bottom: 18px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
  color: #334155;
  font-size: 14.5px;
  flex: 1;
}

.check-list li::before {
  content: "✓ ";
  color: var(--emerald);
  font-weight: 800;
}

/* FAQ & Guide Steps */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: none;
  border: none;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-a {
  padding: 0 20px 16px;
  font-size: 14.5px;
  color: var(--ink-muted);
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

.step-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.code-box {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  overflow-x: auto;
  line-height: 1.5;
  margin-top: 10px;
}

.kbd {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  font-family: ui-monospace, monospace;
  font-size: 12.5px;
  font-weight: 700;
}

/* Subpage Banner */
.page-hero {
  padding: 52px 0 40px;
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  max-width: 780px;
}

.page-hero p {
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 700px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 36px 0;
  color: var(--ink-subtle);
  font-size: 13.5px;
}

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

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

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

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

@media (max-width: 860px) {
  .hero-split,
  .demo-shell {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0 18px;
    border-top: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-bar {
    flex-wrap: wrap;
  }
}
