/* ==========================================================================
   CX SOFT — landing
   1. tokens
   2. base / a11y
   3. ambient background
   4. primitives (actions, reveal, headings)
   5. header + menu
   6. hero
   7. capabilities strip
   8. studio
   9. bento
   10. approach
   11. showcase + demo interface
   12. process timeline
   13. contact
   14. footer
   15. adaptive
   16. reduced motion
   ========================================================================== */

/* 1. tokens ---------------------------------------------------------------- */

:root {
  color-scheme: dark;

  --bg: #050505;
  --bg-raised: #08080a;
  --bg-card: #0b0b0d;

  --text: #f5f5f7;
  --text-2: rgba(245, 245, 247, 0.68);
  --text-3: rgba(245, 245, 247, 0.6);
  --text-4: rgba(245, 245, 247, 0.5);

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --accent: #e9eaf0;
  --ambient-a: rgba(122, 132, 255, 0.16);
  --ambient-b: rgba(96, 168, 255, 0.12);
  --ambient-c: rgba(168, 140, 255, 0.1);

  --radius-l: 26px;
  --radius-m: 18px;
  --radius-s: 12px;

  --shell: min(1240px, 100% - 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "Segoe UI Variable Text", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
}

/* 2. base / a11y ----------------------------------------------------------- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-optical-sizing: auto;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 5px var(--accent);
}

button:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 5px var(--accent);
}

button {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p, ul, ol, figure, figcaption { margin: 0; }
ul, ol { list-style: none; padding: 0; }

img { max-width: 100%; }

svg { display: block; }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 14px;
  left: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-s);
  background: var(--text);
  color: #08080a;
  font-weight: 600;
  transform: translateY(-220%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus-visible { transform: none; }

main { position: relative; z-index: 1; }

/* 3. ambient background ---------------------------------------------------- */

.ambient {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-grid,
.ambient-glow,
.ambient-pointer,
.ambient-grain { position: absolute; }

.ambient-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 104px 104px;
  mask-image: radial-gradient(130% 78% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.35) 48%, transparent 76%);
  opacity: 0.55;
}

.ambient-glow {
  border-radius: 50%;
  filter: blur(90px);
}

.ambient-glow-one {
  top: -18vh;
  right: -6vw;
  width: 62vw;
  height: 62vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, var(--ambient-a), transparent 66%);
  animation: drift-one 34s ease-in-out infinite;
}

.ambient-glow-two {
  top: 34vh;
  left: -16vw;
  width: 52vw;
  height: 52vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle, var(--ambient-b), transparent 68%);
  animation: drift-two 44s ease-in-out infinite;
}

.ambient-pointer {
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 186, 255, 0.09), transparent 62%);
  opacity: 0;
  transform: translate3d(var(--px, 50vw), var(--py, 40vh), 0);
  transition: opacity 0.6s ease;
}

.ambient-pointer.is-live { opacity: 1; }

.ambient-grain {
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.04;
  mix-blend-mode: overlay;
}

@keyframes drift-one {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-4vw, 4vh, 0) scale(1.08); }
}

@keyframes drift-two {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(5vw, -3vh, 0) scale(1.1); }
}

/* 4. primitives ------------------------------------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.section { padding-block: clamp(84px, 11vw, 172px); }

.section-head { display: grid; gap: 22px; }

.section-title {
  max-width: 19ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.1vw, 3.5rem);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1.06;
  text-wrap: balance;
}

.section-lead {
  max-width: 52ch;
  color: var(--text-3);
  font-size: 1.02rem;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  white-space: nowrap;
  translate: var(--mag-x, 0) var(--mag-y, 0);
  transition: translate 0.5s var(--ease), transform 0.4s var(--ease), background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

.action-primary {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(180deg, #ffffff 0%, #dcdce4 100%);
  color: #08080a;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.action-primary:hover {
  background: linear-gradient(180deg, #ffffff 0%, #eeeef4 100%);
  transform: translateY(-1px);
}

.action-ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.action-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.action-large {
  min-height: 62px;
  padding: 0 34px;
  border-radius: var(--radius-m);
  font-size: 1.05rem;
}

.action-arrow {
  font-size: 1.05em;
  transition: transform 0.4s var(--ease);
}

.action:hover .action-arrow { transform: translate(2px, -2px); }

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(7px);
  transition:
    opacity 0.85s var(--ease) var(--reveal-delay, 0ms),
    transform 0.85s var(--ease) var(--reveal-delay, 0ms),
    filter 0.85s var(--ease) var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* 5. header + menu --------------------------------------------------------- */

.site-header {
  position: fixed;
  z-index: 60;
  top: 16px;
  left: 0;
  width: 100%;
  padding-inline: 16px;
  transition: top 0.5s var(--ease);
}

.header-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  width: min(1240px, 100%);
  margin-inline: auto;
  padding: 10px 10px 10px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(9, 9, 11, 0.5);
  backdrop-filter: blur(18px) saturate(150%);
  transition: padding 0.5s var(--ease), background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

[data-header].is-scrolled .header-shell {
  padding: 6px 8px 6px 20px;
  background: rgba(7, 7, 9, 0.78);
  border-color: var(--line-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 620;
  letter-spacing: 0.14em;
  justify-self: start;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.brand-word { color: var(--text-2); }

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  position: relative;
  z-index: 1;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--text-3);
  font-size: 0.9rem;
  transition: color 0.35s ease;
}

.nav a:hover,
.nav a.is-current { color: var(--text); }

.nav-marker {
  position: absolute;
  top: 50%;
  left: 0;
  width: var(--marker-w, 0px);
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  opacity: var(--marker-o, 0);
  transform: translate3d(var(--marker-x, 0px), -50%, 0);
  transition: transform 0.55s var(--ease), width 0.55s var(--ease), opacity 0.4s ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.header-cta {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 13px;
  font-size: 0.88rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-bars {
  display: grid;
  gap: 5px;
  width: 17px;
}

.menu-bars span {
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}

[aria-expanded="true"] .menu-bars span:first-child { transform: translateY(3.25px) rotate(45deg); }
[aria-expanded="true"] .menu-bars span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.site-menu {
  position: fixed;
  z-index: 55;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 34px;
  padding: 110px 28px 56px;
  background: rgba(5, 5, 6, 0.86);
  backdrop-filter: blur(24px);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}

.site-menu[hidden] { display: none; }
.site-menu.is-open { opacity: 1; transform: none; }

.site-menu-nav { display: grid; gap: 6px; }

.site-menu-nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  border-radius: 0;
}

.menu-index {
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.site-menu-cta { justify-self: start; }

/* 6. hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(40px, 6vw, 72px);
  width: var(--shell);
  min-height: clamp(620px, 92vh, 1060px);
  margin-inline: auto;
  padding-block: 150px 60px;
}

.hero-shell {
  position: relative;
  z-index: 1;
}

.hero-title {
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.7vw, 5rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.03;
  text-wrap: pretty;
}

.title-line {
  display: block;
  clip-path: inset(-0.24em -0.6em 0 -0.6em);
}

.title-inner {
  display: block;
  transform: translateY(112%);
  animation: line-rise 1s var(--ease) 0.1s forwards;
}

.title-line:last-child .title-inner { animation-delay: 0.22s; }

.title-soft {
  background: linear-gradient(96deg, #ffffff 6%, rgba(245, 245, 247, 0.62) 52%, rgba(196, 202, 255, 0.78) 96%);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: line-rise 1s var(--ease) 0.22s forwards, sheen 14s ease-in-out 1.6s infinite;
}

.lead {
  max-width: 46ch;
  margin-top: 28px;
  color: var(--text-2);
  font-size: clamp(1.04rem, 1.3vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.hero-foot {
  max-width: 34ch;
  color: var(--text-3);
  font-size: 0.92rem;
  padding-top: clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

@keyframes line-rise {
  to { transform: translateY(0); }
}

@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* hero visual */

.hero-visual {
  position: absolute;
  z-index: 0;
  top: 58%;
  right: -9%;
  width: min(52vw, 660px);
  aspect-ratio: 1;
  translate: 0 -50%;
  pointer-events: none;
  mask-image: linear-gradient(102deg, transparent 8%, rgba(0, 0, 0, 0.32) 32%, #000 64%);
}

.visual-field {
  position: absolute;
  inset: -6%;
  transform: perspective(1300px) rotateX(var(--par-y, 0deg)) rotateY(var(--par-x, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease);
}

.visual-halo,
.visual-ring,
.visual-slab,
.visual-canvas { position: absolute; }

.visual-halo {
  border-radius: 50%;
  filter: blur(46px);
}

.visual-halo-one {
  inset: 14%;
  background: radial-gradient(circle, rgba(150, 160, 255, 0.22), transparent 68%);
  animation: halo-pulse 12s ease-in-out infinite;
}

.visual-halo-two {
  inset: 26% 18% 22% 30%;
  background: radial-gradient(circle, rgba(120, 200, 255, 0.2), transparent 70%);
  animation: halo-pulse 16s ease-in-out 2s infinite reverse;
}

.visual-ring {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.visual-ring-one {
  inset: 8%;
  animation: ring-spin 46s linear infinite;
  border-top-color: rgba(255, 255, 255, 0.34);
}

.visual-ring-two {
  inset: 21%;
  border-color: rgba(255, 255, 255, 0.07);
  border-left-color: rgba(180, 190, 255, 0.4);
  animation: ring-spin 32s linear infinite reverse;
}

.visual-slab {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.008) 64%);
  backdrop-filter: blur(7px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.visual-slab-one {
  inset: 30% 24% 34% 22%;
  transform: rotate(-14deg) translateZ(40px);
  animation: slab-float 18s ease-in-out infinite;
}

.visual-slab-two {
  inset: 24% 30% 40% 30%;
  border-radius: 26px;
  transform: rotate(9deg) translateZ(70px);
  animation: slab-float 22s ease-in-out 1.5s infinite reverse;
}

.visual-slab-three {
  inset: 44% 34% 26% 30%;
  border-radius: 18px;
  transform: rotate(-3deg) translateZ(110px);
  animation: slab-float 26s ease-in-out 3s infinite;
}

.visual-canvas {
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.visual-canvas.is-live { opacity: 0.85; }

@keyframes halo-pulse {
  0%, 100% { transform: scale(0.94); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes slab-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

/* 7. capabilities strip ---------------------------------------------------- */

.strip {
  --gap: 42px;
  position: relative;
  overflow: hidden;
  padding-block: 26px;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee {
  display: flex;
  gap: var(--gap);
  width: max-content;
}

.marquee-track {
  display: flex;
  gap: var(--gap);
  margin: 0;
  animation: marquee 46s linear infinite;
}

.marquee-track li {
  color: rgba(245, 245, 247, 0.2);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 3.1rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes marquee {
  to { transform: translateX(calc(-100% - var(--gap))); }
}

/* 8. studio ---------------------------------------------------------------- */

.studio-shell {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.studio .section-title {
  max-width: 22ch;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
}

.studio-copy {
  display: grid;
  gap: 18px;
  max-width: 62ch;
  margin-top: clamp(20px, 3vw, 36px);
  color: var(--text-2);
  font-size: clamp(1rem, 1.2vw, 1.14rem);
}

/* 9. bento ----------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 5vw, 72px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  min-height: 268px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.036), rgba(255, 255, 255, 0.01));
  transition: transform 0.55s var(--ease), border-color 0.5s ease, box-shadow 0.5s ease;
}

.card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -1px;
  background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.07), transparent 62%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.card:hover::before { opacity: 1; }

.card-body { position: relative; z-index: 1; max-width: 44ch; }

.card-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 560;
  letter-spacing: -0.03em;
}

.card-body p {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 0.98rem;
}

.card-visual {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 130px;
}

.card-wide {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 460px;
}

.card:not(.card-wide):not(.card-wide-soft) { grid-column: span 5; }

.card-wide-soft {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 32px;
  min-height: 210px;
}

.card-wide-soft .card-body { order: 1; }
.card-wide-soft .card-visual { order: 2; }

/* window mockup */

.card-visual-window { display: grid; align-items: end; }

.mock-window {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  height: 100%;
  min-height: 240px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.mock-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.mock-title {
  width: 96px;
  height: 7px;
  margin-left: 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.mock-body {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.mock-side { display: grid; align-content: start; gap: 9px; }

.mock-side i {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.mock-side i:first-child { background: rgba(255, 255, 255, 0.3); }

.mock-main {
  display: grid;
  grid-template-rows: auto auto minmax(54px, 1fr) auto;
  gap: 12px;
  min-height: 0;
}

.mock-row {
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.09);
  transform-origin: left;
  animation: mock-load 6s var(--ease) infinite;
}

.mock-row-one { width: 62%; }
.mock-row-two { width: 40%; animation-delay: 0.4s; }
.mock-row-three { width: 74%; animation-delay: 1.2s; }

.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.mock-tiles span {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  animation: mock-tile 7s var(--ease) infinite;
}

.mock-tiles span:nth-child(2) { animation-delay: 0.6s; }
.mock-tiles span:nth-child(3) { animation-delay: 1.2s; }

@keyframes mock-load {
  0%, 62%, 100% { opacity: 0.55; transform: scaleX(1); }
  22% { opacity: 1; transform: scaleX(1.02); }
}

@keyframes mock-tile {
  0%, 70%, 100% { border-color: var(--line); background: rgba(255, 255, 255, 0.03); }
  30% { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.07); }
}

/* workflow nodes */

.card-visual-flow { display: grid; place-items: center; }

.flow { width: min(100%, 240px); height: auto; }

.flow-link {
  fill: none;
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  animation: flow-dash 7s linear infinite;
}

.flow-link-slow { animation-duration: 11s; }
.flow-link-late { animation-duration: 9s; animation-direction: reverse; }

.flow-node rect {
  fill: rgba(255, 255, 255, 0.07);
  stroke: rgba(255, 255, 255, 0.26);
  animation: node-glow 8s ease-in-out infinite;
}

.flow-node-two rect { animation-delay: 1.4s; }
.flow-node-three rect { animation-delay: 2.8s; }

.flow-spark { fill: rgba(220, 226, 255, 0.9); }

@keyframes flow-dash {
  to { stroke-dashoffset: -100; }
}

@keyframes node-glow {
  0%, 70%, 100% { fill: rgba(255, 255, 255, 0.07); stroke: rgba(255, 255, 255, 0.26); }
  25% { fill: rgba(255, 255, 255, 0.14); stroke: rgba(255, 255, 255, 0.5); }
}

/* integrations */

.card-visual-join { position: relative; min-height: 150px; }

.join-block {
  position: absolute;
  top: 50%;
  width: 78px;
  height: 78px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(6px);
}

.join-block-one {
  left: 4%;
  transform: translateY(-50%);
  animation: join-left 9s var(--ease) infinite;
}

.join-block-two {
  right: 4%;
  transform: translateY(-50%);
  animation: join-right 9s var(--ease) infinite;
}

.join-line {
  position: absolute;
  top: 50%;
  left: 22%;
  width: 56%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.join-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px rgba(190, 200, 255, 0.9);
  animation: join-pulse 9s ease-in-out infinite;
}

@keyframes join-left {
  0%, 100% { transform: translate(0, -50%); }
  50% { transform: translate(18px, -50%); }
}

@keyframes join-right {
  0%, 100% { transform: translate(0, -50%); }
  50% { transform: translate(-18px, -50%); }
}

@keyframes join-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* interface controls */

.card-visual-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  min-height: 120px;
}

.ctrl-switch {
  display: inline-flex;
  align-items: center;
  width: 62px;
  height: 34px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.ctrl-switch i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: switch-toggle 6s var(--ease) infinite;
}

.ctrl-slider {
  position: relative;
  width: min(150px, 34%);
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.ctrl-slider i {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
  animation: slider-move 8s var(--ease) infinite;
}

.ctrl-chips { display: inline-flex; gap: 8px; }

.ctrl-chips b {
  width: 46px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  animation: chip-glow 9s ease-in-out infinite;
}

.ctrl-chips b:nth-child(2) { animation-delay: 1.1s; }
.ctrl-chips b:nth-child(3) { animation-delay: 2.2s; }

@keyframes switch-toggle {
  0%, 45% { transform: translateX(0); background: rgba(255, 255, 255, 0.35); }
  55%, 100% { transform: translateX(28px); background: #fff; }
}

@keyframes slider-move {
  0%, 100% { left: 6%; }
  50% { left: 74%; }
}

@keyframes chip-glow {
  0%, 76%, 100% { border-color: var(--line); background: rgba(255, 255, 255, 0.03); }
  24% { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.09); }
}

/* 10. approach ------------------------------------------------------------- */

.approach-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: start;
}

.steps { margin-top: clamp(38px, 5vw, 64px); }

.step {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  transition: opacity 0.6s ease, transform 0.6s var(--ease);
}

.js .step { opacity: 0.4; }

.step:last-child { border-bottom: 1px solid var(--line); }

.step.is-active { opacity: 1; }

.step-index {
  grid-row: span 2;
  padding-top: 0.4em;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  transition: color 0.6s ease;
}

.step.is-active .step-index { color: var(--text); }

.step h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 560;
  letter-spacing: -0.03em;
}

.step p {
  grid-column: 2;
  max-width: 46ch;
  color: var(--text-3);
}

.approach-visual {
  position: sticky;
  top: 150px;
  aspect-ratio: 4 / 5;
}

.layers {
  position: relative;
  width: 100%;
  height: 100%;
  transform: perspective(1200px) rotateX(8deg) rotateY(-12deg);
  transform-style: preserve-3d;
}

.layer {
  position: absolute;
  inset: 22% 8% 22% 8%;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  transition: transform 0.9s var(--ease), border-color 0.7s ease, background 0.7s ease;
}

.layer::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38%;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
}

.layer::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 70%);
}

.layer-one { transform: translate3d(6%, -26%, 0px); }
.layer-two { transform: translate3d(2%, -9%, 36px); }
.layer-three { transform: translate3d(-2%, 9%, 72px); }
.layer-four { transform: translate3d(-6%, 26%, 108px); }

.layers[data-active="0"] .layer-one,
.layers[data-active="1"] .layer-two,
.layers[data-active="2"] .layer-three,
.layers[data-active="3"] .layer-four {
  border-color: rgba(255, 255, 255, 0.34);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
}

.layers[data-active="0"] .layer-one { transform: translate3d(-2%, -28%, 132px); }
.layers[data-active="1"] .layer-two { transform: translate3d(-4%, -11%, 132px); }
.layers[data-active="2"] .layer-three { transform: translate3d(-6%, 7%, 132px); }
.layers[data-active="3"] .layer-four { transform: translate3d(-8%, 24%, 132px); }

.layer-glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 152, 255, 0.28), transparent 68%);
  filter: blur(52px);
  animation: halo-pulse 14s ease-in-out infinite;
}

/* 11. showcase ------------------------------------------------------------- */

.cases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 5vw, 68px);
}

.case {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  transition: transform 0.55s var(--ease), border-color 0.5s ease, box-shadow 0.5s ease;
}

.case::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(300px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.07), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.case:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
}

.case:hover::before { opacity: 1; }

.case-preview {
  position: relative;
  display: grid;
  align-content: center;
  gap: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01) 60%);
}

.case-preview span {
  height: 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.13);
  transition: transform 0.6s var(--ease), background 0.6s ease;
}

.case:hover .case-preview span { background: rgba(255, 255, 255, 0.24); }

.case-preview-one span:nth-child(1) { width: 78%; }
.case-preview-one span:nth-child(2) { width: 52%; }
.case-preview-one span:nth-child(3) { width: 64%; height: 30px; border-radius: 10px; }

.case-preview-two span { height: 14px; border-radius: 999px; }
.case-preview-two span:nth-child(1) { width: 40%; }
.case-preview-two span:nth-child(2) { width: 72%; }
.case-preview-two span:nth-child(3) { width: 56%; }

.case-preview-three span:nth-child(1) { width: 100%; height: 42px; border-radius: 12px; }
.case-preview-three span:nth-child(2) { width: 60%; }
.case-preview-three span:nth-child(3) { width: 34%; }

.case-preview-four span { height: 7px; }
.case-preview-four span:nth-child(1) { width: 88%; }
.case-preview-four span:nth-child(2) { width: 88%; }
.case-preview-four span:nth-child(3) { width: 46%; background: rgba(255, 255, 255, 0.3); }

.case:hover .case-preview-one span:nth-child(2) { transform: translateX(8px); }
.case:hover .case-preview-two span:nth-child(1) { transform: translateX(10px); }
.case:hover .case-preview-three span:nth-child(3) { transform: translateX(6px); }
.case:hover .case-preview-four span:nth-child(3) { transform: translateX(12px); }

.case-index {
  margin-top: 20px;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
}

.case h3 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.case p {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 0.92rem;
}

/* demo interface */

.demo {
  margin-top: clamp(48px, 7vw, 96px);
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.demo-window {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.014));
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6);
  transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.demo-dots { display: inline-flex; gap: 7px; }

.demo-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.demo-tabs { display: inline-flex; gap: 8px; }

.demo-tabs b {
  width: 78px;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
}

.demo-tabs b.is-active { background: rgba(255, 255, 255, 0.2); }

.demo-body {
  display: grid;
  grid-template-columns: clamp(96px, 16%, 190px) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 34px);
  flex: 1;
  min-height: 0;
  padding: clamp(16px, 2.4vw, 30px);
}

.demo-side {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-right: clamp(12px, 2vw, 24px);
  border-right: 1px solid var(--line);
}

.demo-brand {
  width: 62%;
  height: 12px;
  margin-bottom: 12px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.28);
}

.demo-item {
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}

.demo-item.is-active { background: rgba(255, 255, 255, 0.22); }
.demo-item-last { width: 64%; }

.demo-main {
  display: grid;
  grid-template-rows: auto auto minmax(70px, 1fr) auto;
  gap: clamp(12px, 1.8vw, 22px);
  min-height: 0;
}

.demo-head { display: grid; gap: 9px; }

.demo-head span {
  width: 42%;
  height: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
}

.demo-head span.demo-head-short {
  width: 24%;
  height: 9px;
  background: rgba(255, 255, 255, 0.09);
}

.demo-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); }

.demo-card {
  display: grid;
  align-content: space-between;
  gap: 14px;
  min-height: clamp(58px, 8vw, 84px);
  padding: clamp(10px, 1.4vw, 16px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.demo-card i { width: 44%; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
.demo-card b { width: 66%; height: 12px; border-radius: 5px; background: rgba(255, 255, 255, 0.24); }
.demo-card:nth-child(2) b { width: 48%; }
.demo-card:nth-child(3) b { width: 58%; }

.demo-chart {
  overflow: hidden;
  min-height: clamp(70px, 11vw, 118px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.demo-chart svg { width: 100%; height: 100%; }

.demo-area { fill: rgba(160, 172, 255, 0.14); }

.demo-line {
  fill: none;
  stroke: rgba(226, 230, 255, 0.75);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.demo-rows { display: grid; gap: 9px; }

.demo-rows span {
  height: 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
}

.demo-rows span:nth-child(2) { width: 82%; }
.demo-rows span:nth-child(3) { width: 64%; }

.demo-palette {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 4%, 40px);
  display: grid;
  gap: 9px;
  width: min(46%, 380px);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-m);
  background: rgba(14, 14, 18, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, 0) translateZ(60px);
  animation: palette-float 9s ease-in-out infinite;
}

.demo-palette-input {
  display: flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
}

.demo-palette-input i {
  width: 38%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  animation: caret 3.4s steps(1) infinite;
}

.demo-palette-row {
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
}

.demo-palette-row.is-active { background: rgba(255, 255, 255, 0.18); }
.demo-palette-row:nth-child(3) { width: 78%; }
.demo-palette-row:nth-child(4) { width: 58%; }

.demo figcaption {
  margin-top: 18px;
  color: var(--text-4);
  font-size: 0.86rem;
}

@keyframes palette-float {
  0%, 100% { transform: translate(-50%, 0) translateZ(60px); }
  50% { transform: translate(-50%, -8px) translateZ(60px); }
}

@keyframes caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* 12. process timeline ----------------------------------------------------- */

.process-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: start;
}

.process-head {
  position: sticky;
  top: 150px;
  display: grid;
  gap: 22px;
}

.timeline {
  --rail: clamp(38px, 5vw, 68px);
  position: relative;
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  padding-left: var(--rail);
}

.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 14px;
  width: 1px;
}

.timeline::before {
  bottom: 10px;
  background: var(--line);
}

.timeline::after {
  height: calc(var(--progress, 0) * (100% - 20px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(150, 162, 255, 0.55));
  box-shadow: 0 0 14px rgba(190, 200, 255, 0.45);
}

.timeline-step {
  position: relative;
  transition: opacity 0.6s ease;
}

.js .timeline-step { opacity: 0.34; }

.timeline-step::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: calc(10px - var(--rail));
  width: 9px;
  height: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #0c0c0f;
  transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.timeline-step.is-active { opacity: 1; }

.timeline-step.is-active::before {
  border-color: #fff;
  background: #fff;
  box-shadow: 0 0 18px rgba(200, 208, 255, 0.8);
}

.timeline-index {
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
}

.timeline-step h3 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 560;
  letter-spacing: -0.035em;
}

.timeline-step p {
  max-width: 48ch;
  margin-top: 8px;
  color: var(--text-3);
}

/* 13. contact -------------------------------------------------------------- */

.contact { padding-bottom: clamp(96px, 12vw, 180px); }

.contact-shell {
  position: relative;
  display: grid;
  justify-items: center;
  padding-block: clamp(56px, 8vw, 110px);
  text-align: center;
}

.contact-light {
  position: absolute;
  z-index: -1;
  inset: -40% -12%;
  background: radial-gradient(620px circle at var(--cx, 50%) var(--cy, 42%), rgba(146, 156, 255, 0.18), transparent 62%);
  filter: blur(24px);
  pointer-events: none;
}

.contact-title {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.8vw, 4.6rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

.contact-lead {
  max-width: 42ch;
  margin-top: 20px;
  color: var(--text-2);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}

.contact .action-large { margin-top: 38px; }

.contact-handle {
  margin-top: 22px;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.14em;
}

/* 14. footer --------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 1;
  padding-block: 40px 44px;
  border-top: 1px solid var(--line);
}

.footer-shell,
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand { display: grid; gap: 4px; }

.footer-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 620;
  letter-spacing: 0.14em;
}

.footer-role {
  color: var(--text-4);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-color: var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.92rem;
  transition: color 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.footer-nav a:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text-4);
  font-size: 0.84rem;
}

.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }

.footer-legal a {
  padding: 4px 6px;
  color: var(--text-4);
  transition: color 0.35s ease;
}

.footer-legal a:hover { color: var(--text-2); }

/* 15. adaptive ------------------------------------------------------------- */

@media (max-width: 1180px) {
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  :root { --shell: min(1240px, 100% - 40px); }

  .approach-shell,
  .process-shell { grid-template-columns: minmax(0, 1fr); }

  .approach-visual { display: none; }
  .process-head { position: static; }

  .card-wide { grid-column: span 12; grid-row: auto; min-height: 400px; }
  .card:not(.card-wide):not(.card-wide-soft) { grid-column: span 6; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-shell { grid-template-columns: 1fr auto; }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    gap: 44px;
    padding-block: 128px 40px;
  }

  .hero-visual {
    position: relative;
    top: auto;
    right: auto;
    order: 2;
    width: min(92%, 420px);
    margin-inline: auto;
    translate: none;
    mask-image: none;
  }

  .hero-foot { order: 3; }

  .card-wide-soft {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .card-visual-controls { justify-content: flex-start; }
}

@media (max-width: 720px) {
  :root { --shell: min(1240px, 100% - 32px); }

  .site-header { top: 10px; padding-inline: 12px; }
  .header-shell { padding: 8px 8px 8px 16px; border-radius: var(--radius-m); }
  .header-cta { display: none; }

  .card,
  .card-wide,
  .card-wide-soft,
  .card:not(.card-wide):not(.card-wide-soft) { grid-column: span 12; }

  .card-wide { min-height: 340px; }
  .cases { grid-template-columns: minmax(0, 1fr); }

  .demo { contain-intrinsic-size: auto 330px; }
  .demo-window { aspect-ratio: 4 / 3; }

  .demo-body { grid-template-columns: minmax(0, 1fr); }
  .demo-side { display: none; }

  .demo-palette {
    width: min(78%, 320px);
    bottom: 14px;
    padding: 11px;
    gap: 7px;
  }

  .hero-actions .action { flex: 1 1 auto; }

  .step { grid-template-columns: 44px minmax(0, 1fr); }

  .footer-shell,
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 460px) {
  .demo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-card:nth-child(3) { display: none; }
  .demo-palette { width: min(84%, 300px); }
  .mock-body { grid-template-columns: 46px minmax(0, 1fr); }
}

@media (hover: none) {
  .ambient-pointer { display: none; }
}

/* 16. reduced motion ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .title-inner { transform: none; }
  .js .step,
  .js .timeline-step { opacity: 1; }
  .ambient-pointer,
  .visual-canvas,
  .ambient-grain { display: none; }
  .demo-window { transform: none; }
  .visual-field { transform: none; }
}
