/* ============================================================
   Rylo AI - landing page styles
   Palette derived from the product screenshots (navy + royal blue)
   ============================================================ */
:root {
  --ground: #F6F8FC;
  --surface: #FFFFFF;
  --text: #0E1E38;
  --muted: #4A5568;
  --muted-2: #6B7A90;
  --accent: #3B6EF6;
  --accent-deep: #1E50D8;
  --glow: #6E9BFF;
  --navy: #0F1D33;
  --navy-2: #16243C;
  --line: #E5EAF2;
  --ok: #2BB673;
  --warn: #F5A524;

  /* brand gradient - derived from the two blues in the Rylo logo */
  --grad-brand: linear-gradient(135deg, #6E9BFF 0%, #3B6EF6 100%);
  --grad-brand-hover: linear-gradient(135deg, #5B8DEF 0%, #2453D8 100%);
  --grad-text: linear-gradient(110deg, #C3D6FF 0%, #6E9BFF 100%);

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Consolas', monospace;

  --container: 1180px;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 29, 51, .06), 0 1px 3px rgba(15, 29, 51, .04);
  --shadow-md: 0 10px 30px rgba(15, 29, 51, .08);
  --shadow-lg: 0 24px 60px rgba(15, 29, 51, .16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* accent (not glow): meets the 3:1 non-text contrast on both the light page and
   the dark navy sections, so keyboard focus is always clearly visible */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Eyebrow / shared ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .18em;
  font-weight: 600;
  /* deep blue, not mid-blue: small all-caps mono needs >=4.5:1 on light bg */
  color: var(--accent-deep);
  margin: 0 0 14px;
}
.eyebrow--light { color: var(--glow); }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot--live { background: #38D39F; box-shadow: 0 0 0 0 rgba(56, 211, 159, .6); animation: livePulse 2s ease-out infinite; }
.dot--ok { background: var(--ok); }
.dot--wait { background: var(--warn); }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(56, 211, 159, .5); } 70% { box-shadow: 0 0 0 7px rgba(56, 211, 159, 0); } 100% { box-shadow: 0 0 0 0 rgba(56, 211, 159, 0); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 11px 20px; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 14px 26px; font-size: 1.02rem; }
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 22px rgba(59, 110, 246, .38); }
.btn--primary:hover { background: var(--grad-brand-hover); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(59, 110, 246, .45); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
/* secondary on dark bg: a clearly visible outline + faint fill, with a solid
   hover-fill — never a near-invisible hairline */
.btn--ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .16); border-color: #fff; color: #fff; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  padding: 0 16px;
  pointer-events: none; /* only the floating pill itself is interactive */
}
.nav__inner {
  display: flex; align-items: center; gap: 24px; height: 60px;
  pointer-events: auto;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(15, 29, 51, .09);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 29, 51, .12), inset 0 1px 0 rgba(255, 255, 255, .7);
}

.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; }
.brand__mark { display: inline-grid; place-items: center; }
.brand__logo { width: 28px; height: 28px; object-fit: contain; display: block; }
.brand--light .brand__logo { width: 28px; height: 28px; }
.brand__name { font-size: 1.18rem; letter-spacing: -.02em; color: var(--text); }
.brand__ai { color: var(--accent); margin-left: 2px; }
.brand--light .brand__name { color: #F2F6FF; }
.brand--light .brand__ai { color: var(--glow); }

.nav__links { display: flex; gap: 26px; margin-left: 12px; }
.nav__links a { font-size: .92rem; font-weight: 500; color: var(--muted); transition: color .18s; }
.nav__links a:hover { color: var(--text); }

.nav__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.lang__btn {
  font-family: var(--font-mono); font-size: .76rem; font-weight: 600; letter-spacing: .04em;
  padding: 7px 11px; border: 0; background: transparent; color: var(--muted-2); cursor: pointer; transition: background .18s, color .18s;
}
.lang__btn.is-active { background: var(--accent); color: #fff; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { display: none; pointer-events: auto; flex-direction: column; gap: 4px; max-width: var(--container); margin: 10px auto 0; padding: 10px 18px 16px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 36px rgba(15, 29, 51, .16); }
.nav__mobile a { padding: 12px 4px; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--line); }
.nav__mobile a:last-child { border: 0; margin-top: 8px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: var(--ground); color: var(--text); overflow: hidden; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.hero__bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, var(--surface) 0%, var(--ground) 100%);
}
/* hero melts straight into the page below - no hard seam */
.hero + .section { border-top: 0; }
.hero__orb { display: none; }

/* (hero center glow removed per request) */

/* ---------- Subpage header (clears the fixed navbar) ---------- */
.subpage-head { padding-top: 128px; padding-bottom: 0; text-align: center; border-top: 0; }
.subpage-head .section__head { max-width: 720px; margin: 0 auto 20px; }
.subpage-head .eyebrow { justify-content: center; }

.hero .hero__inner { position: relative; z-index: 2; padding: 134px 24px 104px; text-align: center; min-height: clamp(500px, 66vh, 700px); display: flex; flex-direction: column; justify-content: center; align-items: center; }
.hero__copy { max-width: 760px; margin: 0 auto; }
.hero__pill { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #C6D5F2; background: rgba(110, 155, 255, .1); border: 1px solid rgba(110, 155, 255, .26); padding: 7px 14px; border-radius: 999px; margin-bottom: 26px; }
.hero__pill-dot { width: 7px; height: 7px; border-radius: 50%; background: #6E9BFF; box-shadow: 0 0 8px #6E9BFF; }
/* min-height reserves room for the tallest wrap (up to 3 lines) so switching
   NL<->EN never changes the hero's height when the text wraps differently */
.hero__title { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; margin: 0 0 22px; min-height: 3.3em; }
.hero__accent { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero__sub { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 600px; margin: 0 auto 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 18px; }
.hero__note { font-family: var(--font-mono); font-size: .8rem; color: #7689A1; }

/* ---------- Hero product window (live editor) ---------- */
.hero__product { display: none; position: relative; max-width: 1040px; margin: 58px auto 0; }
.hero__product-glow { position: absolute; inset: -10% -2% 2%; z-index: 0; background: radial-gradient(58% 60% at 50% 32%, rgba(86, 124, 255, .30), transparent 70%); filter: blur(54px); }
.appwin--hero { position: relative; z-index: 1; box-shadow: 0 40px 90px rgba(4, 10, 26, .6), 0 10px 26px rgba(4, 10, 26, .4); border-color: rgba(120, 150, 210, .22); }
.appwin__chip { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: .68rem; color: #BFD0EE; background: rgba(59, 110, 246, .16); border: 1px solid rgba(110, 155, 255, .3); padding: 4px 10px; border-radius: 999px; }
.editor__canvas--hero { min-height: 286px; }

/* light flow inside the hero editor */
.hflow-svg { width: 100%; height: auto; display: block; }
.hflow-edges path { stroke: #9DB1D6; stroke-width: 2.2; fill: none; stroke-dasharray: 440; stroke-dashoffset: 440; animation: drawIn 1s ease forwards; }
.hflow-edges path:nth-child(1) { animation-delay: .1s; }
.hflow-edges path:nth-child(2) { animation-delay: .3s; }
.hflow-edges path:nth-child(3) { animation-delay: .5s; }
.hflow-edges path:nth-child(4) { animation-delay: .7s; }
.hflow-edges path:nth-child(5) { animation-delay: .9s; }
.hflow-edges path:nth-child(6) { animation-delay: .7s; }
.hflow-edges .hflow-edge--muted { stroke: #C2CCDC; }
.hflow-start { fill: #E9F8F1; stroke: #29B36B; stroke-width: 2.5; }
.hflow-end { fill: #EAF0FB; stroke: #2F6BF6; stroke-width: 2.5; }
.hflow-end--muted { fill: #EEF1F6; stroke: #9AA7BC; }
.hflow-rect { fill: #fff; stroke: #CFD9EA; stroke-width: 1.5; }
.hflow-agent .hflow-rect { animation: nodeBreathLight 3s ease-in-out infinite; animation-delay: var(--d, 0s); }
.hflow-gate { fill: #fff; stroke: #F2A93C; stroke-width: 1.8; }
.hflow-gatex { fill: none; stroke: #F2A93C; stroke-width: 2; stroke-linecap: round; }
.hflow-tag { fill: #2F6BF6; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 1.3px; text-anchor: middle; }
.hflow-name { fill: #16233B; font-family: var(--font-display); font-size: 16px; font-weight: 600; text-anchor: middle; }
.hflow-label { fill: #7A8AA6; font-family: var(--font-mono); font-size: 12px; text-anchor: middle; }
.hflow-elabel { fill: #8A98B2; font-family: var(--font-mono); font-size: 12px; text-anchor: middle; }
@keyframes nodeBreathLight { 0%, 100% { stroke: #CFD9EA; } 50% { stroke: #9CB6F2; } }
@keyframes drawIn { to { stroke-dashoffset: 0; } }

/* ============================================================
   SECTIONS (shared) - left-aligned, editorial
   ============================================================ */
.section { padding: 92px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.cta { scroll-margin-top: 90px; }
.section--alt { background: var(--surface); }
.section__head { max-width: 760px; margin: 0 0 46px; }
.section .eyebrow { display: inline-flex; align-items: center; }
.section .eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--grad-brand); border-radius: 50%; margin-right: 10px; }
.section__title { font-size: clamp(1.85rem, 3.6vw, 2.7rem); letter-spacing: -.028em; }
.section__lead { color: var(--muted); font-size: 1.08rem; margin-top: 16px; max-width: 58ch; }

/* ---------- Features: card grid ---------- */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
/* individual cards (was a hairline-separated grid that read as flat/empty):
   own border + radius + resting shadow, with a clear lift on hover */
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px 30px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.spec:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(59, 110, 246, .35); }
.spec:hover { background: #FBFCFF; }
.spec__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.spec__ico { color: #fff; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--grad-brand); box-shadow: 0 6px 16px rgba(59, 110, 246, .3); }
.spec__ico svg { width: 22px; height: 22px; }
.spec__tag { font-family: var(--font-mono); font-size: .67rem; letter-spacing: .12em; color: var(--muted-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.spec h3 { font-size: 1.18rem; margin-bottom: 9px; letter-spacing: -.01em; }
.spec p { color: var(--muted); }

/* ---------- How it works: connected pipeline ---------- */
.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.pstep { padding-right: 30px; }
.pstep__head { display: flex; align-items: center; margin-bottom: 22px; }
.pstep__node { flex: none; width: 46px; height: 46px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; font-size: 1rem; color: var(--accent); background: var(--surface); border: 1.5px solid var(--accent); border-radius: 12px; }
.pstep__line { flex: 1; height: 2px; margin-left: 14px; background: linear-gradient(90deg, var(--accent), rgba(59, 110, 246, .12)); position: relative; }
.pstep__line::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); border-left: 7px solid var(--accent); border-top: 5px solid transparent; border-bottom: 5px solid transparent; opacity: .55; }
.pstep:last-child .pstep__line { display: none; }
.pstep h3 { font-size: 1.18rem; margin-bottom: 9px; letter-spacing: -.01em; }
.pstep p { color: var(--muted); max-width: 32ch; }

/* ---------- Use cases: flow recipes ---------- */
.recipes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.recipe { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 28px 24px; transition: border-color .2s ease; }
.recipe:hover { border-color: rgba(59, 110, 246, .4); }
.recipe h3 { font-size: 1.24rem; margin-bottom: 8px; letter-spacing: -.01em; }
.recipe p { color: var(--muted); margin-bottom: 22px; }
.recipe__flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill { font-family: var(--font-mono); font-size: .78rem; color: var(--text); background: var(--ground); border: 1px solid var(--line); padding: 7px 12px; border-radius: 8px; }
.pill--trigger { color: var(--accent-deep); background: rgba(59, 110, 246, .08); border-color: rgba(59, 110, 246, .28); }
.pill--out { color: #1C7A52; background: rgba(43, 182, 115, .1); border-color: rgba(43, 182, 115, .32); }
.pill__arrow { color: var(--muted-2); font-family: var(--font-mono); }

/* ---------- Flow gallery: dark, horizontally scrollable (Raycast-style) ---------- */
.flows { background: var(--navy); color: #EAF0FB; border-top: 0; position: relative; overflow: hidden; }
.flows + .section { border-top: 0; }
.flows::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(820px 340px at 16% -10%, rgba(59, 110, 246, .20), transparent 60%); }
.flows .container { position: relative; z-index: 1; }
.flows__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; flex-wrap: wrap; margin-bottom: 32px; }
.flows__intro .eyebrow { color: var(--glow); }
.flows__intro .section__title { color: #F2F6FF; }
.flows__tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); border-radius: 999px; }
.flows__tab { font-family: var(--font-body); font-size: .86rem; font-weight: 500; color: rgba(235, 238, 246, .62); background: none; border: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: color .2s ease, background .2s ease; white-space: nowrap; }
.flows__tab:hover { color: #fff; }
.flows__tab.is-active { color: #fff; background: rgba(255, 255, 255, .12); }

.flows__scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 326px); gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 4px 16px; margin: 0 -4px; scrollbar-width: none; -ms-overflow-style: none; cursor: grab; }
.flows__scroller::-webkit-scrollbar { display: none; }
/* click-and-drag to scroll (JS-driven); native swipe still handles touch */
.flows__scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; -webkit-user-select: none; }
.flows__scroller.is-dragging .flowcard { pointer-events: none; }
@media (hover: none) { .flows__scroller { cursor: default; } }

.flowcard { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 248px; padding: 22px 22px 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); border: 1px solid rgba(110, 155, 255, .16); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(4, 10, 26, .28); transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.flowcard::before { content: ""; position: absolute; top: -45%; left: -25%; width: 90%; height: 90%; pointer-events: none; opacity: .65; transition: opacity .25s ease; background: radial-gradient(closest-side, rgba(59, 110, 246, .32), transparent); }
.flowcard--comm::before { background: radial-gradient(closest-side, rgba(45, 182, 160, .30), transparent); }
.flowcard--admin::before { background: radial-gradient(closest-side, rgba(139, 124, 255, .30), transparent); }
.flowcard:hover { border-color: rgba(110, 155, 255, .42); transform: translateY(-4px); box-shadow: 0 22px 46px rgba(4, 10, 26, .5); }
.flowcard:hover::before { opacity: 1; }
.flowcard__top { position: relative; display: flex; align-items: center; justify-content: space-between; }
.flowcard__ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #CFE0FF; }
.flowcard__ico svg { width: 22px; height: 22px; }
.flowcard__arrow { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .14); color: #CFE0FF; font-size: .9rem; transition: background .2s ease, transform .2s ease; }
.flowcard:hover .flowcard__arrow { background: rgba(255, 255, 255, .1); transform: translateX(2px); }
.flowcard h3 { position: relative; font-size: 1.16rem; color: #F2F6FF; letter-spacing: -.01em; }
.flowcard p { position: relative; color: #A9BAD6; font-size: .92rem; }
.flowcard__flow { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; }
.flowcard.is-hidden { display: none; }

.flows .pill { font-family: var(--font-mono); font-size: .7rem; color: #DCE6FB; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); padding: 5px 9px; border-radius: 7px; }
.flows .pill--trigger { color: #C4D6FF; background: rgba(59, 110, 246, .18); border-color: rgba(110, 155, 255, .34); }
.flows .pill--out { color: #8FE6C2; background: rgba(45, 182, 160, .14); border-color: rgba(45, 182, 160, .32); }
.flows .pill__arrow { color: rgba(235, 238, 246, .42); font-family: var(--font-mono); font-size: .72rem; }

/* ============================================================
   PRODUCT SHOWCASE
   ============================================================ */
.showrow { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showrow + .showrow { margin-top: 76px; }
.showrow--rev .showrow__text { order: 2; }
.showrow--rev .showrow__media { order: 1; }
.showrow__text h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 6px 0 14px; letter-spacing: -.02em; }
.showrow__text > p { color: var(--muted); font-size: 1.06rem; }
.showrow__list { margin-top: 20px; display: grid; gap: 11px; }
.showrow__list li { position: relative; padding-left: 27px; color: var(--text); }
.showrow__list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

/* fake app window */
.appwin { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.appwin__bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #0F1D33; }
.appwin__dots { display: flex; gap: 6px; }
.appwin__dots i { width: 9px; height: 9px; border-radius: 50%; background: #3A527E; display: block; }
.appwin__title { font-family: var(--font-mono); font-size: .72rem; color: #9FB2D2; }
.appwin__body { display: flex; min-height: 296px; }
.applrail { width: 50px; flex: none; background: #0C1526; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; }
.applrail i { width: 22px; height: 22px; border-radius: 7px; background: rgba(110, 155, 255, .14); display: block; }
.applrail i.is-active { background: var(--accent); }

.mini-btn { font-family: var(--font-body); font-style: normal; font-size: .72rem; font-weight: 600; padding: 6px 11px; border-radius: 7px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.mini-btn--run { background: var(--accent); color: #fff; }
.mini-btn--ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.vpill { font-family: var(--font-mono); font-size: .68rem; font-weight: 600; color: var(--accent); background: rgba(59, 110, 246, .1); padding: 3px 8px; border-radius: 6px; justify-self: start; }

/* editor mockup */
.editor { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.editor__bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.editor__name { font-family: var(--font-display); font-weight: 600; font-size: .92rem; }
.editor__acts { display: flex; gap: 8px; }
.editor__canvas { flex: 1; background-color: #F8FAFD; background-image: radial-gradient(rgba(15, 29, 51, .08) 1px, transparent 1px); background-size: 18px 18px; padding: 12px; display: flex; align-items: center; justify-content: center; }
.editor__canvas svg { width: 100%; height: auto; max-height: 210px; }

/* processes table mockup */
.proc { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.proc__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.proc__title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.proc__table { display: flex; flex-direction: column; }
.proc__row { display: grid; grid-template-columns: 2fr .8fr 1.1fr 1.2fr; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.proc__row:last-child { border-bottom: 0; }
.proc__row--head { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; color: var(--muted-2); }
.proc__name { font-weight: 600; color: var(--text); }
.proc__date { color: var(--muted-2); font-family: var(--font-mono); font-size: .72rem; }
.proc__acts { display: flex; gap: 6px; }

/* agent task config mockup */
.cfg { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.cfg__top { display: flex; align-items: center; justify-content: space-between; }
.cfg__title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.cfg__badge { font-family: var(--font-mono); font-size: .65rem; color: var(--accent); background: rgba(59, 110, 246, .1); padding: 4px 9px; border-radius: 999px; }
.cfg__tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); }
.cfg__tabs span { font-size: .82rem; color: var(--muted-2); padding-bottom: 9px; border-bottom: 2px solid transparent; }
.cfg__tabs span.is-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.cfg__field { display: flex; flex-direction: column; gap: 6px; }
.cfg__field label { font-size: .78rem; font-weight: 600; color: var(--text); }
.cfg__select, .cfg__input { border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: .84rem; color: var(--text); background: var(--ground); }
.cfg__select { display: flex; align-items: center; justify-content: space-between; }
.cfg__textarea { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: .78rem; color: var(--muted); background: var(--ground); font-family: var(--font-mono); white-space: pre-wrap; line-height: 1.55; }
.cfg__save .mini-btn { padding: 9px 16px; font-size: .82rem; }

/* ============================================================
   INTEGRATIONS
   ============================================================ */
.intgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.inttile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px; box-shadow: var(--shadow-sm); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.inttile:hover { border-color: rgba(59, 110, 246, .4); transform: translateY(-3px); }
.inttile__ico { color: #fff; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grad-brand); box-shadow: 0 6px 16px rgba(59, 110, 246, .28); margin-bottom: 14px; }
.inttile__ico svg { width: 23px; height: 23px; }
.inttile h3 { font-size: 1.02rem; margin-bottom: 5px; letter-spacing: -.01em; }
.inttile p { color: var(--muted); font-size: .9rem; }
.intgrid__note { text-align: center; margin-top: 28px; color: var(--muted-2); font-family: var(--font-mono); font-size: .84rem; }

/* minimal: strip secondary copy for a cleaner, low-text look */
.showrow__list { display: none; }
.recipe > p { display: none; }
.recipe h3 { margin-bottom: 18px; }
.inttile p { display: none; }
.inttile h3 { margin-bottom: 0; }

/* ============================================================
   BRAND SWIRL MOTIF (from the Rylo logo)
   ============================================================ */
.swirl { display: block; width: 100%; height: 100%; }
.swirl path { fill: currentColor; }
.swirl path + path { opacity: .5; }
.brand-swirl { position: absolute; pointer-events: none; z-index: 0; line-height: 0; }
.brand-swirl--spin { animation: swirlSpin 60s linear infinite; transform-origin: center; }
@keyframes swirlSpin { to { transform: rotate(360deg); } }
.cta__swirl { bottom: -180px; right: -150px; width: 520px; height: 520px; color: #6E9BFF; opacity: .15; }

/* ============================================================
   PRICING
   ============================================================ */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: start; max-width: 920px; margin: 0 auto; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px 30px; box-shadow: var(--shadow-sm); }
.plan--featured { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-brand) border-box; box-shadow: 0 18px 44px rgba(59, 110, 246, .16); }
.plan__badge { position: absolute; top: -13px; left: 30px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; font-weight: 600; color: #fff; background: var(--grad-brand); padding: 5px 12px; border-radius: 999px; }
.plan__name { font-size: 1.5rem; letter-spacing: -.02em; }
.plan__for { color: var(--muted); margin-top: 8px; min-height: 48px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.plan__amount { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.plan__per { color: var(--muted-2); font-size: .95rem; }
.plan__host { color: var(--muted-2); font-size: .85rem; margin-top: 6px; min-height: 40px; }
.plan__cta { width: 100%; margin-top: 18px; }
.plan__list { margin-top: 24px; display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.plan__list li { position: relative; padding-left: 28px; color: var(--text); font-size: .95rem; }
.plan__list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(59, 110, 246, .12); color: var(--accent); font-size: .7rem; font-weight: 700; }
.plans__note { text-align: center; margin-top: 26px; color: var(--muted-2); font-family: var(--font-mono); font-size: .82rem; }

/* ============================================================
   COOKIE CONSENT - spinning Rylo swirl, on-brand
   ============================================================ */
/* centred, symmetric card: icon badge on top, centred copy, equal buttons */
.cookie { position: fixed; left: 50%; top: 50%; z-index: 1000; width: min(440px, calc(100vw - 40px)); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(15, 29, 51, .3); padding: 36px 34px 30px; display: flex; flex-direction: column; align-items: center; text-align: center; opacity: 0; transform: translate(-50%, -50%) translateY(14px) scale(.96); transition: opacity .4s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
/* The banner is laid out (display) even when dismissed, so it would sit
   invisibly over the page and eat taps. Make it truly gone when hidden and
   non-interactive unless it's actually on screen (.is-in). */
.cookie[hidden] { display: none; }
.cookie:not(.is-in) { pointer-events: none; }
.cookie::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(15, 29, 51, .34); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cookie.is-in { opacity: 1; transform: translate(-50%, -50%); }
.cookie.is-out { opacity: 0; transform: translate(-50%, -50%) translateY(14px) scale(.96); }
.cookie__icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, rgba(110, 155, 255, .22), rgba(59, 110, 246, .12)); border: 1px solid rgba(59, 110, 246, .18); margin-bottom: 18px; }
.cookie__icon img { width: 40px; height: 40px; animation: swirlSpin 9s linear infinite; }
.cookie__body { width: 100%; }
.cookie__title { font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; line-height: 1.25; letter-spacing: -.01em; }
.cookie__text { color: var(--muted); font-size: .96rem; line-height: 1.55; margin: 10px auto 0; max-width: 40ch; }
.cookie__link { color: var(--accent); font-weight: 500; white-space: nowrap; }
.cookie__link:hover { text-decoration: underline; }
.cookie__actions { width: 100%; display: flex; gap: 12px; margin-top: 24px; }
.cookie__btn { flex: 1; padding: 13px 16px; font-size: .92rem; }

/* mini "cookie-flow" that runs when you choose — a centred pill */
.cookie__flow { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; max-width: 100%; margin: 20px auto 0; padding: 9px 14px; background: var(--ground); border: 1px solid var(--line); border-radius: 999px; }
.cnode { font-family: var(--font-mono); font-size: .66rem; color: var(--muted-2); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; white-space: nowrap; transition: color .25s ease, border-color .25s ease, background .25s ease; }
.cedge { width: 26px; height: 2px; background: var(--line); border-radius: 2px; transition: background .35s ease; }
.ctoken { display: none; }  /* removed the travelling dot — nodes + edges light up in sequence instead */
.cnode--s2 { transition-delay: .35s; }
.cnode--s3 { transition-delay: .7s; }
.cookie.is-running .cnode { color: var(--accent); border-color: var(--accent); background: rgba(59, 110, 246, .08); }
.cookie.is-running .cnode--s3 { color: #1C7A52; border-color: var(--ok); background: rgba(43, 182, 115, .12); }
.cookie.is-running .cedge:nth-child(2) { background: var(--accent); transition-delay: .18s; }
.cookie.is-running .cedge:nth-child(4) { background: var(--ok); transition-delay: .52s; }

.cookie__done { width: 100%; display: none; align-items: center; justify-content: center; gap: 6px; font-family: var(--font-mono); font-size: .82rem; font-weight: 600; color: var(--ok); margin-top: 16px; }
.cookie.is-running .cookie__actions { display: none; }
.cookie.is-running .cookie__done { display: flex; animation: cookieDone .3s ease both; animation-delay: .8s; }
@keyframes cookieDone { from { opacity: 0; transform: translateY(5px) scale(.95); } to { opacity: 1; transform: none; } }

@media (max-width: 520px) { .cookie { width: calc(100vw - 28px); padding: 30px 22px 24px; } .cookie__actions { flex-direction: column-reverse; } }

/* ============================================================
   WHY + DASHBOARD
   ============================================================ */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.why__copy .section__title { text-align: left; }
.why__list { margin-top: 28px; display: grid; gap: 20px; }
.why__list li { display: grid; gap: 3px; padding-left: 30px; position: relative; }
.why__list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: rgba(43, 182, 115, .14); color: var(--ok); font-size: .8rem; font-weight: 700; }
.why__list strong { font-family: var(--font-display); font-size: 1.08rem; color: var(--text); }
.why__list span { color: var(--muted); }

.dash {
  position: relative;
  background:
    radial-gradient(135% 120% at 88% -12%, rgba(110, 155, 255, .20) 0%, rgba(110, 155, 255, 0) 55%),
    linear-gradient(165deg, #1A2A42 0%, #0F1D33 60%);
  color: #EAF0FB; border-radius: 20px; padding: 26px 26px 22px;
  box-shadow: var(--shadow-lg), 0 0 54px rgba(59, 110, 246, .20);
  border: 1px solid rgba(110, 155, 255, .24);
  overflow: hidden;
}
/* keep content above the orbital backdrop */
.dash__head, .dash__stats, .dash__charts, .dash__rows { position: relative; z-index: 1; }
/* orbital sphere backdrop — echoes the Rylo logo / hero sphere */
.dash__orbit { position: absolute; top: -86px; right: -78px; width: 340px; height: 340px; z-index: 0; pointer-events: none; }
.dash__orbit svg { width: 100%; height: 100%; display: block; }
.orb-ring { fill: none; vector-effect: non-scaling-stroke; }
.dash__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.dash__title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.dash__live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: .76rem; color: #9FB2D2; }
.dash__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { display: grid; gap: 4px; }
.stat__num { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 600; color: #fff; line-height: 1; }
.stat__num--warn { color: var(--warn); }
.stat__lbl { font-size: .8rem; color: #93A4C0; }
.stat__lbl--ok { color: #9FB7FF; }
.stat__lbl--warn { color: #F5C271; }
.dash__bar { height: 9px; border-radius: 999px; background: rgba(245, 165, 36, .35); overflow: hidden; margin-bottom: 20px; }
.dash__bar-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #2BB673, #54D6A4); transition: width 1.3s cubic-bezier(.2, .8, .2, 1); }
.dash.is-in .dash__bar-fill { width: 96%; }
.dash__rows { display: grid; gap: 10px; }
.dash__row { display: flex; align-items: center; gap: 10px; font-size: .9rem; padding: 10px 12px; background: rgba(110, 155, 255, .07); border: 1px solid rgba(110, 155, 255, .12); border-radius: 10px; }
.dash__row-state { margin-left: auto; font-family: var(--font-mono); font-size: .74rem; color: #54D6A4; }
.dash__row-state--wait { color: var(--warn); }

/* ---------- Dashboard charts: donut (success) + sparkline (volume) ---------- */
.dash__charts { display: flex; align-items: center; gap: 22px; margin-bottom: 20px; }

.donut { flex: none; width: 124px; height: 124px; }
/* orbital gauge: glowing core + rotating wireframe sphere + comet head (logo motif) */
.donut__halo { fill: none; stroke: #3B6EF6; stroke-width: 12; opacity: .12; filter: blur(5px); }
.donut__core { opacity: .95; }
.donut__orbits { transform-box: fill-box; transform-origin: center; animation: donutSpin 26s linear infinite; }
.donut__orbits ellipse { fill: none; stroke: url(#sphereGrad); stroke-width: 1; }
.donut__head-halo { fill: #9FC2FF; opacity: .4; filter: blur(3px); }
.donut__head { fill: #eaf2ff; filter: drop-shadow(0 0 7px rgba(160, 195, 255, 1)); }
@keyframes donutSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .donut__orbits { animation: none; } }
.donut svg { width: 100%; height: 100%; display: block; }
.donut__track { fill: none; stroke: rgba(110, 155, 255, .14); stroke-width: 8; }
.donut__val {
  fill: none; stroke: url(#donutGrad); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 314.16; stroke-dashoffset: 314.16;
  filter: drop-shadow(0 0 6px rgba(110, 155, 255, .7));
  transition: stroke-dashoffset 1.5s cubic-bezier(.2, .8, .2, 1) .3s;
}
.dash.is-in .donut__val { stroke-dashoffset: 12.6; } /* 96% of the ring */
.donut__pct { fill: #fff; font-family: var(--font-mono); font-size: 23px; font-weight: 600; text-anchor: middle; }
.donut__lbl { fill: #93A4C0; font-family: var(--font-body); font-size: 11px; text-anchor: middle; }

.spark { flex: 1; min-width: 0; }
.spark__cap { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.spark__cap > span:first-child { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: #9FB2D2; }
.spark__peak { font-family: var(--font-mono); font-size: .68rem; color: #9FB7FF; }
.spark__svg { width: 100%; height: auto; display: block; overflow: visible; }
.spark__base { stroke: rgba(110, 155, 255, .14); stroke-width: 1; stroke-dasharray: 3 4; }
.spark__path {
  fill: none; stroke: url(#sparkLine); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 330; stroke-dashoffset: 330;
  filter: drop-shadow(0 1px 6px rgba(59, 110, 246, .45));
  transition: stroke-dashoffset 1.6s ease .25s;
}
.dash.is-in .spark__path { stroke-dashoffset: 0; }
.spark__fill { fill: url(#sparkArea); opacity: 0; transition: opacity 1s ease .65s; }
.dash.is-in .spark__fill { opacity: 1; }
.spark__dots circle { fill: #0F1D33; stroke: #6E9BFF; stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .35s ease; }
.dash.is-in .spark__dots circle { opacity: 1; }
.dash.is-in .spark__dots circle:nth-child(1) { transition-delay: .5s; }
.dash.is-in .spark__dots circle:nth-child(2) { transition-delay: .68s; }
.dash.is-in .spark__dots circle:nth-child(3) { transition-delay: .86s; }
.dash.is-in .spark__dots circle:nth-child(4) { transition-delay: 1.04s; }
.dash.is-in .spark__dots circle:nth-child(5) { transition-delay: 1.22s; }
.dash.is-in .spark__dots circle:nth-child(6) { transition-delay: 1.4s; }
.dash.is-in .spark__dots circle:nth-child(7) { transition-delay: 1.58s; }
.spark__days { display: flex; justify-content: space-between; margin-top: 7px; padding: 0 4%; }
.spark__days span { font-family: var(--font-mono); font-size: .62rem; color: #6E80A0; }

@media (max-width: 420px) {
  .dash__charts { flex-direction: column; align-items: stretch; gap: 16px; }
  .donut { align-self: center; }
}

/* ============================================================
   CTA
   ============================================================ */
.cta { background: var(--navy); color: #EAF0FB; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 50% 0%, rgba(59, 110, 246, .4), transparent 65%); pointer-events: none; }
.cta__inner { position: relative; z-index: 2; padding: 86px 24px; text-align: center; }
.cta__title { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.02em; }
.cta__sub { color: #B9C6DE; font-size: 1.1rem; max-width: 560px; margin: 16px auto 30px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0B1626; color: #B9C6DE; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1.9fr; gap: 40px; padding: 60px 24px 36px; }
.footer__tag { margin-top: 14px; max-width: 320px; color: #8597B5; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__col h4 { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #6E80A0; margin-bottom: 14px; font-weight: 600; }
.footer__col a { display: block; padding: 6px 0; color: #B9C6DE; transition: color .18s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; padding: 20px 24px 30px; border-top: 1px solid rgba(110, 155, 255, .12); font-family: var(--font-mono); font-size: .78rem; color: #6E80A0; }
.footer__cookies { color: inherit; text-decoration: none; cursor: pointer; transition: color .2s ease; }
.footer__cookies:hover { color: var(--accent); text-decoration: underline; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .recipes { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; gap: 30px; }
  .pstep { padding-right: 0; }
  .pstep__line { display: none; }
  .why { grid-template-columns: 1fr; gap: 36px; }
  .showrow { grid-template-columns: 1fr; gap: 30px; }
  .showrow + .showrow { margin-top: 52px; }
  .showrow--rev .showrow__text { order: 0; }
  .showrow--rev .showrow__media { order: 0; }
  .intgrid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 460px; }
  .plan__for, .plan__host { min-height: 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 22px 30px; }
}
@media (max-width: 600px) {
  .specs { grid-template-columns: 1fr; }
  .intgrid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .hero .hero__inner { padding: 116px 20px 64px; min-height: 0; }
  .editor__canvas--hero { min-height: 200px; }
  .appwin__chip { display: none; }
  .footer__bottom { flex-direction: column; }
  .dash__stats { grid-template-columns: repeat(3, 1fr); }
  .stat__num { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  /* one use-case card per view with a clear peek of the next + snappy snap */
  .flows__scroller { grid-auto-columns: 82%; scroll-snap-type: x mandatory; }
  /* full-width, easy-to-hit CTA buttons */
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 100%; }
}

/* ============================================================
   MOBILE HARDENING — no horizontal scroll, comfortable type
   ============================================================ */
/* Guard: nothing may push the page wider than the screen (clip keeps
   position:sticky/fixed working, unlike overflow:hidden). */
html { overflow-x: clip; }
body { overflow-x: clip; max-width: 100%; }

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  /* titles that always fit a phone and wrap cleanly */
  .section__title { font-size: clamp(1.55rem, 6.6vw, 2rem); letter-spacing: -.02em; }
  .hero__title { font-size: clamp(2rem, 10vw, 3rem); }
  .section__lead, .hero__sub { font-size: 1rem; }
  .subpage-head { padding-top: 112px; }
  .cta__inner { padding: 64px 20px; }
  /* tabs: a single horizontally-scrollable row instead of wrapping */
  .flows__head { gap: 16px; }
  .flows__tabs { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .flows__tabs::-webkit-scrollbar { display: none; }
  /* product mockups: let the window size down without a min-height floor */
  .appwin__body { min-height: 0; }
  .editor__canvas { min-height: 150px; }
}

/* ============================================================
   DIAGRAM LIFE - make the little diagrams feel alive on scroll
   ============================================================ */
/* pipeline: numbers pop + connectors draw in, in sequence */
.pstep__node { transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .5s ease; }
.pipeline:not(.is-in) .pstep__node { opacity: 0; transform: scale(.5); }
.pipeline.is-in .pstep__node { box-shadow: 0 0 0 6px rgba(59, 110, 246, .08); }
.pstep__line { transform-origin: left center; transition: transform .7s ease; }
.pipeline:not(.is-in) .pstep__line { transform: scaleX(0); }
.pipeline.is-in .pstep:nth-child(1) .pstep__node { transition-delay: .05s; }
.pipeline.is-in .pstep:nth-child(2) .pstep__node { transition-delay: .4s; }
.pipeline.is-in .pstep:nth-child(3) .pstep__node { transition-delay: .75s; }
.pipeline.is-in .pstep:nth-child(1) .pstep__line { transition-delay: .2s; }
.pipeline.is-in .pstep:nth-child(2) .pstep__line { transition-delay: .55s; }

/* use-case recipes: the flow pills glide in, in sequence */
.recipe__flow > * { opacity: 0; }
.recipes.is-in .recipe__flow > * { animation: pillIn .5s ease forwards; }
.recipe__flow > *:nth-child(1) { animation-delay: .10s; }
.recipe__flow > *:nth-child(2) { animation-delay: .20s; }
.recipe__flow > *:nth-child(3) { animation-delay: .30s; }
.recipe__flow > *:nth-child(4) { animation-delay: .40s; }
.recipe__flow > *:nth-child(5) { animation-delay: .50s; }
@keyframes pillIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow::before { vertical-align: middle; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color .2s ease, box-shadow .25s ease, transform .2s ease; }
.faq__item:hover { border-color: rgba(59, 110, 246, .35); }
.faq__item.is-open { border-color: rgba(59, 110, 246, .45); box-shadow: 0 14px 34px rgba(59, 110, 246, .10); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; text-align: left; background: none; border: 0; cursor: pointer; padding: 19px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; color: var(--text); letter-spacing: -.01em; }
.faq__icon { position: relative; flex: none; width: 20px; height: 20px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s ease; }
.faq__icon::before { left: 2px; right: 2px; top: 9px; height: 2px; }
.faq__icon::after { top: 2px; bottom: 2px; left: 9px; width: 2px; }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); opacity: 0; }
.faq__item.is-open .faq__icon::before { transform: rotate(180deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.2, .8, .2, 1); }
.faq__a-inner { padding: 0 22px 20px; color: var(--muted); font-size: 1rem; line-height: 1.62; max-width: 64ch; }

/* ============================================================
   POLISH - micro-interactions on cards & buttons
   ============================================================ */
.inttile:hover { border-color: rgba(59, 110, 246, .42); transform: translateY(-4px); box-shadow: 0 16px 32px rgba(59, 110, 246, .14); }
.recipe { transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.recipe:hover { border-color: rgba(59, 110, 246, .42); transform: translateY(-4px); box-shadow: 0 18px 38px rgba(15, 29, 51, .10); }
.plan { transition: transform .25s ease, box-shadow .25s ease; }
.plan:hover { transform: translateY(-5px); }
.plan:not(.plan--featured):hover { box-shadow: var(--shadow-md); }
.spec__ico { transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease; }
.spec:hover .spec__ico { transform: translateY(-2px) scale(1.06); box-shadow: 0 10px 22px rgba(59, 110, 246, .38); }

/* sweeping sheen on primary buttons */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .35) 50%, transparent 68%);
  transform: translateX(-130%); transition: transform .65s cubic-bezier(.2, .8, .2, 1);
}
.btn--primary:hover::after { transform: translateX(130%); }

/* ============================================================
   EXTRAS - scroll progress · back-to-top · trust · marquee · facts
   ============================================================ */
/* 1 - scroll progress bar */
.scrollprog { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: var(--grad-brand); box-shadow: 0 0 10px rgba(59, 110, 246, .55); pointer-events: none; transition: width .1s linear; }

/* 2 - back-to-top */
.totop { position: fixed; right: 22px; bottom: 22px; z-index: 55; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--accent); box-shadow: var(--shadow-md); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease; }
.totop.is-show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.totop svg { width: 20px; height: 20px; }

/* 4 - integration marquee */
/* integration pills: a calm, centred static grid of the 8 unique systems —
   no duplicates, no motion stacked under the moving hero. A thin soft top edge
   dissolves the hero's dark into the light band over ~32px (not a heavy dark
   block); pills sit on the light ground just below it. */
.marquee-band { background: var(--ground); }
.marquee { padding: 40px 0 30px; }
.marquee__track { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.marquee__item { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-sm); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.marquee__item:hover { border-color: rgba(59, 110, 246, .4); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.marquee__item svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* 5 - facts band */
.facts__eyebrow { text-align: center; margin-bottom: 26px; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.fact { display: grid; gap: 6px; }
.fact__num { font-family: var(--font-display); font-size: clamp(2.2rem, 4.4vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--accent); }
.fact__lbl { color: var(--muted); font-size: .95rem; }
@media (max-width: 600px) { .facts__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  /* never leave an auto-scroll mid-frame: show it at rest (the video + SVG
     SMIL tokens are paused from JS; see initReveal in main.js) */
  .marquee__track { animation: none !important; transform: none !important; }
}

/* ============================================================
   WOW LAYER — living hero field, entrance choreography, editorial
   statement, magnetic + spotlight micro-interactions, nav polish.
   All motion gated behind .js + prefers-reduced-motion.
   ============================================================ */

/* ---------- Hero: a living orchestration field behind the copy ---------- */
.hero { isolation: isolate; }
.hero__bg { overflow: hidden; }

.hero__aurora {
  position: absolute; border-radius: 50%; filter: blur(60px);
  mix-blend-mode: multiply; opacity: .62; pointer-events: none;
  transition: translate .6s cubic-bezier(.2, .8, .2, 1);
}
.hero__aurora--1 {
  width: 46vw; height: 46vw; min-width: 440px; min-height: 440px; left: 54%; top: -28%;
  background: radial-gradient(circle at 50% 50%, rgba(110, 155, 255, .55), transparent 68%);
  translate: calc(var(--px, 0) * 26px) calc(var(--py, 0) * 18px);
}
.hero__aurora--2 {
  width: 40vw; height: 40vw; min-width: 400px; min-height: 400px; left: -12%; top: 0;
  background: radial-gradient(circle at 50% 50%, rgba(59, 110, 246, .42), transparent 68%);
  translate: calc(var(--px, 0) * -20px) calc(var(--py, 0) * 14px);
}
.hero__aurora--3 {
  width: 36vw; height: 36vw; min-width: 340px; min-height: 340px; left: 24%; top: 42%;
  background: radial-gradient(circle at 50% 50%, rgba(139, 124, 255, .34), transparent 70%);
  translate: calc(var(--px, 0) * 14px) calc(var(--py, 0) * -16px);
}

.hero__grid {
  position: absolute; inset: -4px; pointer-events: none; opacity: .55;
  background-image: radial-gradient(rgba(15, 29, 51, .07) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask: radial-gradient(125% 95% at 50% 6%, #000 30%, transparent 80%);
  mask: radial-gradient(125% 95% at 50% 6%, #000 30%, transparent 80%);
  translate: calc(var(--px, 0) * 8px) calc(var(--py, 0) * 6px);
  transition: translate .6s cubic-bezier(.2, .8, .2, 1);
}

.hero__net {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 1;
  -webkit-mask: radial-gradient(120% 110% at 50% 4%, #000 42%, transparent 84%);
  mask: radial-gradient(120% 110% at 50% 4%, #000 42%, transparent 84%);
  translate: calc(var(--px, 0) * 16px) calc(var(--py, 0) * 12px);
  transition: translate .6s cubic-bezier(.2, .8, .2, 1);
}
.hero__net-paths path { fill: none; stroke: rgba(59, 110, 246, .4); stroke-width: 1.3; stroke-dasharray: 4 9; stroke-linecap: round; }
.hero__net-nodes circle { fill: rgba(59, 110, 246, .7); }

@media (prefers-reduced-motion: no-preference) {
  .hero__aurora--1 { animation: heroDriftA 24s ease-in-out infinite alternate; }
  .hero__aurora--2 { animation: heroDriftB 30s ease-in-out infinite alternate; }
  .hero__aurora--3 { animation: heroDriftC 27s ease-in-out infinite alternate; }
  .hero__net-nodes circle { animation: heroNodePulse 4.2s ease-in-out infinite; }
  .hero__net-nodes circle:nth-child(2n) { animation-delay: 1.1s; }
  .hero__net-nodes circle:nth-child(3n) { animation-delay: 2.2s; }
}
@keyframes heroDriftA { from { transform: translate(0, 0) scale(1); } to { transform: translate(-4%, 6%) scale(1.12); } }
@keyframes heroDriftB { from { transform: translate(0, 0) scale(1); } to { transform: translate(5%, -4%) scale(1.1); } }
@keyframes heroDriftC { from { transform: translate(0, 0) scale(1); } to { transform: translate(-3%, -5%) scale(1.14); } }
@keyframes heroNodePulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------- Hero entrance choreography (CSS-only, no flash) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero__bg { opacity: 0; animation: wowFade 1.5s ease .1s forwards; }
  html.js .anim-in { opacity: 0; transform: translateY(18px); animation: wowRise .85s cubic-bezier(.2, .8, .2, 1) forwards; }
  html.js .hero__eyebrow.anim-in { animation-delay: .08s; }
  html.js .hero__sub.anim-in { animation-delay: .5s; }
  html.js .hero__actions.anim-in { animation-delay: .64s; }
  html.js .hero__title .hero__line {
    display: inline-block; opacity: 0; transform: translateY(22px);
    animation: wowRise .9s cubic-bezier(.2, .8, .2, 1) forwards;
  }
  html.js .hero__title .hero__line:nth-of-type(1) { animation-delay: .2s; }
  html.js .hero__title .hero__line:nth-of-type(2) { animation-delay: .34s; }
}
@keyframes wowRise { to { opacity: 1; transform: none; } }
@keyframes wowFade { to { opacity: 1; } }

/* ---------- Editorial statement (the breather) ---------- */
.statement { position: relative; padding: clamp(78px, 12vh, 148px) 0; text-align: center; background: var(--surface); border-top: 1px solid var(--line); overflow: hidden; }
.statement__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(58% 72% at 50% 42%, rgba(110, 155, 255, .16), transparent 70%); }
.statement__inner { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; }
.statement__kicker { display: inline-flex; justify-content: center; margin-bottom: 16px; }
.statement__line { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5.4vw, 3.7rem); line-height: 1.08; letter-spacing: -.035em; color: var(--text); }
.statement__line span { display: block; }
.statement__accent { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ---------- Spotlight that follows the cursor across cards ---------- */
.spec, .inttile, .plan { position: relative; isolation: isolate; }
.spec > *, .inttile > *, .plan > * { position: relative; z-index: 1; }
.spec::after, .inttile::after, .plan::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(59, 110, 246, .12), transparent 62%);
  opacity: 0; transition: opacity .35s ease;
}
.spec:hover::after, .inttile:hover::after, .plan:hover::after { opacity: 1; }

/* ---------- Magnetic primary buttons (transform driven by JS) ---------- */
[data-magnetic], .btn--primary { will-change: transform; }

/* ---------- Nav: scrolled state + active-section underline ---------- */
.nav__inner { transition: background .3s ease, box-shadow .3s ease; }
.nav.is-scrolled .nav__inner { background: rgba(255, 255, 255, .95); box-shadow: 0 14px 40px rgba(15, 29, 51, .18), inset 0 1px 0 rgba(255, 255, 255, .7); }
.nav__links a { position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left center;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--text); }

/* ============================================================
   HERO VIDEO BACKGROUND
   The looping video (assets/hero-bg.mp4) fills the hero; the copy
   sits on a dark legibility scrim. This replaces the light-bg hero
   and its decorative aurora/grid/net field. To go back to that
   field, remove this block and the <video> in index.html.
   ============================================================ */
.hero { background: #0B1226; color: #EAF0FB; }
/* the video is the backdrop, not the message: dampen it so the copy + CTA
   own the hierarchy and never depend on what the loop is doing right now */
.hero__video { z-index: 0; filter: brightness(.72) saturate(.88); }

/* the hand-built field is replaced by the video itself */
.hero__aurora, .hero__grid, .hero__net { display: none; }

/* scrim: a centred vignette guarantees legibility behind the copy (text must
   never rely on the video frame), layered over a top/bottom darkening gradient
   for nav legibility and a clean seam into the next section */
.hero__bg {
  background:
    radial-gradient(72% 62% at 50% 46%, rgba(7, 12, 28, .66), transparent 72%),
    linear-gradient(180deg,
      rgba(11, 18, 38, .74) 0%,
      rgba(15, 29, 51, .34) 30%,
      rgba(15, 29, 51, .46) 62%,
      rgba(11, 18, 38, .92) 100%);
}

/* light, high-contrast hero type over the video */
.hero__eyebrow { color: var(--glow); }
.hero__title { color: #F4F8FF; text-shadow: 0 2px 30px rgba(6, 11, 28, .55); }
/* accent line was a blue→blue gradient that vanished into the blue video on the
   right; near-white gradient + drop-shadow keeps it legible over any frame */
.hero__accent {
  background: linear-gradient(110deg, #FFFFFF 0%, #CFE0FF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 2px 16px rgba(6, 11, 28, .62));
}
.hero__sub { color: rgba(234, 240, 251, .9); text-shadow: 0 1px 20px rgba(6, 11, 28, .5); }

/* ---------- Hero on mobile: video backdrop + title + CTA only ----------
   Keep the moving video; strip the eyebrow and the sub-text so the headline
   and buttons own the screen; let the navbar blend into the video. */
@media (max-width: 600px) {
  .hero .hero__inner { padding: 100px 22px 56px; min-height: 60vh; min-height: 60svh; justify-content: center; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.7rem); line-height: 1.12; min-height: 0; margin-bottom: 26px; }
  /* remove the text above and below the title on mobile */
  .hero__eyebrow, .hero__sub { display: none; }
  /* navbar: transparent over the hero video (no blocking white bar),
     becomes the solid pill again as soon as you scroll into the content */
  body:has(.hero) .nav:not(.is-scrolled) .nav__inner {
    background: transparent; border-color: transparent; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  body:has(.hero) .nav:not(.is-scrolled) .brand__name { color: #fff; }
  body:has(.hero) .nav:not(.is-scrolled) .nav__toggle { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .45); }
  body:has(.hero) .nav:not(.is-scrolled) .nav__toggle span { background: #fff; }
}

/* ============================================================
   BLOG — editorial index: category filter, featured post + grid.
   Each cover carries a faint "flow" motif — on-brand orchestration.
   ============================================================ */
.blogtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.blogtab { font-family: var(--font-body); font-size: .88rem; font-weight: 500; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 8px 15px; border-radius: 999px; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.blogtab:hover { color: var(--text); border-color: var(--accent); }
.blogtab.is-active { color: #fff; background: var(--accent); border-color: var(--accent); }

.bloggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: var(--text); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, border-color .25s ease; }
.post:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(15, 29, 51, .13); border-color: rgba(59, 110, 246, .4); }
.post__cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #1b2d54, #0d1730); }
.post[data-cat="product"] .post__cover { background: linear-gradient(135deg, #3B6EF6, #7FA6FF); }
.post[data-cat="engineering"] .post__cover { background: linear-gradient(135deg, #15324e, #2BB673); }
.post[data-cat="ai"] .post__cover { background: linear-gradient(135deg, #5B3BF6, #B06EFF); }
.post[data-cat="guides"] .post__cover { background: linear-gradient(135deg, #B5751f, #F5C271); }
.post__cover svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; color: #fff; }
.post__num { position: absolute; left: 16px; bottom: 12px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; color: rgba(255, 255, 255, .82); }
.post__body { display: flex; flex-direction: column; gap: 9px; padding: 18px 20px 20px; flex: 1; }
.post__cat { align-self: flex-start; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.post__title { font-family: var(--font-display); font-size: 1.16rem; line-height: 1.25; letter-spacing: -.01em; transition: color .2s ease; }
.post:hover .post__title { color: var(--accent); }
.post__excerpt { color: var(--muted); font-size: .92rem; }
.post__meta { margin-top: auto; padding-top: 12px; display: flex; gap: 12px; font-family: var(--font-mono); font-size: .7rem; color: var(--muted-2); }

/* featured: full-width, horizontal, dark + bold */
.post--featured { grid-column: 1 / -1; flex-direction: row; background: var(--navy); border-color: rgba(110, 155, 255, .2); color: #EAF0FB; }
.post--featured:hover { box-shadow: 0 26px 56px rgba(4, 10, 26, .4); }
.post--featured .post__cover { width: 44%; aspect-ratio: auto; flex: none; }
.post--featured .post__body { padding: 40px 44px; justify-content: center; gap: 14px; }
.post--featured .post__cat { color: var(--glow); }
.post--featured .post__title { font-size: clamp(1.7rem, 3vw, 2.3rem); color: #F4F8FF; }
.post--featured:hover .post__title { color: #fff; }
.post--featured .post__excerpt { color: #A9BAD6; font-size: 1.04rem; max-width: 48ch; }
.post--featured .post__meta { color: #8497b8; }
.post.is-hidden { display: none; }

@media (max-width: 900px) {
  .bloggrid { grid-template-columns: repeat(2, 1fr); }
  .post--featured .post__cover { width: 40%; }
}
@media (max-width: 600px) {
  .bloggrid { grid-template-columns: 1fr; }
  .post--featured { flex-direction: column; }
  .post--featured .post__cover { width: 100%; aspect-ratio: 16 / 9; }
  .post--featured .post__body { padding: 26px 22px; }
}

/* ---------- Mobile: drop what doesn't earn its place on a phone ---------- */
@media (max-width: 600px) {
  /* product mockups (editor / table / config) are too small to read on a phone —
     keep the words that explain each capability, drop the tiny UI */
  .showcase .showrow__media { display: none; }
  .showcase .showrow { gap: 0; }
  /* decorative orchestration graph behind the pricing plans: skip on mobile */
  .flowbg { display: none; }
  /* integration chips marquee (Email, Databases, APIs…) — clutter on a phone */
  .marquee-band { display: none; }
}

/* ============================================================
   PRODUCT MOCKUPS — run monitor + live trace (faithful to the app)
   ============================================================ */
/* --- Run monitor (Active / History with status groups) --- */
.rund { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; }
.rund__top { display: flex; align-items: center; gap: 18px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.rund__tab { font-size: .82rem; color: var(--muted-2); padding-bottom: 6px; }
.rund__tab.is-active { color: var(--accent); border-bottom: 2px solid var(--accent); font-weight: 600; }
.rund__search { margin-left: auto; font-family: var(--font-mono); font-size: .68rem; color: var(--muted-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; }
.rund__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.rund__group { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: .8rem; color: var(--text); margin-top: 4px; }
.rund__count { background: var(--ground); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; font-family: var(--font-mono); font-size: .6rem; color: var(--muted-2); }
.rund__run { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; }
.rund__name { font-weight: 600; font-size: .82rem; color: var(--text); }
.rund__sub { font-size: .68rem; color: var(--muted-2); margin-top: 3px; }
.rund__barline { height: 4px; border-radius: 999px; background: var(--line); margin-top: 8px; overflow: hidden; max-width: 220px; }
.rund__barline i { display: block; height: 100%; border-radius: 999px; }
.rund__barline--fail i { width: 32%; background: #E5484D; }
.rund__barline--pause i { width: 58%; background: var(--amber); }
.rund__barline--ok i { width: 100%; background: #2BB673; }
.rund__who { display: flex; align-items: center; gap: 7px; font-size: .72rem; color: var(--muted); }
.rund__av { width: 22px; height: 22px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: .58rem; font-weight: 700; background: var(--grad-brand); }
.rund__time { font-family: var(--font-mono); font-size: .68rem; color: var(--muted-2); }

/* --- Live trace (agents running step by step) --- */
.trace { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; padding: 16px 18px 18px; gap: 13px; }
.trace__head { display: flex; align-items: center; gap: 9px; }
.trace__title { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--text); }
.trace__badge { font-family: var(--font-mono); font-size: .58rem; color: var(--accent); background: rgba(59, 110, 246, .12); padding: 2px 8px; border-radius: 999px; }
.trace__acts { margin-left: auto; display: flex; gap: 6px; }
.trace__input { border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; background: var(--ground); }
.trace__input small { display: block; font-family: var(--font-mono); font-size: .56rem; letter-spacing: .12em; color: var(--muted-2); margin-bottom: 3px; }
.trace__input span { font-size: .82rem; color: var(--text); }
.trace__steps { display: flex; flex-direction: column; gap: 2px; }
.trace__step { display: flex; align-items: flex-start; gap: 11px; padding: 5px 0; }
.trace__rail { display: flex; flex-direction: column; align-items: center; flex: none; }
.trace__ico { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); background: #fff; }
.trace__ico svg { width: 15px; height: 15px; }
.trace__line { flex: 1; width: 2px; background: var(--line); min-height: 14px; margin: 2px 0; }
.trace__main { flex: 1; padding-top: 4px; }
.trace__name { font-weight: 600; font-size: .84rem; color: var(--text); }
.trace__ok { font-family: var(--font-mono); font-size: .58rem; color: #1C7A52; background: rgba(43, 182, 115, .12); padding: 2px 8px; border-radius: 999px; margin-left: 7px; }
.trace__note { font-size: .76rem; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.trace__callout { border-left: 2px solid #2BB673; background: var(--ground); padding: 8px 11px; border-radius: 7px; font-size: .74rem; color: var(--text); margin-top: 7px; }

/* Section boundaries are crisp, hard edges — no soft fade seams. */

/* ============================================================
   DECORATIVE ORCHESTRATION GRAPH (pricing background)
   A faint node+path field with glow tokens drifting along the paths —
   same visual language as the hero editor flow and the cookie flow.
   Purely decorative (aria-hidden); masked + low-opacity so the plan
   cards' text stays crisp on top.
   ============================================================ */
.pricing-flow { position: relative; overflow: hidden; }
.pricing-flow > .container { position: relative; z-index: 1; }
.flowbg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask: radial-gradient(120% 92% at 50% 42%, #000 28%, transparent 78%);
  mask: radial-gradient(120% 92% at 50% 42%, #000 28%, transparent 78%);
}
.flowbg__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.flowbg__paths path { fill: none; stroke: rgba(59, 110, 246, .12); stroke-width: 1.4; stroke-dasharray: 4 9; stroke-linecap: round; }
.flowbg__nodes circle { fill: rgba(59, 110, 246, .2); }
.flowbg__tok { opacity: .8; }
@media (prefers-reduced-motion: reduce) {
  /* no drifting tokens; the static node+path graph remains */
  .flowbg__tok { display: none; }
}

/* ============================================================
   INTERACTIVE POLISH
   Consistent hover feedback on every genuinely clickable element
   that was still missing it (toggle, logo, filter tabs, FAQ rows,
   mobile menu). Cards/buttons/nav links already lift on hover.
   ============================================================ */
.brand { transition: opacity .2s ease; }
.brand:hover { opacity: .85; }
.brand__logo { transition: transform .25s cubic-bezier(.2, .8, .2, 1); transform-origin: center; }
/* hover over the brand → the Rylo swirl spins (mouse/keyboard only;
   stays still on touch and when prefers-reduced-motion is set) */
.brand:hover .brand__logo,
.brand:focus-visible .brand__logo { animation: swirlSpin 1.15s linear infinite; }
.lang__btn:not(.is-active):hover { background: rgba(59, 110, 246, .1); color: var(--accent); }
.flows__tab:hover { background: rgba(255, 255, 255, .08); }
.faq__q:hover { color: var(--accent); }
.faq__q:hover .faq__icon::before, .faq__q:hover .faq__icon::after { background: var(--accent-deep); }
.nav__mobile a:hover { color: var(--accent); }

/* ============================================================
   RELIABLE CARD HOVER
   A translateY lift moves the card out from under the cursor at its
   bottom edge → hover toggles off/on → flicker that reads as "hover
   sometimes doesn't work". Scaling grows the card outward instead, so
   the cursor always stays inside (no dead-band), and a snappy .18s
   transition makes feedback feel instant even on a quick pass.
   ============================================================ */
.spec, .inttile, .flowcard, .plan { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.spec:hover, .inttile:hover, .plan:hover, .flowcard:hover { transform: scale(1.02); }

/* ============================================================
   PREMIUM PRICING — two equal, refined cards
   Both plans share the exact same look; the recommended one is set
   apart only by its badge. Bigger price, gradient check marks, soft
   depth and a clean lift on hover.
   ============================================================ */
/* single plan (Enterprise only): one clean, centred card */
.plans { gap: 26px; max-width: 460px; margin: 0 auto; grid-template-columns: 1fr; align-items: stretch; }
.plan, .plan--featured {
  padding: 38px 34px; border-radius: 22px;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 18px 44px rgba(15, 29, 51, .10);
  color: var(--text);
}
.plan__name { font-size: 1.55rem; }
.plan__amount { font-size: 2.6rem; color: var(--text); }
.plan__list { gap: 13px; }
.plan__list li { padding-left: 30px; }
.plan__list li::before {
  width: 20px; height: 20px; top: 1px; font-size: .72rem;
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 3px 8px rgba(59, 110, 246, .35);
}
.plans .plan:hover { box-shadow: 0 26px 56px rgba(15, 29, 51, .16); }
/* keep the badge OUT of flow (the .plan > * spotlight rule forced it back to
   position:relative, which pushed the featured card's content down and broke
   alignment with the other card). z-index keeps it above the spotlight layer. */
.plan__badge { position: absolute; z-index: 2; background: var(--grad-brand); box-shadow: 0 8px 20px rgba(59, 110, 246, .4); }

/* ============================================================
   PRICING HERO — premium enterprise panel
   A deep navy→indigo→violet panel with a violet glow and the living
   orchestration flow; a pitch + "what's included" on the left, a glass
   price/CTA card on the right. The one bold, colourful moment on the page.
   ============================================================ */
.pricehero { padding: 132px 0 96px; }
.pricehero__head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.pricehero__eyebrow { display: inline-flex; align-items: center; justify-content: center; }
.pricehero__title { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; color: var(--text); }
.pricehero__lead { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); margin-top: 14px; }

.pricepanel { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; padding: 56px; color: #EAF0FB;
  background: linear-gradient(150deg, #0E1A33 0%, #17224C 54%, #241B55 100%);
  border: 1px solid rgba(139, 124, 255, .22);
  box-shadow: 0 40px 90px rgba(11, 18, 38, .45); }
.pricepanel::before { content: ""; position: absolute; z-index: 0; top: -30%; right: -10%; width: 60%; height: 90%;
  background: radial-gradient(55% 55% at 70% 25%, rgba(139, 124, 255, .42), transparent 72%); pointer-events: none; }
.pricepanel .flowbg { -webkit-mask: radial-gradient(120% 110% at 62% 30%, #000 35%, transparent 82%); mask: radial-gradient(120% 110% at 62% 30%, #000 35%, transparent 82%); }
.pricepanel .flowbg__paths path { stroke: rgba(150, 170, 255, .2); }
.pricepanel .flowbg__nodes circle { fill: rgba(165, 185, 255, .5); }

.pricepanel__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 46px; align-items: center; }
.pricepanel__tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: #C7D6FF; background: rgba(110, 155, 255, .12); border: 1px solid rgba(110, 155, 255, .3); padding: 6px 13px; border-radius: 999px; }
.pricepanel__for { font-family: var(--font-display); font-size: clamp(1.45rem, 2.5vw, 2rem); font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: #F4F8FF; margin: 22px 0 28px; }
.pricepanel__list { display: grid; gap: 14px; }
.pricepanel__list li { position: relative; padding-left: 34px; color: rgba(234, 240, 251, .9); font-size: 1rem; line-height: 1.4; }
.pricepanel__list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #6E9BFF, #8B7CFF); color: #fff; font-size: .72rem; font-weight: 700; box-shadow: 0 4px 12px rgba(110, 124, 255, .45); }

.pricepanel__buy { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 30px 28px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pricepanel__price { display: flex; align-items: baseline; gap: 10px; }
.pricepanel__amount { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; background: linear-gradient(110deg, #FFFFFF, #C7D6FF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.pricepanel__per { font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(234, 240, 251, .6); }
.pricepanel__host { color: rgba(234, 240, 251, .64); font-size: .9rem; line-height: 1.5; margin-top: 12px; }
.pricepanel__cta { width: 100%; margin-top: 14px; }
.pricepanel__buy .pricepanel__cta:first-of-type { margin-top: 22px; }
.pricepanel__reassure { font-family: var(--font-mono); font-size: .72rem; color: rgba(234, 240, 251, .5); line-height: 1.55; margin-top: 18px; text-align: center; }

@media (max-width: 760px) {
  .pricehero { padding: 116px 0 72px; }
  .pricepanel { padding: 34px 22px; border-radius: 22px; }
  .pricepanel__grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ============================================================
   EYEBROW RUN-TOKEN
   The dot before each section eyebrow zips in like a run-token —
   trailing glow + a soft landing pulse — the moment the section
   scrolls into view. Same "a run reaches this step" language as the
   hero flow and cookie flow. Plays once, then sits calm.
   (prefers-reduced-motion neutralises it via the global rule.)
   ============================================================ */
@keyframes eyebrowRun {
  0%   { transform: translateX(-18px) scale(.65); opacity: 0; box-shadow: 0 0 0 0 rgba(59, 110, 246, 0); }
  35%  { opacity: 1; box-shadow: -12px 0 12px -5px rgba(59, 110, 246, .6); }
  70%  { transform: translateX(0) scale(1); box-shadow: -3px 0 7px -3px rgba(59, 110, 246, .45); }
  85%  { box-shadow: 0 0 0 5px rgba(59, 110, 246, .16); }
  100% { transform: translateX(0) scale(1); box-shadow: 0 0 0 0 rgba(59, 110, 246, 0); }
}
.section__head.is-in .eyebrow::before,
.showrow.is-in .eyebrow::before,
.flows__head.is-in .eyebrow::before,
.eyebrow.reveal.is-in::before {
  animation: eyebrowRun .9s cubic-bezier(.2, .8, .2, 1) both;
}

/* ============================================================
   RUN-RAIL — the whole page as a running flow (desktop only)
   Each section is a task node on a left-edge rail; a run-token
   slides to the section in view, passed nodes go "done". Injected
   by initRunRail() in main.js. Hidden < 1280px and on reduced motion.
   ============================================================ */
.runrail { position: fixed; left: 28px; top: 50%; transform: translateY(-50%); height: 58vh; width: 24px; z-index: 40; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s ease; }
.runrail.is-visible { opacity: 1; visibility: visible; }
.runrail__track, .runrail__fill { position: absolute; left: 11px; width: 2px; border-radius: 2px; }
.runrail__track { top: 0; bottom: 0; background: rgba(120, 134, 168, .34); }
.runrail__fill { top: 0; height: 0; background: linear-gradient(180deg, var(--accent), var(--glow)); box-shadow: 0 0 8px rgba(59, 110, 246, .5); transition: height .55s cubic-bezier(.2, .8, .2, 1); }
.runrail__node { position: absolute; left: 1px; width: 22px; height: 22px; margin-top: -11px; display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; pointer-events: auto; }
.runrail__node::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface); border: 2px solid rgba(120, 134, 168, .55);
  transition: background .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.runrail__node:hover::before { transform: scale(1.25); border-color: var(--accent); }
.runrail__node.is-done::before { background: var(--accent); border-color: var(--accent); }
.runrail__node.is-active::before { background: var(--accent); border-color: var(--accent); transform: scale(1.2); box-shadow: 0 0 0 5px rgba(59, 110, 246, .16); }
.runrail__label {
  position: absolute; left: 26px; top: 50%; transform: translateY(-50%) translateX(-4px);
  white-space: nowrap; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px; box-shadow: var(--shadow-sm);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease, color .3s ease, border-color .3s ease;
}
.runrail__node.is-done .runrail__label { color: var(--muted-2); }
.runrail__node.is-active .runrail__label { color: var(--text); border-color: var(--accent); box-shadow: 0 4px 14px rgba(59, 110, 246, .16); }
.runrail__node:hover .runrail__label { opacity: 1; transform: translateY(-50%) translateX(0); color: var(--accent); border-color: var(--accent); }
/* wide screens have room in the left gutter — show every step's label permanently */
@media (min-width: 1500px) {
  .runrail__label { opacity: 1; transform: translateY(-50%); }
}
.runrail__token {
  position: absolute; left: 7px; top: 0; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff, var(--accent));
  box-shadow: 0 0 10px 2px rgba(59, 110, 246, .65);
  transition: top .55s cubic-bezier(.2, .8, .2, 1);
}
@media (max-width: 1279px) { .runrail { display: none; } }
@media (prefers-reduced-motion: reduce) { .runrail { display: none; } }

/* ============================================================
   BLOG ARTICLE — readable post layout
   ============================================================ */
.arthero { padding: 132px 0 6px; }
.artback { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 26px; transition: color .2s ease; }
.artback:hover { color: var(--accent); }
.artback svg { width: 14px; height: 14px; }
.artcat { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.arttitle { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.1; letter-spacing: -.025em; color: var(--text); margin: 14px 0 18px; max-width: 20ch; }
.artmeta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--font-mono); font-size: .76rem; color: var(--muted-2); }
.artmeta strong { color: var(--text); font-weight: 600; }
.artcover { height: clamp(190px, 34vw, 360px); border-radius: 20px; overflow: hidden; position: relative; margin: 30px 0 4px; background: linear-gradient(135deg, #1b2d54, #0d1730); }
.artcover svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; color: #fff; }
.artcover--product { background: linear-gradient(135deg, #3B6EF6, #7FA6FF); }
.artcover--engineering { background: linear-gradient(135deg, #15324e, #2BB673); }
.artcover--ai { background: linear-gradient(135deg, #5B3BF6, #B06EFF); }
.artcover--guides { background: linear-gradient(135deg, #B5751f, #F5C271); }

.prose { max-width: 720px; margin: 0 auto; font-size: 1.075rem; line-height: 1.78; color: var(--muted); }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.2; letter-spacing: -.02em; color: var(--text); margin-top: 1.9em; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--text); margin-top: 1.5em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { margin: 1.1em 0; padding-left: 1.15em; display: grid; gap: .55em; }
.prose li { padding-left: .25em; }
.prose li::marker { color: var(--accent); }
.prose__lead { font-size: 1.24rem; line-height: 1.6; color: var(--text); }
.prose blockquote { margin: 1.7em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.36; letter-spacing: -.01em; color: var(--text); }
.prose code { font-family: var(--font-mono); font-size: .86em; background: rgba(59, 110, 246, .1); padding: 2px 6px; border-radius: 6px; color: var(--accent-deep); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.artend { max-width: 720px; margin: 44px auto 0; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.artend__note { color: var(--muted); font-size: .98rem; max-width: 42ch; }
@media (max-width: 600px) { .arthero { padding-top: 110px; } .prose { font-size: 1.02rem; } .artend { flex-direction: column; align-items: flex-start; } }

/* ============================================================
   Blog images, article figures, related posts & legal pages
   (added to "finish" the blog and standard SaaS pages)
   ============================================================ */

/* --- real cover images on cards & article heroes --- */
.post__cover img,
.artcover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 1;
}
.post--featured .post__cover img { border-radius: 0; }

/* --- inline product screenshot inside an article --- */
.artfig { max-width: 760px; margin: 2.2em auto; }
.artfig__frame {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #fff, #f3f6fc);
  box-shadow: var(--shadow-md);
}
.artfig__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}
.artfig__bar i { width: 11px; height: 11px; border-radius: 50%; background: #d7deea; display: inline-block; }
.artfig__bar i:nth-child(1) { background: #ff5f57; opacity: .55; }
.artfig__bar i:nth-child(2) { background: #febc2e; opacity: .55; }
.artfig__bar i:nth-child(3) { background: #28c840; opacity: .55; }
.artfig img { display: block; width: 100%; height: auto; }
.artfig figcaption {
  margin-top: 12px; font-family: var(--font-mono); font-size: .76rem;
  letter-spacing: .02em; color: var(--muted-2); text-align: center;
}

/* --- "keep reading" related posts strip --- */
.related { border-top: 1px solid var(--line); }
.related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.related__title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.related__all { font-family: var(--font-mono); font-size: .8rem; color: var(--accent-deep); white-space: nowrap; }
.relgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .relgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .relgrid { grid-template-columns: 1fr; } }

/* --- legal / policy pages --- */
.legaldate {
  display: inline-block; margin-top: 14px;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted-2);
  background: rgba(59, 110, 246, .08); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px;
}
.legal .prose h2 { scroll-margin-top: 100px; }
.legal__toc {
  max-width: 720px; margin: 26px auto 0; padding: 18px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.legal__toc h4 { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.legal__toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--muted); font-size: .96rem; }
.legal__toc a { color: var(--text); text-decoration: none; }
.legal__toc a:hover { color: var(--accent); text-decoration: underline; }
.legal .prose table { width: 100%; border-collapse: collapse; font-size: .96rem; margin: 1.2em 0; }
.legal .prose th, .legal .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.legal .prose th { background: #f3f6fc; font-family: var(--font-display); color: var(--text); font-weight: 600; }

/* ============================================================
   Homepage demo: clean video player (poster + click-to-play)
   ============================================================ */
.vdemo { position: relative; overflow: hidden; background: var(--navy); color: #EAF0FB; padding: 78px 0 88px; }
.vdemo__glow {
  position: absolute; left: 50%; top: -110px; width: 680px; height: 420px; transform: translateX(-50%);
  background: radial-gradient(58% 58% at 50% 42%, rgba(59,110,246,.28), rgba(59,110,246,0) 70%);
  filter: blur(22px); pointer-events: none;
}
.vdemo__head { max-width: 620px; margin: 0 auto 30px; text-align: center; position: relative; }
.vdemo__head .eyebrow { justify-content: center; }
.vdemo__head .dot { width: 7px; height: 7px; }
.vdemo__title { color: #F4F8FF; font-size: clamp(1.6rem, 3vw, 2.15rem); }
.vdemo__sub { margin-top: 12px; color: #A9BAD6; font-size: 1.01rem; line-height: 1.55; }

.vstage { position: relative; max-width: 720px; margin: 0 auto; }
.vstage__halo {
  position: absolute; inset: 26px 50px -16px; border-radius: 26px; z-index: 0;
  background: radial-gradient(58% 78% at 50% 50%, rgba(59,110,246,.30), rgba(59,110,246,0) 72%);
  filter: blur(30px); opacity: .65; pointer-events: none;
}
.vstage__frame {
  position: relative; z-index: 1; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: linear-gradient(140deg, #0d1730, #16243C);
  border: 1px solid rgba(110,155,255,.18);
  box-shadow: 0 26px 64px rgba(4,10,26,.5), inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.vstage:hover .vstage__frame { transform: translateY(-3px); box-shadow: 0 34px 80px rgba(4,10,26,.56); }

.vstage__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  background: #0d1730; z-index: 2;
}

.vstage__play {
  position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; z-index: 3;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  color: #fff; background: var(--accent);
  box-shadow: 0 14px 36px rgba(8,16,33,.45), 0 0 0 6px rgba(255,255,255,.18);
  opacity: 1; transform: scale(1); pointer-events: auto;
  transition: opacity .4s ease, transform .35s cubic-bezier(.2,.8,.2,1), background .2s ease;
}
.vstage.is-playing .vstage__play { opacity: 0; transform: scale(.85); pointer-events: none; }
.vstage__play:hover { background: var(--accent-deep); transform: scale(1.06); }
.vstage__play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.vstage__playicon { width: 28px; height: 28px; margin-left: 3px; }
.vstage__pulse {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.8);
  animation: vpulse 2.6s ease-out infinite;
}
.vstage.is-playing .vstage__pulse { display: none; }
@keyframes vpulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.9); opacity: 0; }
}

.vstage__badge {
  position: absolute; right: 14px; bottom: 13px; z-index: 3;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; color: #E7EEFB;
  background: rgba(8,16,33,.6); border: 1px solid rgba(255,255,255,.16);
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px);
  opacity: 1; transition: opacity .4s ease;
}
.vstage.is-playing .vstage__badge { opacity: 0; }

@media (max-width: 600px) {
  .vdemo { padding: 56px 0 62px; }
  .vstage { max-width: 460px; }
  .vstage__play { width: 60px; height: 60px; }
  .vstage__playicon { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .vstage__pulse { animation: none; }
}

/* ============================================================
   404 — "run failed" page
   ============================================================ */
.e404 { position: relative; overflow: hidden; background: var(--navy); color: #EAF0FB; }
.e404__glow {
  position: absolute; right: -120px; top: -80px; width: 620px; height: 520px;
  background: radial-gradient(50% 50% at 60% 40%, rgba(59,110,246,.32), rgba(59,110,246,0) 70%);
  filter: blur(20px); pointer-events: none;
}
.e404__inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
  min-height: calc(100vh - 76px); padding: 120px 24px 90px;
}
.e404__code {
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(5rem, 16vw, 10rem); letter-spacing: -.04em; margin: 10px 0 6px;
  background: linear-gradient(110deg, #C3D6FF 0%, #6E9BFF 60%, #3B6EF6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.e404__title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: #F4F8FF; }
.e404__sub { margin-top: 14px; color: #A9BAD6; font-size: 1.08rem; line-height: 1.6; max-width: 46ch; }
.e404__log {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .82rem; color: #9DB0D2;
  background: rgba(8,16,33,.55); border: 1px solid rgba(255,255,255,.12);
  padding: 8px 14px; border-radius: 10px;
}
.e404__x { color: #FF8FA3; font-weight: 600; }
.e404__path { color: #E7EEFB; }
.e404__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.e404__links { margin-top: 22px; font-size: .95rem; color: #8497B8; }
.e404__links a { color: var(--glow); text-decoration: none; }
.e404__links a:hover { text-decoration: underline; }

.e404__art { position: relative; }
.e404__art svg { width: 100%; height: auto; max-width: 460px; margin-left: auto; display: block; }
.e404node__ring { animation: e404pulse 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes e404pulse {
  0%, 100% { stroke-opacity: 1; }
  50% { stroke-opacity: .35; }
}

@media (max-width: 860px) {
  .e404__inner { grid-template-columns: 1fr; gap: 30px; min-height: 0; padding: 120px 24px 70px; text-align: center; }
  .e404__sub { margin-left: auto; margin-right: auto; }
  .e404__actions, .e404 .eyebrow { justify-content: center; }
  .e404__art { order: -1; }
  .e404__art svg { margin: 0 auto; max-width: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .e404node__ring { animation: none; }
}

/* ============================================================
   About — values grid
   ============================================================ */
.abvalues { max-width: 940px; margin: 40px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.abval { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.abval:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(59,110,246,.35); }
.abval__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(59,110,246,.1); color: var(--accent-deep); margin-bottom: 14px; }
.abval__icon svg { width: 22px; height: 22px; }
.abval h3 { font-size: 1.12rem; color: var(--text); }
.abval p { margin-top: 8px; color: var(--muted); font-size: .98rem; line-height: 1.55; }
@media (max-width: 680px) { .abvalues { grid-template-columns: 1fr; } }

/* ============================================================
   Contact — branded "flow run" form
   ============================================================ */
.contact { position: relative; overflow: hidden; padding-top: 124px; }
.contact__glow {
  position: absolute; left: -140px; top: -60px; width: 560px; height: 460px;
  background: radial-gradient(50% 50% at 40% 40%, rgba(59,110,246,.16), rgba(59,110,246,0) 70%);
  filter: blur(20px); pointer-events: none;
}
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 54px; align-items: start; }
.contact__intro .section__title { margin-top: 6px; }
.contact__intro .section__lead { margin-top: 14px; }
.contact__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.contact__list li { display: flex; gap: 13px; align-items: flex-start; color: var(--muted); line-height: 1.5; }
.contact__list strong { color: var(--text); }
.contact__list a { color: var(--accent); }
.contact__li-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(59,110,246,.1); color: var(--accent-deep); margin-top: 1px; }
.contact__li-ic svg { width: 16px; height: 16px; }
.contact__badge { display: inline-flex; align-items: center; gap: 9px; margin-top: 28px; font-family: var(--font-mono); font-size: .78rem; color: var(--muted-2); background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; }

.contact__panel { position: relative; }
.cform { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.cform__head { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.cform__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(59,110,246,.14); }
.cform__title { font-family: var(--font-display); font-weight: 600; color: var(--text); }
.cform__pill { margin-left: auto; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); background: rgba(59,110,246,.1); padding: 4px 9px; border-radius: 6px; }
.cform__body { padding: 24px 26px 28px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field--row { grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: .98rem; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #9aa7bd; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,110,246,.16);
}
.cform__error { margin: 0; color: #D6324B; font-size: .9rem; background: rgba(214,50,75,.07); border: 1px solid rgba(214,50,75,.2); padding: 9px 12px; border-radius: 10px; }
.cform__submit { width: 100%; justify-content: center; margin-top: 2px; }
.cform__submit.is-running { opacity: .85; cursor: progress; }
.cform__fine { margin: 0; text-align: center; font-size: .82rem; color: var(--muted-2); }
.cform__fine a { color: var(--accent); }

/* the on-brand run strip */
.runbar { display: none; align-items: center; gap: 6px; justify-content: center; margin-top: 6px; padding: 12px; background: #f3f6fc; border: 1px solid var(--line); border-radius: 12px; }
.runbar.is-running { display: flex; }
.runbar__node { font-family: var(--font-mono); font-size: .72rem; color: var(--muted-2); background: #fff; border: 1px solid var(--line); padding: 5px 9px; border-radius: 7px; transition: all .25s ease; }
.runbar__node.is-lit { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 4px 12px rgba(59,110,246,.32); transform: translateY(-1px); }
.runbar__edge { width: 16px; height: 2px; background: var(--line); border-radius: 2px; }

/* success state */
.cform.is-done .cform__head, .cform.is-done .cform__body { display: none; }
.cform__done { display: none; padding: 46px 30px 40px; text-align: center; justify-items: center; gap: 6px; }
.cform.is-done .cform__done { display: grid; }
.cform__check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(43,182,115,.14); color: var(--ok); margin-bottom: 8px; animation: cfPop .45s cubic-bezier(.2,.9,.3,1.5) both; }
.cform__check svg { width: 30px; height: 30px; }
.cform__done h3 { font-size: 1.4rem; color: var(--text); }
.cform__done p { color: var(--muted); max-width: 38ch; line-height: 1.55; }
.cform__done .btn { margin-top: 14px; }
@keyframes cfPop { 0% { opacity: 0; transform: scale(.5); } 100% { opacity: 1; transform: scale(1); } }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 460px) {
  .field--row { grid-template-columns: 1fr; }
}
