/* ==========================================================================
   graphics.css — Decorative graphics & motion (creative visuals)
   Reusable backdrops, an animated ER-schema diagram, and glow animations.
   Loaded last so it can layer on top of the section styles.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tech-grid & dot backdrops
   -------------------------------------------------------------------------- */
.deco-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 40%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 40%, #000 25%, transparent 72%);
}
.deco-grid--center {
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, #000 30%, transparent 78%);
}
.deco-dots {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 60% at 50% 50%, #000, transparent 75%);
}

/* --------------------------------------------------------------------------
   Floating gradient orbs
   -------------------------------------------------------------------------- */
.orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; opacity: 0.4; }
.orb--a { background: var(--brand-purple); animation: orbDrift 16s ease-in-out infinite; }
.orb--b { background: var(--brand-magenta); animation: orbDrift 21s ease-in-out -4s infinite; }
.orb--c { background: var(--brand-coral); animation: orbDrift 25s ease-in-out -8s infinite; }
@keyframes orbDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(26px, -30px, 0) scale(1.14); }
}

/* --------------------------------------------------------------------------
   Glow pulse (applied to existing hero / CTA glows for subtle life)
   -------------------------------------------------------------------------- */
@keyframes glowPulse { 0%, 100% { opacity: 0.82; } 50% { opacity: 1; } }
.hero__glow, .cta__glow, .security__glow, .page-hero__glow { animation: glowPulse 7s ease-in-out infinite; }

/* --------------------------------------------------------------------------
   Hero / section backdrops
   -------------------------------------------------------------------------- */
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero > .container, .hero__media-wrap { position: relative; z-index: 1; }
.stats, .cta { position: relative; }
.stats > .container, .cta__inner { position: relative; z-index: 1; }

/* ==========================================================================
   ER-SCHEMA DIAGRAM SECTION
   ========================================================================== */
.schema { position: relative; overflow: hidden; }
.schema__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.schema__feats { margin-top: 28px; display: flex; flex-direction: column; gap: 13px; }
.schema__feats li { display: flex; align-items: center; gap: 11px; font-size: var(--fs-body); color: var(--color-text); }
.schema__feats li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-gradient); flex: none; }

.schema__diagram { position: relative; min-height: 430px; }
.schema__wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.schema__wire { fill: none; stroke: url(#erGrad); stroke-width: 1.5; stroke-dasharray: 5 6; animation: dashFlow 1.1s linear infinite; }
.schema__dot { fill: var(--brand-magenta); }
@keyframes dashFlow { to { stroke-dashoffset: -22; } }

.er-table {
  position: absolute; z-index: 2; width: 212px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.er-table:hover { transform: translateY(-4px); border-color: var(--brand-purple); }
.er-table__head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; font-weight: 600; font-size: var(--fs-sm);
  background: linear-gradient(180deg, rgba(114, 95, 232, 0.18), transparent);
  border-bottom: 1px solid var(--color-border);
}
.er-table__head .icon { width: 15px; height: 15px; color: var(--brand-purple); }
.er-table__cols { padding: 5px 0; }
.er-table__cols li {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--color-text-muted);
}
.er-table__cols li + li { border-top: 1px solid rgba(255, 255, 255, 0.03); }
.er-type { margin-left: auto; color: var(--color-text-dim); font-size: 11px; }
.er-key { font-size: 9px; font-weight: 700; letter-spacing: 0.4px; padding: 1px 5px; border-radius: 3px; flex: none; }
.er-key--pk { background: rgba(245, 190, 79, 0.16); color: #f5be4f; }
.er-key--fk { background: rgba(114, 95, 232, 0.2); color: #9b8bff; }

.er-table--users    { top: 0;    left: 0; }
.er-table--products { top: 8%;   right: 0; }
.er-table--orders   { bottom: 0; left: 27%; }

.er-rel {
  position: absolute; z-index: 3;
  font-family: var(--font-mono); font-size: 10px;
  padding: 2px 8px; border-radius: var(--radius-pill);
  background: var(--color-bg); border: 1px solid var(--color-border-strong);
  color: var(--color-text-muted);
}
.er-rel--a { top: 46%; left: 17%; }
.er-rel--b { top: 50%; left: 62%; }

/* ==========================================================================
   ANIMATED MINI BARS (stats accent)
   ========================================================================== */
.stat-spark { display: inline-flex; align-items: flex-end; gap: 4px; height: 28px; margin-top: 14px; }
.stat-spark span {
  width: 5px; border-radius: 2px 2px 0 0;
  background: var(--brand-gradient); opacity: 0.85; transform-origin: bottom;
  animation: barPulse 1.8s ease-in-out infinite;
}
.stat-spark span:nth-child(1) { height: 45%; }
.stat-spark span:nth-child(2) { height: 75%; animation-delay: 0.2s; }
.stat-spark span:nth-child(3) { height: 55%; animation-delay: 0.4s; }
.stat-spark span:nth-child(4) { height: 95%; animation-delay: 0.6s; }
.stat-spark span:nth-child(5) { height: 68%; animation-delay: 0.8s; }
@keyframes barPulse { 0%, 100% { transform: scaleY(0.72); } 50% { transform: scaleY(1); } }

/* ==========================================================================
   FEATURE-CARD MINI-MOCKUPS  (legible HTML — replaces screenshot thumbnails)
   ========================================================================== */
.fc-mock {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; gap: 7px;
  padding: 13px 14px;
  font-size: 10.5px; line-height: 1.3;
  background:
    radial-gradient(130% 120% at 0% 0%, rgba(114, 95, 232, 0.12), transparent 55%),
    #0c0c11;
  overflow: hidden;
}
.fc-mock__dots { display: flex; gap: 4px; margin-bottom: 2px; }
.fc-mock__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-surface-3); }
.fc-mock__dots i:first-child { background: #ef5f5b; }
.fc-row { display: flex; align-items: center; gap: 7px; color: var(--color-text-muted); }
.fc-row .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.fc-node { align-self: flex-start; padding: 4px 9px; border-radius: 6px; background: var(--color-surface-2); border: 1px solid var(--color-border-strong); color: var(--color-text); }
.fc-node--accent { border-color: var(--brand-purple); background: rgba(114, 95, 232, 0.14); }
.fc-tree { display: flex; flex-direction: column; gap: 5px; color: var(--color-text-muted); }
.fc-tree .l1 { padding-left: 12px; }
.fc-tree .l2 { padding-left: 24px; color: var(--color-text); }
.fc-code { font-family: var(--font-mono); display: flex; flex-direction: column; gap: 3px; color: #abb2bf; }
.fc-code .kw { color: #c678dd; } .fc-code .fn { color: #61afef; } .fc-code .str { color: #98c379; } .fc-code .com { color: #7f848e; }
.fc-ai { align-self: flex-start; padding: 5px 11px; border-radius: 999px; color: var(--color-text);
  background: linear-gradient(#0c0c11, #0c0c11) padding-box, var(--brand-gradient) border-box; border: 1px solid transparent; }
.fc-log { font-family: var(--font-mono); display: flex; flex-direction: column; gap: 5px; color: var(--color-text-dim); }
.fc-log .ok { color: var(--color-positive); }
.fc-log .err { color: var(--color-negative); }

/* ==========================================================================
   ACCORDION — query-logs mockup (legible HTML — replaces the screenshot)
   ========================================================================== */
.logs-mock { height: 100%; display: flex; flex-direction: column; background: #0b0b0f; }
.logs-mock__bar { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--color-border-strong); background: #0e0e13; }
.logs-mock__dots { display: flex; gap: 6px; }
.logs-mock__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--color-surface-3); }
.logs-mock__dots i:nth-child(1) { background: #ef5f5b; } .logs-mock__dots i:nth-child(2) { background: #f5be4f; } .logs-mock__dots i:nth-child(3) { background: #5ac05a; }
.logs-mock__title { font-family: var(--font-mono); font-size: 13px; color: var(--color-text-muted); }
.logs-mock__status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-positive); }
.logs-mock__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-positive); }
.logs-mock__body { padding: 16px; display: flex; flex-direction: column; gap: 11px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.4; overflow: hidden; }
.logs-mock__line { color: var(--color-text-muted); display: flex; gap: 10px; }
.logs-mock__line .t { color: var(--color-text-dim); flex: none; }
.logs-mock__line .ok { color: var(--color-positive); }
.logs-mock__line .kw { color: #c678dd; }
.logs-mock__line .num { color: #d19a66; }

/* ==========================================================================
   "Generating step 4" — animated generating state
   ========================================================================== */
.ai-node--gen { animation: genPulse 2.2s ease-in-out infinite; }
@keyframes genPulse {
  0%, 100% { box-shadow: 0 0 18px -8px rgba(206, 71, 235, 0.55); }
  50% { box-shadow: 0 0 26px -2px rgba(206, 71, 235, 0.85); }
}
.ai-gen__spark { animation: genSpin 2.6s linear infinite; transform-origin: center; }
@keyframes genSpin { to { transform: rotate(360deg); } }
.ai-gen__dots span { animation: genBlink 1.4s ease-in-out infinite; }
.ai-gen__dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-gen__dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes genBlink { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

/* ==========================================================================
   3D COVERFLOW (features) — center card faces front, side cards tilt & recede
   ========================================================================== */
.features__head--center { display: block; text-align: center; max-width: 700px; margin: 0 auto; }
.features__head--center .section-title { margin-bottom: 16px; }
.features__head--center .section-lead { margin-inline: auto; max-width: 540px; }

.coverflow { margin-top: 52px; }
.coverflow__stage { position: relative; height: 400px; perspective: 2000px; }
.cf-card {
  position: absolute; top: 50%; left: 50%;
  width: 540px; height: 296px; margin: -148px 0 0 -270px;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  box-shadow: 0 40px 90px -28px rgba(0, 0, 0, 0.9);
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.5s var(--ease), filter 0.5s var(--ease), box-shadow 0.5s var(--ease);
  transform-style: preserve-3d; will-change: transform; cursor: pointer;
  backface-visibility: hidden;
}
.cf-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-card__overlay { position: absolute; inset: auto 0 0 0; padding: 22px 24px; background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 8%, rgba(0, 0, 0, 0.45) 55%, transparent); }
.cf-card__overlay h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.3px; color: #fff; }
.cf-card__overlay p { font-size: 13.5px; color: rgba(255, 255, 255, 0.78); margin-top: 5px; line-height: 1.4; }
.cf-card.is-active { border-color: rgba(114, 95, 232, 0.5); box-shadow: 0 40px 110px -22px rgba(114, 95, 232, 0.55); }
/* Image-free text cards inside the coverflow */
.cf-card--text { background: linear-gradient(160deg, rgba(114, 95, 232, 0.16), var(--color-surface) 55%); }
.cf-card__inner { height: 100%; padding: 38px 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cf-card__inner .icon-chip { width: 54px; height: 54px; margin-bottom: 22px; }
.cf-card__inner .icon-chip .icon { width: 24px; height: 24px; }
.cf-card__txt h3 { font-size: 23px; font-weight: 600; color: #fff; letter-spacing: -0.3px; }
.cf-card__txt p { font-size: 14px; color: var(--color-text-muted); margin-top: 9px; line-height: 1.5; }
.cf-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-purple);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  margin-bottom: 12px;
}
/* Soft glow filling the empty corner */
.cf-card--text::after {
  content: "";
  position: absolute;
  top: -36%; left: 50%;
  width: 80%; height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(206, 71, 235, 0.14), transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.cf-card--text .cf-card__inner { position: relative; z-index: 1; }

/* ==========================================================================
   ROADMAP TIMELINE — alternating vertical timeline (dark)
   ========================================================================== */
.timeline { position: relative; max-width: 900px; margin: 56px auto 0; list-style: none; padding: 0; }
.timeline::before {
  content: "";
  position: absolute;
  left: 50%; top: 4px; bottom: 4px;
  width: 2px; transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--color-border-strong) 6%, var(--color-border-strong) 94%, transparent);
}
.timeline__item { position: relative; width: 50%; box-sizing: border-box; padding-bottom: 38px; }
.timeline__item--left { padding-right: 46px; }
.timeline__item--right { margin-left: 50%; padding-left: 46px; }
/* horizontal connector from the card to the centre line */
.timeline__item::after { content: ""; position: absolute; top: 32px; width: 46px; height: 2px; background: var(--color-border-strong); }
.timeline__item--left::after { right: 0; }
.timeline__item--right::after { left: 0; }
/* node on the line */
.timeline__dot {
  position: absolute; top: 25px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--color-bg); border: 2px solid var(--brand-purple);
  box-shadow: 0 0 0 4px rgba(114, 95, 232, 0.12);
  z-index: 2;
}
.timeline__item--left .timeline__dot { right: -7.5px; }
.timeline__item--right .timeline__dot { left: -7.5px; }
/* phase pill, opposite the card */
.timeline__phase {
  position: absolute; top: 26px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em;
  color: var(--color-text-muted);
  background: var(--color-surface-2); border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill); padding: 4px 12px; white-space: nowrap;
}
.timeline__item--left .timeline__phase { left: calc(100% + 22px); }
.timeline__item--right .timeline__phase { right: calc(100% + 22px); }
/* card */
.timeline__card {
  display: flex; gap: 16px;
  background: var(--color-surface); border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl); padding: 22px 24px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.timeline__card:hover {
  border-color: rgba(114, 95, 232, 0.45); transform: translateY(-3px);
  box-shadow: 0 24px 60px -30px rgba(114, 95, 232, 0.5);
}
.timeline__card .icon-chip { flex: none; width: 46px; height: 46px; }
.timeline__card .icon-chip .icon { width: 22px; height: 22px; }
.timeline__title { font-size: 18px; font-weight: 600; color: var(--color-text); letter-spacing: -0.3px; }
.timeline__text { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; margin-top: 7px; }

@media (max-width: 760px) {
  .timeline { margin-top: 40px; }
  .timeline::before { left: 7px; }
  .timeline__item, .timeline__item--left, .timeline__item--right {
    width: 100%; margin-left: 0; padding: 0 0 26px 40px;
  }
  .timeline__item--left .timeline__dot, .timeline__item--right .timeline__dot { left: 0; right: auto; top: 4px; }
  .timeline__item::after { display: none; }
  .timeline__item--left .timeline__phase, .timeline__item--right .timeline__phase {
    position: static; display: inline-block; margin-bottom: 10px;
  }
}

/* ── "Engineered for power users" — scroll-synced reveal text ──────────── */
.features__reveal {
  max-width: 880px;
  margin: 30px auto 0;
  text-align: center;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--color-text);
  text-wrap: balance;
}

.coverflow__nav { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 36px; }
.coverflow__dots { display: flex; gap: 9px; }
.cf-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: var(--color-surface-3); cursor: pointer; transition: width 0.3s var(--ease), background 0.3s var(--ease); }
.cf-dot.is-active { width: 26px; background: var(--brand-gradient); }
.coverflow__arrow { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--color-surface); border: 1px solid var(--color-border-strong); color: var(--color-text); cursor: pointer; transition: background 0.25s var(--ease), border-color 0.25s var(--ease); }
.coverflow__arrow:hover { background: var(--color-surface-3); border-color: var(--brand-purple); }
.coverflow__arrow .icon { width: 18px; height: 18px; }

/* ==========================================================================
   GEMINI-STYLE ANIMATED PATHS — gradient ribbons drawn on scroll
   ========================================================================== */
.gemini { position: relative; overflow: hidden; padding-block: 90px 30px; }
.gemini__head { text-align: center; max-width: 680px; margin: 0 auto; position: relative; z-index: 2; }
.gemini__head .section-lead { margin-inline: auto; }
.gemini__svg { display: block; width: 100%; height: clamp(220px, 30vw, 420px); margin-top: -10px; }
.gemini__path { fill: none; stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 7px rgba(206, 71, 235, 0.4)); }

/* ==========================================================================
   CURVED MARQUEE (vanilla port of React Bits CurvedLoop)
   ========================================================================== */
.curved-loop { overflow: hidden; padding-block: 20px; }
.curved-loop__svg { display: block; width: 100%; overflow: visible; font-weight: 800; text-transform: uppercase; letter-spacing: -1px; }
.curved-loop__text { font-size: clamp(2.2rem, 6vw, 5rem); fill: url(#clGrad); }

/* ==========================================================================
   CARDSWAP (vanilla port of React Bits CardSwap)
   ========================================================================== */
.features__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.features__intro { max-width: 460px; }
.cardswap { position: relative; width: 100%; height: 440px; perspective: 1300px; }
.swap-card {
  position: absolute; top: 50%; left: 50%;
  width: 380px; height: 250px;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--color-border-strong);
  background: linear-gradient(160deg, rgba(114, 95, 232, 0.16), var(--color-surface) 55%);
  box-shadow: 0 30px 70px -22px rgba(0, 0, 0, 0.85);
  transform-style: preserve-3d; will-change: transform; backface-visibility: hidden;
}
.swap-card__inner { height: 100%; padding: 28px; display: flex; flex-direction: column; }
.swap-card__inner .icon-chip { margin-bottom: auto; }
.swap-card__txt h3 { font-size: 19px; font-weight: 600; color: #fff; letter-spacing: -0.3px; }
.swap-card__txt p { font-size: 13.5px; color: var(--color-text-muted); margin-top: 7px; line-height: 1.45; }

/* ==========================================================================
   HERO LASER BEAM (lightweight canvas — no WebGL library)
   ========================================================================== */
/* Framed app screenshot with a glowing "charged" border (whole frame) */
.hero__frame {
  position: relative;
  background: var(--color-surface);
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(206, 71, 235, 0.5);
  overflow: hidden;
  box-shadow: 0 0 70px -12px rgba(206, 71, 235, 0.5), 0 40px 90px -25px rgba(0, 0, 0, 0.85);
  animation: frameCharge 4s ease-in-out infinite;
  transition: filter 0.4s var(--ease);
  will-change: transform;
  transform-style: preserve-3d;
}
.hero__frame:hover { filter: brightness(1.05) saturate(1.05); }
/* Smooth scaling for the screenshot — overrides the global crisp-edges rule
   (crisp-edges is for pixel art; on a photo/screenshot it looks jagged). */
.hero__frame img { width: 100%; display: block; image-rendering: auto; border: 0; border-radius: 0; }
@keyframes frameCharge {
  0%, 100% { box-shadow: 0 0 55px -14px rgba(206, 71, 235, 0.42), 0 40px 90px -25px rgba(0, 0, 0, 0.85); border-color: rgba(206, 71, 235, 0.38); }
  50% { box-shadow: 0 0 95px -6px rgba(206, 71, 235, 0.72), 0 40px 90px -25px rgba(0, 0, 0, 0.85); border-color: rgba(206, 71, 235, 0.7); }
}

/* ==========================================================================
   PAGE LOADER + HERO ENTRANCE  (blur-in reveal — animate-ui style)
   ========================================================================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--color-bg);
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.page-loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.page-loader__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;                 /* 2x the header logo gap (7px) */
  transform-origin: center center;
  will-change: transform, opacity, filter;
  /* Compositor-only reveal (opacity + blur) — runs on the GPU thread, so a busy
     main thread on a cold first load can't make it stutter. This is exactly why
     animate-ui's loader stays smooth while its bundle parses. The FLIP fly uses
     transform (also GPU), so transform is left free for the JS to drive. */
  animation: loaderReveal 0.7s var(--ease) both;
}
/* Sized at exactly 2x the header logo so the FLIP scale (~0.5) lands it
   precisely on top of the real logo for a seamless hand-off. */
.page-loader__mark { width: 54px; height: 54px; }
.page-loader__word {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.08px;
  color: var(--color-text);
}
@keyframes loaderReveal {
  from { opacity: 0; filter: blur(14px); }
  to   { opacity: 1; filter: blur(0); }
}

/* Headline words sit inline so the blur can clear one word at a time */
.hero__title .hero-word { display: inline-block; white-space: nowrap; }

/* Hero elements start blurred + dim + nudged down, then clear in sequence */
.force-motion .hero [data-reveal],
.force-motion .hero__title .hero-word {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), filter 0.65s var(--ease), transform 0.65s var(--ease);
}
.force-motion .hero [data-reveal].is-in,
.force-motion .hero__title .hero-word.is-in {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

@media (max-width: 1024px) {
  .features__layout { grid-template-columns: 1fr; gap: 28px; justify-items: center; }
  .features__intro { max-width: 600px; text-align: center; }
  .features__intro .section-lead { margin-inline: auto; }
  .cardswap { height: 360px; }
  .swap-card { width: 320px; height: 210px; }
}
@media (max-width: 640px) {
  .swap-card { width: 270px; height: 178px; }
  .cardswap { height: 320px; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .schema__grid { grid-template-columns: 1fr; gap: 36px; }
  .schema__diagram { min-height: 380px; }
  .cf-card { width: 440px; height: 285px; margin: -142px 0 0 -220px; }
  .coverflow__stage { height: 400px; }
}
@media (max-width: 640px) {
  .er-table { width: 180px; }
  .er-table--orders { left: 18%; }
  .cf-card { width: 300px; height: 196px; margin: -98px 0 0 -150px; }
  .coverflow__stage { height: 310px; perspective: 1300px; }
}

/* ==========================================================================
   Respect reduced motion
   ========================================================================== */
/* ==========================================================================
   SCROLL-SYNCED TEXT + PARALLAX
   ========================================================================== */
.st-word { opacity: 0.16; transition: opacity 0.08s linear; }
.statement__title--reveal {
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.32;
  letter-spacing: -0.5px;
  max-width: 1040px;
  margin-inline: auto;
}
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .orb, html:not(.force-motion) .schema__wire,
  html:not(.force-motion) .hero__glow, html:not(.force-motion) .cta__glow,
  html:not(.force-motion) .security__glow, html:not(.force-motion) .page-hero__glow,
  html:not(.force-motion) .stat-spark span, html:not(.force-motion) .ai-node--gen,
  html:not(.force-motion) .ai-gen__spark, html:not(.force-motion) .ai-gen__dots span { animation: none !important; }
  html:not(.force-motion) .st-word { opacity: 1 !important; }
  html:not(.force-motion) [data-parallax] { transform: none !important; }
}
