/* Ourcld landing page — self-contained, system fonts only. */
:root {
  --bg: #0b0f17;
  --bg-alt: #0f1522;
  --surface: #141b2b;
  --surface-2: #1a2336;
  --border: #25304a;
  --text: #e6ebf5;
  --muted: #a3aec4;        /* 8.0:1 on --bg */
  --accent: #5eead4;       /* teal */
  --accent-2: #a5b4fc;     /* indigo */
  --accent-ink: #04201c;
  --warn: #fcd34d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --maxw: 1160px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9fc; --bg-alt: #eef2f8; --surface: #ffffff; --surface-2: #f2f5fa; --border: #d5dcea;
    --text: #0f172a; --muted: #475569; --accent: #0f766e; --accent-2: #4338ca; --accent-ink: #ffffff;
    --warn: #92400e; --shadow: 0 10px 30px rgba(15,23,42,.08);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 1.0625rem; line-height: 1.65; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--border); padding: .05em .35em; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; z-index: 100; }
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--border); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.site-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.site-nav a { color: var(--muted); text-decoration: none; padding: .5rem .75rem; border-radius: 8px; font-size: .95rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); background: var(--surface); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--border); border-radius: 10px; width: 44px; height: 44px; padding: 0; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle .bar { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0; }
.btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .75rem 1.3rem; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); }
.btn-ghost { color: var(--text); border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.icon { width: 18px; height: 18px; }

/* Hero */
.hero { position: relative; padding: 5rem 0 4.5rem; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; background:
  radial-gradient(600px 300px at 15% 20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
  radial-gradient(520px 320px at 85% 10%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 70%);
  pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 44px 44px; opacity: .22; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }
.status-pill { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--border); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.25rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 25%, transparent); }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--muted); font-size: .95rem; }
.hero-facts li::before { content: "◆"; color: var(--accent); margin-right: .45rem; font-size: .7em; vertical-align: .15em; }
.hero-facts strong { color: var(--text); }

.terminal { margin: 0; background: #0a0e16; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.terminal-bar { display: flex; gap: 6px; padding: .7rem .9rem; background: #111827; border-bottom: 1px solid #1f2937; }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #374151; }
.terminal-bar span:nth-child(1) { background: #f87171; } .terminal-bar span:nth-child(2) { background: #fbbf24; } .terminal-bar span:nth-child(3) { background: #34d399; }
.terminal-body { margin: 0; padding: 1.1rem 1.2rem; overflow-x: auto; font-family: var(--mono); font-size: .86rem; line-height: 1.7; color: #d1d9e6; }
.terminal-body code { background: none; border: 0; padding: 0; font-size: inherit; }
.terminal .c { color: #8b97ab; } .terminal .p { color: #5eead4; } .terminal .h { color: #a5b4fc; } .terminal .ok { color: #86efac; }
.terminal figcaption { font-size: .8rem; color: #a3aec4; padding: .7rem 1.2rem .9rem; border-top: 1px solid #1f2937; background: #0d121c; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .6rem; }
.section-lede { color: var(--muted); font-size: 1.1rem; max-width: 46rem; margin-bottom: 2.5rem; }
.footnote { color: var(--muted); font-size: .95rem; margin-top: 1.75rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card strong { color: var(--text); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.card-icon svg { width: 24px; height: 24px; }

/* Architecture */
.arch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.planes { margin: 0; display: grid; gap: .9rem; }
.plane { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; }
.plane dt { font-weight: 700; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.plane dd { margin: .35rem 0 0; color: var(--muted); font-size: .97rem; }
.plane-b { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent) inset; }
.tag { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-family: var(--mono); font-size: .9rem; background: var(--surface-2); border: 1px solid var(--border); color: var(--accent-2); }
.plane-b .tag { color: var(--accent); }
.core { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; padding: .15rem .5rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.diagram { margin: 0; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { color: var(--muted); font-size: .9rem; margin-top: .75rem; text-align: center; }
.dg-box { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.dg-label { font: 700 12px var(--mono); letter-spacing: .12em; fill: var(--accent-2); }
.dg-title { font: 700 20px var(--font); fill: var(--text); }
.dg-sub { font: 400 14px var(--font); fill: var(--muted); }
.dg-on { fill: #f1f5f9; } .dg-label.dg-on { fill: #99f6e4; }
.dg-note { font: 500 13px var(--font); fill: var(--muted); }
.dg-chip { fill: var(--surface-2); stroke: var(--border); }
.dg-chip-t { font: 600 13px var(--font); fill: var(--text); }

/* Flow */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.4rem; }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }
.step-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 800; margin-bottom: .9rem; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 2.6rem; right: -1.25rem; width: 1.25rem; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }

/* Compare */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare caption { text-align: left; padding: 1rem 1.2rem .25rem; color: var(--muted); font-size: .9rem; }
.compare th, .compare td { text-align: left; padding: .95rem 1.2rem; border-top: 1px solid var(--border); vertical-align: top; font-size: .97rem; }
.compare thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-top: 0; }
.compare thead th:last-child { color: var(--accent); }
.compare tbody th { font-weight: 700; width: 24%; }
.compare td:nth-child(2) { color: var(--muted); }
.compare td:last-child { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.callout { margin-top: 1.75rem; border-left: 4px solid var(--accent-2); background: var(--surface); border-radius: 0 12px 12px 0; padding: 1.1rem 1.3rem; }
.callout p { margin: 0; color: var(--muted); }
.callout strong { color: var(--text); }

/* First user */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.checklist { list-style: none; margin: 0; padding: 1.4rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 1.8rem; font-size: .97rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.checklist li.warn::before { content: "!"; color: var(--warn); left: .3rem; }
.checklist li.warn { color: var(--muted); }

/* Trust */
.trust { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; background: var(--surface); border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--border)); border-radius: var(--radius); padding: 2rem; }
.trust-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.trust-icon svg { width: 28px; height: 28px; }
.trust .eyebrow { color: var(--warn); }
.trust-list { margin: 0; padding-left: 1.1rem; display: grid; gap: .8rem; color: var(--muted); }
.trust-list strong { color: var(--text); }

/* Roadmap */
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; }
.rm { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; }
.rm p { color: var(--muted); font-size: .93rem; margin: 0; }
.rm-now { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); }
.rm-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .75rem; flex-wrap: wrap; }
.rm-phase { font-family: var(--mono); font-weight: 700; color: var(--accent-2); }
.badge { font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.badge-now { color: var(--accent-ink); background: var(--accent); border-color: transparent; }

/* CTA band */
.cta-band { text-align: center; background:
  radial-gradient(500px 200px at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--bg-alt);
  border-top: 1px solid var(--border); }
.cta-inner p { color: var(--muted); max-width: 36rem; margin: 0 auto; }
.cta-inner .cta-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: start; }
.footer-grid .brand + p { margin-top: .5rem; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; padding: 0; margin: 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.privacy-note { grid-column: 1 / -1; margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); }

/* Responsive */
@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .roadmap { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid, .arch-grid, .split { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem 1.25rem 1rem; }
  .site-nav a { display: block; padding: .8rem .5rem; font-size: 1rem; }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .section { padding: 3.5rem 0; }
  .cards, .flow, .roadmap { grid-template-columns: 1fr; }
  .lede { font-size: 1.08rem; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
  .trust { grid-template-columns: 1fr; padding: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .terminal-body { font-size: .78rem; }
}

/* Comparison table: stack rows as cards on narrow screens so the Ourcld column is always visible. */
@media (max-width: 600px) {
  .table-wrap { overflow: visible; border: 0; background: none; }
  .compare { min-width: 0; }
  .compare caption { padding: 0 0 .75rem; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: .9rem; overflow: hidden; }
  .compare tbody th { width: 100%; border-top: 0; padding: .9rem 1rem .4rem; font-size: 1rem; }
  .compare td { border-top: 0; padding: .35rem 1rem .8rem; }
  .compare td::before { content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); margin-bottom: .15rem; }
  .compare td:last-child { border-top: 1px solid var(--border); padding-top: .7rem; }
  .compare td:last-child::before { color: var(--accent); }
}
@media (max-width: 600px) {
  .compare caption { display: block; width: 100%; }
  /* Larger SVG text when the diagram is scaled down on phones */
  .dg-label { font-size: 14px; }
  .dg-title { font-size: 24px; }
  .dg-sub { font-size: 17px; }
  .dg-note { font-size: 16px; }
  .dg-chip-t { font-size: 15px; }
}
