:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --mint: #10b981;
  --mint-dark: #059669;
  --mint-soft: #ecfdf5;
  --mint-badge: #d1fae5;
  --mint-ink: #065f46;
  --radius: 16px;
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
  --shadow: 0 24px 54px -16px rgba(15, 23, 42, 0.14), 0 4px 14px -4px rgba(15, 23, 42, 0.06);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 6px;
}

a {
  color: var(--mint-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.narrow {
  max-width: 800px;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--text);
  letter-spacing: -0.025em;
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(16, 185, 129, 0.28));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-secondary);
  transition: color 120ms ease;
}

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

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: #ffffff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 11px;
  font-size: 15.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px -8px rgba(16, 185, 129, 0.65);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(16, 185, 129, 0.72);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14.5px;
}

/* Hero */
.hero {
  padding: 80px 0 64px;
  background:
    radial-gradient(ellipse 80% 55% at 50% -12%, rgba(16, 185, 129, 0.14) 0%, rgba(236, 253, 245, 0.45) 42%, #ffffff 74%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: 999px;
  background: var(--mint-badge);
  color: var(--mint-ink);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.09;
  letter-spacing: -0.035em;
  margin: 0 auto 20px;
  max-width: 840px;
}

.hero p.lead {
  font-size: 19.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 690px;
  margin: 0 auto 30px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 26px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Interactive Demo Box */
.demo-card {
  margin: 48px auto 0;
  max-width: 820px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}

.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.demo-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--mint-soft);
  color: var(--mint-ink);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 120ms ease;
}

.demo-chip:hover {
  background: var(--mint-badge);
  border-color: var(--mint);
  transform: translateY(-1px);
}

.demo-editor-wrap {
  position: relative;
  padding: 18px 20px;
}

.demo-textarea {
  width: 100%;
  min-height: 165px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  outline: none;
  resize: vertical;
  font-family: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.demo-textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.16);
}

.demo-status {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Demo Modal & Launcher */
.demo-popover {
  position: absolute;
  left: 28px;
  top: 76px;
  width: 390px;
  max-width: calc(100% - 40px);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 20;
  overflow: hidden;
}

.demo-popover-item {
  padding: 11px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
}

.demo-popover-item:last-child {
  border-bottom: none;
}

.demo-popover-item:hover {
  background: var(--mint-soft);
}

.demo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.demo-modal {
  background: #ffffff;
  border-radius: 18px;
  width: 480px;
  max-width: 100%;
  padding: 24px;
  box-shadow: var(--shadow);
}

.demo-modal label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin: 14px 0 5px;
}

.demo-modal input, .demo-modal select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  font-size: 15px;
}

/* Sections */
section {
  padding: 76px 0;
  scroll-margin-top: 72px;
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.028em;
  margin: 0 0 12px;
}

.section-header p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

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

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

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 14px 32px -14px rgba(15, 23, 42, 0.12);
}

.feature-card h3 {
  font-size: 18.5px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.feature-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mint-ink);
  background: var(--mint-badge);
  padding: 3px 10px;
  border-radius: 7px;
  margin-bottom: 12px;
}

/* Real Extension Showcase */
.showcase-featured {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.showcase-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.showcase-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 18px 38px -16px rgba(15, 23, 42, 0.14);
}

.showcase-img-wrap {
  background: #0f172a;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.showcase-img-wrap.light {
  background: #f1f5f9;
}

.showcase-img {
  display: block;
  width: 100%;
  height: auto;
}

.showcase-caption {
  padding: 20px 24px;
}

.showcase-caption h3 {
  font-size: 18.5px;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}

.showcase-caption p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Comparison Table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}

.compare-table th, .compare-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  line-height: 1.5;
}

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

.compare-table tbody tr:hover td:not(.tm-col) {
  background: #fafbfc;
}

.compare-table th {
  background: var(--bg-soft);
  font-weight: 700;
  font-size: 14.5px;
}

.compare-table td.tm-col, .compare-table th.tm-col {
  background: var(--mint-soft);
  font-weight: 600;
  color: var(--mint-ink);
}

/* Pricing */
.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -16px rgba(15, 23, 42, 0.14);
}

.pricing-card.featured {
  border: 2px solid var(--mint);
  box-shadow: 0 24px 48px -16px rgba(16, 185, 129, 0.22), var(--shadow-sm);
  background: linear-gradient(180deg, #f4fdf9 0%, #ffffff 28%);
}

.price-figure {
  font-size: 46px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 10px 0 6px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.price-list li::before {
  content: '✓ ';
  color: var(--mint);
  font-weight: 800;
}

.enterprise-bar {
  max-width: 1040px;
  margin: 22px auto 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.enterprise-bar h3 {
  font-size: 20px;
  margin: 0 0 6px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.enterprise-bar p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
  max-width: 660px;
}

.enterprise-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Legal Prose */
.prose {
  padding: 60px 0 88px;
}

.prose h1 {
  font-size: clamp(30px, 4vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.prose h2 {
  font-size: 22px;
  letter-spacing: -0.015em;
  margin-top: 36px;
  margin-bottom: 10px;
}

.prose p, .prose li {
  color: var(--text-secondary);
  font-size: 16.5px;
  line-height: 1.75;
}

.prose li {
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  background: var(--bg-soft);
  font-size: 14.5px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

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

.footer-links a {
  color: var(--text-secondary);
}

@media (max-width: 820px) {
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  .nav-links {
    gap: 14px;
    font-size: 14px;
  }
  .hero {
    padding: 56px 0 44px;
  }
  section {
    padding: 56px 0;
  }
}
