/* ==========================================================================
   ARK Digital — homepage sections. Loads after site.css on index.html only.
   ========================================================================== */

/* -------------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(120px, 14vh, 168px); text-align: center; }
.hero__bars { position: absolute; inset: 0; z-index: -1; display: flex; pointer-events: none; }
.hero__bars span {
  flex: 1 0 calc(100% / 15); max-width: calc(100% / 15); height: 100%;
  background: linear-gradient(to top, var(--blue-500), transparent);
  transform-origin: bottom; transform: scaleY(var(--s, 1));
  animation: bars-pulse 2s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
@keyframes bars-pulse { to { transform: scaleY(calc(var(--s, 1) * .72)); } }

.badge {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 20px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--text-body-s); font-weight: 500; background: var(--bg);
}
.badge::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; pointer-events: none;
  opacity: var(--glow, 0); transition: opacity .3s var(--ease);
  background: radial-gradient(var(--r, 46px) circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--blue-500) 26%, transparent), transparent 72%);
}
.badge::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  opacity: var(--glow, 0); transition: opacity .3s var(--ease);
  background: radial-gradient(calc(var(--r, 46px) * 1.2) circle at var(--mx, 50%) var(--my, 50%),
    var(--blue-300), color-mix(in srgb, var(--blue-500) 55%, transparent) 45%, transparent 70%);
  -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, linear-gradient(#000 0 0); mask-composite: exclude;
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 10px var(--blue-500); }

.hero__title { margin-bottom: 24px; }
.hero__title > span { display: block; }
.hero__sub { margin: 0 auto 36px; max-width: 34em; }
.hero__ctas { justify-content: center; margin-bottom: 60px; }

@media (prefers-reduced-motion: no-preference) {
  .hero .badge, .hero__title > span, .hero__sub, .hero__ctas { animation: hero-rise .7s var(--ease) backwards; }
  .hero__title > span:nth-child(1) { animation-delay: 80ms; }
  .hero__title > span:nth-child(2) { animation-delay: 140ms; }
  .hero__sub { animation-delay: .2s; }
  .hero__ctas { animation-delay: .28s; }
  .editor { animation: hero-lift .9s var(--ease) .12s backwards; }
  .hero__bars { animation: fade-in 1.1s ease-out backwards; }
}
@keyframes hero-rise { from { opacity: 0; translate: 0 14px; } }
@keyframes hero-lift { from { opacity: 0; translate: 0 36px; } }
@keyframes fade-in { from { opacity: 0; } }

/* Editor window: a design/build canvas framing the work. Always dark. */
.editor {
  position: relative; height: 490px; text-align: left;
  border: 1px solid var(--hairline); border-bottom: 0; border-radius: 18px 18px 0 0;
  padding: 6px 6px 0;
  -webkit-backdrop-filter: blur(14px) saturate(1.75) brightness(1.45);
  backdrop-filter: blur(14px) saturate(1.75) brightness(1.45);
}
@media (min-width: 640px) { .editor { height: 620px; } }
.editor__frame { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 12px 12px 0 0; background: color-mix(in srgb, var(--bg) 80%, transparent); }
.editor__bar {
  position: relative; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 12px 20px; border-bottom: 1px solid var(--hairline); background: var(--bg); border-radius: 6px 6px 0 0;
}
.ed-toggle { display: flex; align-items: center; gap: 4px; width: fit-content; padding: 6px 8px; border-radius: 6px; background: var(--tint-weak); color: var(--fg); transition: background-color .2s; }
.ed-toggle:hover { background: var(--tint); }
.ed-toggle svg { width: 16px; height: 16px; }
.ed-toggle .chev { transition: rotate .3s var(--ease); }
.panels-off .ed-toggle .chev { rotate: 180deg; }
.ed-center { display: flex; align-items: center; gap: 8px; }
.seg { display: flex; gap: 2px; height: 30px; padding: 2px; border-radius: 6px; background: var(--field); }
.seg button {
  display: grid; place-items: center; min-width: 64px; padding-inline: 10px; border-radius: 4px;
  font-size: 12px; color: var(--fg-subtle); transition: background-color .2s, color .2s;
}
.seg button:hover { color: var(--fg-muted); }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--fg); box-shadow: 0 1px 2px var(--raise-shadow); }
.ed-readout { display: none; align-items: center; gap: 4px; height: 30px; width: 170px; padding: 4px; border: 1px solid var(--hairline); border-radius: 6px; font-size: 12px; line-height: 1; }
.ed-readout span { flex: 1; display: flex; justify-content: center; gap: 3px; font-variant-numeric: tabular-nums; }
.ed-readout i { font-style: normal; color: var(--fg-subtle); }
@media (min-width: 640px) { .ed-readout { display: flex; } }
.ed-people { display: flex; justify-self: end; }
.ed-people span {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--hairline); background: var(--surface-strong); font-size: 11px; font-weight: 500;
}
.ed-people span + span { margin-left: -8px; background: var(--blue-700); color: #fff; }
.ed-people svg { width: 14px; height: 14px; }
@media (max-width: 639px) {
  .editor__bar { padding-inline: 12px; gap: 8px; }
  .ed-people { display: none; }
  .seg button { min-width: 0; padding-inline: 12px; }
}

.editor__body { position: relative; flex: 1; overflow: hidden; }
.strip { position: absolute; inset: 0; z-index: 0; padding-top: 30px; overflow: hidden; touch-action: pan-y; cursor: grab; transition: opacity .38s var(--ease), translate .38s var(--ease); }
.strip.is-dragging { cursor: grabbing; }
.strip[hidden] { display: block; opacity: 0; translate: 0 16px; pointer-events: none; }
.strip__track { display: flex; gap: 20px; width: max-content; will-change: transform; }
.shot {
  position: relative; flex: none; width: 232px; height: 412px; border-radius: 8px;
  overflow: hidden; background: var(--surface-strong); user-select: none;
}
@media (min-width: 640px) { .shot { width: 700px; height: 700px; } }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 8px; pointer-events: none; -webkit-user-drag: none; }
.shot__tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 7px 12px; border-radius: 999px;
  background: #000000b3; color: #fff; font-size: 12px; line-height: 1; font-weight: 500;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; translate: 0 6px; transition: opacity .25s var(--ease), translate .25s var(--ease);
}
.shot:hover .shot__tag, .shot:focus-visible .shot__tag { opacity: 1; translate: 0 0; }
@media (pointer: coarse) { .shot__tag { opacity: 1; translate: 0 0; } }
.shot--wide img { object-fit: cover; object-position: center; }

/* "Grow" tab tiles: illustrative dashboards drawn in markup. Shapes only. */
.dash { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 22px; background: #0b0b0b; color: #fff; }
@media (min-width: 640px) { .dash { padding: 34px; gap: 20px; } }
.dash__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dash__title { font-family: var(--font-display); font-size: clamp(18px, 2.4vw, 30px); letter-spacing: -.03em; line-height: 1.1; }
.dash__chip { padding: 5px 10px; border-radius: 999px; background: #ffffff14; font-size: 11px; color: #ffffffb3; white-space: nowrap; }
.dash__chip--live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #3ddc84; vertical-align: 1px; }
.dash__panel { flex: 1; min-height: 0; border: 1px solid #ffffff1a; border-radius: 10px; background: #ffffff05; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.dash__label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #ffffff80; }
.dash__chart { flex: 1; min-height: 0; width: 100%; }
.dash__rows { display: grid; gap: 10px; }
.dash__row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 12px; font-size: 12px; color: #ffffffb3; }
.dash__bar { height: 10px; border-radius: 999px; background: #ffffff12; overflow: hidden; }
.dash__bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--blue-700), var(--blue-500)); }
.dash__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash__tile { height: 70px; border-radius: 8px; background: #ffffff0a; border: 1px solid #ffffff12; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; }
.dash__tile b { display: block; height: 8px; width: 60%; border-radius: 4px; background: #ffffff26; }
.dash__tile s { display: block; height: 16px; width: 80%; border-radius: 4px; background: #ffffff40; text-decoration: none; }
.dash__funnel { display: grid; gap: 8px; justify-items: center; }
.dash__funnel i { display: block; height: 34px; border-radius: 6px; background: linear-gradient(90deg, #0068ad66, #0099ffcc, #0068ad66); }
.dash__check { display: grid; gap: 9px; font-size: 12px; color: #ffffffcc; }
.dash__check li { display: flex; align-items: center; gap: 10px; }
.dash__check li::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 4px; background: var(--blue-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat; }
.dash__check li.todo::before { background: #ffffff1a; }
@media (max-width: 639px) { .dash__grid, .dash__hide-s { display: none; } }

/* Side panels. */
.ed-aside {
  position: absolute; top: 0; bottom: 0; z-index: 10; width: 300px; max-width: 85%;
  background: var(--bg); transition: translate .52s var(--ease);
}
.ed-aside--l { left: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 20px 0; border-right: 1px solid var(--hairline); translate: -100% 0; pointer-events: none; }
.ed-aside--r { right: 0; display: none; overflow: hidden; border-left: 1px solid var(--hairline); }
@media (min-width: 640px) { .ed-aside--l { translate: 0 0; pointer-events: auto; } }
@media (min-width: 981px) { .ed-aside--r { display: block; } }
.panels-off .ed-aside--l { translate: -100% 0; pointer-events: none; }
.panels-off .ed-aside--r { translate: 100% 0; }
.ed-tabs { display: flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--tint-weak); }
.ed-tabs span { flex: 1; padding: 6px 8px; border-radius: 8px; text-align: center; font-size: var(--text-body-s); color: var(--fg-muted); }
.ed-tabs span.on { background: var(--tint); color: var(--fg-strong); font-weight: 500; box-shadow: 0 1px 2px var(--raise-shadow); }
.ed-sep { padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.ed-page { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; background: var(--tint-weak); font-size: var(--text-body-s); }
.ed-page svg { width: 14px; height: 14px; color: var(--fg-subtle); }
.ed-page svg:last-child { margin-left: auto; }
.layers { display: flex; flex-direction: column; gap: 2px; margin-inline: -4px; padding: 0 4px 12px; overflow-y: auto; scrollbar-width: none; }
.layers::-webkit-scrollbar { display: none; }
.layers button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 8px;
  font-size: var(--text-body-s); text-align: left; white-space: nowrap; color: var(--fg-muted);
  transition: background-color .2s, color .2s;
}
.layers button:hover { background: var(--tint-weak); color: var(--fg); }
.layers button.on { background: var(--blue-700); color: #fff; font-weight: 500; }
.layers svg { width: 14px; height: 14px; flex: none; opacity: .7; }

.insp__icons { display: flex; align-items: center; justify-content: space-between; padding: 22px 15px; border-bottom: 1px solid var(--hairline); color: var(--icon); }
.insp__icons svg { width: 16px; height: 16px; }
.insp { display: none; }
.insp.on { display: block; }
.insp section { padding: 17px 15px 16px; border-bottom: 1px solid var(--hairline); }
.insp h4 { font-family: var(--font-text); font-size: 13px; line-height: 1.2; font-weight: 600; }
.insp dl { display: flex; flex-direction: column; gap: 10px; margin-top: 17px; }
.insp dl > div { display: grid; grid-template-columns: minmax(0, 1fr) 134px; align-items: center; }
.insp dt { padding-left: 15px; font-size: 12px; color: var(--fg-muted); }
.insp dd { display: flex; align-items: center; justify-content: space-between; gap: 4px; height: 30px; padding-inline: 10px; border-radius: 6px; background: var(--field); font-size: 12px; }
.insp dd.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; background: none; }
.insp dd.pair > span { display: flex; align-items: center; height: 30px; padding-inline: 10px; border-radius: 6px; background: var(--field); }
.insp dd.seg2 { padding: 2px; gap: 0; }
.insp dd.seg2 > span { flex: 1; display: grid; place-items: center; height: 100%; border-radius: 4px; color: var(--fg-subtle); }
.insp dd.seg2 > span.on { background: var(--tint-strong); color: var(--fg); box-shadow: 0 1px 2px var(--raise-shadow); }
.insp dd .swatch { width: 14px; height: 14px; border-radius: 3px; background: var(--blue-500); }

/* ------------------------------------------------------------- tools */
.tools { padding: clamp(40px, 5vw, 72px) var(--gutter); }
.tools__title { margin-bottom: 26px; text-align: center; font-size: var(--text-body-s); color: var(--fg-subtle); }
.tools__grid { display: none; max-width: 640px; margin-inline: auto; grid-template-columns: repeat(4, 1fr); row-gap: 29px; align-items: center; }
.tools__grid span:nth-child(4n+1) { justify-self: start; }
.tools__grid span:nth-child(4n+2), .tools__grid span:nth-child(4n+3) { justify-self: center; }
.tools__grid span:nth-child(4n) { justify-self: end; }
.tools__ticker { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tools__track { display: flex; gap: 52px; width: max-content; animation: ticker 26s linear infinite; }
.tools__track > div { display: flex; flex: none; gap: 52px; align-items: center; }
.tool { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: -.03em; color: var(--fg); opacity: .62; white-space: nowrap; }
.tool svg { width: 18px; height: 18px; }
@keyframes ticker { to { transform: translateX(calc(-50% - 26px)); } }
@media (min-width: 640px) { .tools__grid { display: grid; } .tools__ticker { display: none; } }

/* ------------------------------------------------------------- intro */
.intro { position: relative; isolation: isolate; z-index: 10; overflow: hidden; overflow: clip; background: var(--bg); box-shadow: var(--section-shadow); }
.intro__stage { position: relative; height: 820px; }
.intro__rows { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; }
.intro__row { display: flex; flex: 1; min-height: 0; }
.intro__row:nth-child(1) { padding-left: 365px; }
.intro__row:nth-child(2) { padding-left: 150px; }
.intro__row:nth-child(3) { padding-left: 40px; }
.intro__track { display: flex; gap: 8px; height: 100%; width: max-content; flex: none; will-change: transform; }
.intro__track img { height: 100%; width: auto; aspect-ratio: 4 / 3; flex: none; border-radius: 6px; object-fit: cover; object-position: top; background: var(--surface-strong); }
.intro__fade {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; translate: -50% 0; pointer-events: none;
  background: radial-gradient(120% 96% at 50% 0%, transparent 74%,
    color-mix(in srgb, var(--bg) 8%, transparent) 80.5%, color-mix(in srgb, var(--bg) 28%, transparent) 87%,
    color-mix(in srgb, var(--bg) 62%, transparent) 92.7%, color-mix(in srgb, var(--bg) 88%, transparent) 96.9%, var(--bg) 100%);
}
/* A dim veil over the image rows; the cursor opens a clear circle that
   reveals them. Touch has no cursor, so the veil just sits lighter there. */
@property --fr { syntax: "<length>"; inherits: true; initial-value: 0px; }
.intro__stage { --fr: 0px; transition: --fr .6s var(--ease); }
.intro__stage.is-lit { --fr: 340px; }
.intro__spot {
  --veil: 78%;
  position: absolute; top: 0; bottom: 0; left: -50vw; right: -50vw; pointer-events: none;
  background: radial-gradient(circle at calc(50vw + var(--fx, 225px)) var(--fy, 240px),
    transparent calc(var(--fr) * .45),
    color-mix(in srgb, var(--bg) calc(var(--veil) * .5), transparent) calc(var(--fr) * .75),
    color-mix(in srgb, var(--bg) var(--veil), transparent) var(--fr));
}
@media (hover: none) { .intro__spot { --veil: 55%; } }
.intro__copy { position: absolute; inset: 0; display: flex; align-items: flex-start; padding-top: 120px; pointer-events: none; }
.intro__copy > div { pointer-events: auto; }
.intro__copy p { margin-top: 10px; max-width: 450px; }
.intro__copy .btn-row { margin-top: 20px; }
@media (min-width: 768px) { .intro__copy h2 { white-space: nowrap; } }

/* ---------------------------------------------------------- section */
.section { background: var(--bg); padding-block: clamp(80px, 9vw, 120px); }
.section--lg { padding-block: clamp(80px, 10vw, 136px); }
.section--raise { position: relative; isolation: isolate; z-index: 10; }
.s-head { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 768px) { .s-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; } }
.s-head .btn-row { flex: none; }
.kicker { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-subtle); }

/* ----------------------------------------------------------- services */
.pillars { display: grid; gap: 12px; margin-top: 48px; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: 12px; }
.pillar__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pillar__n { font-size: 12px; color: var(--fg-subtle); font-variant-numeric: tabular-nums; }
.pillar h3 { margin-top: 18px; }
.pillar p { margin-top: 8px; font-size: var(--text-body-s); color: var(--fg-muted); max-width: 34ch; }

.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(5, 1fr); } }
.svc {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden;
  padding-inline: 12px; border: 1px solid var(--line); border-radius: 12px; text-align: center;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.svc::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(115% 150% at 50% 50%, transparent 0, color-mix(in srgb, var(--blue-500) 10%, transparent) 30%, color-mix(in srgb, var(--blue-500) 22%, transparent) 50%, transparent 100%);
  transition: opacity .9s var(--ease);
}
.svc:hover::before { opacity: 1; }
.svc__in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 21px; }
.svc__in svg { width: 34px; height: 34px; color: var(--fg); stroke-width: 1.4; }
.svc__t { font-size: 16px; line-height: 21px; color: var(--fg-dim); transition: color .3s var(--ease); }
.svc:hover .svc__t { color: var(--fg); }
.svc__tag { position: absolute; top: 10px; left: 12px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-subtle); }

.svc-foot { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 1024px) { .svc-foot { grid-template-columns: 1fr 1fr; } }
.feature {
  position: relative; isolation: isolate; min-height: 294px; overflow: hidden; border-radius: 12px;
  padding: 32px; color: #fff; background: #050a14;
}
@media (min-width: 768px) { .feature { padding: 45px; } }
.feature__bg { position: absolute; inset: 0; z-index: -1; }
.feature__bg canvas { width: 100%; height: 100%; }
.feature__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 90% at 85% 100%, #0068ad88, transparent 60%), radial-gradient(60% 60% at 10% 0%, #0099ff22, transparent 70%); }
.feature p { margin-top: 12px; max-width: 568px; font-size: var(--text-lead); line-height: 1.6; color: #ffffffbf; }
.feature p b { font-weight: 400; color: #fff; }
.feature .btn { margin-top: 20px; }
.chan { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
@media (min-width: 640px) { .chan { min-height: 294px; } }
.chan li { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 1; padding: 10px; background: var(--bg); text-align: center; }
@media (min-width: 640px) { .chan li { aspect-ratio: auto; } }
.chan svg { width: 30px; height: 30px; opacity: .62; transition: opacity .5s var(--ease), scale .5s var(--ease); }
.chan span { font-size: 11px; color: var(--fg-subtle); transition: color .5s var(--ease); }
.chan li:hover svg { opacity: 1; scale: 1.08; }
.chan li:hover span { color: var(--fg); }
@media (min-width: 640px) { .chan svg { width: 40px; height: 40px; } .chan span { font-size: 12px; } }

/* ------------------------------------------------------------ marquee */
.marquee { position: relative; overflow: hidden; padding-block: 20px; background: var(--surface); }
.marquee__track { display: flex; width: max-content; font-size: 24px; line-height: 1.2; color: var(--fg-strong); animation: marquee 30s linear infinite; }
.marquee__track > span { display: flex; flex: none; align-items: center; white-space: nowrap; }
.marquee__track i { margin-inline: 18px; font-style: normal; color: var(--fg-subtle); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* -------------------------------------------------------- engagements */
.plans { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(3, 1fr); margin-top: clamp(-22px, -1.5vw, -10px); } }
@media (min-width: 640px) and (max-width: 1023px) { .plans { max-width: 640px; margin-inline: auto; } }
.plan { display: flex; flex-direction: column; }
.plan__in { display: flex; flex: 1; flex-direction: column; padding: 32px; }
@media (min-width: 768px) { .plan__in { padding: 40px; } }
.plan__k { font-size: 12px; line-height: 1; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-subtle); }
.plan__v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 28px; }
.plan__v small { white-space: nowrap; }
.plan__v small { font-size: var(--text-body-s); color: var(--fg-muted); }
.plan__v strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 4.2vw, 56px); line-height: .9; letter-spacing: -.045em; }
.plan__d { margin-top: 20px; font-size: var(--text-body-s); line-height: 1.65; color: var(--fg-muted); }
.plan ul { margin-top: 32px; border-top: 1px solid var(--card-rule); }
.plan li { padding-block: 12px; border-bottom: 1px solid var(--card-rule); font-size: 13.5px; line-height: 1.5; color: var(--fg-strong); }
.plan li:last-child { border-bottom: 0; }
.plan__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: auto; padding-top: 36px; }
.link-more { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding-block: 4px; font-size: 13px; line-height: 1; font-weight: 500; color: var(--fg-subtle); transition: color .22s var(--ease); }
.link-more:hover { color: var(--fg); }
.link-more svg { width: 14px; height: 14px; transition: translate .22s var(--ease); }
.link-more:hover svg { translate: 3px 0; }
.plans-note { margin-top: 24px; text-align: center; font-size: var(--text-body-s); color: var(--fg-subtle); }

/* ----------------------------------------------------------- approach */
.bento { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.bento__row { display: grid; gap: 20px; }
@media (min-width: 751px) {
  .bento__row { grid-template-columns: 775fr 540fr; }
  .bento__row--flip { grid-template-columns: 540fr 775fr; }
}
@media (min-width: 1024px) {
  .bento__row:nth-child(1) { height: 593px; }
  .bento__row:nth-child(2) { height: 650px; }
  .bento__row:nth-child(3) { height: 560px; }
}
.step {
  position: relative; isolation: isolate; overflow: hidden; min-height: 380px;
  border: 1px solid color-mix(in srgb, var(--fg) 20%, transparent); border-radius: 12px; background: var(--card);
}
@media (min-width: 1024px) { .step { min-height: 0; } }
.step__copy { position: relative; z-index: 10; padding: 32px 20px; }
@media (min-width: 1024px) { .step__copy { padding: 45px 36px 0; } }
.step__n { display: block; margin-bottom: 14px; font-size: 12px; color: var(--fg-subtle); font-variant-numeric: tabular-nums; }
.step__copy p { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--fg-muted); max-width: 46ch; }
.step__copy p b { font-weight: 400; color: var(--fg); }
@media (min-width: 1024px) { .step__copy p { margin-top: 12px; font-size: var(--text-lead); } }
.step--dark { background: #000; color: #fff; border-color: #ffffff33; }
.step--dark .step__copy p { color: #ffffffb3; }
.step--dark .step__copy p b { color: #fff; }
.step--dark .step__n { color: #ffffff80; }
.step__art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* 01 Discover: browser windows drifting left. */
.browsers { position: absolute; top: 190px; left: -40px; display: flex; gap: 20px; will-change: transform; animation: drift-l 28s linear infinite; }
@media (min-width: 1024px) { .browsers { top: 230px; } }
.browser { flex: none; width: 360px; overflow: hidden; border-radius: 7px; background: #000; box-shadow: 0 6px 12px 6px #0000001a; }
@media (min-width: 1024px) { .browser { width: 524px; } }
.browser__bar { display: flex; align-items: center; gap: 5px; height: 18px; padding-left: 10px; background: #111; }
.browser__bar i { width: 7px; height: 7px; border-radius: 50%; background: #ff5f57; }
.browser__bar i:nth-child(2) { background: #febc2e; }
.browser__bar i:nth-child(3) { background: #28c840; }
.browser img { width: 100%; aspect-ratio: 1440 / 1000; object-fit: cover; object-position: top; }
@keyframes drift-l { to { transform: translateX(calc(-50% - 10px)); } }

/* 02 Define: an orbit of scope nodes. */
.orbit { position: absolute; left: 50%; bottom: -230px; width: 560px; aspect-ratio: 1; translate: -50% 0; }
@media (max-width: 1023px) { .orbit { width: 440px; bottom: -200px; } }
.orbit::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, #0099ff55, #0068ad22 55%, transparent 75%); filter: blur(8px); }
.orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit__ring { fill: none; stroke: #ffffff26; stroke-width: 1; }
.orbit__dash { fill: none; stroke: #7acaff; stroke-width: 1.2; stroke-dasharray: 4 8; animation: dash 2.2s linear infinite; }
.orbit__node { fill: #000; stroke: #7acaff; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: node 2.8s ease-in-out infinite; }
.orbit__label { fill: #ffffffcc; font: 500 13px var(--font-text); }
.orbit__core { fill: #0099ff; }
.orbit__rot { transform-origin: 280px 280px; animation: spin 60s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -40px; } }
@keyframes node { 50% { transform: scale(1.16); } }
@keyframes spin { to { transform: rotate(1turn); } }

/* 03 Design: floating phones. */
.phones { position: absolute; inset: auto 0 -40px; height: 70%; }
@media (max-width: 1023px) { .phones { height: 52%; } .step:has(.phones) { min-height: 520px; } }
.phone {
  position: absolute; bottom: 0; width: 46%; max-width: 230px; aspect-ratio: 9 / 19; padding: 8px;
  border-radius: 30px; background: #0d0d0d; border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -20px #0009; animation: breathe 6s cubic-bezier(.37, 0, .63, 1) infinite;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 22px; }
.phone:nth-child(1) { left: 10%; animation-delay: -1.5s; }
.phone:nth-child(2) { left: 48%; bottom: 40px; }
@keyframes breathe { 0%, 100% { transform: translateY(-7px); } 50% { transform: translateY(7px); } }

/* 04 Build: code editor + live preview. */
.code {
  position: absolute; left: 36px; right: -40px; bottom: -20px; height: 62%;
  border: 1px solid var(--line-strong); border-radius: 10px 10px 0 0; overflow: hidden;
  background: #0a0a0a; color: #d8d8d8; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
  display: grid; grid-template-columns: 1fr 1fr;
}
@media (max-width: 750px) { .code { left: 20px; grid-template-columns: 1fr; } .code__preview { display: none; } }
.code__src { position: relative; overflow: hidden; padding: 16px 18px; border-right: 1px solid #ffffff14; }
.code__lines { animation: code-scroll 9s ease-in-out infinite alternate; }
.code__lines span { display: block; white-space: pre; }
.code .k { color: #7acaff; } .code .s { color: #ffb840; } .code .c { color: #ffffff59; } .code .f { color: #c4a5ff; }
.code__cursor { display: inline-block; width: 7px; height: 14px; vertical-align: -2px; background: #7acaff; animation: blink 1.1s steps(1) infinite; }
@keyframes code-scroll { to { transform: translateY(-80px); } }
@keyframes blink { 50% { opacity: 0; } }
.code__preview { position: relative; overflow: hidden; }
.code__preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.code__score { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #000c; color: #3ddc84; font: 600 18px var(--font-text); }
.code__score svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.code__score circle { fill: none; stroke-width: 4; }
.code__score .bg { stroke: #ffffff1a; }
.code__score .run { stroke: #3ddc84; stroke-dasharray: 188.5; stroke-dashoffset: 188.5; stroke-linecap: round; animation: ring 4.6s ease-in-out infinite; }
@keyframes ring { 8% { opacity: 1; } 58%, 88% { stroke-dashoffset: 0; opacity: 1; } to { stroke-dashoffset: 0; opacity: 0; } }

/* 05 Launch: channels lighting up around a launch. */
.launch { position: absolute; inset: auto 24px 32px; display: grid; gap: 10px; }
@media (min-width: 1024px) { .launch { inset: auto 36px 40px; } }
.launch__row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid #ffffff1f; border-radius: 10px; background: #ffffff08; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.launch__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #ffffff12; }
.launch__ico svg { width: 18px; height: 18px; }
.launch__t { font-size: 13px; color: #fff; }
.launch__t small { display: block; font-size: 11px; color: #ffffff80; }
.launch__s { font-size: 11px; padding: 4px 9px; border-radius: 999px; background: #ffffff14; color: #ffffffb3; }
.launch__row.is-live .launch__s { background: #3ddc8426; color: #3ddc84; }
.launch__row.is-live .launch__ico { background: #0099ff33; color: #7acaff; }
.launch__bg { position: absolute; inset: 0; background: radial-gradient(70% 60% at 80% 10%, #0068ad66, transparent 70%), radial-gradient(60% 50% at 0% 100%, #0099ff33, transparent 70%); }

/* 06 Grow: a live growth line. */
.grow { position: absolute; inset: auto 0 0; height: 60%; }
.grow svg { width: 100%; height: 100%; }
.grow__grid { stroke: var(--line); stroke-width: 1; }
.grow__area { fill: url(#growFill); }
.grow__line { fill: none; stroke: var(--blue-500); stroke-width: 2.5; stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.is-in .grow__line { animation: draw 3.2s var(--ease) forwards; }
.grow__dot { fill: var(--blue-500); opacity: 0; }
.is-in .grow__dot { animation: dot-in .4s ease 3s forwards, pulse 2.6s ease-in-out 3.4s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dot-in { to { opacity: 1; } }
@keyframes pulse { 50% { transform: scale(1.4); } }
.grow__tags { position: absolute; left: 36px; right: 36px; bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.grow__tags span { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; color: var(--fg-muted); background: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  .browsers, .phone, .orbit__dash, .orbit__node, .orbit__rot, .code__lines, .code__cursor, .code__score .run,
  .hero__bars span, .tools__track, .marquee__track { animation: none !important; }
  .code__score .run { stroke-dashoffset: 0; }
  .grow__line { stroke-dashoffset: 0; } .grow__dot { opacity: 1; }
}

/* ------------------------------------------------------------- proof */
.proof { position: relative; isolation: isolate; z-index: 10; overflow: hidden; }
.proof__globe { position: absolute; inset: 0; z-index: -2; display: grid; place-items: center; pointer-events: none; }
.proof__globe canvas { width: min(980px, 130vw); aspect-ratio: 1; margin-top: calc(clamp(44px, 5.5vw, 92px) * -1); opacity: 0; transition: opacity .7s; pointer-events: auto; cursor: grab; }
.proof__globe canvas.is-on { opacity: .72; }
.proof__veil { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(62% 62% at 50% 42%, transparent 42%, color-mix(in srgb, var(--bg) 45%, transparent) 70%, var(--bg) 96%); }
.proof__grid { display: grid; gap: 16px; max-width: 1120px; margin: 28px auto 0; }
@media (min-width: 768px) { .proof__grid { margin-top: clamp(-44px, -3vw, -18px); } }
@media (min-width: 1024px) { .proof__grid { grid-template-columns: repeat(12, 1fr); } }
.stats { order: 2; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 32px; }
.cases { order: 1; display: flex; flex-direction: column; padding: 32px; }
@media (min-width: 1024px) {
  .stats { order: 1; grid-column: span 4; gap: 40px; padding: 40px; }
  .cases { order: 2; grid-column: span 8; padding: 44px; }
}
.stat__v { display: flex; align-items: flex-start; font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 4.4vw, 60px); line-height: .9; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.stat__v i { margin-left: 2px; font-style: normal; font-size: .46em; line-height: 1.5; color: var(--blue-500); }
.stat__l { margin-top: 8px; font-size: var(--text-body-s); color: var(--fg-muted); }
.cases__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cases__count { font-size: var(--text-body-s); letter-spacing: .06em; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.cases__count b { font-weight: 400; color: var(--fg); }
.cases__rule { display: block; width: 56px; height: 1px; margin-top: 10px; background: var(--card-rule); }
.cases__nav { display: flex; gap: 8px; }
.cases__nav button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color .2s, border-color .2s; }
.cases__nav button:hover { background: var(--surface); border-color: var(--fg-subtle); }
.cases__nav svg { width: 16px; height: 16px; }
.cases__stage { display: grid; min-height: clamp(230px, 20vw, 280px); margin-top: 32px; }
.case { grid-area: 1 / 1; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.case.on { opacity: 1; pointer-events: auto; }
.case__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.case__meta span { padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 11px; color: var(--fg-muted); }
.case blockquote { margin-top: auto; padding-top: 24px; font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 1.7vw, 25px); line-height: 1.4; letter-spacing: -.02em; }
.case figcaption { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.case__logo { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-family: var(--font-display); font-size: 17px; font-weight: 500; color: var(--fg-muted); overflow: hidden; }
.case__logo img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.case__name { display: block; font-size: 15px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.case__role { display: block; font-size: var(--text-body-s); color: var(--fg-muted); }
.case figcaption a { margin-left: auto; }

/* --------------------------------------------------------------- faq */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 880px; margin: 70px auto 0; }
.faq__row { border: 1px solid var(--line); border-radius: 12px; padding-inline: 16px; transition: border-color .3s var(--ease); }
.faq__row.open { border-color: var(--line-strong); }
.faq__q { display: flex; align-items: center; gap: 24px; width: 100%; padding-block: 13px; text-align: left; }
.faq__q span { flex: 1; font-size: 16px; line-height: 1.8; color: var(--fg-strong); transition: color .2s; }
.faq__q:hover span { color: var(--fg); }
.faq__q svg { width: 18px; height: 18px; flex: none; color: var(--fg-muted); transition: rotate .4s var(--ease); }
.faq__row.open .faq__q svg { rotate: 45deg; }
.faq__a { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--ease), opacity .5s var(--ease); }
.faq__row.open .faq__a { grid-template-rows: 1fr; opacity: 1; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 40px 18px 0; font-size: 16px; line-height: 1.6; color: var(--fg-muted); }

