:root {
  --font-ui: "Sora", "Space Grotesk", "Avenir Next", sans-serif;
  --font-display: "Fraunces", "Sora", serif;
  --bg: #eef3fb;
  --bg-alt: #dce9ff;
  --bg-soft: #f8fbff;
  --surface: #ffffff;
  --surface-soft: #f4f8ff;
  --surface-alt: #eef4ff;
  --text: #09162b;
  --text-soft: #5f6f8f;
  --line: #d7dff0;
  --line-strong: #b4c3df;
  --primary: #0f5bd8;
  --primary-strong: #0b419f;
  --accent: #1aa39a;
  --success: #0e7a70;
  --warning: #9a6712;
  --danger: #b42318;
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-soft: 0 14px 32px rgba(11, 24, 48, 0.08);
  --shadow-strong: 0 24px 52px rgba(11, 24, 48, 0.13);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(circle at 5% -10%, rgba(83, 149, 255, 0.24), transparent 45%),
    radial-gradient(circle at 95% -8%, rgba(22, 171, 153, 0.2), transparent 40%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  background-attachment: fixed;
}

a {
  color: var(--primary);
}

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

h1,
h2,
h3,
h4,
p,
pre,
figure {
  margin: 0;
}

h1,
.hero-title,
.section-head h2 {
  font-family: var(--font-display);
}

.app {
  max-width: 1220px;
  margin: 0 auto;
  padding: 20px 18px 58px;
}

.centered {
  min-height: 95vh;
  display: grid;
  align-items: start;
  padding-top: 26px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(183, 199, 230, 0.8);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px rgba(15, 91, 216, 0.12);
}

.brand-sub {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
}

.nav-links {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.nav-links a {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--text-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  transition: all 180ms ease;
}

.nav-links a:hover {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface-soft);
}

.nav-links a.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, var(--primary), var(--primary-strong));
  box-shadow: 0 8px 18px rgba(15, 91, 216, 0.28);
}

.user-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-meta {
  font-size: 12px;
  color: var(--text-soft);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card {
  position: relative;
  border: 1px solid rgba(195, 208, 234, 0.85);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
}

.stack {
  display: grid;
  gap: 13px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #5d6f95;
  font-weight: 800;
}

.hero-title {
  margin-top: 8px;
  font-size: clamp(36px, 5.8vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  max-width: 24ch;
}

.lead {
  margin-top: 4px;
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 15px;
}

h2 {
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 17px;
  line-height: 1.25;
}

.small {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--line-strong);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #8cb1ff;
  box-shadow: 0 0 0 4px rgba(15, 91, 216, 0.14);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), var(--primary-strong));
  box-shadow: 0 12px 24px rgba(15, 91, 216, 0.23);
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(15, 91, 216, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn.secondary {
  color: #0f2346;
  background: linear-gradient(145deg, #f9fbff, #edf3ff);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.ghost {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.danger {
  background: linear-gradient(145deg, #d1433b, #b42318);
  box-shadow: 0 12px 24px rgba(180, 35, 24, 0.28);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.pill-switch {
  display: inline-flex;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.pill-switch button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  background: transparent;
  cursor: pointer;
  transition: all 140ms ease;
}

.pill-switch button.active {
  color: #fff;
  background: linear-gradient(145deg, var(--primary), var(--primary-strong));
}

.notice {
  border: 1px solid #bdd7ff;
  border-radius: 10px;
  background: #edf5ff;
  color: #234389;
  padding: 10px;
  font-size: 13px;
}

.notice.error {
  border-color: #f4c5c0;
  background: #fff2f1;
  color: #97211a;
}

.output {
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid #2a3550;
  background: linear-gradient(165deg, #111d33, #0a1528);
  color: #e3edff;
  min-height: 56px;
  padding: 12px;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid #e6ecf8;
  text-align: left;
  padding: 11px 10px;
  font-size: 13px;
  vertical-align: top;
}

thead th {
  background: #f8fbff;
  color: #50648e;
  font-weight: 800;
  letter-spacing: 0.01em;
}

tbody tr:hover td {
  background: #fafcff;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 12px;
  padding: 4px 9px;
}

.badge.success {
  border-color: #9ddcd6;
  background: #ecfffc;
  color: #0c7369;
}

.badge.warning {
  border-color: #eed8ab;
  background: #fff9e9;
  color: #8f5f0f;
}

.badge.danger {
  border-color: #f2c4bf;
  background: #fff2f1;
  color: #a21b1b;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.kpi {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: linear-gradient(160deg, #ffffff, #f5f9ff);
}

.kpi span {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
}

.kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  font-family: var(--font-display);
}

.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.step {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 140ms ease;
}

.step:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.step.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, var(--primary), var(--primary-strong));
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: start;
}

.metric-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: linear-gradient(165deg, #ffffff, #f4f8ff);
}

.metric-card strong {
  font-family: var(--font-display);
  font-size: 22px;
}

.metric-card span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-soft);
}

.feature-tile {
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-md);
}

.feature-tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-tile .inner {
  padding: 14px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.quick-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.primary-cta {
  padding: 11px 20px;
  font-size: 14px;
}

.secondary-cta {
  padding: 11px 18px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section {
  margin-top: 18px;
}

.section-head {
  margin-bottom: 12px;
}

.section-head p {
  margin-top: 6px;
}

.persona-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.persona-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(170deg, #ffffff, #f3f8ff);
  padding: 14px;
}

.persona-card .small {
  margin-top: 6px;
}

.how-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.how-step {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(170deg, #ffffff, #f4f8ff);
  padding: 14px;
}

.how-step strong {
  display: block;
  margin-bottom: 7px;
}

.feature-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(170deg, #ffffff, #f4f8ff);
  padding: 14px;
}

.feature-detail ul {
  margin: 9px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
}

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

.visual-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}

.visual-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.visual-card figcaption {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-soft);
}

.output-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.sample-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(170deg, #ffffff, #f5f9ff);
  padding: 14px;
}

.sample-panel pre {
  margin: 9px 0 0;
  border-radius: var(--radius-xs);
  border: 1px solid #c8d6ee;
  background: #f8fbff;
  color: #0f2340;
  padding: 10px;
  white-space: pre-wrap;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
}

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

.pricing-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(170deg, #ffffff, #f4f8ff);
  padding: 14px;
}

.pricing-card.featured {
  border-color: #9eb8ef;
  background: linear-gradient(165deg, #eff5ff, #edfdfa);
  box-shadow: 0 14px 26px rgba(11, 70, 162, 0.14);
}

.pricing-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.pricing-price {
  margin-top: 6px;
  font-size: 30px;
  font-family: var(--font-display);
}

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

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

.trust-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(170deg, #ffffff, #f5f9ff);
  padding: 14px;
}

.logo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.fit-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(170deg, #ffffff, #f5f9ff);
  padding: 14px;
}

.fit-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.integration-grid,
.resource-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.integration-card,
.resource-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(170deg, #ffffff, #f4f8ff);
  padding: 14px;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: #f8fbff;
  padding: 10px 12px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin-top: 6px;
}

.cta-band {
  border: 1px solid #9db8ee;
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, #eff5ff, #e8fffb);
  padding: 22px;
  display: grid;
  gap: 11px;
  box-shadow: 0 16px 32px rgba(15, 91, 216, 0.15);
}

.form-status {
  border: 1px solid #b9d6ff;
  background: #edf6ff;
  color: #1f4288;
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  font-size: 13px;
}

.form-status.error {
  border-color: #f4c5c0;
  background: #fff2f1;
  color: #9a1f19;
}

.form-status.success {
  border-color: #9ad8d2;
  background: #ecfffb;
  color: #0d7368;
}

.field-hint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-soft);
}

.footer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 12px;
}

.footer-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer h4 {
  font-size: 13px;
}

.footer a,
.footer p,
.footer button {
  font-size: 13px;
  color: var(--text-soft);
}

.footer button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 7px 10px;
  cursor: pointer;
}

.doc-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.doc-wrap .card + .card {
  margin-top: 12px;
}

.doc-wrap ul,
.doc-wrap ol {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

details > summary {
  cursor: pointer;
}

@keyframes fadeLift {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main > section,
main > footer {
  animation: fadeLift 260ms ease both;
}

@media (max-width: 1180px) {
  .landing-hero,
  .grid.two,
  .grid.three,
  .kpi-grid,
  .form-grid,
  .metric-row,
  .persona-grid,
  .how-grid,
  .feature-grid,
  .visual-gallery,
  .output-grid,
  .pricing-grid,
  .onboarding-grid,
  .trust-grid,
  .fit-grid,
  .integration-grid,
  .resource-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
    border-radius: var(--radius-md);
    grid-template-columns: 1fr;
  }

  .nav-links {
    justify-self: start;
  }

  .user-controls {
    flex-wrap: wrap;
  }

  .page-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .app {
    padding: 14px 12px 40px;
  }

  .card {
    padding: 14px;
  }

  .hero-title {
    font-size: clamp(30px, 10vw, 42px);
  }

  .btn,
  .btn.secondary,
  .btn.ghost {
    min-height: 40px;
  }

  .nav-links {
    gap: 5px;
  }

  .nav-links a {
    padding: 7px 10px;
  }

  .table-wrap {
    border-radius: var(--radius-xs);
  }
}
