:root {
  color-scheme: light;
  --ink: #17211b;
  --ink-soft: #66716a;
  --paper: #f3f6f3;
  --paper-strong: #ffffff;
  --line: #dce3de;
  --night: #174b34;
  --night-soft: #236b4a;
  --mint: #b9df4b;
  --mint-deep: #236b4a;
  --sun: #e0b957;
  --coral: #a6630c;
  --shadow: 0 18px 55px rgb(30 52 39 / 10%);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.65; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  padding: 10px 14px; border-radius: 10px; color: white; background: var(--night);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgb(220 227 222 / 82%);
  background: rgb(243 246 243 / 90%); backdrop-filter: blur(18px);
}
.nav-shell, .content-shell, .footer-shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.nav-shell { min-height: 76px; display: flex; align-items: center; gap: 30px; }
.logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.logo-link img { width: 126px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 27px; margin-left: auto; font-size: 14px; font-weight: 680; }
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.language-link { padding: 8px 10px; font-size: 13px; font-weight: 720; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-strong); }
.button-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 17px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 760; }
.button-link.primary { color: white; background: var(--mint-deep); box-shadow: 0 8px 20px rgb(35 107 74 / 18%); }
.button-link.primary:hover { background: var(--night); transform: translateY(-1px); }
.button-link.secondary { color: var(--ink); border: 1px solid var(--line); background: var(--paper-strong); }
.mobile-nav { display: none; margin-left: auto; }
.mobile-nav summary { cursor: pointer; list-style: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav-panel { position: absolute; left: 20px; right: 20px; top: 68px; display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-strong); box-shadow: var(--shadow); }
.mobile-nav-panel a { padding: 10px 12px; text-decoration: none; border-radius: 10px; }
.mobile-nav-panel a:hover { background: #edf1ee; }

.hero { overflow: hidden; position: relative; padding: 104px 0 78px; }
.hero::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -250px; top: -300px; border-radius: 50%;
  background: radial-gradient(circle, rgb(35 107 74 / 16%), rgb(35 107 74 / 0%) 68%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--mint-deep); font-size: 12px; font-weight: 820; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 1px; background: var(--mint-deep); }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(50px, 7.2vw, 88px); line-height: .98; letter-spacing: -.062em; }
.hero h1 em { color: var(--mint-deep); font-style: normal; }
.hero-copy > p { max-width: 650px; margin: 28px 0 0; color: var(--ink-soft); font-size: clamp(18px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-actions .button-link { min-height: 50px; padding-inline: 23px; }
.hero-note { display: flex; gap: 18px; margin-top: 28px; color: var(--ink-soft); font-size: 13px; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint-deep); }

.workspace-card { position: relative; min-height: 480px; padding: 28px; border-radius: 32px; color: #f6f8ff; background: linear-gradient(148deg, var(--night-soft), var(--night)); box-shadow: 0 35px 90px rgba(11, 19, 40, .3); isolation: isolate; }
.workspace-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, black, transparent 90%); }
.workspace-top { display: flex; align-items: center; justify-content: space-between; }
.workspace-title { display: flex; align-items: center; gap: 12px; }
.workspace-title img { width: 42px; }
.workspace-title strong { display: block; font-size: 15px; }
.workspace-title small { display: block; color: #9faac2; font-size: 11px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(117,224,191,.28); border-radius: 999px; color: var(--mint); font-size: 11px; font-weight: 750; background: rgba(117,224,191,.08); }
.live-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(117,224,191,.1); }
.terminal { margin-top: 42px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; overflow: hidden; background: rgba(3,7,18,.72); box-shadow: 0 18px 44px rgba(0,0,0,.22); }
.terminal-bar { display: flex; gap: 7px; padding: 13px 15px; border-bottom: 1px solid rgba(255,255,255,.08); }
.terminal-bar i { width: 8px; height: 8px; border-radius: 50%; background: #49536b; }
.terminal-bar i:first-child { background: var(--coral); }.terminal-bar i:nth-child(2) { background: var(--sun); }.terminal-bar i:last-child { background: var(--mint); }
.terminal pre { min-height: 210px; margin: 0; padding: 24px; color: #dce4f7; font-size: 13px; line-height: 1.9; white-space: pre-wrap; }
.terminal .prompt { color: var(--mint); }.terminal .muted { color: #8290ad; }.terminal .warm { color: var(--sun); }
.state-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 22px; }
.state-strip div { padding: 12px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.04); }
.state-strip small { display: block; color: #7f8ba5; font-size: 9px; text-transform: uppercase; }
.state-strip strong { display: block; margin-top: 3px; font-size: 12px; }

.band { padding: 86px 0; }
.band.white { background: var(--paper-strong); border-block: 1px solid var(--line); }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading h2 { margin: 0; font-size: clamp(36px, 5vw, 58px); line-height: 1.04; letter-spacing: -.047em; }
.section-heading p { margin: 18px 0 0; color: var(--ink-soft); font-size: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { min-height: 265px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-strong); }
.feature-card.dark { color: #f6f8ff; border-color: transparent; background: var(--night); }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--night); background: var(--mint); font-weight: 850; }
.feature-card:nth-child(2) .feature-icon { background: var(--sun); }.feature-card:nth-child(3) .feature-icon { background: #fac8b8; }
.feature-card h3 { margin: 46px 0 10px; font-size: 21px; letter-spacing: -.025em; }
.feature-card p { margin: 0; color: var(--ink-soft); }
.feature-card.dark p { color: #aeb8cf; }

.lifecycle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper-strong); }
.life-step { min-height: 240px; padding: 25px; border-right: 1px solid var(--line); }
.life-step:last-child { border-right: 0; }
.life-step .number { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: white; background: var(--ink); font-size: 12px; font-weight: 800; }
.life-step h3 { margin: 35px 0 8px; font-size: 20px; }.life-step p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.life-step small { display: block; margin-top: 22px; color: var(--mint-deep); font-size: 11px; font-weight: 780; text-transform: uppercase; }

.truth-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.truth-list { display: grid; gap: 12px; }
.truth-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px; border-bottom: 1px solid var(--line); }
.truth-item span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--mint-deep); background: #dff1e7; font-weight: 850; }
.truth-item strong { display: block; }.truth-item p { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; }

.cta { margin: 90px auto; padding: 58px; border-radius: 32px; color: white; background: linear-gradient(145deg, var(--night-soft), var(--night)); box-shadow: var(--shadow); }
.cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta h2 { margin: 0; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.045em; }
.cta p { max-width: 650px; margin: 16px 0 0; color: #d8e6dd; }
.cta .button-link.primary { color: var(--ink); background: var(--mint); }

.site-footer { padding: 48px 0; color: #aeb8cf; background: var(--night); }
.footer-shell { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.footer-brand img { width: 115px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { max-width: 430px; margin: 14px 0 0; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; font-size: 13px; }
.footer-links a { color: #dfe6f5; text-decoration: none; }

/* Documentation */
.docs-hero { padding: 66px 0 50px; border-bottom: 1px solid var(--line); background: var(--paper-strong); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--ink-soft); font-size: 13px; }
.breadcrumbs a { text-decoration: none; }.breadcrumbs span::before { content: "/"; margin-right: 8px; color: #9ba1ad; }
.docs-hero h1 { max-width: 820px; margin: 0; font-size: clamp(42px, 6vw, 66px); line-height: 1.03; letter-spacing: -.052em; }
.docs-hero p { max-width: 760px; margin: 18px 0 0; color: var(--ink-soft); font-size: 19px; }
.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 62px; align-items: start; padding-block: 54px 100px; }
.docs-sidebar { position: sticky; top: 104px; display: grid; gap: 4px; }
.docs-sidebar strong { margin: 0 0 10px 12px; color: var(--ink-soft); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
.docs-sidebar a { padding: 8px 12px; border-radius: 10px; color: var(--ink-soft); font-size: 13px; font-weight: 650; text-decoration: none; }
.docs-sidebar a:hover { color: var(--ink); background: #edf1ee; }
.docs-sidebar a[aria-current="page"] { color: var(--ink); background: var(--paper-strong); }
.docs-mobile-index { display: none; margin-bottom: 30px; }
.docs-mobile-index summary { cursor: pointer; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-strong); font-weight: 760; }
.docs-mobile-index div { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; background: var(--paper-strong); }
.docs-mobile-index a { padding: 7px; text-decoration: none; }
.doc-content { min-width: 0; font-size: 16px; }
.doc-content > :first-child { margin-top: 0; }
.doc-content h2 { scroll-margin-top: 100px; margin: 54px 0 15px; font-size: 30px; line-height: 1.18; letter-spacing: -.035em; }
.doc-content h3 { scroll-margin-top: 100px; margin: 35px 0 10px; font-size: 20px; letter-spacing: -.02em; }
.doc-content p { margin: 12px 0; color: #4b5850; }
.doc-content a { color: var(--mint-deep); font-weight: 630; }
.doc-content ul, .doc-content ol { padding-left: 24px; }.doc-content li { margin: 8px 0; color: #4b5850; }
.doc-content pre { overflow-x: auto; margin: 20px 0; padding: 20px; border-radius: 16px; color: #e3eee7; background: var(--night); font-size: 13px; line-height: 1.7; box-shadow: 0 12px 34px rgb(30 52 39 / 12%); }
.doc-content :not(pre) > code { padding: .16em .4em; border: 1px solid var(--line); border-radius: 6px; color: var(--night); background: #f8faf8; font-size: .9em; }
.doc-content table { width: 100%; margin: 22px 0; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper-strong); font-size: 14px; }
.doc-content th, .doc-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-content tr:last-child td { border-bottom: 0; }.doc-content th { background: #f8faf8; font-size: 12px; }
.callout { margin: 22px 0; padding: 18px 20px; border-left: 4px solid var(--mint-deep); border-radius: 0 14px 14px 0; background: rgb(35 107 74 / 8%); }
.callout.warning { border-left-color: var(--coral); background: rgb(166 99 12 / 9%); }
.callout strong { display: block; margin-bottom: 4px; }.callout p { margin: 0; }
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.doc-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-strong); text-decoration: none; }
.doc-card strong { display: block; }.doc-card span { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 13px; }
.doc-card:hover { border-color: #bdcbc1; transform: translateY(-1px); box-shadow: 0 12px 30px rgb(30 52 39 / 6%); }
.page-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 58px; padding-top: 28px; border-top: 1px solid var(--line); }
.page-nav a { padding: 15px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; background: var(--paper-strong); }
.page-nav a:last-child { text-align: right; grid-column: 2; }.page-nav small { display: block; color: var(--ink-soft); }
.not-found { min-height: 65vh; display: grid; place-items: center; text-align: center; }
.not-found img { width: 86px; margin: 0 auto 20px; }.not-found h1 { margin: 0; font-size: 72px; letter-spacing: -.06em; }.not-found p { color: var(--ink-soft); }

@media (max-width: 900px) {
  .site-nav, .nav-actions { display: none; }.mobile-nav { display: block; }
  .hero { padding-top: 72px; }.hero-grid, .truth-grid { grid-template-columns: 1fr; }.hero-grid { gap: 48px; }
  .workspace-card { min-height: 440px; }.feature-grid { grid-template-columns: 1fr; }.feature-card { min-height: 210px; }.feature-card h3 { margin-top: 32px; }
  .lifecycle { grid-template-columns: repeat(2, 1fr); }.life-step:nth-child(2) { border-right: 0; }.life-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .docs-layout { grid-template-columns: 1fr; gap: 0; }.docs-sidebar { display: none; }.docs-mobile-index { display: block; }
  .cta-grid { grid-template-columns: 1fr; }.footer-shell { grid-template-columns: 1fr; }.footer-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .nav-shell, .content-shell, .footer-shell { width: min(100% - 28px, 1160px); }
  .nav-shell { min-height: 66px; }.logo-link img { width: 106px; }
  .hero { padding: 55px 0 60px; }.hero h1 { font-size: 50px; }.hero-copy > p { font-size: 17px; }
  .hero-actions, .hero-actions .button-link { width: 100%; }.hero-note { display: grid; gap: 8px; }
  .workspace-card { min-height: 410px; padding: 18px; border-radius: 24px; }.terminal pre { min-height: 200px; padding: 18px; font-size: 11px; }
  .state-strip { grid-template-columns: repeat(2, 1fr); }.band { padding: 64px 0; }.section-heading h2 { font-size: 40px; }
  .lifecycle { grid-template-columns: 1fr; }.life-step { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }.life-step:last-child { border-bottom: 0; }
  .cta { margin: 55px auto; padding: 34px 24px; }.doc-grid, .page-nav { grid-template-columns: 1fr; }.page-nav a:last-child { grid-column: 1; text-align: left; }
  .docs-hero { padding-top: 45px; }.docs-hero h1 { font-size: 42px; }.docs-layout { padding-top: 34px; }.doc-content table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; }
}
