/* Sabado Cloud — minimal landing */
:root {
  --bg: #0d0e10;
  --bg-elev: #15171a;
  --bg-card: #1a1d21;
  --fg: #e8e9eb;
  --fg-mute: #9ca0a7;
  --fg-dim: #6b6f76;
  --accent: #4ade80;
  --accent-soft: rgba(74, 222, 128, 0.12);
  --line: #2a2d33;
  --radius: 10px;
  --maxw: 1100px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 14, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand-mark {
  color: var(--accent);
  font-size: 22px;
  line-height: 0;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
}

.site-nav a {
  color: var(--fg-mute);
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--fg);
}

.nav-cta {
  background: var(--accent-soft);
  color: var(--accent) !important;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.nav-cta:hover {
  border-color: var(--accent);
}

/* Hero */
.hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 24px;
  padding: 6px 12px;
  background: var(--accent-soft);
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 24px;
  max-width: 16ch;
}

.lede {
  font-size: 18px;
  color: var(--fg-mute);
  max-width: 60ch;
  margin-bottom: 36px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #07120c;
}

.btn-primary:hover {
  background: #5be88e;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--fg-mute);
}

/* Sections */
section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-size: clamp(28px, 3.5vw, 38px);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-lede {
  font-size: 17px;
  color: var(--fg-mute);
  max-width: 70ch;
  margin-bottom: 48px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s, transform 0.15s;
}

.feature:hover {
  border-color: var(--fg-dim);
}

.feature-icon {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature p {
  font-size: 15px;
  color: var(--fg-mute);
  line-height: 1.6;
}

/* Cases */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.case {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.case h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.case p {
  font-size: 14px;
  color: var(--fg-mute);
}

/* Steps */
.steps {
  list-style: none;
  display: grid;
  gap: 32px;
  max-width: 800px;
}

.steps li {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.step-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.step-body p {
  color: var(--fg-mute);
  font-size: 15px;
}

/* Trust */
.trust-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 24px;
  max-width: 80ch;
}

.trust-list li {
  padding-left: 28px;
  position: relative;
  color: var(--fg-mute);
  font-size: 15px;
  line-height: 1.6;
}

.trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.trust-list strong {
  color: var(--fg);
  font-weight: 600;
}

/* Contact */
.contact-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}

.contact-card h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--fg-mute);
  margin-bottom: 32px;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.contact-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.contact-note {
  font-size: 13px;
  color: var(--fg-dim);
  margin-top: 24px;
  margin-bottom: 0 !important;
}

/* Footer */
.site-footer {
  padding: 48px 0;
  background: var(--bg-elev);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-tag {
  font-size: 14px;
  color: var(--fg-mute);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.footer-links a {
  color: var(--fg-mute);
}

.footer-links a:hover {
  color: var(--fg);
}

.footer-fineprint {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-dim);
}

/* Legal pages */
.legal {
  padding: 60px 0 100px;
  max-width: 800px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 36px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.legal .updated {
  color: var(--fg-dim);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal h3 {
  font-size: 17px;
  margin-top: 24px;
  margin-bottom: 8px;
  font-weight: 600;
}

.legal p,
.legal li {
  color: var(--fg);
  font-size: 15px;
  margin-bottom: 12px;
}

.legal ul,
.legal ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--fg-mute);
}

.legal-back:hover {
  color: var(--fg);
}

/* Responsive */
@media (max-width: 720px) {
  .site-nav {
    gap: 16px;
    font-size: 13px;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 60px 0 50px;
  }

  section {
    padding: 60px 0;
  }

  .contact-card {
    padding: 32px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .steps li {
    flex-direction: column;
    gap: 8px;
  }

  .docs-shell {
    grid-template-columns: 1fr !important;
  }

  .docs-sidebar {
    position: static !important;
    height: auto !important;
    border-right: none !important;
    border-bottom: 1px solid var(--line);
  }
}

/* ─────────────────────── Docs ─────────────────────── */

.docs-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 80px);
}

.docs-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  height: calc(100vh - 80px);
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 32px 24px 64px;
}

.docs-sidebar h4 {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 24px 0 8px;
  font-weight: 600;
}

.docs-sidebar h4:first-child {
  margin-top: 0;
}

.docs-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.docs-sidebar li a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--fg-mute);
  margin-left: -8px;
  transition: background 0.12s, color 0.12s;
}

.docs-sidebar li a:hover {
  color: var(--fg);
  background: var(--bg-elev);
}

.docs-sidebar li a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.docs-content {
  padding: 48px 56px;
  max-width: 820px;
  width: 100%;
}

.docs-content h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 700;
}

.docs-content > .docs-lede {
  color: var(--fg-mute);
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 64ch;
}

.docs-content h2 {
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 56px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.docs-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.docs-content h3 {
  font-size: 18px;
  margin: 32px 0 12px;
  font-weight: 600;
  scroll-margin-top: 90px;
}

.docs-content p,
.docs-content li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg);
  margin-bottom: 12px;
}

.docs-content p {
  max-width: 70ch;
}

.docs-content ul,
.docs-content ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

.docs-content li {
  margin-bottom: 6px;
}

.docs-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.docs-content a:hover {
  text-decoration-thickness: 2px;
}

.docs-content code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  background: var(--bg-elev);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--fg);
  border: 1px solid var(--line);
}

.docs-content pre {
  position: relative;
  background: #0a0b0d;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 16px 0 24px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
}

.docs-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--fg);
  font-size: 13px;
}

.docs-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--fg-mute);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s, border-color 0.15s;
}

.docs-content pre:hover .docs-copy,
.docs-copy:focus {
  opacity: 1;
}

.docs-copy:hover {
  color: var(--fg);
  border-color: var(--fg-dim);
}

.docs-copy.copied {
  color: var(--accent);
  border-color: var(--accent);
  opacity: 1;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.docs-content th,
.docs-content td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.docs-content th {
  font-weight: 600;
  color: var(--fg);
  background: var(--bg-elev);
}

.docs-content td code {
  font-size: 12.5px;
}

.docs-callout {
  background: var(--bg-elev);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 16px 0 24px;
  font-size: 14px;
}

.docs-callout p {
  margin: 0;
  color: var(--fg-mute);
  font-size: 14px;
}

.docs-callout strong {
  color: var(--fg);
}

.docs-callout.warning {
  border-left-color: #fbbf24;
}

.docs-callout.warning strong {
  color: #fbbf24;
}

.docs-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 24px;
}

@media (max-width: 720px) {
  .docs-content {
    padding: 32px 24px;
  }
  .docs-grid-2 {
    grid-template-columns: 1fr;
  }
}
}
