/* ===========================================================================
   The public site.

   The suite's ramp, so /brand.css re-skins it with the builder, and the same
   chrome the Solution Analyzer's site has: a header that fades in over the hero,
   a drawer on a phone, a language panel and the light and dark switch. What
   differs is the finish, which matches the builder: Inter, rounded cards, a
   dark hero with a little light in it.
   =========================================================================== */

:root {
  --ramp-blue-50: #edecf6;
  --ramp-blue-100: #d8d4ec;
  --ramp-blue-200: #c4bcf5;
  --ramp-blue-300: #a699ef;
  --ramp-blue-400: #7c69e8;
  --ramp-blue-500: #5846bf;
  --ramp-blue-600: #3b2a9e;
  --ramp-blue-700: #2c1f7c;
  --ramp-blue-800: #251a6e;
  --ramp-blue-900: #181148;
  --ramp-lightblue-300: #ada2ec;
  --ramp-lightblue-600: #6a56dd;
  --ramp-turquoise-400: #5cddc7;
  --ramp-turquoise-600: #2ed3b7;
  --ramp-ink-900: #1e1b3a;
  --ramp-hover-fill: #6a56dd;
  --ramp-hover-ink: #ffffff;

  --surface: #ffffff;
  --surface-tint: #f6f5fc;
  --surface-card: #ffffff;
  --surface-ink: #120d36;
  --text-high: #17142f;
  --text-mid: #4a4766;
  --text-soft: #7b7896;
  --border: #e6e3f2;
  --on-dark-high: #ffffff;
  --on-dark-mid: #c9c4ea;
  --accent: var(--ramp-blue-500);
  --shadow: 0 1px 2px rgba(20, 16, 52, .05), 0 12px 32px -12px rgba(20, 16, 52, .16);
  --shadow-lg: 0 30px 80px -24px rgba(12, 8, 40, .45);
  --header-h: 68px;
  --shell: 1200px;
  --pad-x: clamp(18px, 5vw, 64px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface: #0d0b1f;
    --surface-tint: #131029;
    --surface-card: #17142f;
    --surface-ink: #08061a;
    --text-high: #efedfb;
    --text-mid: #b8b4d4;
    --text-soft: #8a86a8;
    --border: #28244a;
    --accent: var(--ramp-blue-300);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #0d0b1f;
  --surface-tint: #131029;
  --surface-card: #17142f;
  --surface-ink: #08061a;
  --text-high: #efedfb;
  --text-mid: #b8b4d4;
  --text-soft: #8a86a8;
  --border: #28244a;
  --accent: var(--ramp-blue-300);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.65; color: var(--text-mid); background: var(--surface); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
h1, h2, h3 { margin: 0; color: var(--text-high); letter-spacing: -.025em; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--pad-x); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
:focus-visible { outline: 3px solid var(--ramp-turquoise-400); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------------ chrome -- */
.topbar {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--header-h);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--pad-x);
  color: #fff; background: transparent; transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.topbar.is-stuck { background: rgba(18, 13, 54, .86); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand img { height: 26px; width: auto; }
.brand span { padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .28); font-size: 14px; font-weight: 600; opacity: .9; }
.topbar nav { display: flex; gap: 22px; margin-left: auto; }
.topbar nav a { font-size: 14px; font-weight: 500; text-decoration: none; opacity: .82; transition: opacity .15s ease; }
.topbar nav a:hover { opacity: 1; }
.utility { display: flex; align-items: center; gap: 10px; }
.lang-button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.theme-toggle { position: relative; display: inline-flex; align-items: center; justify-content: space-between; width: 62px; height: 34px; padding: 0 9px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
.theme-toggle .icon { position: relative; z-index: 1; display: grid; opacity: .6; }
.theme-toggle[aria-checked="false"] .sun, .theme-toggle[aria-checked="true"] .moon { opacity: 1; color: var(--ramp-blue-800); }
.theme-toggle .ball { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.3, .7, .3, 1); }
.theme-toggle[aria-checked="true"] .ball { transform: translateX(28px); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 12px; font-size: 15px; font-weight: 600; text-decoration: none; transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease; }
.button:active { transform: translateY(1px); }
.button--primary { background: linear-gradient(135deg, var(--ramp-blue-400), var(--ramp-blue-600)); color: #fff; box-shadow: 0 10px 30px -10px var(--ramp-blue-500), inset 0 1px 0 rgba(255, 255, 255, .18); }
.button--primary:hover { background: var(--ramp-hover-fill); color: var(--ramp-hover-ink); }
.button--ghost { border: 1px solid rgba(255, 255, 255, .32); color: #fff; }
.button--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.utility .button { min-height: 36px; padding: 0 16px; font-size: 13.5px; border-radius: 10px; }
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; margin-left: auto; padding: 0 10px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); cursor: pointer; }
.burger span { display: block; height: 2px; border-radius: 2px; background: #fff; }
.drawer { position: fixed; z-index: 45; inset: var(--header-h) 0 0 0; display: none; flex-direction: column; justify-content: space-between; padding: 20px var(--pad-x) 28px; background: rgba(14, 10, 44, .97); color: #fff; }
.drawer.is-open { display: flex; }
.drawer-links { display: grid; gap: 4px; }
.drawer-links a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 18px; font-weight: 500; text-decoration: none; }
.drawer-links .button { margin-top: 18px; border-bottom: 0; }
.drawer-floor { display: flex; justify-content: space-between; }
.lang-menu { position: fixed; z-index: 60; inset: 0; display: none; place-items: center; padding: 20px; background: rgba(8, 6, 24, .6); backdrop-filter: blur(4px); }
.lang-menu.is-open { display: grid; }
.lang-menu-panel { width: min(360px, 100%); padding: 10px; background: var(--surface-card); color: var(--text-high); border-radius: 18px; box-shadow: var(--shadow-lg); }
.lang-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 12px; font-weight: 700; }
.lang-menu-close { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: 22px; cursor: pointer; }
.lang-option { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 10px; text-decoration: none; }
.lang-option:hover, .lang-option[aria-current="true"] { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.badge { display: grid; place-items: center; width: 32px; height: 24px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.tick { margin-left: auto; color: var(--accent); }

/* -------------------------------------------------------------------- hero -- */
.hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(48px, 9vh, 110px)) 0 clamp(60px, 10vh, 120px); background: radial-gradient(1200px 520px at 85% 0%, rgba(124, 105, 232, .38), transparent 60%), linear-gradient(160deg, #1a1150 0%, #120d36 55%, #0b0824 100%); color: var(--on-dark-mid); }
.hero-glow { position: absolute; inset: auto -10% -40% 30%; height: 70%; background: radial-gradient(closest-side, rgba(46, 211, 183, .22), transparent); pointer-events: none; }
.hero h1 { color: #fff; font-size: clamp(38px, 4.4vw, 58px); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; }
.hero .eyebrow { color: var(--ramp-turquoise-400); }
.hero .lede { max-width: 56ch; margin-top: 22px; font-size: clamp(17px, 1.5vw, 19px); color: var(--on-dark-mid); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: grid; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; font-size: 15px; }
.hero-points li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 10px; border-radius: 50%; background: rgba(46, 211, 183, .18); color: var(--ramp-turquoise-400); font-size: 11px; font-weight: 800; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.hero-visual img { display: block; width: 100%; border-radius: 16px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08); }
.hero .hero-visual { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transform-origin: left center; }

/* --------------------------------------------------------------- sections -- */
section { padding: clamp(72px, 11vh, 128px) 0; }
.on-tint { background: var(--surface-tint); }
.on-ink { background: linear-gradient(160deg, #1a1150 0%, #120d36 100%); color: var(--on-dark-mid); }
.on-ink h2 { color: #fff; }
.on-ink .eyebrow { color: var(--ramp-turquoise-400); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2, section h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 750; }
.section-head p { margin-top: 16px; font-size: 18px; }
.body { margin-top: 18px; font-size: 17.5px; }
.ticks { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 12px; }
.ticks li::before { content: "✓"; flex: 0 0 22px; display: grid; place-items: center; height: 22px; margin-top: 3px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 12px; font-weight: 800; }
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 28px; background: var(--surface-card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; font-size: 19px; font-weight: 700; }
.card p { font-size: 15.5px; }
.card--accent { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--surface-card)), var(--surface-card)); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); font-size: 20px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 30px 28px; background: var(--surface-card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); }
.step h3 { margin: 18px 0 10px; font-size: 20px; font-weight: 700; }
.step p { font-size: 15.5px; }
.step-number { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--ramp-blue-400), var(--ramp-blue-600)); color: #fff; font-weight: 800; }

/* The two linked rows, drawn rather than screenshotted, so it reads in both themes. */
.flow { display: grid; justify-items: center; gap: 0; margin: 0; padding: clamp(24px, 4vw, 40px); background: var(--surface-card); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); }
.flow-card { position: relative; display: grid; gap: 4px; min-width: 0; padding: 18px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.flow-card strong { color: var(--text-high); font-size: 17px; }
.flow-card small { color: var(--text-soft); font-size: 13.5px; }
.flow-form { width: min(320px, 100%); }
.flow-tag { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.flow-lines { display: grid; gap: 7px; margin-top: 8px; }
.flow-lines span { height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--text-soft) 22%, transparent); }
.flow-lines .short { width: 40%; height: 14px; background: var(--accent); }
.flow-arrow { width: 2px; height: 40px; background: linear-gradient(var(--border), var(--accent)); }
.flow-pair { display: flex; align-items: center; gap: 0; width: 100%; }
.flow-pair .flow-card { flex: 1; }
.flow-link { position: relative; flex: 0 0 76px; height: 2px; background: var(--accent); }
.flow-link span { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; white-space: nowrap; }
.flow-step { position: absolute; top: -12px; left: -12px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; }
.flow figcaption { margin-top: 26px; color: var(--text-soft); font-size: 14px; }

.snippet { margin: 24px 0 0; padding: 18px 20px; overflow-x: auto; border-radius: 16px; background: #120d36; color: #e4e0ff; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13.5px; line-height: 1.7; box-shadow: var(--shadow); }
.snippet b { color: var(--ramp-turquoise-400); font-weight: 600; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { display: grid; gap: 6px; padding: 28px; background: var(--surface-card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); }
.stat strong { color: var(--text-high); font-size: clamp(40px, 5vw, 56px); font-weight: 800; letter-spacing: -.04em; line-height: 1; background: linear-gradient(135deg, var(--ramp-blue-400), var(--ramp-turquoise-600)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: 14.5px; }
.try-form { padding: clamp(8px, 2vw, 16px); }

.closing { text-align: center; background: radial-gradient(900px 400px at 50% 100%, rgba(124, 105, 232, .3), transparent 70%), linear-gradient(160deg, #1a1150 0%, #120d36 100%); color: var(--on-dark-mid); }
.closing h2 { color: #fff; }
.closing p { max-width: 56ch; margin: 16px auto 0; font-size: 18px; }
.closing .actions { justify-content: center; }

footer { padding: 28px 0; background: #0b0824; color: #8f8ab3; font-size: 13.5px; }
footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: #c9c4ea; text-decoration: none; }
footer a:hover { text-decoration: underline; }

.page-band { padding: calc(var(--header-h) + 64px) 0 56px; background: linear-gradient(160deg, #1a1150 0%, #120d36 100%); color: var(--on-dark-mid); }
.page-band h1 { color: #fff; font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; }
.page-band .eyebrow { color: var(--ramp-turquoise-400); }
.page-band .lede { margin-top: 14px; font-size: 18px; }
.prose { max-width: 760px; }
.prose h2 { margin: 36px 0 10px; font-size: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 12px; }

/* --------------------------------------------------------------- reveals -- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 1060px) {
  .topbar nav { display: none; }
  .utility { margin-left: auto; }
}
@media (max-width: 900px) {
  .split, .grid--3, .steps { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .hero .hero-visual { transform: none; }
  .utility { display: none; }
  .burger { display: inline-flex; }
  .flow-pair { flex-direction: column; }
  .flow-link { flex: 0 0 50px; width: 2px; height: 50px; }
  .flow-pair .flow-card { width: 100%; }
  .flow-link span { top: 50%; left: 14px; transform: translateY(-50%); }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .brand span { display: none; }
}
