/* ==========================================================================
   Ironyx — Shared components (Fusion AI look)
   Sections must NOT override these globally; scope tweaks under .section--{name}.
   ========================================================================== */

/* ==========================================================================
   Buttons
   <a class="btn btn--primary" href="#"><span class="btn__label" data-text="Texto">Texto</span></a>
   ========================================================================== */
.btn {
  --btn-h: 50px;
  --btn-px: 20px;
  --btn-fs: 16px;
  --btn-color: #fff;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 12px var(--btn-px);
  border: 1px solid transparent;
  border-radius: var(--r-12);
  font-family: var(--font-body);
  font-size: var(--btn-fs);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--btn-color);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition:
    background-color .35s var(--ease-out),
    border-color .35s var(--ease-out),
    box-shadow .5s var(--ease-out),
    scale .2s var(--ease-out);
}
.btn:active { scale: .985; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; pointer-events: none; }

/* Label roll: the real text stays in the DOM (a11y + layout), two painted copies roll up on hover */
.btn__label {
  position: relative;
  z-index: 2;
  display: block;
  overflow: hidden;
  line-height: 1.35;
}
.btn__label[data-text] { color: transparent; }
.btn__label[data-text]::before,
.btn__label[data-text]::after {
  content: attr(data-text);
  content: attr(data-text) / "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  color: var(--btn-color);
  text-align: inherit;
  white-space: nowrap;
  transition: transform .45s var(--ease-roll);
  will-change: transform;
}
.btn__label[data-text]::after { top: 100%; }
.btn:hover .btn__label[data-text]::before,
.btn:hover .btn__label[data-text]::after,
.btn:focus-visible .btn__label[data-text]::before,
.btn:focus-visible .btn__label[data-text]::after { transform: translateY(-100%); }

.btn__icon {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform .45s var(--ease-roll);
}
.btn__icon > svg, .btn__icon > img { width: 100%; height: 100%; }
.btn:hover .btn__icon--end { transform: translateX(3px); }

/* ---- Primary: black fill inside a 163deg gradient ring + top-edge light ---- */
.btn--primary {
  background:
    radial-gradient(70% 110% at 50% -10%, rgba(218, 78, 36, .22) 0%, rgba(218, 78, 36, 0) 72%) padding-box,
    linear-gradient(#000, #000) padding-box,
    var(--grad-btn-ring) border-box;
  box-shadow:
    0 -3px 18px -8px rgba(218, 78, 36, .65),
    0 12px 30px -18px rgba(0, 152, 243, .35);
}
/* orange bloom under the top rim (#DA4E24, blur 10px, opacity .6) */
.btn--primary::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 22%;
  right: 22%;
  top: -5px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  filter: blur(10px);
  opacity: .6;
  pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
/* white-hot blob lighting the top edge (radial #fff → rgb(140,54,2), blur 3px) */
.btn--primary::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: -2px;
  width: 40%;
  height: 6px;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--grad-btn-blob);
  filter: blur(2.5px);
  opacity: .95;
  pointer-events: none;
  transition: top .5s var(--ease-out), opacity .5s var(--ease-out), width .5s var(--ease-out);
}
.btn--primary:hover::before { opacity: .7; transform: scaleX(1.12); }
.btn--primary:hover::after { top: -5px; width: 50%; opacity: 1; }
.btn--primary:hover {
  box-shadow:
    0 -4px 26px -8px rgba(218, 78, 36, .8),
    0 14px 34px -16px rgba(0, 152, 243, .45);
}

/* ---- Outlined -------------------------------------------------------------- */
.btn--outline {
  --btn-px: 42px;
  font-weight: 400;
  background: transparent;
  border-color: var(--border-btn);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .34);
}

/* ---- Ghost (text-only, for tertiary actions) ------------------------------ */
.btn--ghost { --btn-px: 12px; background: transparent; color: var(--text-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .05); }

/* ---- Sizes / layout ------------------------------------------------------- */
.btn--sm {
  --btn-h: 40px;
  --btn-px: 14px;
  --btn-fs: 15px;
  gap: 8px;
  padding-block: 6px;
  border-radius: var(--r-8);
}
.btn--sm.btn--outline { --btn-px: 18px; }
.btn--sm.btn--primary::before { top: -4px; height: 12px; filter: blur(8px); }
.btn--sm.btn--primary::after { top: -2px; height: 5px; width: 44%; }
.btn--sm.btn--primary:hover::after { top: -4px; }
.btn--sm .btn__icon { width: 16px; height: 16px; }
.btn--block { display: flex; width: 100%; }

/* ==========================================================================
   Eyebrow pill
   <span class="eyebrow"><img class="eyebrow__icon" src="assets/img/sparkle.svg" alt="">Recursos</span>
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 14px 5px 12px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background:
    linear-gradient(#000, #000) padding-box,
    var(--grad-eyebrow) border-box;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 20px;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  white-space: nowrap;
}
.eyebrow:not(:has(.eyebrow__icon)) { padding-inline: 14px; }
.eyebrow__icon { width: 14px; height: 14px; flex: none; }

/* ==========================================================================
   Cards, panels, glass
   ========================================================================== */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-16);
}
.card--hairline { border-color: var(--hairline); }
.card--black { background: #000; }
.card--panel { border-radius: var(--r-20); }
.card--pad { padding: 24px; }
.card__inset {                       /* illustration/image area inside a card */
  position: relative;
  overflow: hidden;
  border-radius: var(--r-12);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
}

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--r-16);
}

/* ==========================================================================
   Ambient glows — ALWAYS orange on the left, blue on the right
   <div class="glow glow--orange" style="--glow-w:640px; left:-10%; top:20%"></div>
   ========================================================================== */
.glow {
  position: absolute;
  z-index: 0;
  width: var(--glow-w, 600px);
  height: var(--glow-h, var(--glow-w, 600px));
  border-radius: 50%;
  background: var(--glow-color, var(--orange));
  filter: blur(var(--glow-blur, 100px));
  opacity: var(--glow-opacity, .55);
  pointer-events: none;
  transform: translateZ(0);
}
.glow--orange { --glow-color: radial-gradient(closest-side, #FF8918 0%, #DA4E24 55%, rgba(162, 41, 4, .6) 100%); }
.glow--blue { --glow-color: radial-gradient(closest-side, #1F77F6 0%, #0098F3 55%, rgba(0, 105, 166, .6) 100%); }
.glow--soft { --glow-opacity: .32; }
.glow--strong { --glow-opacity: .8; }
@media (max-width: 809px) {
  .glow { --glow-blur: 70px; }
}

/* ==========================================================================
   Glow border — thin orange wedge spinning around the card edge (10s linear)
   Uses ::before. Put on any element with a border-radius (e.g. .card.glow-border)
   ========================================================================== */
@property --glow-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.glow-border { position: relative; --glow-start: 1deg; }
.glow-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from calc(var(--glow-angle) + var(--glow-start)) at 50% 50%,
    transparent 0deg 320.4deg,
    #DA4E24 330deg,
    #FF9A3D 334.8deg,
    #DA4E24 339.6deg,
    transparent 349.2deg 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: glow-border-spin 10s linear infinite;
  pointer-events: none;
}
.glow-border--offset { --glow-start: 33deg; }
.glow-border--blue::before {
  background: conic-gradient(
    from calc(var(--glow-angle) + var(--glow-start)) at 50% 50%,
    transparent 0deg 320.4deg,
    #0098F3 334.8deg,
    transparent 349.2deg 360deg
  );
}
.glow-border.is-paused::before { animation-play-state: paused; }
@keyframes glow-border-spin { to { --glow-angle: 360deg; } }

/* JS-injected ring (lib/glowFollow.js → initGlowBorders): same wedge, but the conic layer is
   rotated with a transform animation inside a static masked ring → runs on the compositor. */
.glow-border.has-ring::before { content: none; }
.glow-border__ring {
  position: absolute;
  inset: -1px;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  container-type: size;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glow-border__spin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170%;
  width: hypot(100cqw, 100cqh);
  aspect-ratio: 1;
  background: conic-gradient(
    from var(--glow-start) at 50% 50%,
    transparent 0deg 320.4deg,
    #DA4E24 330deg,
    #FF9A3D 334.8deg,
    #DA4E24 339.6deg,
    transparent 349.2deg 360deg
  );
  transform: translate(-50%, -50%) rotate(0deg);
  animation: glow-ring-spin 10s linear infinite;
  will-change: transform;
}
.glow-border--blue .glow-border__spin {
  background: conic-gradient(from var(--glow-start) at 50% 50%, transparent 0deg 320.4deg, #0098F3 334.8deg, transparent 349.2deg 360deg);
}
.glow-border.is-paused .glow-border__spin { animation-play-state: paused; }
@keyframes glow-ring-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .glow-border::before { animation: none; --glow-angle: 20deg; }
  .glow-border__spin { animation: none; transform: translate(-50%, -50%) rotate(20deg); }
}
html.motion-off .glow-border::before { animation: none; --glow-angle: 20deg; }
html.motion-off .glow-border__spin { animation: none; transform: translate(-50%, -50%) rotate(20deg); }

/* ==========================================================================
   Glossy glass sphere — the brand mark (pure CSS; 1em = diameter)
   <span class="sphere" style="--size:70px" aria-hidden="true"></span>
   ========================================================================== */
.sphere {
  --size: 40px;
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--size);
  height: var(--size);
  font-size: var(--size);
  line-height: 0;
  border-radius: 50%;
  background:
    /* soft glass window reflection at the top */
    radial-gradient(58% 34% at 50% 10%, rgba(255, 255, 255, .20), rgba(255, 255, 255, 0) 72%),
    /* warm light bouncing inside, lower right */
    radial-gradient(52% 44% at 74% 84%, rgba(255, 137, 24, .34), rgba(255, 137, 24, 0) 72%),
    /* cool light bouncing inside, lower left */
    radial-gradient(52% 44% at 24% 82%, rgba(0, 152, 243, .32), rgba(0, 152, 243, 0) 72%),
    /* glass body */
    radial-gradient(circle at 50% 40%, #1b1b1d 0%, #0a0a0b 46%, #000 74%);
  box-shadow:
    /* crisp fresnel rims */
    inset .035em 0 .025em -.004em rgba(135, 210, 255, .95),
    inset -.035em 0 .025em -.004em rgba(255, 184, 110, .95),
    /* broader rim light falloff */
    inset .11em 0 .15em -.035em rgba(0, 152, 243, .8),
    inset -.11em 0 .15em -.035em rgba(218, 78, 36, .85),
    /* depth at the bottom */
    inset 0 -.05em .09em rgba(0, 0, 0, .6),
    /* outer halo: blue left, orange right */
    -.05em .01em .28em -.05em rgba(0, 152, 243, .55),
    .05em .01em .28em -.05em rgba(218, 78, 36, .55);
}
/* specular highlight */
.sphere::before {
  content: "";
  position: absolute;
  left: 22%;
  top: 8%;
  width: 38%;
  height: 20%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .42) 42%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(-26deg);
  filter: blur(.01em);
  pointer-events: none;
}
/* thin top rim + small secondary glint (orange, lower right) */
.sphere::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(6% 3% at 69% 86%, rgba(255, 200, 150, .6), rgba(255, 200, 150, 0) 100%);
  box-shadow: inset 0 .018em .012em rgba(255, 255, 255, .38);
  pointer-events: none;
}
.sphere--glow {
  box-shadow:
    inset .035em 0 .025em -.004em rgba(135, 210, 255, .95),
    inset -.035em 0 .025em -.004em rgba(255, 184, 110, .95),
    inset .11em 0 .15em -.035em rgba(0, 152, 243, .8),
    inset -.11em 0 .15em -.035em rgba(218, 78, 36, .85),
    inset 0 -.05em .09em rgba(0, 0, 0, .6),
    -.12em .02em .5em -.04em rgba(0, 152, 243, .55),
    .12em .02em .5em -.04em rgba(218, 78, 36, .55);
}

/* ==========================================================================
   Sparkle (4-point glass star) + bullet icon
   <img class="sparkle" src="assets/img/sparkle.svg" alt="" width="16" height="16">
   <span class="bullet-icon"><img class="sparkle" src="assets/img/sparkle.svg" alt=""></span>
   ========================================================================== */
.sparkle {
  --size: 16px;
  display: inline-block;
  flex: none;
  width: var(--size);
  height: var(--size);
}
/* single-color version (inherits currentColor) */
.sparkle-mask {
  --size: 16px;
  display: inline-block;
  flex: none;
  width: var(--size);
  height: var(--size);
  background: currentColor;
  -webkit-mask: url("../img/sparkle-mask.svg") center / contain no-repeat;
  mask: url("../img/sparkle-mask.svg") center / contain no-repeat;
}
.bullet-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: var(--r-8);
  background: linear-gradient(180deg, #111 0%, #050505 100%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.bullet-icon .sparkle { --size: 16px; }

/* ---- Integration / brand icons (assets/img/icons/*.svg are fill="currentColor") ----
   Colorable mask:   <span class="icon icon--n8n" aria-hidden="true"></span>   ← preferred
   Custom mask URL:  style="--icon:url('/assets/img/icons/x.svg')" (ROOT-absolute path only: relative
                     url() inside a custom property resolves against components.css, not the page)
   Plain <img>:      <img class="icon-img" src="assets/img/icons/n8n.svg" alt="n8n">  (inverted to white) */
.icon {
  --size: 24px;
  display: inline-block;
  flex: none;
  width: var(--size);
  height: var(--size);
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon-img { width: var(--size, 24px); height: var(--size, 24px); filter: invert(1); opacity: .9; }

/* Icon classes — URLs resolve relative to THIS stylesheet, so they work from any page.
   <span class="icon icon--n8n" aria-hidden="true"></span>  (size: --size, color: currentColor) */
.icon--airtable { --icon: url("../img/icons/airtable.svg"); }
.icon--evolution { --icon: url("../img/icons/evolution.svg"); }
.icon--gmail { --icon: url("../img/icons/gmail.svg"); }
.icon--googlecalendar { --icon: url("../img/icons/googlecalendar.svg"); }
.icon--googledrive { --icon: url("../img/icons/googledrive.svg"); }
.icon--googlemaps { --icon: url("../img/icons/googlemaps.svg"); }
.icon--googlesheets { --icon: url("../img/icons/googlesheets.svg"); }
.icon--hubspot { --icon: url("../img/icons/hubspot.svg"); }
.icon--instagram { --icon: url("../img/icons/instagram.svg"); }
.icon--linkedin { --icon: url("../img/icons/linkedin.svg"); }
.icon--n8n { --icon: url("../img/icons/n8n.svg"); }
.icon--nocodb { --icon: url("../img/icons/nocodb.svg"); }
.icon--notion { --icon: url("../img/icons/notion.svg"); }
.icon--openai { --icon: url("../img/icons/openai.svg"); }
.icon--pipedrive { --icon: url("../img/icons/pipedrive.svg"); }
.icon--rdstation { --icon: url("../img/icons/rdstation.svg"); }
.icon--slack { --icon: url("../img/icons/slack.svg"); }
.icon--telegram { --icon: url("../img/icons/telegram.svg"); }
.icon--webhook { --icon: url("../img/icons/webhook.svg"); }
.icon--whatsapp { --icon: url("../img/icons/whatsapp.svg"); }
.icon--youtube { --icon: url("../img/icons/youtube.svg"); }
.icon--sparkle { --icon: url("../img/sparkle-mask.svg"); }


/* ==========================================================================
   Chips, pills, badges, score
   ========================================================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--r-8);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.chip > svg, .chip > img, .chip > .icon { --size: 16px; width: 16px; height: 16px; }
button.chip:hover, a.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-active { color: var(--text); background: rgba(218, 78, 36, .12); border-color: rgba(218, 78, 36, .45); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border-soft);
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-2);
  background: rgba(255, 255, 255, .06);
}
.badge--pill { border-radius: var(--r-pill); padding: 0 10px; }
.badge--orange { color: #fff; background: var(--orange); box-shadow: 0 0 20px -4px rgba(218, 78, 36, .7); }
.badge--blue { color: #fff; background: var(--blue-2); }
.badge--success { color: var(--success); background: rgba(52, 211, 153, .1); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .25); }
.badge--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); }

/* AI lead score: .score--strong (>= 70, "lead forte") / .score--weak (< 70). Use lib scoreClass(n). */
.score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px 0 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.score::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.score--strong {
  color: #FF9B6A;
  background: rgba(218, 78, 36, .14);
  box-shadow: inset 0 0 0 1px rgba(218, 78, 36, .4), 0 0 18px -6px rgba(218, 78, 36, .6);
}
.score--weak {
  color: var(--text-3);
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

/* ==========================================================================
   Marquee / ticker
   <div class="marquee" data-marquee data-marquee-speed="40" data-marquee-direction="-1">
     <div class="marquee__track"><div class="marquee__item">…</div>…</div>
   </div>
   ========================================================================== */
.marquee {
  --fade: 72px;
  --gap: 48px;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--gap);
  width: max-content;
}
.marquee__item { flex: none; }
/* static fallback (no JS / reduced motion) */
html.no-js .marquee__track,
.marquee.is-static .marquee__track {
  flex-wrap: wrap;
  justify-content: center;
  width: auto;
  row-gap: calc(var(--gap) / 2);
}
html.no-js .marquee, .marquee.is-static { -webkit-mask-image: none; mask-image: none; }

/* ==========================================================================
   Mock app window (product mockups)
   ========================================================================== */
.window {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-20);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #0b0b0c 0%, #050505 100%);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.window__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, .015);
}
.window__dots { display: flex; gap: 7px; flex: none; }
.window__dots > span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #262628;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.window__dots--color > span:nth-child(1) { background: #FF5F57; }
.window__dots--color > span:nth-child(2) { background: #FEBC2E; }
.window__dots--color > span:nth-child(3) { background: #28C840; }
.window__dots--color > span { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); opacity: .85; }
.window__title {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.window__bar-end { flex: none; display: flex; gap: 8px; min-width: 47px; justify-content: flex-end; }
.window__body { position: relative; }
.window--fade { -webkit-mask-image: var(--grad-fade-bottom); mask-image: var(--grad-fade-bottom); }

/* ==========================================================================
   Form primitives (contact form, newsletter…)
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: var(--fs-small); font-weight: 500; color: var(--text-2); }
.input {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border-radius: var(--r-12);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  line-height: 22px;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s;
}
.input::placeholder { color: rgba(255, 255, 255, .45); }   /* ≥ 4.5:1 — carries the phone format hint */
.input:hover { border-color: var(--border-strong); }
.input:focus-visible,
.input:focus {
  outline: none;
  border-color: rgba(218, 78, 36, .7);
  box-shadow: 0 0 0 4px rgba(218, 78, 36, .15);
  background: #080808;
}
.input[aria-invalid="true"] { border-color: #ef4444; }
textarea.input { min-height: 130px; resize: vertical; }
select.input {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

/* ==========================================================================
   Cursor-follow highlight ([data-glow-follow] → .has-glow-follow, uses ::after)
   ========================================================================== */
.has-glow-follow { position: relative; }
.has-glow-follow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(
    var(--glow-follow-size, 360px) circle at var(--mx, 50%) var(--my, 50%),
    var(--glow-follow-color, rgba(255, 255, 255, .07)),
    transparent 62%
  );
  opacity: 0;
  transition: opacity .45s var(--ease-out);
  pointer-events: none;
}
.has-glow-follow.is-glowing::after { opacity: 1; }

/* ==========================================================================
   Logo (sphere + wordmark)
   ========================================================================== */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.logo .sphere { --size: 40px; }
.logo__word {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.nav {
  position: fixed;
  z-index: var(--z-nav);
  top: var(--nav-top);
  left: var(--nav-inset);
  right: var(--nav-inset);
  height: var(--nav-h);
  border-radius: var(--r-12);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, .15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, .55);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .9);
}
.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  padding: 0 14px 0 16px;
}
.nav__logo { justify-self: start; }
.nav__center { justify-self: center; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: var(--text-2);
  transition: color .3s var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { opacity: 1; transform: none; }
.nav__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
}
.nav__toggle-line {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform .45s var(--ease-roll), top .45s var(--ease-roll);
}
.nav__toggle-line:nth-child(1) { top: 15px; }
.nav__toggle-line:nth-child(2) { top: 22px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) { top: 18.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) { top: 18.5px; transform: rotate(-45deg); }

@media (max-width: 1199px) {
  .nav__links { gap: 22px; }
  .nav__link { font-size: 15px; }
}
@media (min-width: 810px) and (max-width: 919px) {
  .nav__inner { padding: 0 12px 0 14px; }
  .nav__links { gap: 18px; }
}
@media (max-width: 809px) {
  .nav__inner { grid-template-columns: 1fr auto; padding: 0 10px 0 12px; }
  .nav__center { display: none; }
  .nav__toggle { display: block; }
  .nav .logo .sphere { --size: 32px; }
  .nav .logo__word { font-size: 21px; }
  .nav__cta { --btn-fs: 14px; --btn-px: 12px; --btn-h: 38px; }
}
@media (max-width: 419px) {
  .nav .logo .sphere { --size: 28px; }
  .nav .logo__word { font-size: 19px; }
  .nav__cta { --btn-fs: 13px; --btn-px: 10px; --btn-h: 36px; }
}
@media (max-width: 359px) {
  .nav__cta { display: none; }
}

/* ---- Mobile menu overlay (outside #smooth-wrapper) ----------------------- */
.nav-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(var(--nav-top) + var(--nav-h) + 24px) 24px calc(24px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s var(--ease-out), visibility 0s linear .35s;
}
html.menu-open .nav-menu { visibility: visible; opacity: 1; transition: opacity .35s var(--ease-out); }
.nav-menu.is-gsap { transition: none; }
.nav-menu__glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  pointer-events: none;
  overflow: hidden;
}
.nav-menu__glow::before,
.nav-menu__glow::after {
  content: "";
  position: absolute;
  bottom: -30%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
}
.nav-menu__glow::before { left: -20%; background: var(--orange); }
.nav-menu__glow::after { right: -20%; background: var(--blue); }
.nav-menu__inner { position: relative; display: flex; flex-direction: column; flex: 1; gap: 32px; }
.nav-menu__links { list-style: none; margin: 0; padding: 0; }
.nav-menu__links li { border-bottom: 1px solid var(--border-soft); }
.nav-menu__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-menu__index {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.nav-menu__footer { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.nav-menu__note { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 4px; }
@media (min-width: 810px) {
  .nav-menu { display: none; }
}

/* ==========================================================================
   Footer — floating black card on a huge orange/blue glow
   ========================================================================== */
.footer {
  --footer-inset: 40px;
  position: relative;
  padding: 24px var(--footer-inset) var(--footer-inset);
  overflow-x: clip;
}
.footer__glow {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: -160px;
  width: max(1500px, 125vw);
  height: 1150px;
  translate: -50% 0;
  pointer-events: none;
  will-change: transform, opacity;   /* own layer: the CTA scrub only moves / fades it */
}
.footer__glow::before,
.footer__glow::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 56%;
  height: 74%;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .78;
}
.footer__glow::before {
  left: 9%;
  background: radial-gradient(closest-side, #FF8918 0%, #DA4E24 48%, rgba(162, 41, 4, .55) 78%, rgba(162, 41, 4, 0) 100%);
}
.footer__glow::after {
  right: 9%;
  background: radial-gradient(closest-side, #1F77F6 0%, #0098F3 48%, rgba(0, 105, 166, .55) 78%, rgba(0, 105, 166, 0) 100%);
}
.footer__card {
  position: relative;
  z-index: 1;
  margin-inline: auto;
  padding: 56px clamp(24px, 5vw, 64px) 32px;
  border-radius: var(--r-20);
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 -30px 80px -40px rgba(0, 0, 0, .9);
}
.footer__inner { max-width: var(--container); margin-inline: auto; }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px 80px;
  padding-bottom: 48px;
}
.footer__brand { display: flex; flex-direction: column; gap: 18px; max-width: 360px; }
.footer__tagline { color: var(--text-2); font-size: 16px; line-height: 26px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, auto); gap: 40px 88px; }
.footer__heading {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 20px;
  color: var(--text-3);
  margin-bottom: 18px;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__link {
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  opacity: .88;
  transition: opacity .25s var(--ease-out), color .25s var(--ease-out);
}
.footer__link:hover { opacity: 1; color: var(--orange-bright); }
.footer__divider { height: 1px; background: var(--border); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding-top: 28px;
}
.footer__legal { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.footer__copy { font-size: var(--fs-small); color: var(--text-3); }
.footer__company { font-size: 13px; line-height: 20px; color: var(--text-3); }
.footer__company [data-company]:not([hidden])::after { content: " · "; }
.footer__mail { color: var(--text-3); transition: color .25s var(--ease-out); }
.footer__mail:hover { color: var(--orange-bright); }
.footer__end { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; }
.footer__motion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-3);
  font: 500 13px/1 var(--font-body);
  cursor: pointer;
  transition: color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.footer__motion:hover { color: #fff; border-color: rgba(255, 255, 255, .22); }
.footer__motion svg { width: 16px; height: 16px; flex: none; }
.footer__motion[hidden] { display: none; }
.footer__social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: color .25s var(--ease-out), border-color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.footer__social a:hover { color: #fff; border-color: rgba(218, 78, 36, .5); background: rgba(218, 78, 36, .1); }
.footer__social svg { width: 18px; height: 18px; }

@media (max-width: 1199px) {
  .footer__cols { gap: 32px 48px; }
}
/* tablet: the brand column would get squeezed next to 3 link columns → stack them */
@media (max-width: 1023px) {
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__brand { max-width: 460px; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 809px) {
  .footer { --footer-inset: 12px; }
  .footer__glow { height: 1250px; bottom: -120px; }   /* tall footer card on phones: let the glow rise above it, behind the CTA */
  .footer__glow::before, .footer__glow::after { filter: blur(80px); }
  .footer__card { padding: 40px 22px 24px; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 36px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; }
}

/* Brand names that must keep their own casing inside uppercase labels (e.g. n8n) */
.nocase { text-transform: none; }
.nowrap { white-space: nowrap; }   /* keeps a word pair together, also inside SplitText headings (it turns &nbsp; into spaces) */
