:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  --radius-lg: 20px;
  --radius-md: 16px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

.sample-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-tight {
  padding-top: 0;
  padding-bottom: 24px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading-left {
  margin: 0 0 24px;
  text-align: left;
}

.section-heading h2,
.section-heading-left h2 {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-heading p,
.section-heading-left p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.logo,
.footer-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.main-nav a,
.footer-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.footer-nav a:hover {
  color: var(--text);
}

.header-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
  border-radius: 99px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: 0.2s ease;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
}

.button-secondary:hover {
  background: #f9fafb;
}

.button-full {
  width: 100%;
}

.hero-grid,
.split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.split-grid-align-start {
  align-items: start;
}

.hero {
  padding-top: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.hero-copy h1 {
  margin: 20px 0 20px;
  font-size: 52px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero-text {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-panel {
  padding: 28px;
}

.mock-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.mock-row:last-of-type {
  border-bottom: 0;
}

.mock-label {
  color: var(--muted);
}

.mock-value {
  font-weight: 600;
  text-align: right;
}

.pipeline-flow,
.flow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pipeline-flow {
  margin-top: 24px;
}

.pipeline-flow span,
.flow-steps span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.positioning-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px 24px;
}

.positioning-strip div {
  color: var(--muted);
  text-align: center;
  font-weight: 600;
}

.feature-grid,
.sample-grid,
.docs-grid,
.faq-list {
  display: grid;
  gap: 24px;
}

.feature-grid,
.sample-grid,
.docs-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.docs-card,
.faq-item {
  padding: 28px;
}

.feature-card h3,
.sample-body h3,
.docs-card h3,
.faq-item h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature-card p,
.docs-card p,
.faq-item p {
  margin: 0;
  color: var(--muted);
}

.sample-card {
  overflow: hidden;
}

.sample-body {
  padding: 24px;
}

.sample-body p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.placeholder {
  background-size: cover;
  background-position: center;
}

.placeholder-a {
  background-image: linear-gradient(135deg, #c7d2fe, #818cf8, #312e81);
}

.placeholder-b {
  background-image: linear-gradient(135deg, #fde68a, #fca5a5, #c4b5fd);
}

.placeholder-c {
  background-image: linear-gradient(135deg, #bbf7d0, #86efac, #60a5fa);
}

.placeholder-d {
  background-image: linear-gradient(135deg, #fed7aa, #fda4af, #93c5fd);
}

.flow-card {
  padding: 28px;
}

.access-section {
  background: linear-gradient(to bottom, transparent 0%, var(--accent-soft) 100%);
}

.access-form {
  padding: 28px;
}

.access-form label {
  display: block;
  margin-bottom: 18px;
}

.access-form label span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.access-form input,
.access-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.access-form input:focus,
.access-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.faq-list {
  grid-template-columns: 1fr;
}

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}

.footer-inner p {
  max-width: 460px;
  margin: 12px 0 0;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-hero {
  max-width: 760px;
}

.page-hero h1 {
  margin: 20px 0 16px;
  font-size: 48px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.page-hero-text {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.info-stack {
  display: grid;
  gap: 20px;
}

.info-card {
  padding: 24px;
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.access-form-page {
  padding: 32px;
}

.access-form select {
  width: 100%;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.access-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.status-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
}

.status-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.status-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.status-card p:last-child {
  margin-bottom: 0;
}

.docs-sidebar {
  padding: 28px;
}

.docs-sidebar h3 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.docs-sidebar-nav {
  display: grid;
  gap: 10px;
}

.docs-sidebar-nav a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: #ffffff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.docs-sidebar-nav a:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.docs-card-large {
  min-height: 180px;
}

.cta-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px;
  text-align: center;
}

.cta-card h2 {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cta-card p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
}

.cta-card .hero-actions {
  justify-content: center;
  margin-top: 28px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.docs-content {
  max-width: 760px;
}

.docs-hero h1 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.docs-hero p {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.docs-section {
  margin-bottom: 48px;
}

.docs-section h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 700;
}

.docs-section p {
  margin: 0 0 16px;
  color: var(--muted);
}

.docs-list {
  padding-left: 18px;
  color: var(--muted);
}

.docs-list li {
  margin-bottom: 8px;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.docs-mini-card {
  padding: 20px;
}

.docs-mini-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.docs-mini-card p {
  margin: 0;
  color: var(--muted);
}

.docs-flow {
  padding: 20px;
  margin: 16px 0;
}

.docs-sidebar-nav a.active {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.docs-code-card {
  padding: 20px 24px;
  margin: 16px 0;
  overflow-x: auto;
}

.docs-code-card pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.docs-code-card code {
  white-space: pre;
}

.error-page {
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.error-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  color: var(--accent);
}

.error-card h1 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
}

.error-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .error-card {
    padding: 28px;
  }

  .error-code {
    font-size: 56px;
  }
}

@media (max-width: 960px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    order: 2;
  }
}

@media (max-width: 760px) {
  .docs-sidebar,
  .cta-card {
    padding: 22px;
  }

  .cta-card h2 {
    font-size: 28px;
  }
}

@media (max-width: 760px) {
  .page-hero h1 {
    font-size: 36px;
  }

  .page-hero-text {
    font-size: 16px;
  }

  .access-form-page,
  .status-card,
  .info-card {
    padding: 22px;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .split-grid,
  .feature-grid,
  .sample-grid,
  .docs-grid,
  .positioning-strip {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 42px;
  }

  .positioning-strip div {
    text-align: left;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 72px 0;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .hero-copy h1 {
    font-size: 36px;
    line-height: 1.15;
  }

  .section-heading h2,
  .section-heading-left h2 {
    font-size: 28px;
  }

  .section-heading p,
  .section-heading-left p,
  .hero-text {
    font-size: 16px;
  }

  .container {
    padding: 0 20px;
  }

  .feature-card,
  .docs-card,
  .faq-item,
  .access-form,
  .hero-panel,
  .flow-card {
    padding: 22px;
  }
}