:root {
  --bg: #f7f8fb;
  --ink: #17202a;
  --muted: #5d6878;
  --line: #d9deea;
  --panel: #ffffff;
  --accent: #6f4df6;
  --accent-dark: #4b31c6;
  --teal: #0d9488;
  --amber: #b7791f;
  --shadow: 0 18px 50px rgba(20, 27, 45, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 251, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 222, 234, 0.8);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a,
.text-link {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.lang-toggle {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 65px));
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 96px clamp(18px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.82) 48%, rgba(247,248,251,0.52) 100%),
    linear-gradient(150deg, #eef9f5 0%, #f4f0ff 55%, #fff7ed 100%);
}

.hero-inner {
  max-width: 840px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.04;
  letter-spacing: 0;
  margin: 10px 0 24px;
  max-width: 920px;
}

.hero-copy {
  font-size: clamp(18px, 2.2vw, 24px);
  color: #344153;
  max-width: 760px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.92;
  pointer-events: none;
}

.flow-line {
  position: absolute;
  right: 6vw;
  bottom: 40px;
  width: min(520px, 58vw);
  height: 280px;
  border: 1px solid rgba(111, 77, 246, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 24%, rgba(111,77,246,0.12) 24% 25%, transparent 25% 49%, rgba(13,148,136,0.12) 49% 50%, transparent 50% 74%, rgba(183,121,31,0.12) 74% 75%, transparent 75%),
    repeating-linear-gradient(0deg, rgba(23,32,42,0.05) 0 1px, transparent 1px 48px);
  transform: rotate(-2deg);
}

.metric {
  position: absolute;
  min-width: 150px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 222, 234, 0.85);
  border-radius: 8px;
  background: rgba(255,255,255,0.86);
  box-shadow: var(--shadow);
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  font-size: 18px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
}

.metric-a { right: 34vw; bottom: 240px; }
.metric-b { right: 8vw; bottom: 190px; }
.metric-c { right: 20vw; bottom: 80px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.cta-row,
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  background: #fff;
  color: var(--ink);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button.secondary {
  background: #fff;
}

.button.small {
  padding: 8px 12px;
  font-size: 14px;
}

.section {
  padding: 82px clamp(18px, 6vw, 72px);
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.16;
  margin: 0 0 18px;
  letter-spacing: 0;
}

.two-col,
.agent-grid,
.key-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
}

.copy-block {
  color: var(--muted);
  font-size: 18px;
}

.agent-section {
  max-width: none;
  background: #101827;
  color: #fff;
}

.agent-grid {
  max-width: 1200px;
  margin: 0 auto;
}

.agent-section .eyebrow,
.agent-section .copy-block {
  color: #aee5db;
}

.agent-section p {
  color: #d6dce7;
}

.signal-list {
  display: grid;
  gap: 14px;
}

.signal-list div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

.signal-list span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 800;
}

.tab {
  color: var(--muted);
}

.tab.active {
  color: var(--accent-dark);
  border-color: rgba(111, 77, 246, 0.5);
  background: #f4f0ff;
}

.tab-panel {
  display: none;
  margin-top: 26px;
}

.tab-panel.active {
  display: block;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.steps div,
.plan,
.key-form,
.result-box,
.snippet-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(20, 27, 45, 0.06);
}

.steps div,
.plan {
  padding: 20px;
}

.steps strong {
  color: var(--teal);
}

.snippet-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

pre {
  margin: 0;
  overflow-x: auto;
  color: #dbeafe;
  background: #111827;
  border-radius: 8px;
  padding: 16px;
}

.ordered {
  color: var(--muted);
}

.key-form,
.result-box {
  display: grid;
  gap: 14px;
  padding: 20px;
}

label span {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  background: #fff;
}

.form-status {
  margin: 0;
  color: var(--muted);
}

.form-status.success {
  color: var(--teal);
}

.form-status.error {
  color: #b91c1c;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.plan.featured {
  border-color: rgba(111, 77, 246, 0.5);
  box-shadow: var(--shadow);
}

.plan h3 {
  margin-top: 0;
}

.price {
  font-size: 30px;
  font-weight: 900;
  margin: 10px 0;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer span {
  color: var(--ink);
  font-weight: 900;
}

.legal .section {
  max-width: 900px;
}

.legal h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  margin: 0 0 24px;
}

.legal h2 {
  font-size: 24px;
  margin-top: 34px;
}

.legal li {
  margin: 8px 0;
}

.legal-table {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.legal-table dt,
.legal-table dd {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.legal-table dt {
  font-weight: 800;
  background: #f1f4f8;
}

.legal-table dd {
  color: var(--muted);
}

.legal-table dt:last-of-type,
.legal-table dd:last-of-type {
  border-bottom: 0;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 132px;
  }

  .metric {
    display: none;
  }

  .flow-line {
    width: 86vw;
    height: 150px;
    right: -10vw;
    bottom: 24px;
  }

  .two-col,
  .agent-grid,
  .key-section,
  .steps,
  .pricing-grid,
  .snippet-wrap,
  .legal-table {
    grid-template-columns: 1fr;
  }

  .legal-table dt {
    border-bottom: 0;
  }
}
