:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-elevated: #fbfbfd;
  --dark-bg: #000000;
  --dark-card: #161617;
  --dark-border: rgba(255, 255, 255, 0.12);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --subtle: #86868b;
  --primary: #0071e3;
  --primary-hover: #0077ed;
  --primary-soft: rgba(0, 113, 227, 0.08);
  --ok-bg: rgba(40, 205, 65, 0.12);
  --ok-border: rgba(40, 205, 65, 0.28);
  --ok-txt: #15803d;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --warn-txt: #b45309;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 16px 40px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Apple Ribbon Bar */
.topbar {
  background: #f5f5f7;
  color: var(--muted);
  font-size: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.topbar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.topbar a:hover { text-decoration: underline; }
.topbar-badge {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 980px;
  margin-right: 6px;
  letter-spacing: 0.02em;
}

/* Apple Frosted-Glass Global Nav (Strictly 52px Single-Row) */
header {
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
  gap: 16px;
  flex-wrap: nowrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo img { width: 22px; height: 22px; flex-shrink: 0; }
.logo-sub { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav-links a {
  color: rgba(29, 29, 31, 0.8);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  font-weight: 500;
}

.nav-links a.nav-console {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
  padding: 5px 12px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 500;
}
.nav-links a.nav-console:hover {
  background: rgba(0, 0, 0, 0.09);
}

.nav-links a.nav-cta {
  background: var(--primary);
  color: #ffffff;
  padding: 5px 13px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 500;
}
.nav-links a.nav-cta:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(0, 0, 0, 0.05); }

/* Apple Contextual Chapter Sub-Navigation Bar */
.chapter-bar {
  background: rgba(245, 245, 247, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.chapter-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 6px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.chapter-inner::-webkit-scrollbar { display: none; }
.chapter-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 980px;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}
.chapter-link:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}
.chapter-link.active {
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

/* Typography */
h1 {
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.14;
  letter-spacing: -0.026em;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.28;
  letter-spacing: -0.018em;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

p.lead {
  font-size: 1.08rem;
  line-height: 1.52;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 24px;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head p.lead { margin-bottom: 0; }
.section-head-left {
  max-width: 720px;
  margin: 0 0 36px;
  text-align: left;
}

/* Apple Pill Buttons */
.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 980px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.15s ease;
}
.btn:hover { background: var(--primary-hover); }

.btn-outline {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn-outline:hover {
  background: rgba(0, 0, 0, 0.08);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
}

/* Hero Section */
.hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 40px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 980px;
  margin-bottom: 20px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28cd41;
  flex-shrink: 0;
}

/* macOS Terminal Window for Hero CLI */
.hero-cli-box {
  margin-top: 26px;
  background: #1d1d1f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-float);
  max-width: 100%;
}
.hero-cli-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2c2c2e;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 8px;
}
.cli-tab-list {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cli-tab-list::-webkit-scrollbar { display: none; }
.cli-tab {
  background: transparent;
  color: #a1a1a6;
  border: none;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 980px;
  cursor: pointer;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.cli-tab.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
.cli-copy-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #f5f5f7;
  border: none;
  border-radius: 980px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
}
.cli-copy-btn:hover { background: rgba(255, 255, 255, 0.2); }

.hero-cli-code {
  padding: 14px 16px;
  color: #f5f5f7;
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
  max-width: 100%;
}

.hero-visual {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-float);
}
.hero-visual img {
  width: 100%;
  border-radius: 14px;
}
.hero-caption {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--subtle);
  padding: 12px 6px 2px;
  gap: 8px;
  flex-wrap: wrap;
}

/* Metrics Strip */
.metrics-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
}
.metric-item strong {
  display: block;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.metric-item span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  display: block;
}

/* Compliance Badges Strip */
.trust-strip {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.trust-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-pill {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 12px;
  border-radius: 980px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

/* Sections & Symmetrical Bento Grids */
.section { padding: 80px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-dark {
  background: var(--dark-bg);
  color: #f5f5f7;
  padding: 84px 0;
}
.section-dark h2, .section-dark h3 { color: #f5f5f7; }
.section-dark p.lead, .section-dark .card-dark p { color: #a1a1a6; }
.section-dark .eyebrow { color: #2997ff; }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}
.grid-4 > *, .grid-3 > *, .grid-2 > * { min-width: 0; }

/* Bento Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.section-alt .card { background: #ffffff; }
.section:not(.section-alt) .card { background: var(--bg-alt); border-color: transparent; }
.section:not(.section-alt) .card.featured { background: #ffffff; border: 2px solid var(--primary); box-shadow: var(--shadow-float); }

.card-dark {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.card ul {
  margin-top: 16px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.card ul li { margin-bottom: 6px; }

/* Apple Segmented Control for Workload Tabs */
.workload-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 auto 32px;
  background: var(--bg-alt);
  padding: 5px;
  border-radius: 980px;
  width: fit-content;
  max-width: 100%;
}
.workload-tab {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.workload-tab.active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.workload-panel { display: none; }
.workload-panel.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}
.workload-panel > * { min-width: 0; }
.workload-panel pre { margin: 0; height: 100%; }

/* Media Cards & Steps */
.media-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.media-card-body {
  padding: 14px 20px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: #ffffff;
}
.section-dark .media-card-body {
  background: var(--dark-card);
  color: #a1a1a6;
  border-top-color: var(--dark-border);
}

.step-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-alt);
  padding: 18px 20px;
  border-radius: var(--radius-md);
}
.step-num {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 3px; color: var(--text); }
.step-item p { font-size: 13.5px; color: var(--muted); }

/* Benchmark Bars */
.bench-list { display: grid; gap: 14px; margin-top: 16px; }
.bench-row { display: grid; gap: 6px; }
.bench-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 500; }
.bench-track {
  height: 8px;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 980px;
  overflow: hidden;
}
.bench-fill { height: 100%; border-radius: 980px; background: var(--primary); }
.bench-fill.muted { background: #a1a1a6; }
.bench-fill.emerald { background: #28cd41; }

/* Clean Apple Tables */
.table-wrap {
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}
th, td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
th {
  background: #fbfbfd;
  font-weight: 600;
  color: var(--muted);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }

.tag-ok {
  display: inline-flex;
  align-items: center;
  background: var(--ok-bg);
  color: var(--ok-txt);
  font-weight: 600;
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 980px;
  white-space: nowrap;
}
.tag-info {
  display: inline-flex;
  align-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 980px;
  white-space: nowrap;
  width: fit-content;
}

/* Interactive TCO Calculator */
.calc-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.calc-controls { display: grid; gap: 18px; margin: 8px 0 22px; }
.calc-row label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 500;
  font-size: 13.5px;
  margin-bottom: 8px;
  color: var(--text);
}
.calc-row input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}
.calc-summary {
  background: #1d1d1f;
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.calc-total { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.calc-sub { font-size: 12.5px; color: #30d158; font-weight: 500; margin-top: 3px; }
.calc-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.calc-compare-item {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  color: var(--muted);
}
.calc-compare-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 3px;
}

/* Pricing Segmented Control & Cards */
.billing-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-alt);
  padding: 4px;
  border-radius: 980px;
  margin-top: 22px;
}
.billing-btn {
  border: none;
  background: transparent;
  padding: 7px 18px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}
.billing-btn.active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.price {
  font-size: 2.1rem;
  font-weight: 700;
  margin: 10px 0 12px;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.price span {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0;
}
.card.featured {
  border: 2px solid var(--primary);
  position: relative;
}
.featured-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 980px;
}

/* Documentation Layout */
.docs-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.docs-layout > * { min-width: 0; }
.docs-sidebar {
  position: sticky;
  top: 72px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 20px;
}
.docs-sidebar h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--subtle);
  margin-bottom: 8px;
}
.docs-sidebar ul {
  list-style: none;
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}
.docs-sidebar ul:last-child { margin-bottom: 0; }
.docs-sidebar a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
}
.docs-sidebar a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

/* Code Blocks */
pre {
  position: relative;
  background: #1d1d1f;
  color: #f5f5f7;
  padding: 18px 20px;
  border-radius: 14px;
  overflow-x: auto;
  max-width: 100%;
  font-size: 12.5px;
  line-height: 1.58;
  margin: 14px 0 0;
}
code {
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, monospace;
  font-size: 0.88em;
}
p code, li code, td code {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
  padding: 2px 6px;
  border-radius: 6px;
}
.code-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
  border: none;
  border-radius: 980px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}
.code-copy:hover { background: rgba(255, 255, 255, 0.22); }

/* Status Uptime Bars */
.uptime-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 14px;
}
.uptime-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}
.uptime-bars {
  display: grid;
  grid-template-columns: repeat(60, minmax(0, 1fr));
  gap: 3px;
  height: 26px;
}
.uptime-tick {
  background: #28cd41;
  border-radius: 3px;
}
.uptime-tick.degraded { background: #ff9f0a; }
.uptime-foot {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--subtle);
  margin-top: 8px;
}

/* Apple Accordion FAQ */
.faq-list { display: grid; gap: 10px; }
details.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}
details.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-weight: 400;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Vault Console Login */
.auth-wrap {
  max-width: 440px;
  margin: 64px auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-float);
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-size: 14.5px;
  background: #fbfbfd;
  color: var(--text);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.18);
  background: #ffffff;
}
.auth-alert {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

/* Apple Minimalist Footer */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 52px 0 36px;
  color: var(--muted);
  font-size: 12.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}
.footer-grid > * { min-width: 0; }
.footer-col h4 {
  color: var(--text);
  font-size: 12px;
  margin-bottom: 10px;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: grid; gap: 7px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--subtle);
}

/* Responsive Breakpoints — Symmetrical at Every Width */
@media (max-width: 1060px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: rgba(251, 251, 253, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 22px;
    gap: 12px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 15px; padding: 6px 0; }
  .nav-links a.nav-console,
  .nav-links a.nav-cta {
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
  }

  .hero-grid,
  .workload-panel.active,
  .docs-layout,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .docs-sidebar { position: static; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .grid-4,
  .grid-3,
  .metrics-grid,
  .calc-breakdown,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .workload-tabs {
    border-radius: 16px;
    width: 100%;
  }
  .workload-tab { flex: 1 1 auto; text-align: center; }
  .uptime-bars { grid-template-columns: repeat(30, minmax(0, 1fr)); }
  .uptime-bars .uptime-tick:nth-child(n+31) { display: none; }
}
