/* Atelier — Developer-tool aesthetic (clean, architectural, zero generic SaaS fluff) */
:root {
  color-scheme: dark;
  --bg: #0a0b0e;
  --surface: #111318;
  --surface-2: #171a21;
  --border: #222631;
  --border-strong: #323846;
  --text: #eceff4;
  --muted: #8f98a8;
  --dim: #636c7d;
  --accent: #7c9bff;
  --accent-hover: #96b0ff;
  --on-accent: #090d18;
  --green: #3ccf91;
  --amber: #f2c14e;
  --cyan: #5fd4e8;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --max-w: 1080px;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 740px;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 11, 14, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }

.brand img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: block;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav.main-nav a:not(.btn) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 120ms ease;
}
nav.main-nav a:not(.btn):hover,
nav.main-nav a:not(.btn)[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.btn:hover {
  text-decoration: none;
  background: #1f232d;
  border-color: #464e61;
}
.btn-primary {
  background: var(--text);
  border-color: var(--text);
  color: #0a0b0e;
}
.btn-primary:hover {
  background: #d7dce6;
  border-color: #d7dce6;
  color: #0a0b0e;
}
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
}
.btn-sm {
  padding: 7px 13px;
  font-size: 13px;
}
.btn-block {
  width: 100%;
  padding: 12px 18px;
}

/* Typography */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .sep { color: var(--dim); }

h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text);
}
h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
p { margin: 0 0 14px; color: var(--muted); }
p strong, li strong { color: var(--text); font-weight: 600; }

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--text);
}

/* Hero */
.hero {
  padding: 68px 0 56px;
  border-bottom: 1px solid var(--border);
}
.hero-top {
  max-width: 720px;
}
.lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 26px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.hero-meta {
  margin-top: 16px;
  font-size: 13px;
  color: var(--dim);
  font-family: var(--font-mono);
}

/* Realistic Atelier Window Preview */
.app-frame {
  margin-top: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #0d0f13;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.app-titlebar {
  height: 36px;
  background: #13161d;
  border-bottom: 1px solid var(--border);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.app-titlebar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-titlebar-left strong {
  color: var(--text);
  font-weight: 600;
}
.status-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.status-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.dot-green { background: var(--green); }
.dot-blue { background: var(--accent); }
.dot-amber { background: var(--amber); }

.app-tabs {
  height: 34px;
  background: #101218;
  border-bottom: 1px solid var(--border);
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: var(--dim);
}
.app-tabs span.active {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  height: 34px;
  display: inline-flex;
  align-items: center;
}

.app-panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 250px;
}
@media (max-width: 780px) {
  .app-panes { grid-template-columns: 1fr; }
}
.pane {
  display: flex;
  flex-direction: column;
  background: #0b0d11;
}
.pane + .pane {
  border-left: 1px solid var(--border);
}
@media (max-width: 780px) {
  .pane + .pane { border-left: 0; border-top: 1px solid var(--border); }
}
.pane-head {
  height: 30px;
  padding: 0 12px;
  background: #12151c;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.pane-body {
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: #c8d0de;
  margin: 0;
  overflow-x: auto;
}
.t-dim { color: #636c7d; }
.t-ok { color: var(--green); }
.t-accent { color: var(--accent); }
.t-amber { color: var(--amber); }
.t-cyan { color: var(--cyan); }

/* Sections & Architectural Lists */
section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
section:last-of-type { border-bottom: 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head p {
  margin: 0;
  max-width: 460px;
  font-size: 14px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
@media (max-width: 760px) {
  .spec-grid { grid-template-columns: 1fr; }
}
.spec-item {
  padding: 26px 26px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.spec-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  margin-bottom: 10px;
  display: block;
}
.spec-item p {
  margin: 0;
  font-size: 14px;
}

/* Split layout */
.split-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 820px) {
  .split-2 { grid-template-columns: 1fr; gap: 28px; }
}

.kv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.kv-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.kv-list .k {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
  flex-shrink: 0;
}
.kv-list .v {
  color: var(--text);
  text-align: right;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}
@media (max-width: 780px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.plan-primary {
  border-color: var(--border-strong);
  background: #13161e;
}
.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.plan-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 6px 0 4px;
}
.price {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.price-sub {
  font-size: 13px;
  color: var(--dim);
  font-family: var(--font-mono);
}

ul.check {
  list-style: none;
  padding: 0;
  margin: 14px 0 24px;
  flex: 1;
}
ul.check li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  font-size: 14px;
  color: var(--muted);
}
ul.check li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--dim);
  font-family: var(--font-mono);
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  font-size: 14px;
  color: var(--muted);
}

.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

/* Legal prose */
.prose {
  padding: 56px 0 72px;
}
.prose h1 {
  font-size: clamp(26px, 3.6vw, 34px);
  margin-bottom: 8px;
}
.prose .updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 32px;
}
.prose h2 {
  font-size: 19px;
  margin-top: 32px;
  margin-bottom: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.prose ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--muted);
}
.prose li { margin-bottom: 8px; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 44px;
  background: #08090c;
  font-size: 13px;
  color: var(--dim);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.disclaimer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--dim);
}
