/* Stacix site. Brand: deep teal + amber dot (from the logo). */
:root {
  --brand: #0f5a54;
  --brand-2: #14786f;
  --accent: #f5a524;
  --ink: #0e1a1c;
  --ink-2: #3b4a4d;
  --muted: #64767a;
  --line: #dfe7e6;
  --bg: #ffffff;
  --bg-2: #f4f8f7;
  --card: #ffffff;
  --code-bg: #eef4f3;
  --link: #0f6b63;
  --hero-bg: #0b1416;
  --hero-ink: #e8f1ef;
  --hero-muted: #9fb3b0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 26, 28, .06), 0 8px 24px rgba(14, 26, 28, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6efed;
    --ink-2: #b9c9c6;
    --muted: #8ea29f;
    --line: #22312f;
    --bg: #0b1416;
    --bg-2: #0f1b1d;
    --card: #111f21;
    --code-bg: #142426;
    --link: #5fd3c4;
    --brand-2: #2a9b90;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #111; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -.015em; color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.is-home .site-header { background: color-mix(in srgb, var(--hero-bg) 80%, transparent); border-bottom-color: rgba(255, 255, 255, .06); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.is-home .site-header .brand { color: var(--hero-ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font: 700 20px/1 var(--display); letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover { color: var(--ink); background: var(--bg-2); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--ink); }
.is-home .site-nav a:not(.btn) { color: var(--hero-muted); }
.is-home .site-nav a:not(.btn):hover { color: var(--hero-ink); background: rgba(255, 255, 255, .06); }
@media (max-width: 640px) {
  .site-nav a:not(.btn) { display: none; }
  .site-nav a[href="/solutions/"] { display: inline-block; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; background: var(--accent); color: #1a1405 !important; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245, 165, 36, .3); }
.btn-small { padding: 8px 14px; font-size: 14px; margin-left: 6px; }
.btn-ghost { background: transparent; color: var(--hero-ink) !important; border-color: rgba(255, 255, 255, .18); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: none; }
.btn-outline { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.btn-outline:hover { background: var(--bg-2); box-shadow: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink); padding: 88px 0 96px; margin-top: -65px; padding-top: 153px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); }
.hero::after { content: ""; position: absolute; width: 720px; height: 720px; right: -200px; top: -260px; background: radial-gradient(circle, rgba(20, 120, 111, .45), transparent 65%); filter: blur(10px); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin: 0 0 20px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.hero h1 { color: #fff; font-size: clamp(38px, 5.4vw, 62px); margin: 0 0 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #5fd3c4, #f5c26b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 19px; color: var(--hero-muted); max-width: 560px; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 28px; font-size: 14px; color: var(--hero-muted); display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero-note span::before { content: "✓"; color: #5fd3c4; margin-right: 6px; }

/* Terminal card in the hero */
.term { background: rgba(14, 26, 28, .85); border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); font: 13.5px/1.75 var(--mono); color: #cfe0dd; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); color: var(--hero-muted); font-size: 12px; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2b3b3d; }
.term-bar b { margin-left: auto; font-weight: 500; color: #5fd3c4; }
.term-body { padding: 18px 20px 20px; }
.term-body p { margin: 0; white-space: pre-wrap; }
.t-dim { color: #6f8582; }
.t-key { color: #5fd3c4; }
.t-ok { color: #8be0a4; }
.t-acc { color: var(--accent); }
.term-cap { padding: 10px 20px; border-top: 1px solid rgba(255, 255, 255, .07); font: 12px/1.4 var(--font); color: var(--hero-muted); }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head .eyebrow { color: var(--brand-2); }
.section-head .eyebrow::before { background: var(--brand-2); }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 0 0 14px; }
.section-head p { color: var(--ink-2); font-size: 18px; margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { font-size: 21px; margin: 16px 0 10px; }
.card p { color: var(--ink-2); margin: 0 0 14px; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 20px; margin: 6px 0; color: var(--ink-2); font-size: 15px; }
.card li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-2); }
.icon svg { width: 22px; height: 22px; }
.card-link { font-weight: 600; text-decoration: none; }
.card-link::after { content: " →"; }

/* Products */
.product { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; overflow: hidden; padding: 0; }
.product-copy { padding: 32px; display: flex; flex-direction: column; }
.product-copy h3 { margin-top: 12px; }
.product-shot { background: linear-gradient(140deg, #0f5a54, #0b1416); display: flex; align-items: center; justify-content: center; padding: 28px; }
.product-shot img { border-radius: 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, .4); }
.product-shot.soon { color: #cfe0dd; font: 14px/1.7 var(--mono); }
.status { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); width: fit-content; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.status.dev::before { background: #7aa7ff; }
.product-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 16px; font-size: 14px; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding: 24px 24px 24px 0; border-top: 2px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 500 13px/1 var(--mono); color: var(--brand-2); margin-bottom: 14px; }
.step h3 { font-size: 19px; margin: 0 0 8px; }
.step p { color: var(--ink-2); margin: 0; font-size: 15px; }

/* CTA band */
.cta { background: var(--hero-bg); color: var(--hero-ink); border-radius: 22px; padding: 56px; display: flex; gap: 32px; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 480px; height: 480px; right: -120px; bottom: -280px; background: radial-gradient(circle, rgba(245, 165, 36, .28), transparent 65%); }
.cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin: 0 0 10px; }
.cta p { margin: 0; color: var(--hero-muted); max-width: 560px; }
.cta .btn { position: relative; z-index: 1; flex: none; }

/* Page header for inner pages */
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-head h1 { font-size: clamp(34px, 4.6vw, 52px); margin: 0 0 14px; max-width: 820px; }
.page-head p { font-size: 19px; color: var(--ink-2); max-width: 720px; margin: 0; }
.page-head .eyebrow { color: var(--brand-2); }
.page-head .eyebrow::before { background: var(--brand-2); }

/* Prose (markdown pages) */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 18px; }
.prose h2 { font-size: 26px; margin: 48px 0 12px; scroll-margin-top: 88px; }
.prose h3 { font-size: 20px; margin: 32px 0 8px; scroll-margin-top: 88px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); margin: 8px 0 16px; }
.prose code { font: 0.88em var(--mono); background: var(--code-bg); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: var(--code-bg); padding: 16px; border-radius: 10px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 20px 0; padding: 12px 18px; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 10px 10px 0; }
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-2); font-weight: 600; color: var(--ink); }
tr:last-child td { border-bottom: 0; }
.page-body { padding: 56px 0 88px; }

/* Docs */
.doc-shell { display: grid; grid-template-columns: 260px 1fr; gap: 56px; padding: 48px 0 96px; }
.doc-side { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; font-size: 14.5px; }
.doc-product { display: flex; gap: 10px; align-items: center; font-weight: 600; margin: 0 0 14px; }
.doc-product img { border-radius: 7px; }
.doc-nav { display: grid; gap: 2px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.doc-nav a { color: var(--ink-2); text-decoration: none; padding: 7px 10px; border-radius: 8px; }
.doc-nav a:hover { background: var(--bg-2); color: var(--ink); }
.doc-nav a[aria-current="page"] { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--ink); font-weight: 600; }
.doc-toc summary { cursor: pointer; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.doc-toc ul { list-style: none; margin: 0; padding: 0; }
.doc-toc a { display: block; color: var(--muted); text-decoration: none; padding: 4px 10px; }
.doc-toc a:hover { color: var(--ink); }
.doc-toc ul:empty, .doc-toc:has(ul:empty) { display: none; }
.doc-body { min-width: 0; }

/* Contact */
.contact-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.contact-card > div { padding: 36px; }
.contact-card .side { background: var(--bg-2); border-left: 1px solid var(--line); }
.mail { font: 600 clamp(20px, 2.6vw, 28px)/1.2 var(--display); word-break: break-all; }

/* Footer */
.site-footer { background: var(--hero-bg); color: var(--hero-muted); padding: 64px 0 28px; font-size: 15px; }
.site-footer .brand { color: var(--hero-ink); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.1fr 1.1fr 1fr; gap: 28px; }
.footer-brand p { max-width: 300px; margin: 16px 0 0; }
.site-footer h2 { font: 600 14px/1.3 var(--font); color: var(--hero-ink); margin: 6px 0 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--hero-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .product, .contact-card { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc-shell { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .doc-side { position: static; max-height: none; }
  .contact-card .side { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .hero { padding: 120px 0 64px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 36px 24px; }
  .card, .product-copy, .contact-card > div { padding: 24px; }
  .term { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

ul.plain { list-style: none; padding: 0; margin: 12px 0 0; }
ul.plain li { position: relative; padding-left: 22px; margin: 6px 0; color: var(--ink-2); font-size: 15px; }
ul.plain li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-2); font-weight: 700; }
/* Inside cards, checklist bullets replace the amber square (no double bullet). */
.card ul.plain li::before { content: "✓"; background: none; width: auto; height: auto; top: 0; border-radius: 0; }
