/* ============================================================================
   OuraiC theme layer  --  /or-theme.css
   Injected by nginx on every HTML response (see /etc/nginx/sites-enabled/ouraic).
   Two independent parts:
     PART 1  console + app chrome theme (brand palette, polish)
     PART 2  landing page design system (.orx-* classes)

   SAFETY RULES (this file runs on a live production site):
     - Part 1 only sets design tokens and low-risk visual polish. It never hides
       or repositions app elements, so no page can break because of it.
     - Token overrides are scoped to `body:not([data-theme-preset])`, i.e. only
       when the visitor has NOT picked one of the built-in colour presets in the
       theme drawer. Picking a preset always wins -- user choice is respected.
     - Everything else is namespaced under .orx-root (the landing fragment).
   Keep this file free of @import, external URLs and JS.
   ============================================================================ */

@charset "UTF-8";

/* ==========================================================================
   PART 1a -- brand palette, light mode (default preset only)
   ========================================================================== */
body:not([data-theme-preset]) {
  --primary: #7c3aed;
  --primary-foreground: #ffffff;
  --secondary: #f2effe;
  --secondary-foreground: #5b21b6;
  --accent: color-mix(in oklab, #7c3aed 12%, #ffffff);
  --accent-foreground: #4c1d95;
  --ring: #7c3aed;
  --background: #ffffff;
  --foreground: #14142b;
  --card: #ffffff;
  --card-foreground: #14142b;
  --popover: #ffffff;
  --popover-foreground: #14142b;
  --muted: #f6f6fb;
  --muted-foreground: #6a6a8c;
  --border: #e9e9f4;
  --input: #e9e9f4;
  --sidebar: #fbfbfe;
  --sidebar-foreground: #14142b;
  --sidebar-primary: #7c3aed;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: color-mix(in oklab, #7c3aed 9%, #ffffff);
  --sidebar-accent-foreground: #5b21b6;
  --sidebar-border: #ececf7;
  --sidebar-ring: #7c3aed;
  --chart-1: #7c3aed;
  --chart-2: #22d3ee;
  --chart-3: #a78bfa;
  --chart-4: #f472b6;
  --chart-5: #34d399;
  --radius: 0.85rem;
}

/* ==========================================================================
   PART 1b -- brand palette, dark mode (default preset only)
   ========================================================================== */
html.dark body:not([data-theme-preset]) {
  --primary: #8b5cf6;
  --primary-foreground: #ffffff;
  --secondary: #1d1b3a;
  --secondary-foreground: #dcd8ff;
  --accent: color-mix(in oklab, #8b5cf6 22%, #0b0b16);
  --accent-foreground: #e9e5ff;
  --ring: #8b5cf6;
  --background: #08080f;
  --foreground: #eceafd;
  --card: #101021;
  --card-foreground: #eceafd;
  --popover: #12122a;
  --popover-foreground: #eceafd;
  --muted: #16162e;
  --muted-foreground: #a5a3c8;
  --border: #24244a;
  --input: #24244a;
  --sidebar: #0b0b16;
  --sidebar-foreground: #eceafd;
  --sidebar-primary: #8b5cf6;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #221f45;
  --sidebar-accent-foreground: #cfc7ff;
  --sidebar-border: #1e1e3c;
  --sidebar-ring: #8b5cf6;
  --chart-1: #8b5cf6;
  --chart-2: #22d3ee;
  --chart-3: #a78bfa;
  --chart-4: #f472b6;
  --chart-5: #34d399;
}

/* ==========================================================================
   PART 1c -- low-risk polish, identical in both modes
   ========================================================================== */

/* Softer, deeper elevation than the stock flat borders. */
[data-slot="card"],
[data-slot="dialog-content"],
[data-slot="alert-dialog-content"],
[data-slot="popover-content"],
[data-slot="dropdown-menu-content"],
[data-slot="sheet-content"] {
  box-shadow: 0 1px 2px rgba(20, 20, 43, 0.04), 0 12px 30px -18px rgba(20, 20, 43, 0.22);
}

html.dark [data-slot="card"],
html.dark [data-slot="dialog-content"],
html.dark [data-slot="alert-dialog-content"],
html.dark [data-slot="popover-content"],
html.dark [data-slot="dropdown-menu-content"],
html.dark [data-slot="sheet-content"] {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 40px -24px rgba(0, 0, 0, 0.9);
}

/* Cards get a gentle lift on hover instead of a hard colour jump. */
[data-slot="card"] {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
[data-slot="card"]:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--primary) 26%, var(--border));
}

/* Brand-tinted focus ring everywhere (keeps keyboard accessibility). */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid color-mix(in oklab, var(--primary) 55%, transparent);
  outline-offset: 2px;
}

/* Signature gradient on the primary action, subtle enough for dense tables.
   Skipped for elements that already carry their own background (inline style or a
   destructive/wallet accent) so we never fight the app's own special buttons. */
[data-slot="button"].bg-primary:not(.bg-destructive):not([style*="background"]),
button.bg-primary:not(.bg-destructive):not([style*="background"]),
a.bg-primary:not(.bg-destructive):not([style*="background"]) {
  background-image: linear-gradient(180deg, color-mix(in oklab, var(--primary) 88%, #ffffff) 0%, var(--primary) 100%);
}

/* Table rows: quieter separators, clearer hover target. */
tbody tr {
  transition: background-color 0.15s ease;
}
tbody tr:hover {
  background-color: color-mix(in oklab, var(--primary) 4%, transparent);
}

/* Thin, brand-aware scrollbars (WebKit + Firefox). */
* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in oklab, var(--primary) 34%, var(--border)) transparent;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: color-mix(in oklab, var(--primary) 28%, var(--border));
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in oklab, var(--primary) 55%, var(--border));
  background-clip: content-box;
}

/* Sign-in / register layout: branded backdrop plus a glass panel.
   Selectors are deliberately narrow: the auth layout is the only place that renders a
   full-height grid (h-svh + max-w-none + relative) holding a form. Everything else,
   including every console page, is left exactly as the app renders it. */
.relative.grid.h-svh.max-w-none {
  background-image: radial-gradient(58rem 36rem at 8% -12%, color-mix(in oklab, var(--primary) 18%, transparent), transparent 62%),
    radial-gradient(48rem 32rem at 102% 6%, color-mix(in oklab, #22d3ee 14%, transparent), transparent 58%);
}
html.dark .relative.grid.h-svh.max-w-none {
  background-image: radial-gradient(58rem 36rem at 8% -12%, color-mix(in oklab, var(--primary) 30%, transparent), transparent 62%),
    radial-gradient(48rem 32rem at 102% 6%, color-mix(in oklab, #22d3ee 18%, transparent), transparent 58%);
}
.relative.grid.h-svh.max-w-none .container > div > .space-y-8 {
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.3);
  background: color-mix(in oklab, var(--card) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -46px color-mix(in oklab, var(--primary) 70%, transparent);
}

/* ==========================================================================
   PART 2 -- landing page design system (.orx-*)
   ========================================================================== */

.orx-root {
  --orx-ink: #08080f;
  --orx-ink-2: #0c0c18;
  --orx-panel: #101021;
  --orx-panel-2: #16162e;
  --orx-violet: #7c3aed;
  --orx-violet-2: #a78bfa;
  --orx-cyan: #22d3ee;
  --orx-line-dark: rgba(255, 255, 255, 0.1);
  --orx-text: #eceafd;
  --orx-text-muted: #a5a3c8;
  --orx-paper: #ffffff;
  --orx-paper-2: #f7f7fc;
  --orx-ink-text: #14142b;
  --orx-ink-muted: #5f5f80;
  --orx-line: #e9e9f4;
  --orx-shadow: 0 1px 2px rgba(20, 20, 43, 0.05), 0 18px 40px -26px rgba(20, 20, 43, 0.28);
  --orx-shadow-lg: 0 30px 70px -40px rgba(124, 58, 237, 0.55);

  display: block;
  width: 100%;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--orx-ink-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.orx-root *,
.orx-root *::before,
.orx-root *::after {
  box-sizing: border-box;
}

.orx-root h1,
.orx-root h2,
.orx-root h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: inherit;
}
.orx-root p {
  margin: 0;
}
.orx-root ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.orx-root a {
  text-decoration: none;
  color: inherit;
}

.orx-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- hero ---------------------------------------------------------------- */
.orx-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--orx-ink);
  color: var(--orx-text);
  padding: 132px 0 76px;
}
.orx-grid-bg,
.orx-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.orx-grid-bg {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(75% 65% at 50% 12%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 12%, #000 20%, transparent 78%);
}
.orx-glow {
  background: radial-gradient(46rem 30rem at 18% 6%, rgba(124, 58, 237, 0.42), transparent 62%),
    radial-gradient(40rem 26rem at 88% 18%, rgba(34, 211, 238, 0.24), transparent 60%),
    radial-gradient(60rem 40rem at 50% 108%, rgba(124, 58, 237, 0.22), transparent 65%);
}
.orx-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 1180px;
}

.orx-eyebrow {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(236, 234, 253, 0.82);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
}
.orx-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--orx-cyan);
  box-shadow: 0 0 10px var(--orx-cyan);
}

.orx-title {
  font-size: clamp(2.15rem, 5.4vw, 4.05rem);
  max-width: 21ch;
}
.orx-grad {
  background: linear-gradient(96deg, var(--orx-violet-2) 0%, var(--orx-cyan) 55%, #f0abfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.orx-sub {
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  color: rgba(236, 234, 253, 0.94);
  max-width: 30ch;
}
.orx-lead {
  color: var(--orx-text-muted);
  font-size: 15px;
  max-width: 62ch;
}

.orx-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.orx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.orx-btn:active {
  transform: translateY(1px);
}
.orx-btn-primary,
.orx-primary {
  background-image: linear-gradient(180deg, #8b5cf6 0%, var(--orx-violet) 100%);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(124, 58, 237, 0.85);
}
.orx-btn-primary:hover,
.orx-primary:hover {
  box-shadow: 0 16px 34px -14px rgba(124, 58, 237, 0.95);
  transform: translateY(-1px);
}
.orx-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--orx-text);
}
.orx-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}
.orx-link {
  color: var(--orx-cyan);
  font-size: 14.5px;
  font-weight: 600;
}
.orx-link:hover {
  text-decoration: underline;
}

.orx-code {
  margin-top: 6px;
  max-width: 660px;
  padding: 16px 18px;
  border: 1px solid var(--orx-line-dark);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 16, 33, 0.92), rgba(8, 8, 15, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.orx-code-title {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orx-text-muted);
  margin-bottom: 8px;
}
.orx-code-line {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13.5px;
  color: #d9d6ff;
  word-break: break-all;
}
.orx-code-line + .orx-code-line {
  margin-top: 6px;
  color: var(--orx-text-muted);
}

.orx-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.orx-chip {
  padding: 6px 13px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(236, 234, 253, 0.86);
  font-size: 13px;
  white-space: nowrap;
}

/* --- stats --------------------------------------------------------------- */
.orx-stats {
  background: var(--orx-ink-2);
  border-bottom: 1px solid var(--orx-line-dark);
  color: var(--orx-text);
}
.orx-stats .orx-wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.orx-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 30px 24px;
  border-left: 1px solid var(--orx-line-dark);
}
.orx-stat:first-child {
  border-left: 0;
}
.orx-stat-num {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff 10%, var(--orx-violet-2) 70%, var(--orx-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.orx-stat-label {
  color: var(--orx-text-muted);
  font-size: 13.5px;
}

/* --- generic light sections --------------------------------------------- */
.orx-section {
  padding: 88px 0;
  background: var(--orx-paper);
}
.orx-section:nth-of-type(even) {
  background: var(--orx-paper-2);
}
.orx-section-dark {
  padding: 88px 0;
  background: var(--orx-ink);
  color: var(--orx-text);
}
.orx-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 11px;
  border-radius: 99px;
  background: color-mix(in oklab, var(--orx-violet) 12%, transparent);
  color: #6d28d9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.orx-section-dark .orx-kicker {
  background: rgba(139, 92, 246, 0.18);
  color: #cfc7ff;
}
.orx-h2 {
  font-size: clamp(1.65rem, 3.3vw, 2.5rem);
  max-width: 26ch;
}
.orx-section .orx-lead,
.orx-section-dark .orx-lead {
  margin-top: 14px;
  color: var(--orx-ink-muted);
}
.orx-section-dark .orx-lead {
  color: var(--orx-text-muted);
}

.orx-grid {
  display: grid;
  gap: 20px;
  margin-top: 44px;
}
.orx-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.orx-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--orx-line);
  border-radius: 18px;
  background: var(--orx-paper);
  box-shadow: var(--orx-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.orx-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--orx-violet) 34%, var(--orx-line));
  box-shadow: var(--orx-shadow-lg);
}
.orx-card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  background-image: linear-gradient(150deg, #8b5cf6, #6d28d9);
  box-shadow: 0 10px 22px -14px rgba(124, 58, 237, 0.9);
}
.orx-card-ico svg {
  width: 22px;
  height: 22px;
}
.orx-card-title {
  font-size: 17px;
  font-weight: 700;
}
.orx-card-text {
  color: var(--orx-ink-muted);
  font-size: 14.5px;
}
.orx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.orx-tag {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--orx-paper-2);
  border: 1px solid var(--orx-line);
  color: var(--orx-ink-muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

/* --- three steps (dark) -------------------------------------------------- */
.orx-steps .orx-grid {
  margin-top: 40px;
}
.orx-step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--orx-line-dark);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 22, 46, 0.85), rgba(12, 12, 24, 0.85));
}
.orx-step-index {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(120deg, var(--orx-violet-2), var(--orx-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.orx-step .orx-card-text {
  color: var(--orx-text-muted);
}
.orx-step .orx-code {
  margin-top: 14px;
}
.orx-steps .orx-actions {
  margin-top: 34px;
}
.orx-step code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #d9d6ff;
}

/* --- clients + FAQ ------------------------------------------------------ */
.orx-clients .orx-chiprow {
  margin-top: 32px;
}
.orx-clients .orx-chip {
  border-color: var(--orx-line);
  background: var(--orx-paper);
  color: var(--orx-ink-text);
  font-size: 13.5px;
  padding: 8px 15px;
  box-shadow: 0 1px 2px rgba(20, 20, 43, 0.04);
}
.orx-faq .orx-qa {
  border: 1px solid var(--orx-line);
  border-radius: 14px;
  background: var(--orx-paper);
  padding: 0 20px;
  margin-top: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.orx-faq .orx-qa[open] {
  border-color: color-mix(in oklab, var(--orx-violet) 30%, var(--orx-line));
  box-shadow: var(--orx-shadow);
}
.orx-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.orx-faq summary::-webkit-details-marker {
  display: none;
}
.orx-faq summary::after {
  content: "+";
  flex: none;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: color-mix(in oklab, var(--orx-violet) 12%, transparent);
  color: #6d28d9;
  font-weight: 700;
  transition: transform 0.18s ease;
}
.orx-faq .orx-qa[open] summary::after {
  content: "\2212";
  transform: rotate(180deg);
}
.orx-faq .orx-qa p {
  padding: 0 0 20px;
  color: var(--orx-ink-muted);
  font-size: 14.5px;
  max-width: 92ch;
}

/* --- closing CTA -------------------------------------------------------- */
.orx-cta {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  background: linear-gradient(120deg, #6d28d9 0%, #7c3aed 42%, #22d3ee 128%);
  color: #fff;
}
.orx-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.orx-cta .orx-h2 {
  color: #fff;
  max-width: 30ch;
}
.orx-cta .orx-lead {
  color: rgba(255, 255, 255, 0.86);
  margin-top: 0;
}
.orx-cta .orx-btn-primary {
  background-image: none;
  background-color: #fff;
  color: #4c1d95;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.6);
}
.orx-cta .orx-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.orx-cta .orx-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --- footer ------------------------------------------------------------- */
.orx-footer {
  padding: 34px 0;
  border-top: 1px solid var(--orx-line);
  background: var(--orx-paper);
  color: var(--orx-ink-muted);
  font-size: 13.5px;
}
.orx-footer .orx-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.orx-brand {
  font-weight: 600;
  color: var(--orx-ink-text);
}
.orx-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}
.orx-foot-links a:hover {
  color: #6d28d9;
}
.orx-copy {
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--orx-line);
  color: color-mix(in oklab, var(--orx-ink-muted) 78%, #ffffff);
  font-size: 12.5px;
}

/* --- dark-mode pairing for the landing (site toggle is dark) ------------- */
html.dark .orx-section {
  background: #0a0a14;
  color: var(--orx-text);
}
html.dark .orx-section:nth-of-type(even) {
  background: #0c0c18;
}
html.dark .orx-h2,
html.dark .orx-card-title {
  color: var(--orx-text);
}
html.dark .orx-section .orx-lead,
html.dark .orx-card-text {
  color: var(--orx-text-muted);
}
html.dark .orx-kicker {
  background: rgba(139, 92, 246, 0.18);
  color: #cfc7ff;
}
html.dark .orx-card {
  background: var(--orx-panel);
  border-color: var(--orx-line-dark);
}
html.dark .orx-tag {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--orx-line-dark);
  color: var(--orx-text-muted);
}
html.dark .orx-clients .orx-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--orx-line-dark);
  color: var(--orx-text);
}
html.dark .orx-faq .orx-qa {
  background: var(--orx-panel);
  border-color: var(--orx-line-dark);
}
html.dark .orx-faq summary {
  color: var(--orx-text);
}
html.dark .orx-faq .orx-qa p {
  color: var(--orx-text-muted);
}
html.dark .orx-footer {
  background: #08080f;
  border-color: var(--orx-line-dark);
  color: var(--orx-text-muted);
}
html.dark .orx-brand {
  color: var(--orx-text);
}
html.dark .orx-copy {
  border-color: var(--orx-line-dark);
}

/* --- entrance motion (disabled for reduced-motion users) ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .orx-hero-inner > * {
    animation: orx-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .orx-hero-inner > *:nth-child(2) {
    animation-delay: 0.05s;
  }
  .orx-hero-inner > *:nth-child(3) {
    animation-delay: 0.1s;
  }
  .orx-hero-inner > *:nth-child(4) {
    animation-delay: 0.15s;
  }
  .orx-hero-inner > *:nth-child(5) {
    animation-delay: 0.2s;
  }
  .orx-hero-inner > *:nth-child(6) {
    animation-delay: 0.25s;
  }
}
@keyframes orx-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   PART 3 -- home page embed
   The home page renders its content inside a Shadow DOM (`.custom-home-content`
   is a shadow host). The app clones <head> stylesheets into that shadow root, so
   this file is available there too. The embed block below reuses the host page's
   own design tokens (--fg / --fg-dim / --card / --line / --line-strong / --mono),
   which inherit into the shadow tree, so the added sections match the existing
   landing in both light and dark mode. Every var() has a light-mode fallback.
   ========================================================================== */

.orx-embed {
  font-family: var(--sans, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
  color: var(--fg, #111528);
  line-height: 1.62;
}
.orx-embed .orx-sec {
  margin-top: 44px;
}
.orx-embed .orx-wrap {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 22px;
}
.orx-embed h2 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.3;
  color: var(--fg, #111528);
}
.orx-embed .orx-sub {
  margin: 0 0 22px;
  color: var(--fg-dim, #5a6480);
  font-size: 14px;
}
.orx-embed .orx-grid {
  display: grid;
  gap: 14px;
}
.orx-embed .orx-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.orx-embed .orx-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* --- live metric cells ---------------------------------------------------- */
.orx-embed .orx-metric {
  padding: 18px 19px;
  border: 1px solid var(--line, rgba(16, 20, 38, 0.1));
  border-radius: 15px;
  background: var(--card, rgba(255, 255, 255, 0.86));
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.orx-embed .orx-metric:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong, rgba(16, 20, 38, 0.2));
}
.orx-embed .orx-num {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(100deg, #22d3ee, #3b82f6 52%, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.orx-embed .orx-num-label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--fg-dim, #5a6480);
}

/* --- model family cards --------------------------------------------------- */
.orx-embed .orx-card {
  padding: 20px;
  border: 1px solid var(--line, rgba(16, 20, 38, 0.1));
  border-radius: 15px;
  background: var(--card, rgba(255, 255, 255, 0.86));
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.orx-embed .orx-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong, rgba(16, 20, 38, 0.2));
}
.orx-embed .orx-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--fg, #111528);
}
.orx-embed .orx-card p {
  margin: 0;
  font-size: 13px;
  color: var(--fg-dim, #5a6480);
}
.orx-embed .orx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.orx-embed .orx-tag {
  padding: 4px 9px;
  border: 1px solid var(--line, rgba(16, 20, 38, 0.1));
  border-radius: 8px;
  font-family: var(--mono, ui-monospace, Menlo, Consolas, monospace);
  font-size: 11.5px;
  color: var(--fg-dim, #5a6480);
  white-space: nowrap;
}

/* --- FAQ ------------------------------------------------------------------ */
.orx-embed .orx-qa {
  border: 1px solid var(--line, rgba(16, 20, 38, 0.1));
  border-radius: 15px;
  background: var(--card, rgba(255, 255, 255, 0.86));
  padding: 0 20px;
  margin-top: 12px;
  transition: border-color 0.2s ease;
}
.orx-embed .orx-qa[open] {
  border-color: var(--line-strong, rgba(16, 20, 38, 0.2));
}
.orx-embed .orx-qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg, #111528);
  cursor: pointer;
  list-style: none;
}
.orx-embed .orx-qa summary::-webkit-details-marker {
  display: none;
}
.orx-embed .orx-qa summary::after {
  content: "+";
  flex: none;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid var(--line, rgba(16, 20, 38, 0.1));
  font-size: 13px;
  color: var(--fg-dim, #5a6480);
}
.orx-embed .orx-qa[open] summary::after {
  content: "\2212";
}
.orx-embed .orx-qa p {
  margin: 0;
  padding: 0 0 18px;
  font-size: 13.5px;
  color: var(--fg-dim, #5a6480);
  max-width: 88ch;
}

/* --- inline link --------------------------------------------------------- */
.orx-embed .orx-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--violet, #7c3aed);
  text-decoration: none;
}
.orx-embed .orx-more:hover {
  text-decoration: underline;
}

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .orx-embed .orx-cols-3,
  .orx-embed .orx-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .orx-embed .orx-cols-3,
  .orx-embed .orx-cols-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   PART 2b -- responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .orx-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .orx-stats .orx-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .orx-stat:nth-child(3) {
    border-left: 0;
  }
}
@media (max-width: 720px) {
  .orx-hero {
    padding: 116px 0 62px;
  }
  .orx-section,
  .orx-section-dark {
    padding: 64px 0;
  }
  .orx-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .orx-stats .orx-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .orx-stat {
    border-left: 0;
    border-top: 1px solid var(--orx-line-dark);
    padding: 22px 24px;
  }
  .orx-stat:first-child {
    border-top: 0;
  }
  .orx-foot-links {
    margin-left: 0;
  }
  .orx-cta {
    padding: 56px 0;
  }
}

/* ==========================================================================
   PART 4 -- background atmosphere
   The home landing ships an aurora + starfield background that was designed for
   a DARK page: white star dots and blurred colour blobs simply disappear on the
   near-white light background (measured: 85% of the hero was flat #f0f0f8).
   These rules only apply while the page is in LIGHT mode -- inside the shadow
   tree the app marks dark mode with a `.dark` wrapper around `.oc`, so
   `:not(.dark) > .oc ...` matches light mode exactly and leaves dark mode alone.
   Purely decorative: no layout, no DOM, nothing that can break content.
   ========================================================================== */

/* --- 4a) stronger aurora blobs on light backgrounds --------------------- */
:not(.dark) > .oc .oc-aurora {
  opacity: 0.62;
}
:not(.dark) > .oc .oc-aurora.a {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.82), transparent 68%);
}
:not(.dark) > .oc .oc-aurora.b {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.76), transparent 68%);
}
:not(.dark) > .oc .oc-aurora.c {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.5), transparent 70%);
}

/* --- 4b) a soft brand crown glow behind the hero ------------------------ */
:not(.dark) > .oc .oc-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 38% at 50% -6%, rgba(124, 58, 237, 0.2), transparent 62%),
    radial-gradient(42% 28% at 10% 6%, rgba(34, 211, 238, 0.2), transparent 60%),
    radial-gradient(44% 30% at 94% 3%, rgba(59, 130, 246, 0.16), transparent 60%);
}

/* --- 4c) starfield that survives a light background --------------------- */
/* white dots become semi-transparent indigo/cyan/violet dots */
:not(.dark) > .oc .oc-stars.s1 {
  opacity: 0.72;
  background-image:
    radial-gradient(1.6px 1.6px at 18px 30px, rgba(46, 58, 102, 0.55), transparent),
    radial-gradient(1.2px 1.2px at 92px 78px, rgba(8, 145, 178, 0.62), transparent),
    radial-gradient(1.4px 1.4px at 150px 22px, rgba(46, 58, 102, 0.46), transparent),
    radial-gradient(1.1px 1.1px at 210px 120px, rgba(124, 58, 237, 0.58), transparent),
    radial-gradient(1.3px 1.3px at 60px 160px, rgba(46, 58, 102, 0.4), transparent);
}
:not(.dark) > .oc .oc-stars.s2 {
  opacity: 0.6;
  background-image:
    radial-gradient(2px 2px at 40px 60px, rgba(46, 58, 102, 0.42), transparent),
    radial-gradient(1.6px 1.6px at 180px 40px, rgba(219, 39, 119, 0.45), transparent),
    radial-gradient(1.8px 1.8px at 260px 170px, rgba(8, 145, 178, 0.5), transparent);
}
:not(.dark) > .oc .oc-stars.s4 {
  opacity: 0.7;
  background-image:
    radial-gradient(2.6px 2.6px at 30% 18%, rgba(46, 58, 102, 0.5), transparent),
    radial-gradient(2.2px 2.2px at 72% 34%, rgba(8, 145, 178, 0.55), transparent),
    radial-gradient(2.4px 2.4px at 46% 66%, rgba(124, 58, 237, 0.5), transparent),
    radial-gradient(2px 2px at 86% 78%, rgba(46, 58, 102, 0.4), transparent);
}

/* --- 4d) grid + a gentle bottom fade so the page is not flat ----------- */
:not(.dark) > .oc .oc-grid {
  opacity: 1;
  background-image:
    linear-gradient(rgba(37, 44, 90, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 44, 90, 0.13) 1px, transparent 1px);
}
:not(.dark) > .oc .oc-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 72%, rgba(124, 58, 237, 0.07) 100%);
}

/* --- 4f) native UI (scrollbars, form controls, autofill) follow the same
   light/dark resolution the app picked from the OS preference ----------- */
html {
  color-scheme: light;
}
html.dark {
  color-scheme: dark;
}

/* --- 4g) sign-in / register: raise the branded backdrop to a visible
   strength (the first version used 18%/14% alpha, measured ~2% tinted pixels,
   i.e. invisible on screen) -------------------------------------------- */
.relative.grid.h-svh.max-w-none {
  background-image:
    radial-gradient(58rem 36rem at 8% -12%, color-mix(in oklab, var(--primary) 34%, transparent), transparent 62%),
    radial-gradient(48rem 32rem at 102% 6%, color-mix(in oklab, #22d3ee 26%, transparent), transparent 58%),
    radial-gradient(46rem 30rem at 50% 110%, color-mix(in oklab, #a855f7 20%, transparent), transparent 62%);
}
html.dark .relative.grid.h-svh.max-w-none {
  background-image:
    radial-gradient(58rem 36rem at 8% -12%, color-mix(in oklab, var(--primary) 42%, transparent), transparent 62%),
    radial-gradient(48rem 32rem at 102% 6%, color-mix(in oklab, #22d3ee 30%, transparent), transparent 58%),
    radial-gradient(46rem 30rem at 50% 110%, color-mix(in oklab, #a855f7 26%, transparent), transparent 62%);
}
.relative.grid.h-svh.max-w-none::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 20, 38, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 20, 38, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 82% 62% at 50% 0%, #000 12%, transparent 74%);
  mask-image: radial-gradient(ellipse 82% 62% at 50% 0%, #000 12%, transparent 74%);
}
html.dark .relative.grid.h-svh.max-w-none::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
}

/* ==========================================================================
   PART 5 -- full-page home mount (used inside the Shadow DOM)
   The loader can mount a complete landing fragment instead of the small embed.
   Inside a shadow tree there is no `html` ancestor, so the `html.dark .orx-*`
   rules above can never match; the loader therefore marks the fragment root with
   `.orx-dark` and the token overrides below flip the whole design (every .orx-*
   rule reads these variables, so nothing else has to be duplicated).
   ========================================================================== */

.orx-root.orx-full {
  display: block;
  border-radius: 20px;      /* same corner radius as the site's own landing card */
  overflow: hidden;
  background: var(--orx-paper);
}

.orx-root.orx-dark {
  --orx-paper: #0a0a14;
  --orx-paper-2: #0c0c18;
  --orx-ink-text: #eceafd;
  --orx-ink-muted: #a5a3c8;
  --orx-line: rgba(255, 255, 255, 0.1);
  --orx-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  color: var(--orx-ink-text);
}
.orx-root.orx-dark.orx-full {
  background: #0a0a14;
}
.orx-root.orx-dark .orx-section {
  background: var(--orx-paper);
}
.orx-root.orx-dark .orx-section:nth-of-type(even) {
  background: var(--orx-paper-2);
}
.orx-root.orx-dark .orx-h2,
.orx-root.orx-dark .orx-card-title {
  color: var(--orx-text);
}
.orx-root.orx-dark .orx-lead,
.orx-root.orx-dark .orx-card-text {
  color: var(--orx-text-muted);
}
.orx-root.orx-dark .orx-kicker {
  background: rgba(139, 92, 246, 0.18);
  color: #cfc7ff;
}
.orx-root.orx-dark .orx-card {
  background: var(--orx-panel);
  border-color: var(--orx-line);
}
.orx-root.orx-dark .orx-tag {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--orx-line);
  color: var(--orx-text-muted);
}
.orx-root.orx-dark .orx-clients .orx-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--orx-line);
  color: var(--orx-text);
}
.orx-root.orx-dark .orx-faq .orx-qa {
  background: var(--orx-panel);
  border-color: var(--orx-line);
}
.orx-root.orx-dark .orx-faq summary {
  color: var(--orx-text);
}
.orx-root.orx-dark .orx-faq .orx-qa p {
  color: var(--orx-text-muted);
}
.orx-root.orx-dark .orx-footer {
  background: #08080f;
  border-color: var(--orx-line);
  color: var(--orx-text-muted);
}
.orx-root.orx-dark .orx-brand {
  color: var(--orx-text);
}
.orx-root.orx-dark .orx-copy {
  border-color: var(--orx-line);
}
