/* ============================================================
   ORBIT — COMPONENTS  (ui-ux layer)
   ============================================================ */

/* ---------- CUSTOM CURSOR (T2) ---------- */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 10001; pointer-events: none;
  border-radius: 50%; mix-blend-mode: difference;
  will-change: transform;
}
.cursor {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1.5px solid #fff;
  transition: width var(--t) var(--ease-out), height var(--t) var(--ease-out),
              margin var(--t) var(--ease-out), opacity var(--t);
}
.cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: #fff; }
.cursor.is-hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
.cursor.is-hidden { opacity: 0; }
.cursor__label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff; opacity: 0;
  transition: opacity var(--t);
}
.cursor.is-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- BUTTONS ---------- */
.btn {
  --btn-bg: var(--violet);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: var(--font-text); font-weight: 600; font-size: var(--step-0);
  line-height: 1; padding: 15px 26px; border-radius: var(--radius-pill);
  border: 1px solid transparent; background: var(--btn-bg); color: #fff;
  cursor: none; position: relative; isolation: isolate; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t) var(--ease-out),
              filter var(--t) var(--ease-out);
}
@media (hover: none) { .btn { cursor: pointer; } }
.btn--primary {
  background: linear-gradient(120deg, var(--violet) 0%, #6d28d9 55%, var(--cyan-deep) 140%);
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--violet) 80%, transparent),
              inset 0 1px 0 color-mix(in srgb, #fff 22%, transparent);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: var(--grad-brand); opacity: 0; transition: opacity var(--t);
}
.btn--primary:hover { box-shadow: 0 16px 44px -12px color-mix(in srgb, var(--cyan) 60%, transparent), var(--glow-cyan); }
.btn--primary:hover::after { opacity: 1; }
.btn--primary:active { transform: translateY(1px) scale(0.99); }
.btn--ghost {
  background: color-mix(in srgb, var(--text) 4%, transparent);
  border-color: var(--line); color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: color-mix(in srgb, var(--cyan) 60%, transparent); color: #fff; background: color-mix(in srgb, var(--cyan) 8%, transparent); }
.btn--lg { padding: 18px 34px; font-size: var(--step-1); }
.btn__arrow { transition: transform var(--t) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--cyan);
  font-weight: 500; cursor: none;
}
.link-arrow svg { transition: transform var(--t) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- HEADER / NAV ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  transition: background var(--t) var(--ease-out), border-color var(--t), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: color-mix(in srgb, var(--space-950) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; cursor: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.22rem;
  letter-spacing: 0.02em; color: var(--text);
}
.nav__links { display: flex; align-items: center; gap: var(--s-8); }
.nav__links a { color: var(--text-mid); font-size: var(--step-0); font-weight: 500; cursor: none; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--grad-brand); transition: width var(--t) var(--ease-out);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: var(--s-4); }
.nav__toggle, .nav__burger { display: none; }

@media (max-width: 900px) {
  .nav__links, .nav__actions .btn--primary { display: none; }
  .nav__burger {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    background: color-mix(in srgb, var(--text) 5%, transparent); border: 1px solid var(--line);
    border-radius: 12px; color: var(--text); cursor: pointer;
  }
  .mobile-menu {
    position: fixed; inset: 72px 0 0 0; z-index: 899;
    background: color-mix(in srgb, var(--space-950) 96%, transparent);
    backdrop-filter: blur(20px);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity var(--t), transform var(--t) var(--ease-out);
    display: flex; flex-direction: column; gap: 4px; padding: var(--s-6) var(--gutter);
  }
  .mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu a { font-family: var(--font-display); font-size: var(--step-2); color: var(--text); padding: var(--s-3) 0; border-bottom: 1px solid var(--line-soft); }
  .mobile-menu .btn { margin-top: var(--s-5); }
}
.mobile-menu { display: none; }
@media (max-width: 900px) { .mobile-menu { display: flex; } }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 96px; overflow: hidden; }
#orbit-canvas {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
}
.hero__poster { position: absolute; inset: 0; z-index: 0; object-fit: cover; width: 100%; height: 100%; opacity: 0; }
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 60% at 62% 46%, transparent 0%, color-mix(in srgb, var(--space-900) 30%, transparent) 70%),
    linear-gradient(90deg, var(--space-900) 0%, color-mix(in srgb, var(--space-900) 55%, transparent) 34%, transparent 60%),
    linear-gradient(0deg, var(--space-900) 2%, transparent 30%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr); align-items: center; gap: var(--s-12); }
.hero__copy { max-width: 640px; }
.hero h1 {
  font-size: var(--step-5); font-weight: 600; margin: var(--s-6) 0 var(--s-6);
  letter-spacing: -0.035em;
}
.hero h1 .grad-text { display: inline-block; }
.hero__lead { font-size: var(--step-1); color: var(--text-mid); max-width: 30ch; }
.hero__cta { display: flex; align-items: center; gap: var(--s-5); margin-top: var(--s-10); flex-wrap: wrap; }
.hero__note { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-6); color: var(--text-muted); font-size: var(--step--1); }
.hero__note svg { color: var(--ok); flex: none; }
.hero__stats { display: flex; gap: var(--s-10); margin-top: var(--s-12); }
.hero__stat .n { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; color: var(--text); }
.hero__stat .l { font-size: var(--step--1); color: var(--text-muted); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3;
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-faint); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
}
.hero__scroll .mouse { width: 22px; height: 34px; border: 1.5px solid var(--line); border-radius: 12px; position: relative; }
.hero__scroll .mouse::after { content: ""; position: absolute; top: 6px; left: 50%; width: 3px; height: 6px; background: var(--cyan); border-radius: 3px; transform: translateX(-50%); animation: scrolldot 1.8s var(--ease-in-out) infinite; }
@keyframes scrolldot { 0%,20% { opacity: 0; transform: translate(-50%, 0); } 50% { opacity: 1; } 80%,100% { opacity: 0; transform: translate(-50%, 12px); } }

@media (max-width: 940px) {
  .hero { align-items: flex-start; }
  .hero__inner { padding-top: 8vh; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__lead { max-width: 46ch; }
  /* orbital becomes ambient glow behind/below the stacked copy */
  .hero__veil {
    background:
      radial-gradient(74% 42% at 52% 62%, transparent 0%, color-mix(in srgb, var(--space-900) 42%, transparent) 78%),
      linear-gradient(180deg, color-mix(in srgb, var(--space-900) 86%, transparent) 0%, color-mix(in srgb, var(--space-900) 40%, transparent) 46%, var(--space-900) 94%);
  }
}
@media (max-width: 560px) {
  .hero__stats { gap: var(--s-6); }
  .hero__cta .btn { flex: 1 1 auto; }
}

/* ---------- TRUST STRIP ---------- */
.trust { border-block: 1px solid var(--line-soft); background: color-mix(in srgb, var(--space-850) 40%, transparent); }
.trust__inner { display: flex; align-items: center; gap: var(--s-10); padding-block: var(--s-8); flex-wrap: wrap; }
.trust__label { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
.trust__logos { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; flex: 1; }
.trust__logos .logo { color: var(--text-muted); opacity: 0.72; transition: opacity var(--t), color var(--t); height: 22px; }
.trust__logos .logo:hover { opacity: 1; color: var(--text); }

/* ---------- EDITORIAL SHIFT (full-bleed, oversized type) ---------- */
.shift { position: relative; overflow: hidden; }
.shift__ghost {
  position: absolute; z-index: 0; left: -2vw; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-6);
  color: color-mix(in srgb, var(--violet) 12%, transparent); letter-spacing: -0.04em;
  line-height: 0.82; pointer-events: none; user-select: none; white-space: nowrap;
}
.shift__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s-16); align-items: center; }
.shift__lead { font-family: var(--font-display); font-size: var(--step-3); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.shift__lead b { color: var(--cyan); font-weight: 600; }
.shift__points { display: flex; flex-direction: column; gap: var(--s-6); }
.shift__point { display: flex; gap: var(--s-4); }
.shift__point .k { font-family: var(--font-mono); color: var(--violet-hi); font-size: var(--step--1); padding-top: 4px; flex: none; }
.shift__point h4 { font-family: var(--font-display); font-size: var(--step-1); margin-bottom: 4px; }
.shift__point p { color: var(--text-muted); font-size: var(--step-0); }
@media (max-width: 860px) { .shift__inner { grid-template-columns: 1fr; gap: var(--s-10); } .shift__ghost { font-size: 26vw; } }

/* ---------- HOW IT WORKS (staggered editorial, not equal cards) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); counter-reset: step; }
.step {
  position: relative; padding: var(--s-8) var(--s-6); border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--space-820), var(--space-850));
  overflow: hidden;
}
.step:nth-child(2) { transform: translateY(28px); }
.step:nth-child(3) { transform: translateY(56px); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-4);
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--violet-hi) 40%, transparent);
  display: block; margin-bottom: var(--s-4);
}
.step h3 { font-size: var(--step-1); margin-bottom: var(--s-3); }
.step p { color: var(--text-muted); font-size: var(--step-0); }
.step__line { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--grad-brand); transition: width var(--t-slow) var(--ease-out); }
.step.is-in .step__line { width: 100%; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .step:nth-child(2), .step:nth-child(3) { transform: none; } }

/* ---------- INTEGRATIONS MARQUEE (T4 velocity skew) ---------- */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: var(--s-4); width: max-content; will-change: transform; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--space-820); color: var(--text-mid); font-weight: 500; white-space: nowrap;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: var(--glow-cyan); }

/* ---------- PRICING ---------- */
.pricing__toggle { display: inline-flex; align-items: center; gap: var(--s-4); margin: var(--s-6) auto 0; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--space-820); }
.pricing__toggle button { cursor: none; border: 0; background: transparent; color: var(--text-muted); font-family: var(--font-text); font-weight: 600; font-size: var(--step--1); padding: 9px 18px; border-radius: var(--radius-pill); transition: color var(--t), background var(--t); }
@media (hover: none) { .pricing__toggle button { cursor: pointer; } }
.pricing__toggle button.is-active { color: #fff; background: var(--violet); }
.pricing__save { font-size: var(--step--1); color: var(--ok); font-family: var(--font-mono); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-12); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: var(--s-8) var(--s-6);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--space-820);
  transition: transform var(--t) var(--ease-out), border-color var(--t);
}
.plan:hover { transform: translateY(-5px); border-color: var(--line-soft); }
.plan--featured {
  border-color: transparent; background:
    linear-gradient(var(--space-850), var(--space-850)) padding-box,
    var(--grad-brand) border-box;
  box-shadow: var(--shadow-lg);
}
.plan--featured::before {
  content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 99px; background: var(--grad-brand); color: var(--on-accent); font-weight: 700;
}
.plan__name { font-family: var(--font-display); font-size: var(--step-1); }
.plan__desc { color: var(--text-muted); font-size: var(--step--1); margin-top: 4px; min-height: 2.6em; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: var(--s-6) 0 2px; }
.plan__price .amt { font-family: var(--font-display); font-size: var(--step-4); font-weight: 600; letter-spacing: -0.03em; }
.plan__price .per { color: var(--text-muted); font-size: var(--step--1); }
.plan__note { color: var(--text-faint); font-size: var(--step--1); min-height: 1.2em; }
.plan .btn { margin: var(--s-6) 0; width: 100%; }
.plan__feats { display: flex; flex-direction: column; gap: var(--s-3); margin-top: auto; }
.plan__feats li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-mid); font-size: var(--step--1); list-style: none; }
.plan__feats svg { color: var(--cyan); flex: none; margin-top: 3px; }
.plan__feats { padding: 0; }
@media (max-width: 880px) { .plans { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } .plan--featured { order: -1; } }

/* ---------- PROOF / TESTIMONIAL ---------- */
.proof__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s-16); align-items: center; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.metric { padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--radius); background: var(--space-820); }
.metric .n { font-family: var(--font-display); font-size: var(--step-3); font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.metric .n .suffix { color: var(--cyan); }
.metric .l { color: var(--text-muted); font-size: var(--step--1); margin-top: 4px; }
.quote { border-left: 2px solid var(--violet); padding-left: var(--s-6); }
.quote blockquote { font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
.quote blockquote b { color: var(--cyan); }
.quote figcaption { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-6); }
.quote .avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.quote .who b { display: block; color: var(--text); font-family: var(--font-text); }
.quote .who span { color: var(--text-muted); font-size: var(--step--1); }
@media (max-width: 820px) { .proof__inner { grid-template-columns: 1fr; gap: var(--s-10); } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-6) var(--s-2); background: transparent; border: 0; color: var(--text); font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; text-align: left; cursor: none; }
@media (hover: none) { .faq__q { cursor: pointer; } }
.faq__q:hover { color: var(--cyan); }
.faq__icon { flex: none; width: 22px; height: 22px; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; inset: 50% 0 auto 0; height: 2px; background: currentColor; transition: transform var(--t) var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[aria-expanded="true"] .faq__icon::after { transform: rotate(0); }
.faq__a { overflow: hidden; height: 0; transition: height var(--t) var(--ease-out); }
.faq__a p { color: var(--text-muted); padding: 0 var(--s-2) var(--s-6); max-width: 68ch; }

/* ---------- FINAL CTA ---------- */
.cta { position: relative; overflow: hidden; }
.cta__card {
  position: relative; text-align: center; padding: clamp(48px, 8vw, 104px) var(--gutter);
  border-radius: var(--radius-xl); border: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 50% -10%, color-mix(in srgb, var(--violet) 30%, transparent), transparent 60%),
    var(--space-850);
  overflow: hidden;
}
.cta__card canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.6; }
.cta__card > * { position: relative; z-index: 1; }
.cta h2 { font-size: var(--step-4); }
.cta p { max-width: 46ch; margin: var(--s-5) auto var(--s-8); color: var(--text-mid); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding-block: var(--s-16) var(--s-10); position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--s-8); }
.footer__brand p { color: var(--text-muted); font-size: var(--step--1); margin-top: var(--s-4); max-width: 34ch; }
.footer__col h5 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--s-4); }
.footer__col a { display: block; color: var(--text-mid); font-size: var(--step-0); padding: 6px 0; cursor: none; transition: color var(--t); }
.footer__col a:hover { color: var(--cyan); }
.footer__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-16); padding-top: var(--s-6); border-top: 1px solid var(--line-soft); color: var(--text-faint); font-size: var(--step--1); flex-wrap: wrap; }
.footer__social { display: flex; gap: var(--s-3); }
.footer__social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; color: var(--text-muted); cursor: none; transition: color var(--t), border-color var(--t), transform var(--t); }
.footer__social a:hover { color: #fff; border-color: var(--cyan); transform: translateY(-2px); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* theme toggle (brand proof) */
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--text) 4%, transparent); color: var(--text-mid); cursor: none; transition: color var(--t), border-color var(--t); }
@media (hover: none) { .theme-toggle { cursor: pointer; } }
.theme-toggle:hover { color: var(--text); border-color: var(--cyan); }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
