/* oneClient marketing site — plain CSS, no build step. Dark by default, follows the system, switchable. */

:root {
  --bg: #0b0d12;
  --bg-alt: #0e1118;
  --surface: #12151d;
  --surface-2: #181c26;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9edf4;
  --muted: #98a2b3;
  --accent: #6f8dff;
  --accent-2: #a283ff;
  --accent-fg: #0b0d12;
  --ok: #4ade80;
  --glow: rgba(111, 141, 255, 0.22);
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border);
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fbfbfd;
  --bg-alt: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --border: rgba(15, 20, 32, 0.1);
  --border-strong: rgba(15, 20, 32, 0.18);
  --text: #0f1420;
  --muted: #566074;
  --accent: #3b5bdb;
  --accent-2: #7048e8;
  --accent-fg: #ffffff;
  --glow: rgba(59, 91, 219, 0.14);
  --shadow: 0 30px 70px -24px rgba(20, 30, 60, 0.35), 0 0 0 1px var(--border);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 0.08em 0.38em; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1rem; }
ul, ol { padding: 0; margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.wrap.narrow { width: min(820px, calc(100% - 40px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-fg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 7px 13px; font-size: 14px; border-radius: 9px; }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 24px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-primary:hover { box-shadow: 0 12px 30px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); }
.star-count { padding: 1px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; font-variant-numeric: tabular-nums; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); }
:root[data-theme="dark"] .i-sun, :root[data-theme="light"] .i-moon { display: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--text); }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 14.5px; padding: 8px 10px; border-radius: 8px; }
.nav-links a:hover { color: var(--text); text-decoration: none; background: var(--surface); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero-glow { position: absolute; inset: -20% -10% auto -10%; height: 620px; background: radial-gradient(ellipse at 50% 0%, var(--glow), transparent 60%), radial-gradient(ellipse at 85% 20%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 55%); pointer-events: none; }
.hero-inner { position: relative; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); font-size: 14px; font-weight: 500; margin-bottom: 26px; }
.pill:hover { text-decoration: none; border-color: var(--accent); }
.pill-new { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 800; max-width: 17ch; margin-inline: auto; letter-spacing: -0.035em; }
.grad { background: linear-gradient(120deg, var(--accent), var(--accent-2) 55%, #e879f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--muted); max-width: 62ch; margin: 22px auto 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.trust li::before { content: "✓"; color: var(--ok); margin-right: 7px; font-weight: 700; }

.hero-stage { margin-top: 46px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 18px; }
.chips button { font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: 6px 15px; cursor: pointer; transition: all 0.15s; }
.chips button:hover { color: var(--text); border-color: var(--border-strong); }
.chips button[aria-selected="true"] { color: var(--text); background: var(--surface-2); border-color: var(--accent); }

/* A screenshot in a window frame. */
.window { margin: 0; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar span:nth-child(2) { background: #febc2e; }
.window-bar span:nth-child(3) { background: #28c840; }
.window-bar em { margin-left: 10px; font-style: normal; font-size: 12.5px; color: var(--muted); }
.window-body img { width: 100%; }
.window figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); background: var(--surface-2); }
.hero-stage .window { max-width: 1120px; margin-inline: auto; text-align: left; }

/* ---------- works with ---------- */
.works { padding: 34px 0 10px; }
.works-title { text-align: center; color: var(--muted); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.logos { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: center; }
.logos li { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 500; font-size: 15px; }
.logos img { width: 22px; height: 22px; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.section h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; margin-top: 16px; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card h3 { font-size: 1.2rem; margin: 10px 0 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.cmd { margin: 4px 0 0; padding: 14px 16px; width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; overflow-x: auto; }
.cmd code { background: none; border: 0; padding: 0; }

/* Spotlight: text + screenshot. */
.spot { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 52px; align-items: center; }
.spot-flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.spot-flip .spot-text { order: 2; }
.spot h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.spot-lede { color: var(--muted); font-size: 1.08rem; margin: 18px 0 20px; }
.checks { list-style: none; display: grid; gap: 10px; margin-bottom: 18px; }
.checks li { position: relative; padding-left: 28px; color: var(--muted); font-size: 15.5px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 20%, transparent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%234ade80' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m4 8.4 2.6 2.6L12 5.6'/></svg>") center/12px no-repeat; }
.checks strong { color: var(--text); font-weight: 600; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; }
.steps-demo { list-style: none; counter-reset: s; display: grid; gap: 8px; margin: 0 0 20px; }
.steps-demo li { counter-increment: s; display: block; padding: 9px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-size: 14.5px; color: var(--muted); }
.steps-demo li span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 5px; padding: 1px 6px; display: inline-block; margin-right: 10px; vertical-align: 1px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.b { grid-column: span 2; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 24px 0; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s; }
.b:hover { border-color: var(--border-strong); }
.b-half { grid-column: span 3; }
.b h3 { font-size: 1.1rem; margin-bottom: 6px; }
.b p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.b img { margin-top: auto; width: 100%; height: 250px; object-fit: cover; object-position: top left; border-radius: 10px 10px 0 0; border: 1px solid var(--border); border-bottom: 0; box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, 0.4); }
.mini-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.mini-grid li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; display: grid; gap: 4px; }
.mini-grid strong { font-size: 15.5px; }
.mini-grid span { color: var(--muted); font-size: 14px; }

/* Plugin grid */
.plugin-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plugin-grid li { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; transition: border-color 0.2s, transform 0.2s; }
.plugin-grid li:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.plugin-grid img { width: 34px; height: 34px; flex: none; }
.plugin-grid strong { display: block; font-size: 15.5px; }
.plugin-grid span { color: var(--muted); font-size: 13.5px; line-height: 1.4; display: block; }
.plugin-grid .more { border-style: dashed; justify-content: center; text-align: center; }

/* Extend */
.extend { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.extend h2 { margin-bottom: 18px; }
.extend p { color: var(--muted); }
.code { border-radius: 12px; background: #0a0c11; border: 1px solid var(--border-strong); box-shadow: var(--shadow); overflow: hidden; }
.code-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #12151d; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.code-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-bar span:nth-child(2) { background: #febc2e; }
.code-bar span:nth-child(3) { background: #28c840; }
.code-bar em { margin-left: 10px; font-style: normal; font-size: 12.5px; color: #98a2b3; font-family: var(--mono); }
.code pre { margin: 0; padding: 22px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #d7deea; }
.code code { background: none; border: 0; padding: 0; font-size: inherit; }
.code .k { color: #c792ea; } .code .s { color: #a5e075; } .code .f { color: #82aaff; } .code .t { color: #ffcb6b; }

/* Downloads */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: border-color 0.2s; }
.dl-card svg { color: var(--muted); margin-bottom: 4px; }
.dl-card h3 { font-size: 1.25rem; }
.dl-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.dl-card.is-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -24px var(--glow); }
.dl-card.is-current::before { content: "Recommended for your system"; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.dl-alt { font-size: 14px; margin-top: 8px; }
.dl-note { color: var(--muted); font-size: 14px; text-align: center; max-width: 70ch; margin: 28px auto 0; }

/* Open source */
.oss { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 44px; border-radius: 20px; border: 1px solid var(--border-strong); background: radial-gradient(ellipse at 0% 0%, var(--glow), transparent 60%), var(--surface); }
.oss h2 { margin-bottom: 14px; }
.oss p { color: var(--muted); }
.oss .cta { justify-content: flex-start; margin-top: 22px; }
.oss-list { list-style: none; display: grid; gap: 12px; }
.oss-list li { display: grid; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.oss-list span { color: var(--muted); font-size: 14px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 28px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Final CTA + footer */
.final { padding: 96px 0; text-align: center; background: radial-gradient(ellipse at 50% 100%, var(--glow), transparent 60%); }
.final h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; }
.final p { color: var(--muted); font-size: 1.15rem; margin: 14px 0 28px; }
.footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-brand p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer nav a { color: var(--muted); font-size: 14.5px; }
.footer nav a:hover { color: var(--text); }

/* Reveal on scroll (only when JS is on and motion is OK) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .plugin-grid li { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .spot, .spot-flip, .extend, .oss { grid-template-columns: 1fr; gap: 32px; }
  .spot-flip .spot-text { order: 0; }
  .cards3, .dl-grid, .mini-grid, .plugin-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .b, .b-half { grid-column: span 2; }
  .duo { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 620px) {
  .cards3, .dl-grid, .mini-grid, .plugin-grid, .bento { grid-template-columns: 1fr; }
  .b, .b-half { grid-column: auto; }
  .hero { padding-top: 48px; }
  .btn-lg { width: 100%; }
  .cta { flex-direction: column; align-items: stretch; }
  .oss { padding: 26px; }
  .star-btn span:not(.star-count) { display: inline; }
  .nav-actions .star-btn { padding: 7px 10px; }
}

/* On wide screens the screenshot bleeds past the text column, so the UI in it stays readable. */
@media (min-width: 1280px) {
  .spot .spot-shots { margin-right: -110px; }
  .spot-flip .spot-shots { margin-right: 0; margin-left: -110px; }
}
