/* Detalia public site. Night base, Electric Blue for light and focus, white for the primary action.
   Lime and mint never fill a control: they appear only inside gradients (see brand/identity.html). */

@font-face { font-family: "Geist"; src: url("../fonts/geist-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --bg: #020617;            /* Night */
  --surface: #070C26;
  --surface-2: #0A1030;     /* Panel */
  --surface-3: #121B4A;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #ffffff;
  --muted: #8B93B8;         /* Slate */
  --faint: #5D6690;
  --accent: #4C8DFF;        /* Sky: accent text, icons, focus on dark */
  --accent-ink: #06103A;    /* Ink: text on white */
  --accent-soft: rgba(76, 141, 255, 0.14);
  --blue: #1E3BFF;          /* Electric Blue: glows and gradients */
  --electric: radial-gradient(90% 90% at 85% 0%, #4C8DFF, transparent 60%), linear-gradient(150deg, #1E3BFF, #0B1FB0 55%, #020617);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1200px;
  --narrow: 1000px;
  --gutter: 24px;
  --nav-height: 80px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip, not hidden: hidden would make body a scroll container and break scroll-driven animations */
}
img { display: block; max-width: 100%; }
/* Side-entering elements start off-screen; clip keeps them from widening the page without breaking sticky layout. */
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Page to page, like the preloader's lift: the page you leave rises away and dims while the next one slides up
   from below with a curved top edge. The navigation bar stays put. Browsers without cross-page View Transitions
   simply navigate. */
@view-transition { navigation: auto; }
html { background: var(--bg); }
.nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: page-leave 0.9s cubic-bezier(0.76, 0, 0.24, 1) both; }
::view-transition-new(root) { animation: page-enter 0.9s cubic-bezier(0.76, 0, 0.24, 1) both; }
@keyframes page-leave { to { transform: translateY(-24%); filter: brightness(0.4); } }
@keyframes page-enter {
  from { transform: translateY(100%); clip-path: inset(0 round 56px 56px 0 0); }
  to { transform: none; clip-path: inset(0 round 0); }
}

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(var(--narrow), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 30px; width: auto; }
.brand__mark { width: 26px; height: 26px; flex: none; fill: currentColor; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 45px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer;
  transition: transform 0.35s var(--ease-out), background-color 0.25s, border-color 0.25s, box-shadow 0.35s;
}
.button svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease-out); }
.button:hover svg { transform: translate(2px, -2px); }
.button:active { transform: scale(0.97); }
.button--primary { background: #fff; color: var(--accent-ink); box-shadow: inset 0 -2px 0 rgba(6, 16, 58, 0.08); }
.button--primary:hover { background: #E9EDFF; }
.button--dark { background: #0A1030; border-color: var(--line-strong); color: var(--text); }
.button--dark:hover { background: #121B4A; }
.button--ghost { background: var(--glass); border-color: rgba(255, 255, 255, 0.2); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.button--ghost:hover { border-color: rgba(255, 255, 255, 0.36); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-height);
  display: flex; align-items: center; background: linear-gradient(rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.7));
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background-color 0.3s;
}
.nav.is-scrolled { background: rgba(2, 6, 23, 0.85); border-bottom-color: var(--line); }
.nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.nav__links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: 15px; color: #d8d8d8; transition: color 0.2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__actions { display: flex; gap: 10px; justify-content: flex-end; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; justify-self: end; }
.nav__toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.nav[data-open="true"] .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle span:nth-child(2) { opacity: 0; }
.nav[data-open="true"] .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Shared section parts ---------- */
.section { padding: 100px 0; position: relative; }
.badge { display: block; width: min(380px, 80vw); text-align: center; white-space: nowrap; overflow: hidden; color: var(--accent); font: 500 12.5px/1.6 "Geist Mono", ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
/* A looping eyebrow: the label repeats and slides sideways inside a strip with faded ends (built by site.js). */
/* Same box before and after site.js builds the strip, so nothing shifts when it starts. */
.badge--loop { text-align: left;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.badge__track { display: flex; width: max-content; animation: eyebrow-loop var(--loop, 22s) linear infinite; }
.badge--reverse .badge__track { animation-direction: reverse; }
.badge__item { display: inline-flex; align-items: center; gap: 16px; padding-right: 16px; white-space: nowrap; }
.badge__item svg { width: 9px; height: 9px; fill: currentColor; opacity: 0.6; }
@keyframes eyebrow-loop { to { transform: translateX(-50%); } }
.section-title { margin: 0; font-size: clamp(34px, 4.4vw, 48px); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; }
.section-lead { margin: 16px 0 0; color: var(--muted); font-size: 17px; max-width: 560px; }
.section-head { margin-bottom: 48px; text-align: center; display: grid; justify-items: center; }
.section-head .section-lead { margin-inline: auto; }
.section-head--center { text-align: center; display: grid; justify-items: center; }
.section-head--center .section-lead { margin-inline: auto; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-height) + 80px) 0 0; position: relative; overflow: hidden; }
.hero__copy { position: relative; display: grid; justify-items: center; text-align: center; gap: 22px; }
.hero__title { margin: 0; font-size: clamp(40px, 5.6vw, 76px); white-space: nowrap; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.hero__title em, .section-title em, .waitlist-hero__title em, .scroll-text em {
  font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em;
}
.hero__lead { margin: 0; max-width: 560px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
/* The product window rises from below into place as soon as the page is ready (or as the preloader lifts),
   then flattens as the page scrolls. Both are transform-only on their own layers, so they run on the GPU. */
.hero__stage { position: relative; margin: 64px auto 0; width: min(var(--narrow), 100% - 2 * var(--gutter)); perspective: 1600px; perspective-origin: 50% 0; }
.js .hero__stage { opacity: 0; transform: translateY(160px); transition: opacity 0.9s var(--ease-out), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform, opacity; }
.js.is-revealed .hero__stage { opacity: 1; transform: none; }
.hero__tilt { transform-origin: 50% 0; transform: rotateX(18deg) scale(0.94); will-change: transform; }
/* Scroll-driven where supported: the browser runs it off the main thread, so it never lags. site.js covers the rest. */
@supports (animation-timeline: scroll()) {
  .hero__tilt { animation: hero-tilt cubic-bezier(0.33, 0, 0.25, 1) both; animation-timeline: scroll(root block); animation-range: 0 60vh; }
}
@keyframes hero-tilt { from { transform: rotateX(18deg) scale(0.94); } to { transform: none; } }

/* Product window shown in the hero: a faithful sketch of Studio's single-image workspace. */
.studio {
  position: relative; border-radius: var(--radius); padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  -webkit-mask-image: linear-gradient(#000 50%, transparent 97%); mask-image: linear-gradient(#000 50%, transparent 97%);
}
.studio__frame { display: grid; grid-template-columns: 64px minmax(0, 1fr); height: clamp(360px, 52vw, 580px); background: #070C26; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.studio__rail { border-right: 1px solid var(--line); display: grid; align-content: start; justify-items: center; gap: 14px; padding: 18px 0; }
.studio__rail i { display: block; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-3); }
.studio__rail i:first-child { background: var(--accent-soft); outline: 1px solid rgba(76, 141, 255, 0.4); }
.studio__main { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.studio__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; white-space: nowrap; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.studio__bar strong { color: var(--text); font-weight: 600; }
.studio__bar > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.studio__views { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.studio__views span { padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.studio__views span.is-active { background: var(--surface-3); color: var(--text); }
.studio__canvas { position: relative; display: grid; place-items: center; padding: 18px; min-height: 0; }
.studio__canvas .compare { height: 100%; aspect-ratio: 1; max-width: 100%; border-radius: 10px; }
.studio__composer { margin: 0 18px 16px; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.studio__prompt { flex: 1; min-width: 0; font-size: 13px; color: #cfcfcf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio__pill { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--surface-3); font-size: 12px; color: var(--muted); }
.studio__go { flex: none; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--accent-ink); font-weight: 700; font-size: 13px; }

/* ---------- Before / after comparison ---------- */
.compare { --position: 50%; position: relative; overflow: hidden; background: #000; user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__after { clip-path: inset(0 0 0 var(--position)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--position); width: 2px; translate: -1px 0; background: #fff; pointer-events: none; }
.compare__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; translate: -50% -50%;
  border-radius: 50%; background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306103A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E");
  background-size: 18px; background-repeat: no-repeat; background-position: center;
}
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__label { position: absolute; top: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); font-size: 12px; font-weight: 600; pointer-events: none; }
.compare__label--before { left: 12px; }
.compare__label--after { right: 12px; color: var(--accent-ink); background: rgba(255, 255, 255, 0.9); }
.compare__range:focus-visible + .compare__handle::after { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.stat { padding: 26px 28px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__value { font-size: 36px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.stat__value span { color: var(--accent); }
.stat__label { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; display: grid; gap: 10px; align-content: start; transition: border-color 0.3s, transform 0.4s var(--ease-out); }
.feature:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.feature__icon svg { width: 22px; height: 22px; }
.feature__title { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.feature__text { margin: 0; color: var(--muted); font-size: 15px; }
.section-cta { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Comparison ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.versus__column { padding: 30px; }
.versus__column h3 { margin: 0 0 18px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.versus__column h3 .brand__mark { width: 26px; height: 26px; }
.versus__column ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.versus__column li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.versus__column li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.versus__column--ours { border-color: rgba(76, 141, 255, 0.35); background: linear-gradient(180deg, rgba(76, 141, 255, 0.07), var(--surface) 55%); }
.versus__column--ours li { color: var(--text); }
.versus__column--ours li svg { color: var(--accent); }
.versus__column--other li svg { color: var(--faint); }

/* ---------- Where Detalia works (display only) ---------- */
.everywhere { padding: 64px 0 0; }
/* One bar: the title on the left, each way in on the right with the services it reaches. */
.ways {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 14px 12px 26px;
  border-radius: 20px; border: 1px solid var(--line); background: var(--surface);
}
.ways__title { margin: 0; font-size: 15.5px; font-weight: 500; color: #E6E9FF; letter-spacing: -0.01em; white-space: nowrap; }
.ways__list { display: flex; align-items: center; }
.way { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 14px; color: #E6E9FF; font-size: 15px; font-weight: 500; transition: background-color 0.25s; }
.way + .way { position: relative; }
.way + .way::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line-strong); }
.way:hover { background: rgba(255, 255, 255, 0.05); }
.way__arrow { width: 15px; height: 15px; color: var(--muted); transition: transform 0.35s var(--ease-out), color 0.25s; }
.way:hover .way__arrow { transform: translate(2px, -2px); color: var(--text); }
.way__icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--accent-ink); }
.way__icon svg { width: 16px; height: 16px; }
.way__icon--ps { background: #001e36; color: #31a8ff; font-size: 11.5px; font-weight: 800; border-radius: 9px; }
.way__logos { display: flex; align-items: center; }
.way__logos img, .way__more { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 2px solid var(--surface); background: #0E1640; object-fit: cover; }
.way__logos > * + * { margin-left: -9px; }
.way__more { display: grid; place-items: center; font: 600 11px/1 "Geist Mono", ui-monospace, monospace; color: var(--text); background: var(--surface-3); }

/* ---------- Scroll-driven statement: words light up as the section passes ---------- */
.statement { padding: 120px 0 90px; }
.scroll-text { margin: 0 auto; max-width: 960px; text-align: center; font-size: clamp(28px, 4vw, 46px); line-height: 1.2; font-weight: 500; letter-spacing: -0.035em; }
.scroll-text__word { opacity: 0.16; transition: opacity 0.25s linear; }
.scroll-text__word--accent { background: linear-gradient(90deg, #4C8DFF, #2EE6FF); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Showreel: a curved ring of results (after the owner's portfolio). site.js places every card each frame;
   the centre card holds while its Detalia result sweeps in, then the ring travels on. ---------- */
.ring { --card: clamp(250px, 24vw, 400px); }
.ring__viewport {
  position: relative; width: 100%; height: calc(var(--card) * 1.25 + clamp(110px, 11vw, 200px)); overflow: hidden;
  perspective: calc(var(--card) * 4.5); perspective-origin: 50% 46%; touch-action: pan-y pinch-zoom; cursor: grab; user-select: none;
}
.ring.is-dragging .ring__viewport { cursor: grabbing; }
.ring__viewport::before, .ring__viewport::after {
  content: ""; position: absolute; z-index: 1100; top: 0; bottom: 0; width: clamp(48px, 14vw, 260px); background: var(--bg); pointer-events: none;
}
.ring__viewport::before { left: 0; -webkit-mask-image: linear-gradient(90deg, #000, rgba(0,0,0,.6) 45%, transparent); mask-image: linear-gradient(90deg, #000, rgba(0,0,0,.6) 45%, transparent); }
.ring__viewport::after { right: 0; -webkit-mask-image: linear-gradient(270deg, #000, rgba(0,0,0,.6) 45%, transparent); mask-image: linear-gradient(270deg, #000, rgba(0,0,0,.6) 45%, transparent); }
.ring__card {
  --reveal: 0; position: absolute; top: 47%; left: 50%; width: var(--card); aspect-ratio: 4 / 5; margin: 0; overflow: hidden;
  border-radius: 20px; background: #000; outline: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
  opacity: 0; transform: translate3d(-50%, -50%, 0); will-change: transform, opacity;
}
.ring__card:first-child { opacity: 1; }
.ring__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
/* The result sweeps in from the left; a soft light rides its edge instead of a hard line. */
.ring__after { clip-path: inset(0 calc(100% - var(--reveal) * 100%) 0 0); }
.ring__glow {
  position: absolute; top: 0; bottom: 0; left: calc(var(--reveal) * 100%); width: 90px; translate: -50% 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent); opacity: calc(var(--sweeping, 0) * 1);
}
.ring__tag { position: absolute; top: 14px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; transition: opacity 0.4s; }
.ring__tag--before { left: 14px; background: rgba(2, 6, 23, 0.68); opacity: calc(1 - var(--reveal)); }
.ring__tag--after { right: 14px; background: #fff; color: var(--accent-ink); opacity: var(--reveal); }
.ring__caption { margin: 6px 0 0; text-align: center; color: var(--muted); font-size: 15px; min-height: 24px; }
.ring__caption strong { color: var(--text); font-weight: 600; }
/* Without motion the ring is a plain scrolling row of finished results. */
.ring.is-static .ring__viewport { height: auto; display: flex; gap: 16px; overflow-x: auto; padding: 8px var(--gutter); perspective: none; cursor: auto; scroll-snap-type: x mandatory; }
.ring.is-static .ring__viewport::before, .ring.is-static .ring__viewport::after { display: none; }
.ring.is-static .ring__card { position: relative; top: auto; left: auto; flex: 0 0 var(--card); opacity: 1; transform: none; --reveal: 1; scroll-snap-align: center; }
.ring.is-static .ring__caption { display: none; }
.reel-section .stats { margin-top: 30px; }

/* ---------- How it works: the Photoshop ↔ AI web round trip as a live, boxless node graph. flow.js plays one lap
   at a time (select, prepare, render on one platform, place) by drawing the wires and toggling the classes below. ---------- */
.flow { --flow-dir: row; }
.flow__graph {
  position: relative; display: grid; grid-template-columns: 1.25fr 1.15fr 0.85fr 1fr; align-items: center; gap: clamp(40px, 4.6vw, 66px);
  padding: 24px 0;
}
/* A dot grid behind the nodes that fades out toward the edges, so the graph sits on the page with no frame. */
.flow__graph::before {
  content: ""; position: absolute; inset: -40px -24px; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.flow__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow-wire { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.5; transition: stroke 0.4s, opacity 0.6s; }
.flow-wire.is-hot { stroke: var(--accent); stroke-width: 2; }
.flow-pulse { fill: #fff; stroke: var(--accent); stroke-width: 3; opacity: 0; transition: opacity 0.2s; }
.flow-pulse.is-on { opacity: 1; }

.flow-node {
  position: relative; z-index: 1; display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface-2);
  border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.95);
  transition: opacity 0.6s var(--ease-out), translate 0.7s var(--ease-out), scale 0.7s var(--ease-out), border-color 0.45s, box-shadow 0.45s;
}
.flow-node.is-focus { border-color: rgba(76, 141, 255, 0.75); box-shadow: 0 0 0 4px rgba(76, 141, 255, 0.12), 0 30px 60px -28px rgba(0, 0, 0, 0.95); }
/* While the loop runs, nodes wait off stage until their wire reaches them. */
.flow.is-live .flow-node:not(.flow-node--ps):not(.is-shown) { opacity: 0; translate: 0 14px; scale: 0.96; }
.flow.is-live.is-fading .flow-node:not(.flow-node--ps), .flow.is-live.is-fading .flow-wire { opacity: 0; }

.flow-node__head { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.flow-node__kind { margin-left: auto; color: var(--faint); font: 500 10.5px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.45s; }
.flow-node.is-focus .flow-node__kind { color: var(--accent); }
.flow-app { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 7px; background: #001e36; color: #31a8ff; font-size: 11.5px; font-weight: 800; }
.flow-app--detalia { background: var(--electric); }
.flow-app--detalia svg { width: 14px; height: 14px; }
.flow-port { position: absolute; z-index: 2; top: 50%; width: 11px; height: 11px; translate: -50% -50%; border-radius: 50%; background: var(--surface); border: 2px solid rgba(255, 255, 255, 0.35); transition: border-color 0.45s, background-color 0.45s; }
.flow-port--in { left: 0; }
.flow-port--out { left: 100%; }
.flow-node.is-focus .flow-port { border-color: var(--accent); background: var(--accent); }

/* Photoshop canvas: the owner's whole scene. The doctor's face (--face-*: where the 718 px crop sits in the scene) gets
   a dragged selection, then the stage zooms in, the result sweeps in over the face and the stage pulls back out.
   flow.js sets --sel (drag, 0–1), --placed (sweep, 0–1) and the stage transform. */
.flow-canvas { --face-x: 62.04%; --face-y: 41.98%; --face-w: 16.62%; --face-h: 9.35%; --sel: 1; --placed: 0;
  position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 10px; background: #000; }
.flow-canvas__stage { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.flow-canvas__stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The crops are laid over their exact spot, with feathered edges so they melt into the scene. */
.flow-canvas__stage > .flow-canvas__face {
  inset: auto; left: var(--face-x); top: var(--face-y); width: var(--face-w); height: var(--face-h);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect;
}
.flow-canvas__stage > .flow-canvas__after { clip-path: inset(0 calc(100% - var(--placed) * 100%) 0 0); transition: opacity 0.8s; }
.flow.is-fading .flow-canvas__after { opacity: 0; }
.flow-canvas__select {
  position: absolute; left: var(--face-x); top: var(--face-y); width: calc(var(--face-w) * var(--sel)); height: calc(var(--face-h) * var(--sel));
  background-image: linear-gradient(90deg, #fff 50%, transparent 0), linear-gradient(90deg, #fff 50%, transparent 0), linear-gradient(0deg, #fff 50%, transparent 0), linear-gradient(0deg, #fff 50%, transparent 0);
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y; background-size: 6px 1px, 6px 1px, 1px 6px, 1px 6px;
  background-position: 0 0, 0 100%, 0 0, 100% 0; animation: flow-ants 0.8s linear infinite;
  box-shadow: 0 0 0 999px rgba(2, 6, 23, 0.38); transition: opacity 0.4s, box-shadow 0.6s;
}
.flow-canvas:not(.is-dragging):not(.is-selected) .flow-canvas__select,
.flow-canvas.is-placed .flow-canvas__select { opacity: 0; box-shadow: 0 0 0 999px rgba(2, 6, 23, 0); }
@keyframes flow-ants { to { background-position: 6px 0, -6px 100%, 0 -6px, 100% 6px; } }
.flow-canvas__size { position: absolute; left: 50%; top: -20px; translate: -50% 0; padding: 1px 6px; border-radius: 5px; background: rgba(2, 6, 23, 0.85); font: 500 9.5px/1.5 "Geist Mono", ui-monospace, monospace; white-space: nowrap; opacity: 0; transition: opacity 0.3s; }
.flow-canvas.is-selected:not(.is-zoomed) .flow-canvas__size { opacity: 1; }
.flow-canvas__cursor { position: absolute; left: calc(var(--face-x) + var(--face-w) * var(--sel)); top: calc(var(--face-y) + var(--face-h) * var(--sel)); width: 18px; height: 18px; margin: -3px 0 0 -4px; fill: #fff; stroke: #020617; stroke-width: 1.4; opacity: 0; transition: opacity 0.3s; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.flow-canvas.is-dragging .flow-canvas__cursor { opacity: 1; }
.flow-canvas__zoom { position: absolute; left: 10px; bottom: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(2, 6, 23, 0.75); color: #C9D2F5; font: 500 10.5px/1.6 "Geist Mono", ui-monospace, monospace; }

.flow-fields { margin: 0; display: grid; gap: 7px; }
.flow-fields > div { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); font-size: 12.5px; transition: background-color 0.4s; }
.flow-fields dt { color: var(--faint); font: 500 10.5px/1.7 "Geist Mono", ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.flow-fields dd { margin: 0; color: #DCE2FF; transition: opacity 0.4s; }
.flow-fields dd small { color: var(--faint); font-size: 11.5px; }
/* Enhance: pressed once the prompt is written, then busy while the platform renders. */
.flow-enhance { justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--accent-ink); font-size: 12.5px; font-weight: 700; transition: scale 0.2s var(--ease-out), background-color 0.3s, color 0.3s; }
.flow-enhance.is-pressed { scale: 0.93; }
.flow-enhance.is-busy { background: var(--surface-3); color: #C9D2F5; }
.flow-enhance.is-busy::before { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: var(--accent); animation: flow-spin 0.8s linear infinite; }
@keyframes flow-spin { to { rotate: 360deg; } }
.flow.is-live .flow-fields > div:not(.is-filled) dd { opacity: 0; }
.flow.is-live .flow-fields > div[data-flow-field="prompt"] dd { opacity: 1; }
.flow-fields > div.is-typing { background: rgba(76, 141, 255, 0.08); }
.flow-fields [data-flow-model] { color: var(--accent); font-weight: 600; }
/* The prompt types over an invisible copy of itself, so the node never changes height (and its wires never move). */
.flow-type { display: grid; }
.flow-type > span { grid-area: 1 / 1; }
.flow-type__ghost { visibility: hidden; }
.flow-type__text.is-caret::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--accent); animation: flow-caret 0.9s steps(1) infinite; }
@keyframes flow-caret { 50% { opacity: 0; } }

.flow-providers { position: relative; z-index: 1; display: grid; gap: 10px; }
.flow-node--provider { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; font-weight: 600; overflow: visible; }
.flow-node--provider img { width: 26px; height: 26px; flex: none; border-radius: 7px; }
.flow-provider__name { display: grid; line-height: 1.25; }
.flow-provider__name small { color: var(--faint); font-size: 11px; font-weight: 500; }
.flow-node--provider.is-focus .flow-provider__name small { color: var(--accent); }
/* Render progress along the bottom edge of the platform at work. */
.flow-provider__bar { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); transform-origin: left; transform: scaleX(var(--render, 0)); opacity: 0; transition: opacity 0.3s; }
.flow-node--provider.is-focus .flow-provider__bar { opacity: 1; }

.flow-layer { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); font-size: 12.5px; }
.flow-layer + .flow-layer { grid-template-columns: auto 1fr; }
.flow-layer__thumb { width: 38px; height: 38px; overflow: hidden; border-radius: 6px; background: #000; }
.flow-layer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.flow-layer__mask { width: 38px; height: 38px; border-radius: 6px; background: radial-gradient(42% 46% at 50% 56%, #fff 96%, #000 100%); }
.flow-layer__name { display: grid; color: #DCE2FF; font-weight: 600; }
.flow-layer__name small { color: var(--faint); font-weight: 400; font-size: 11.5px; }
.flow-layer--new { background: var(--accent-soft); outline: 1px solid rgba(76, 141, 255, 0.35); transition: opacity 0.5s var(--ease-out), translate 0.6s var(--ease-out); }
.flow.is-live .flow-layer--new:not(.is-shown) { opacity: 0; translate: 0 -10px; }

/* The four steps below act as the reel's timeline: each line fills while its step plays (--p from flow.js). */
.flow__steps { counter-reset: flow; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 40px 0 0; padding: 0; list-style: none; }
.flow__steps li { --p: 0; counter-increment: flow; position: relative; display: grid; align-content: start; gap: 6px; padding-top: 18px; color: var(--muted); font-size: 14.5px; transition: color 0.45s; }
.flow__steps li::before, .flow__steps li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--line-strong); }
.flow__steps li::after { background: var(--accent); transform-origin: left; transform: scaleX(var(--p)); }
.flow:not(.is-live) .flow__steps li::after { transform: none; opacity: 0.6; }
.flow__steps b { display: flex; align-items: baseline; gap: 10px; color: var(--text); font-size: 16px; font-weight: 600; }
.flow__steps b::before { content: "0" counter(flow); color: var(--faint); font: 500 12px/1 "Geist Mono", ui-monospace, monospace; transition: color 0.45s; }
.flow__steps li.is-active { color: #C9D2F5; }
.flow__steps li.is-active b::before { color: var(--accent); }
.flow__note { margin: 26px 0 0; text-align: center; color: var(--faint); font-size: 14px; }

/* ---------- Pricing (shared by Home and the Pricing page) ---------- */
.pricing__toggle { display: flex; width: max-content; margin: 0 auto 56px; padding: 5px; gap: 4px; border-radius: 999px; background: #0A1030; border: 1px solid var(--line-strong); }
.pricing__toggle button { height: 42px; padding: 0 22px; border: 0; border-radius: 999px; background: none; color: #d0d0d0; font-weight: 600; cursor: pointer; transition: background-color 0.3s, color 0.3s; }
.pricing__toggle button[aria-selected="true"] { background: #fff; color: var(--accent-ink); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; margin: 0 auto; }
.plans--two { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
.plans[hidden] { display: none; }
.plan {
  position: relative; display: grid; gap: 18px; padding: 30px; border-radius: var(--radius-lg);
  background: radial-gradient(130% 60% at 50% 0%, rgba(76, 141, 255, 0.16), transparent 62%), #070C26;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.plan--popular { translate: 0 -36px; background: radial-gradient(130% 62% at 50% 0%, rgba(76, 141, 255, 0.3), transparent 65%), #070C26; border-color: rgba(76, 141, 255, 0.35); }
.plan__head { display: flex; align-items: center; gap: 10px; }
.plan__head svg { width: 26px; height: 26px; color: var(--accent); }
.plan__name { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.plan__badge { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.plan__desc { margin: -6px 0 0; color: var(--muted); font-size: 15px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px; }
.plan__amount { font-size: 46px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.plan__period { color: var(--muted); font-size: 15px; }
.plan .button { width: 100%; height: 50px; }
.plan .button--dark { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
.plan__features { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 13px; }
.plan__features li { display: flex; gap: 12px; color: #dcdcdc; font-size: 15px; }
.plan__features li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 1.5px solid rgba(76, 141, 255, 0.7); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234C8DFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pricing__note { margin: 26px auto 0; text-align: center; color: var(--faint); font-size: 14px; }

/* ---------- Integrations orbit ---------- */
/* clip, not hidden: a hidden overflow would make the section a scroll container and freeze the orbit's view timeline. */
.orbit-section { overflow: clip; }
.orbit {
  --size: 780px; --node: 64px;
  position: relative; width: var(--size); height: var(--size); margin: 0 auto; view-timeline: --orbit block;
}
.orbit__system { position: absolute; inset: 0; }
.orbit__ring {
  position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  translate: -50% -50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.09);
  animation: orbit-spin var(--duration) linear infinite; animation-direction: var(--direction);
}
.orbit__ring::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 82%, rgba(76, 141, 255, 0.5) 96%, transparent); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)); }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
/* A slot puts a node on its ring at angle --a; the upright layer cancels the ring's spin and the scroll turn. */
.orbit__slot { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1)); }
.orbit__upright { width: 0; height: 0; animation: orbit-spin var(--duration) linear infinite; animation-direction: var(--counter); }
/* The whole system turns a little as the orbit crosses the viewport, tied to the scroll on the compositor. */
@supports (animation-timeline: view()) {
  .orbit__system { animation: orbit-turn linear both; animation-timeline: --orbit; }
  .orbit__upright { animation: orbit-spin var(--duration) linear infinite, orbit-turn-back linear both; animation-direction: var(--counter), normal; animation-timeline: auto, --orbit; }
  .orbit:hover .orbit__upright { animation-play-state: paused, running; }
}
@keyframes orbit-turn { from { rotate: -25deg; } to { rotate: 25deg; } }
@keyframes orbit-turn-back { from { rotate: 25deg; } to { rotate: -25deg; } }
.orbit__node {
  position: absolute; left: 0; top: 0; width: var(--node); height: var(--node); translate: -50% -50%;
  display: grid; place-items: center; border-radius: 50%; background: #0A1030; border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.orbit__node img { width: 60%; height: 60%; border-radius: 10px; object-fit: contain; }
.orbit__node--text { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: 0.02em; }
.orbit__node--ps { background: #001e36; color: #31a8ff; font-size: 18px; font-weight: 800; }
.orbit__node::after {
  content: attr(data-name); position: absolute; left: 50%; top: calc(100% + 8px); translate: -50% 0; padding: 3px 9px; border-radius: 999px;
  background: #0E1640; border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; white-space: nowrap; color: #d6d6d6;
  opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.orbit__node:hover { border-color: rgba(76, 141, 255, 0.7); }
.orbit__node:hover::after { opacity: 1; }
.orbit:hover .orbit__ring, .orbit:hover .orbit__upright { animation-play-state: paused; }
.orbit__node--soon { border-style: dashed; }
.orbit__node--soon::before { content: "Soon"; position: absolute; top: -8px; right: -10px; padding: 1px 6px; border-radius: 999px; background: #fff; color: var(--accent-ink); font-size: 10px; font-weight: 800; }
.orbit__center { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; gap: 10px; text-align: center; }
.orbit__logo { width: 116px; height: 116px; border-radius: 30px; display: grid; place-items: center; background: var(--electric); border: 1px solid rgba(76, 141, 255, 0.5); animation: orbit-pulse 3.2s ease-in-out infinite; }
.orbit__logo svg { width: 70px; height: 70px; }
.orbit__center strong { font-size: 20px; font-weight: 700; letter-spacing: -0.04em; }
@keyframes orbit-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(76, 141, 255, 0.3), 0 0 60px -10px rgba(76, 141, 255, 0.5); } 50% { box-shadow: 0 0 0 18px rgba(76, 141, 255, 0), 0 0 90px -10px rgba(76, 141, 255, 0.7); } }
.orbit__glow { position: absolute; left: 50%; top: 50%; width: 720px; height: 720px; max-width: 100vw; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(30, 59, 255, 0.34), rgba(30, 59, 255, 0.12) 45%, transparent); pointer-events: none; }
.orbit-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.orbit-legend li { display: flex; align-items: center; gap: 8px; }
.orbit-legend i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); }
.orbit-legend li:nth-child(2) i { border-color: #d0d0d0; }
.orbit-legend li:nth-child(3) i { border-style: dashed; border-color: var(--faint); }
.orbit-names { margin: 18px auto 0; max-width: 720px; text-align: center; color: var(--faint); font-size: 13.5px; }
/* Entrance: the mark appears first, rings open outwards, then each tool slides in from its own side. */
.js .orbit__center { scale: 0.4; opacity: 0; transition: scale 1s var(--ease-out), opacity 0.8s var(--ease-out); }
.js .orbit__ring { opacity: 0; scale: 0.55; transition: scale 1.2s var(--ease-out), opacity 1s var(--ease-out); transition-delay: var(--ring-delay); }
.js .orbit__node { opacity: 0; transform: translateX(var(--from, 0)); transition: transform 1.1s var(--ease-out), opacity 0.9s var(--ease-out), border-color 0.3s, box-shadow 0.3s; transition-delay: var(--node-delay, 0s), var(--node-delay, 0s), 0s, 0s; }
.js .orbit.is-in .orbit__center, .js .orbit.is-in .orbit__ring { opacity: 1; scale: 1; }
.js .orbit.is-in .orbit__node { opacity: 1; transform: none; }

/* ---------- Pricing page hero ---------- */
.page-hero { position: relative; padding: calc(var(--nav-height) + 90px) 0 10px; text-align: center; overflow: hidden; }
.page-hero__inner { position: relative; display: grid; justify-items: center; gap: 20px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.faq__intro { position: sticky; top: calc(var(--nav-height) + 30px); display: grid; gap: 22px; justify-items: start; }
.faq__list { display: grid; gap: 12px; }
.faq__item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s; }
.faq__item[open] { border-color: var(--line-strong); }
.faq__item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 22px 24px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__number { color: var(--accent); font: 500 13px/1 "Geist Mono", ui-monospace, monospace; }
.faq__icon { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: transform 0.35s var(--ease-out), background-color 0.3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; translate: -50% -50%; background: var(--text); }
.faq__icon::after { rotate: 90deg; transition: rotate 0.35s var(--ease-out); }
.faq__item[open] .faq__icon { background: #fff; border-color: #fff; }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: var(--accent-ink); }
.faq__item[open] .faq__icon::after { rotate: 0deg; }
.faq__answer { padding: 0 24px 22px 58px; color: var(--muted); font-size: 15px; }
.faq__answer p { margin: 0; }

/* ---------- Closing call to action ---------- */
.closing { text-align: center; padding: 120px 0 130px; overflow: hidden; }
.closing__inner { position: relative; display: grid; justify-items: center; gap: 22px; }
.closing .section-title { max-width: 680px; }

/* ---------- Waitlist form (shared by Home and the Waitlist page) ---------- */
.waitlist-form { width: min(470px, 100%); display: grid; gap: 12px; }
.waitlist-form__field { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 20px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-strong); transition: border-color 0.25s, box-shadow 0.25s; }
.waitlist-form__field:focus-within { border-color: rgba(76, 141, 255, 0.6); box-shadow: 0 0 0 4px rgba(76, 141, 255, 0.1); }
.waitlist-form__field input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; font-size: 15px; }
.waitlist-form__field input::placeholder { color: var(--faint); }
.waitlist-form .button { flex: none; }
.waitlist-form .button[disabled] { opacity: 0.7; cursor: progress; }
.waitlist-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.waitlist-form__check { display: flex; justify-content: center; }
.waitlist-form__check:empty { display: none; }
.waitlist-form__status { min-height: 22px; margin: 0; font-size: 14px; color: var(--muted); }
.waitlist-form__status[data-tone="success"] { color: var(--accent); }
.waitlist-form__status[data-tone="error"] { color: #ff7a7a; }
.waitlist-form.is-done .waitlist-form__field { border-color: rgba(76, 141, 255, 0.6); }

/* ---------- Waitlist page ---------- */
.waitlist-page { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.waitlist-hero { position: relative; display: grid; place-items: center; padding: calc(var(--nav-height) + 60px) 0 80px; overflow: hidden; }
.waitlist-hero__inner { position: relative; display: grid; justify-items: center; text-align: center; gap: 22px; }
.waitlist-hero__title { margin: 0; font-size: clamp(42px, 6vw, 64px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.waitlist-hero__lead { margin: 0; max-width: 470px; color: var(--muted); font-size: 18px; }
.waitlist-hero__note { margin: 0; color: var(--faint); font-size: 14px; }
.socials { display: flex; gap: 10px; justify-content: center; }
.social { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); transition: border-color 0.25s, transform 0.35s var(--ease-out); }
.social:hover { border-color: rgba(76, 141, 255, 0.6); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 34px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__about { display: grid; gap: 16px; align-content: start; }
.footer__about p { margin: 0; color: var(--muted); font-size: 15px; max-width: 320px; }
.footer__heading { margin: 0 0 16px; font-size: 14px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__links a { color: #d0d0d0; font-size: 15px; transition: color 0.2s; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 14px; }
.footer__bottom a:hover { color: var(--text); }

/* ---------- Aura: the live Iris background behind every page hero; it leans toward the pointer and a soft light follows the cursor ---------- */
.hero, .page-hero, .waitlist-hero { isolation: isolate; }
.aura {
  --mx: 0; --my: 0; --px: 50%; --py: 40%;
  position: absolute; inset: 0 0 auto; height: min(1100px, 140vh); z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.aura__spot {
  position: absolute; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(76, 141, 255, 0.28), rgba(46, 230, 255, 0.06) 60%, transparent);
  translate: var(--px) var(--py); opacity: 0; transition: opacity 0.8s var(--ease-out);
}
.aura.is-lit .aura__spot { opacity: 1; }
/* The Iris (detalia-fx.js), dimmed toward Night so the copy keeps its contrast. */
.aura--fx { -webkit-mask-image: linear-gradient(#000 45%, transparent 88%); mask-image: linear-gradient(#000 45%, transparent 88%); }
/* Shorter heroes: the aura fits the hero, so its fade ends inside it instead of being cut by the hero's edge. */
.page-hero .aura, .waitlist-hero .aura { height: 100%; }
.page-hero .aura__fx, .waitlist-hero .aura__fx { opacity: 0.48; }
.aura__fx { position: absolute; inset: -5%; opacity: 0.62; translate: calc(var(--mx) * -50px) calc(var(--my) * -50px); will-change: translate; }
.aura.aura--fx::before { background: radial-gradient(42% 36% at 50% 30%, rgba(2, 6, 23, 0.72), transparent 75%), radial-gradient(90% 80% at 50% 30%, transparent 40%, rgba(2, 6, 23, 0.8)); }
/* Depth: a vignette pulls the edges back into Night, a fine grain keeps the gradients from banding. */
.aura::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(80% 70% at 50% 35%, transparent 35%, rgba(2, 6, 23, 0.75)); }
.aura::after {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: 0.09;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Live brand backgrounds (assets/js/detalia-fx.js) behind whole sections ---------- */
.has-fx { position: relative; isolation: isolate; }
.fx-layer { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fx-layer--streak { opacity: 0.7; -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.fx-layer--beam { inset: 0 0 auto; height: 900px; opacity: 0.8; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.fx-layer--horizon { inset: auto 0 0; height: 100%; opacity: 0.9; -webkit-mask-image: linear-gradient(transparent, #000 35%); mask-image: linear-gradient(transparent, #000 35%); }

/* ---------- Motion ---------- */
/* Hidden start states apply only when JavaScript runs, so content stays readable without it. */
.js [data-reveal] { opacity: 0; transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out), filter 0.9s var(--ease-out); transition-delay: var(--delay, 0s); }
.js [data-reveal="up"] { transform: translateY(40px); }
.js [data-reveal="left"] { transform: translateX(-150px); }
.js [data-reveal="right"] { transform: translateX(150px); }
.js [data-reveal="rise"] { transform: perspective(1200px) translateY(150px); transition-duration: 1.1s, 1.3s, 0.9s; }
.js [data-reveal="blur"] { filter: blur(12px); transform: translateY(20px); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .hero__tilt { transform: none !important; animation: none; }
  .js .hero__stage { opacity: 1; transform: none; transition: none; }
  .badge__track { animation: none; }
  .orbit__ring, .orbit__upright, .orbit__logo, .flow-canvas__select, .flow-enhance::before { animation: none; }
  .scroll-text__word { opacity: 1 !important; }
  .js .orbit__center, .js .orbit__ring, .js .orbit__node { opacity: 1; scale: 1; transform: none; transition: none; }
  .orbit__system { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ways { flex-direction: column; align-items: stretch; padding: 18px; text-align: center; }
  .ways__list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .way { justify-content: center; background: rgba(255, 255, 255, 0.03); }
  .way + .way::before { display: none; }
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: var(--nav-height) 0 auto; display: grid; gap: 22px; padding: 24px var(--gutter) 30px;
    background: rgba(2, 6, 23, 0.97); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; translate: 0 -8px; transition: opacity 0.25s, translate 0.35s var(--ease-out), visibility 0.25s;
  }
  .nav[data-open="true"] .nav__menu { opacity: 1; visibility: visible; translate: 0 0; }
  .nav__links { flex-direction: column; gap: 18px; }
  .nav__links a { font-size: 18px; }
  .nav__actions { justify-content: flex-start; }
  .features { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plan--popular { translate: none; }
  .flow { --flow-dir: column; }
  .flow__graph { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; gap: 46px; }
  .flow-port--in { top: 0; left: 50%; }
  .flow-port--out { top: 100%; left: 50%; }
  .flow-providers { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .flow-node--provider { flex-direction: column; gap: 6px; padding: 10px 4px 12px; font-size: 11.5px; text-align: center; }
  .flow-provider__name small { display: none; }
  .flow__steps { grid-template-columns: 1fr 1fr; }
  .orbit { --size: 620px; --node: 56px; }
  .faq { grid-template-columns: 1fr; gap: 30px; }
  .faq__intro { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}
@media (min-width: 961px) { .nav__menu { display: contents; } }
@media (max-width: 640px) {
  .hero__title { white-space: normal; }
  :root { --gutter: 16px; --nav-height: 70px; }
  .section { padding: 72px 0; }
  .hero { padding-top: calc(var(--nav-height) + 50px); }
  .hero__lead { font-size: 16px; }
  .hero__stage { margin-top: 48px; }
  .studio__frame { grid-template-columns: minmax(0, 1fr); height: 420px; }
  .studio__rail, .studio__pill, .studio__views { display: none; }
  .features, .versus { grid-template-columns: 1fr; }
  .orbit { --size: 340px; --node: 32px; }
  .orbit__logo { width: 76px; height: 76px; border-radius: 22px; }
  .orbit__logo svg { width: 46px; height: 46px; }
  .orbit__center strong { font-size: 16px; }
  .orbit__node--soon::before { display: none; }
  .flow-provider__name { display: none; }
  .flow-node--provider img { width: 30px; height: 30px; }
  .flow__steps { grid-template-columns: 1fr; gap: 18px; }
  .plan--popular { translate: none; }
  .scroll-text { font-size: 26px; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .faq__answer { padding-left: 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .waitlist-form__field { flex-direction: column; align-items: stretch; padding: 8px; border-radius: 22px; }
  .waitlist-form__field input { padding: 0 12px; }
}
