:root {
  --bg: #f7f1e8;
  --bg-soft: #fffaf3;
  --paper: rgba(255, 252, 247, 0.92);
  --paper-strong: rgba(255, 255, 255, 0.98);
  --stroke: rgba(27, 43, 53, 0.08);
  --stroke-strong: rgba(27, 43, 53, 0.14);
  --text: #15202b;
  --muted: #67798a;
  --accent: #0d7c6e;
  --accent-2: #ef8c44;
  --accent-3: #5c84ff;
  --accent-soft: #d9f4ef;
  --shadow: 0 28px 70px rgba(144, 102, 61, 0.11);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
  --body-bg:
    radial-gradient(circle at 12% 8%, rgba(255, 185, 122, 0.22), transparent 20%),
    radial-gradient(circle at 88% 16%, rgba(130, 204, 191, 0.28), transparent 26%),
    linear-gradient(180deg, #fff9f1 0%, #f8f1e6 46%, #f5eee5 100%);
  --grid-line: rgba(21, 32, 43, 0.028);
  --selection-bg: rgba(13, 124, 110, 0.14);
  --ambient-left-bg: radial-gradient(circle, rgba(13, 124, 110, 0.2), transparent 70%);
  --ambient-right-bg: radial-gradient(circle, rgba(92, 132, 255, 0.16), transparent 72%);
  --header-bg: rgba(247, 241, 232, 0.68);
  --brand-mark-color: #0d4f47;
  --brand-mark-bg:
    linear-gradient(135deg, rgba(13, 124, 110, 0.18), rgba(92, 132, 255, 0.12)),
    rgba(255, 255, 255, 0.98);
  --brand-mark-border: rgba(13, 124, 110, 0.14);
  --brand-mark-inset: rgba(255, 255, 255, 0.8);
  --control-bg: rgba(255, 255, 255, 0.74);
  --control-border: rgba(21, 32, 43, 0.08);
  --control-shadow: 0 12px 28px rgba(119, 84, 47, 0.08);
  --pill-bg: rgba(255, 255, 255, 0.72);
  --pill-border: rgba(21, 32, 43, 0.07);
  --pill-color: #195f55;
  --pill-shadow: 0 10px 22px rgba(138, 96, 53, 0.06);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 252, 246, 0.74));
  --subtle-surface: rgba(255, 255, 255, 0.68);
  --subtle-border: rgba(21, 32, 43, 0.07);
  --detail-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 250, 243, 0.78));
  --code-bg: #f6efe5;
  --code-border: rgba(21, 32, 43, 0.06);
  --code-text: #31404f;
  --input-bg: rgba(255, 255, 255, 0.8);
  --input-border: rgba(21, 32, 43, 0.1);
  --input-focus: rgba(13, 124, 110, 0.18);
  --input-focus-border: rgba(13, 124, 110, 0.28);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0d1d30;
  --paper: rgba(9, 22, 37, 0.78);
  --paper-strong: rgba(13, 28, 46, 0.92);
  --stroke: rgba(194, 232, 255, 0.12);
  --stroke-strong: rgba(194, 232, 255, 0.18);
  --text: #f6fbff;
  --muted: #9ab6cb;
  --accent: #8fffe4;
  --accent-2: #ffc879;
  --accent-3: #7ca8ff;
  --accent-soft: rgba(143, 255, 228, 0.14);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  --body-bg:
    radial-gradient(circle at top, rgba(124, 168, 255, 0.18), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(255, 200, 121, 0.16), transparent 24%),
    linear-gradient(160deg, #05111c 0%, #0a1625 48%, #06111e 100%);
  --grid-line: rgba(194, 232, 255, 0.04);
  --selection-bg: rgba(143, 255, 228, 0.18);
  --ambient-left-bg: radial-gradient(circle, rgba(143, 255, 228, 0.22), transparent 70%);
  --ambient-right-bg: radial-gradient(circle, rgba(124, 168, 255, 0.22), transparent 70%);
  --header-bg: rgba(7, 17, 31, 0.66);
  --brand-mark-color: #e9fffb;
  --brand-mark-bg:
    linear-gradient(135deg, rgba(143, 255, 228, 0.24), rgba(124, 168, 255, 0.42)),
    rgba(255, 255, 255, 0.05);
  --brand-mark-border: rgba(255, 255, 255, 0.14);
  --brand-mark-inset: rgba(255, 255, 255, 0.18);
  --control-bg: rgba(255, 255, 255, 0.06);
  --control-border: rgba(255, 255, 255, 0.12);
  --control-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  --pill-bg: rgba(255, 255, 255, 0.05);
  --pill-border: rgba(255, 255, 255, 0.09);
  --pill-color: #d6f7ff;
  --pill-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  --subtle-surface: rgba(255, 255, 255, 0.04);
  --subtle-border: rgba(255, 255, 255, 0.08);
  --detail-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  --code-bg: rgba(3, 12, 22, 0.78);
  --code-border: rgba(255, 255, 255, 0.08);
  --code-text: #d7ebfa;
  --input-bg: rgba(1, 8, 16, 0.64);
  --input-border: rgba(255, 255, 255, 0.1);
  --input-focus: rgba(143, 255, 228, 0.24);
  --input-focus-border: rgba(143, 255, 228, 0.42);
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: var(--body-bg);
}

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: var(--selection-bg);
}

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

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 80%);
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  pointer-events: none;
  opacity: 0.7;
}

.ambient-left {
  top: 120px;
  left: -110px;
  width: 300px;
  height: 300px;
  background: var(--ambient-left-bg);
}

.ambient-right {
  top: 40px;
  right: -60px;
  width: 380px;
  height: 380px;
  background: var(--ambient-right-bg);
}

.site-header,
.section,
.site-footer {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--header-bg) 86%, transparent);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav,
.footer-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
}

.site-nav {
  font-size: 0.94rem;
}

.site-nav a,
.footer-nav a {
  position: relative;
}

.site-nav a::after,
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after,
.footer-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.header-cta,
.theme-toggle,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.header-cta,
.theme-toggle {
  padding: 10px 14px;
  color: var(--text);
  background: var(--control-bg);
  border: 1px solid var(--control-border);
  box-shadow: var(--control-shadow);
  font-size: 0.92rem;
}

.theme-toggle {
  gap: 10px;
  cursor: pointer;
  min-width: 92px;
}

.theme-toggle-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.header-cta:hover,
.theme-toggle:hover,
.button:hover {
  transform: translateY(-1px);
}

.section {
  padding: 54px 0;
}

.hero,
.demo-grid,
.page-preview-grid,
.content-split,
.api-grid,
.contact-grid {
  display: grid;
  gap: 20px;
}

.hero {
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  padding-top: 18px;
  align-items: center;
}

.hero-panel {
  display: grid;
}

.eyebrow,
.status-pill,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  color: var(--pill-color);
  font-size: 0.84rem;
  box-shadow: var(--pill-shadow);
}

.eyebrow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.hero h1,
.page-hero h1,
.section-heading h2,
.cta-banner h2 {
  margin: 18px 0 14px;
  font-family: "Instrument Serif", serif;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.6rem, 8vw, 6.3rem);
}

.hero h1 span,
.page-hero h1 span,
.section-heading h2 span {
  color: var(--accent);
}

.hero-text,
.section-heading p,
.feature-card p,
.workflow-step p,
.faq-item p,
.page-preview-card p,
.detail-card p,
.team-card p,
.code-panel p,
.contact-card p,
.form-note,
.site-footer p,
.stack-list li,
.inline-note {
  color: var(--muted);
  line-height: 1.72;
}

.hero-actions,
.page-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin: 30px 0 28px;
}

.hero-flagship {
  display: grid;
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.hero-flagship-head h3 {
  margin: 14px 0 12px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-family: "Instrument Serif", serif;
}

.hero-flagship-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.hero-flagship-grid {
  display: grid;
  gap: 12px;
}

.hero-flagship-card {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--subtle-surface);
  border: 1px solid var(--subtle-border);
}

.hero-flagship-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-flagship-card strong {
  font-size: 1.02rem;
  line-height: 1.45;
}

.hero-flagship-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-flagship-tags span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--control-bg);
  border: 1px solid var(--control-border);
  color: var(--text);
  font-size: 0.85rem;
}

.button {
  padding: 15px 22px;
  border: 1px solid transparent;
  font-weight: 500;
}

.button-primary {
  color: #f7fff9;
  background: linear-gradient(135deg, var(--accent), #1f9e8d);
  box-shadow: 0 18px 28px rgba(13, 124, 110, 0.18);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(21, 32, 43, 0.08);
}

.hero-metrics,
.feature-grid,
.workflow-grid,
.showcase-grid,
.stat-grid,
.team-grid,
.roadmap-grid,
.api-grid,
.contact-grid,
.demo-results {
  display: grid;
  gap: 16px;
}

.hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.glass-card,
.workflow-step,
.proof-grid span,
.hero-metrics li,
.mini-metric,
.detail-card,
.endpoint-card,
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-console,
.demo-console,
.demo-form,
.page-preview-card,
.detail-card,
.endpoint-card,
.team-card,
.code-panel,
.contact-card {
  border-radius: var(--radius-xl);
}

.hero-metrics li,
.mini-metric,
.workflow-step,
.team-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.hero-metrics strong,
.mini-metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.48rem;
}

.console-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.console-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.status-pill {
  padding: 8px 12px;
}

.hero-console,
.demo-console,
.demo-form,
.code-panel,
.contact-card {
  padding: 24px;
}

.prompt-stream,
.demo-console pre,
.code-panel pre,
.contact-draft {
  margin: 0;
  padding: 20px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: var(--radius-lg);
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  color: var(--code-text);
  line-height: 1.68;
}

.prompt-stream {
  display: grid;
  gap: 14px;
}

.prompt-stream p {
  margin: 0;
}

.console-result,
.hero-badges,
.proof-grid,
.feature-grid,
.page-preview-grid,
.team-grid,
.roadmap-grid {
  display: grid;
  gap: 16px;
}

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

.console-result div,
.badge-card,
.result-box,
.page-preview-card,
.team-card,
.mini-metric,
.detail-card,
.endpoint-card {
  padding: 20px;
  border-radius: var(--radius-lg);
}

.console-result div,
.badge-card,
.result-box {
  background: var(--subtle-surface);
  border: 1px solid var(--subtle-border);
}

.console-result span,
.badge-card span,
.result-box span,
.card-index {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.console-result strong,
.badge-card strong,
.result-box strong {
  font-size: 1.18rem;
}

.proof-strip {
  padding-top: 8px;
}

.proof-strip p {
  margin: 0 0 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

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

.proof-grid span {
  padding: 18px 14px;
  text-align: center;
  border-radius: 999px;
}

.section-grid,
.demo-section,
.faq {
  display: grid;
  gap: 28px;
}

.section-heading,
.page-hero-copy {
  max-width: 760px;
}

.section-heading h2 {
  font-size: clamp(2.6rem, 5vw, 4.3rem);
}

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

.feature-card,
.page-preview-card,
.team-card {
  padding: 24px;
}

.feature-card h3,
.workflow-step h3,
.page-preview-card h3,
.faq-item summary,
.detail-card h3,
.team-card h3,
.endpoint-card h3,
.contact-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

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

.workflow-step span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent-2);
  font-size: 0.84rem;
  letter-spacing: 0.14em;
}

.demo-grid {
  grid-template-columns: 0.72fr 1.28fr;
}

.demo-form {
  display: grid;
  gap: 18px;
}

.demo-form label,
.contact-form label {
  display: grid;
  gap: 10px;
  font-size: 0.94rem;
}

.demo-form input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 16px;
  color: var(--text);
  border-radius: 16px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
}

.demo-form input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--input-focus);
  border-color: var(--input-focus-border);
}

.demo-console pre {
  min-height: 292px;
}

.demo-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

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

.faq-item {
  padding: 0 22px;
  border-radius: var(--radius-lg);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 22px;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  border-radius: var(--radius-xl);
}

.cta-banner h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
}

.page-hero {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 28px;
  align-items: end;
  padding-top: 26px;
}

.page-hero h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
}

.page-hero-panel {
  padding: 24px;
  border-radius: var(--radius-xl);
}

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

.content-split,
.contact-grid {
  grid-template-columns: 1fr 1fr;
}

.detail-card,
.endpoint-card,
.team-card,
.contact-card {
  background: var(--detail-bg);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.stack-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.stack-list li + li {
  margin-top: 10px;
}

.timeline-item {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--subtle-surface);
  border: 1px solid var(--subtle-border);
}

.timeline-item strong,
.endpoint-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

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

.code-panel h3 {
  margin: 0 0 10px;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.code-panel pre {
  margin-top: 16px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

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

.contact-draft {
  min-height: 170px;
}

.contact-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-inline a {
  color: var(--accent);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 0 52px;
  border-top: 1px solid var(--control-border);
}

@media (max-width: 1100px) {
  .hero,
  .page-hero,
  .demo-grid,
  .content-split,
  .contact-grid,
  .code-block-grid,
  .cta-banner,
  .feature-grid,
  .workflow-grid,
  .page-preview-grid,
  .team-grid,
  .roadmap-grid,
  .api-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  .hero-metrics,
  .stat-grid,
  .demo-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-banner {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .section,
  .site-header,
  .site-footer {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    top: 10px;
    margin-top: 10px;
    padding: 12px;
    border-radius: 20px;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero,
  .page-hero {
    padding-top: 16px;
  }

  .hero h1,
  .page-hero h1,
  .section-heading h2,
  .cta-banner h2 {
    max-width: none;
  }

  .hero-metrics,
  .stat-grid,
  .console-result,
  .demo-results {
    grid-template-columns: 1fr;
  }

  .header-cta,
  .theme-toggle,
  .button {
    width: 100%;
  }

  .hero-actions,
  .page-actions,
  .cta-actions,
  .contact-inline {
    width: 100%;
  }

  .demo-console pre {
    min-height: 340px;
  }
}
