:root {
  color-scheme: light;
  --bg: #f3efe5;
  --bg-deep: #efe4d1;
  --surface: rgba(255, 252, 246, 0.84);
  --surface-strong: #fffaf2;
  --surface-ink: #161616;
  --line: rgba(34, 34, 34, 0.1);
  --line-strong: rgba(34, 34, 34, 0.18);
  --text: #1f1b16;
  --muted: #64584c;
  --accent: #ca5a2e;
  --accent-strong: #9f3c18;
  --accent-soft: #f7d9c7;
  --teal: #0d5c63;
  --shadow: 0 32px 80px rgba(79, 48, 22, 0.16);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --mono: "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(202, 90, 46, 0.18), transparent 32%),
    radial-gradient(circle at right 12% top 20%, rgba(13, 92, 99, 0.14), transparent 28%),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 46%, #fffdf8 100%);
  color: var(--text);
  font-family: var(--sans);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.aurora {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(16px);
  pointer-events: none;
}

.aurora-one {
  top: 4rem;
  left: -6rem;
  width: 20rem;
  height: 20rem;
  background: rgba(202, 90, 46, 0.14);
}

.aurora-two {
  top: 18rem;
  right: -4rem;
  width: 18rem;
  height: 18rem;
  background: rgba(13, 92, 99, 0.14);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(243, 239, 229, 0.74);
  border-bottom: 1px solid rgba(34, 34, 34, 0.05);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, #111, #3f2f24);
  color: #fff7ed;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-copy strong {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-nav a {
  padding: 0.85rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-link {
  border: 1px solid transparent;
}

.nav-link-muted {
  border-color: var(--line);
}

.nav-link-strong {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff7f2 !important;
  box-shadow: 0 16px 28px rgba(159, 60, 24, 0.24);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.7rem;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
  border-radius: 999px;
}

.hero-section {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 2rem;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.92);
  border: 1px solid rgba(202, 90, 46, 0.14);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.workflow-grid h2,
.cta-panel h2 {
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.94;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 7vw, 6.6rem);
}

.hero-lead,
.section-heading p,
.workflow-copy,
.cta-panel p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.06rem;
}

.hero-lead {
  max-width: 40rem;
  margin: 1.5rem 0 0;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff8f3;
  box-shadow: 0 18px 34px rgba(159, 60, 24, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--text);
}

.button-secondary-dark {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff4e9;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.6rem 0 0;
}

.panel,
.stat-card,
.response-card,
.pipeline-card,
.cta-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stat-card {
  padding: 1.1rem 1.2rem;
}

.stat-card dt,
.response-label,
.plan-name,
.console-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stat-card dt {
  color: var(--muted);
}

.stat-card dd {
  margin: 0.65rem 0 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.hero-console {
  position: relative;
  padding: 1.4rem;
}

.console-topline,
.pipeline-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.console-subtitle,
.pipeline-header p,
.feature-card p,
.workflow-step p,
.pricing-card li {
  color: var(--muted);
}

.console-subtitle {
  margin: 0.4rem 0 0;
  line-height: 1.6;
}

.confidence-pill,
.budget-pill,
.plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.confidence-pill {
  background: rgba(13, 92, 99, 0.1);
  color: var(--teal);
}

.endpoint-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.endpoint-pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.endpoint-pill.is-active {
  background: var(--surface-ink);
  border-color: var(--surface-ink);
  color: #fff6ef;
}

.code-window {
  margin-top: 1.2rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #171411;
  color: #f7efe5;
}

.code-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-lights {
  display: flex;
  gap: 0.45rem;
}

.code-lights span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
}

.code-lights span:nth-child(1) {
  background: #ff7f62;
}

.code-lights span:nth-child(2) {
  background: #f0c66d;
}

.code-lights span:nth-child(3) {
  background: #76d49a;
}

.copy-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f7efe5;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
}

.copy-button.is-copied {
  background: rgba(13, 92, 99, 0.4);
  border-color: rgba(13, 92, 99, 0.7);
}

.code-block,
.response-json {
  margin: 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.96rem;
  line-height: 1.7;
}

.code-block {
  padding: 1.1rem 1rem 1.25rem;
}

.response-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.response-card {
  padding: 1rem 1rem 1.1rem;
}

.response-card-muted {
  background: rgba(255, 255, 255, 0.72);
}

.response-card-brand {
  background: linear-gradient(180deg, rgba(255, 244, 237, 0.95), rgba(247, 217, 199, 0.88));
}

.input-list {
  margin: 0.95rem 0 0;
  padding-left: 1.1rem;
  color: var(--text);
  font-family: var(--mono);
  line-height: 1.8;
}

.response-json {
  margin-top: 0.95rem;
  color: var(--surface-ink);
}

.pipeline-card {
  margin-top: 1rem;
  padding: 1rem;
}

.budget-pill {
  background: rgba(23, 20, 17, 0.08);
  color: var(--text);
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.pipeline-grid article {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(34, 34, 34, 0.07);
}

.pipeline-grid h3,
.feature-card h3,
.workflow-step h3,
.pricing-card .plan-price {
  margin: 0;
}

.pipeline-grid p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section {
  padding: 2.5rem 0 4.5rem;
}

.section-contrast {
  padding-top: 1rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.section-heading h2,
.workflow-grid h2,
.cta-panel h2 {
  font-size: clamp(2.3rem, 4vw, 4.15rem);
}

.section-heading p {
  max-width: 34rem;
  margin: 0;
}

.feature-grid,
.pricing-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

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

.feature-card {
  padding: 1.4rem;
}

.icon-chip {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(202, 90, 46, 0.12);
  color: var(--accent-strong);
}

.icon-chip svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.feature-card h3 {
  margin-top: 1rem;
  font-size: 1.32rem;
}

.feature-card p {
  margin: 0.8rem 0 0;
  line-height: 1.75;
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem;
  align-items: start;
}

.workflow-steps {
  display: grid;
  gap: 1rem;
}

.workflow-step {
  padding: 1.3rem;
}

.workflow-step span {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.workflow-step p {
  margin: 0.65rem 0 0;
  line-height: 1.75;
}

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

.pricing-card {
  position: relative;
  padding: 1.4rem;
}

.pricing-card-featured {
  background: linear-gradient(180deg, rgba(255, 243, 233, 0.96), rgba(247, 217, 199, 0.86));
  border-color: rgba(159, 60, 24, 0.18);
}

.plan-badge {
  margin-bottom: 1rem;
  background: rgba(159, 60, 24, 0.12);
  color: var(--accent-strong);
}

.plan-price {
  margin-top: 0.7rem;
  font-family: var(--serif);
  font-size: 3.1rem;
  line-height: 1;
}

.plan-meta {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.pricing-card ul {
  margin: 1.1rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.8;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  color: #fff4e9;
  background:
    radial-gradient(circle at top left, rgba(255, 206, 173, 0.24), transparent 38%),
    linear-gradient(135deg, #1f1610, #5a2b16 60%, #8d3d1d 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.cta-panel p {
  max-width: 40rem;
  color: rgba(255, 244, 233, 0.82);
}

[data-nav].is-open {
  display: flex;
}

@media (max-width: 1120px) {
  .hero-grid,
  .workflow-grid,
  .pricing-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .cta-panel {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: rgba(255, 250, 242, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav a {
    text-align: center;
  }

  .nav-toggle {
    display: inline-block;
  }

  .hero-section {
    padding-top: 3rem;
  }

  .hero-stats,
  .response-grid,
  .pipeline-grid {
    grid-template-columns: 1fr;
  }

  .hero-console {
    padding: 1.1rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .brand-copy span {
    display: none;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .button,
  .site-nav a,
  .endpoint-pill {
    width: 100%;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .console-topline,
  .pipeline-header {
    flex-direction: column;
    align-items: start;
  }
}
