/*!
 * Apyrix — homepage styles
 */

/* ==========================================================================
   Apyrix — design tokens
   
   ========================================================================== */

:root {
  --apx-navy: #0b1622;
  --apx-slate: #4a6580;
  --apx-sky: #38bdf8;
  --apx-sky-ink: #04121d;
  --apx-sky-soft: #e0f4fe;
  --apx-text: #0b1622;
  --apx-muted: #52677c;
  --apx-line: #e6edf4;
  --apx-line-strong: #cdd9e5;
  --apx-soft: #f4f8fb;
  --apx-white: #ffffff;

  --apx-font-head: "Segoe UI", "Segoe UI Variable", system-ui, -apple-system, Roboto, sans-serif;
  --apx-font-body: Arial, Helvetica, sans-serif;

  --apx-ease: cubic-bezier(.2, .7, .2, 1);
  --apx-radius: 24px;
}

/* Fade-up on scroll — .is-visible is added by main.js */
.apx-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--apx-ease), transform .8s var(--apx-ease);
}
.apx-reveal.is-visible {
  opacity: 1;
  transform: none;
}
.apx-reveal[data-delay="1"] { transition-delay: .1s; }
.apx-reveal[data-delay="2"] { transition-delay: .25s; }
.apx-reveal[data-delay="3"] { transition-delay: .4s; }

.apx-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .apx-reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--apx-white);
  color: var(--apx-text);
  font-family: var(--apx-font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { overflow-x: hidden; }

img, svg { display: block; max-width: 100%; }

a { color: var(--apx-slate); }
a:hover { color: #2f4459; }

input, textarea, button { font: inherit; }

:focus-visible { outline: 2px solid var(--apx-sky); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: 1288px;
  margin: 0 auto;
  padding: 0 24px;
}

.dots {
  background-image: radial-gradient(#dfe8f1 1.2px, transparent 1.2px);
  background-size: 26px 26px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--apx-navy);
  color: var(--apx-white);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(74, 101, 128, .6); }
.btn--dark { background: var(--apx-navy); color: var(--apx-white); }
.btn--dark:hover { color: var(--apx-white); }
.btn--sky { background: var(--apx-sky); color: var(--apx-sky-ink); border: 0; }
.btn--outline { border-color: var(--apx-navy); background: var(--apx-white); color: var(--apx-navy); }
.btn--outline:hover { color: var(--apx-navy); }
.btn--sm { padding: 12px 18px; }
.btn--lg { padding: 17px 28px; font-size: 16px; }
.btn__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--apx-sky);
  color: var(--apx-sky-ink);
  font-size: 13px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--apx-line);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--apx-text);
  text-decoration: none;
  font-family: var(--apx-font-head);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.6px;
}
.logo:hover { color: var(--apx-text); }

.nav__links {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--apx-line);
  border-radius: 999px;
  background: var(--apx-soft);
  font-size: 15px;
}
.nav__links a {
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--apx-muted);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.nav__links a:hover,
.nav__links a.is-current {
  background: var(--apx-white);
  color: var(--apx-text);
  box-shadow: 0 1px 2px rgba(11, 22, 34, .08);
}

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__login {
  padding: 12px 10px;
  color: var(--apx-text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--apx-line);
  border-radius: 50%;
  background: var(--apx-white);
  color: var(--apx-text);
  cursor: pointer;
}
.menu-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: inline; }

.mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 10px 24px 22px;
  border-top: 1px solid var(--apx-line);
  background: var(--apx-white);
  animation: apx-menu-in .3s var(--apx-ease) both;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu > a {
  padding: 14px 0;
  border-bottom: 1px solid #eef3f8;
  color: var(--apx-text);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.mobile-menu__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

@keyframes apx-menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding: 80px 0 70px; }

.hero__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.hero__copy { flex: 1 1 520px; min-width: 0; }
.hero__visual { flex: 1 1 480px; min-width: 0; }

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 7px 14px 7px 7px;
  border: 1px solid var(--apx-line);
  border-radius: 999px;
  background: var(--apx-white);
  box-shadow: 0 6px 20px -12px rgba(74, 101, 128, .4);
  font-size: 14px;
  color: var(--apx-muted);
}
.badge-new span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--apx-sky);
  color: var(--apx-sky-ink);
  font-size: 12px;
  font-weight: 700;
}

.hero__lead {
  max-width: 540px;
  margin: 26px 0 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--apx-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.play-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  color: var(--apx-text);
  font-weight: 700;
  text-decoration: none;
}
.play-link:hover { color: var(--apx-text); }
.play-link__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--apx-sky);
  color: var(--apx-sky-ink);
  animation: apx-play-pulse 1.4s ease-out infinite;
}
.play-link__icon svg { width: 16px; height: 16px; fill: currentColor; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.hero__facts li { padding-right: 26px; border-right: 1px solid var(--apx-line); }
.hero__facts li:last-child { padding-right: 0; border-right: 0; }
.hero__facts strong {
  display: block;
  font-family: var(--apx-font-head);
  font-size: 26px;
  font-weight: 800;
}
.hero__facts span { font-size: 14px; color: var(--apx-muted); }

@keyframes apx-play-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(56, 189, 248, .6); }
  100% { box-shadow: 0 0 0 12px rgba(56, 189, 248, 0); }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: 100px 0; }
.section--soft { background: var(--apx-soft); }
.section--flush-top { padding-top: 0; }

.stats-wrap { padding: 0 0 100px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.section-head__main { max-width: 700px; }
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--apx-line-strong);
  border-radius: 999px;
  background: var(--apx-white);
  color: var(--apx-slate);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.eyebrow--dark {
  padding: 0;
  border: 0;
  background: none;
  color: var(--apx-sky);
}

.section-title {
  margin: 16px 0 0;
  font-family: var(--apx-font-head);
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -1.6px;
}
.section-title span { color: var(--apx-slate); }
.section-title--light { color: var(--apx-white); }

.section-lead {
  max-width: 380px;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--apx-muted);
}
.section-lead--below { max-width: 560px; margin-top: 14px; }

.section-body { margin-top: 48px; }
.section-body--tight { margin-top: 32px; }
.section-foot { margin-top: 40px; text-align: center; }

/* Reviews summary */
.rating-summary { display: flex; align-items: center; gap: 16px; }
.rating-summary strong {
  font-family: var(--apx-font-head);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}
.rating-summary__stars { display: block; color: var(--apx-sky); font-size: 20px; letter-spacing: 2px; }
.rating-summary__count { font-size: 14px; color: var(--apx-muted); }

.platform-ratings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.platform-rating {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--apx-line);
  border-radius: 18px;
  background: var(--apx-white);
  transition: transform .3s ease, border-color .3s ease;
}
.platform-rating:hover { transform: translateY(-4px); border-color: var(--apx-sky); }
.platform-rating strong { display: block; font-family: var(--apx-font-head); font-size: 17px; }
.platform-rating span { display: block; margin-top: 3px; color: var(--apx-sky); font-size: 13px; letter-spacing: 1px; }
.platform-rating b { font-family: var(--apx-font-head); font-size: 26px; color: var(--apx-slate); }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 34px;
  background: var(--apx-navy);
  color: #e6eef6;
  overflow: hidden;
}
.contact-card__ring {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border: 1px dashed #2a4560;
  border-radius: 50%;
}
.contact-card__ring--lg { right: -120px; top: -120px; width: 340px; height: 340px; }

.contact-card__info { position: relative; flex: 1 1 400px; min-width: 0; }
.contact-card__info .section-title { margin-top: 14px; }
.contact-card__info p { margin: 18px 0 0; font-size: 17px; line-height: 1.6; color: #a9bccf; }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.contact-list li { display: flex; align-items: center; gap: 12px; color: #c4d3e1; }
.contact-list a { color: var(--apx-white); text-decoration: none; }
.contact-list a:hover { color: var(--apx-sky); }
.contact-list__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #13243a;
  color: var(--apx-sky);
}

.contact-form {
  position: relative;
  flex: 1 1 460px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 30px;
  border-radius: 24px;
  background: var(--apx-white);
  color: var(--apx-text);
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #2f4459;
}
.contact-form .is-full { grid-column: 1 / -1; }
.contact-form input,
.contact-form textarea {
  padding: 14px;
  border: 1px solid #dbe5ee;
  border-radius: 12px;
  background: var(--apx-soft);
  color: var(--apx-text);
  font-size: 15px;
  font-weight: 400;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--apx-sky); outline-offset: 1px; }
.contact-form input.is-invalid { border-color: #dc2626; }
.contact-form__status { min-height: 1em; margin: 0; font-size: 14px; color: var(--apx-muted); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { padding: 20px 0 36px; }

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}
.site-footer__brand { flex: 1 1 300px; max-width: 360px; }
.site-footer__brand p { margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: var(--apx-muted); }

.newsletter { display: flex; gap: 8px; margin-top: 20px; }
.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border: 1px solid #dbe5ee;
  border-radius: 999px;
  background: var(--apx-soft);
  font-size: 14px;
}
.newsletter button {
  flex: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--apx-navy);
  color: var(--apx-sky);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.site-footer__cols { display: flex; flex-wrap: wrap; gap: 56px; }
.site-footer__cols div { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.site-footer__cols h3 { margin: 0; font-family: var(--apx-font-head); font-size: 16px; font-weight: 800; }
.site-footer__cols a { color: var(--apx-muted); text-decoration: none; }
.site-footer__cols a:hover { color: var(--apx-text); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--apx-line);
  font-size: 14px;
  color: var(--apx-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .nav__links a { padding: 10px 11px; }
}

@media (max-width: 960px) {
  .nav__links { display: none; }
  .menu-btn { display: inline-flex; }
  .hide-md { display: none; }
}

@media (min-width: 961px) {
  .mobile-menu { display: none !important; }
}

@media (max-width: 700px) {
  .hero { padding: 56px 0 48px; }
  .section { padding: 64px 0; }
  .section--flush-top { padding-top: 0; }
  .stats-wrap { padding-bottom: 64px; }
  .section-body { margin-top: 36px; }
  .hero__facts li { padding-right: 0; border-right: 0; }
  .contact-form { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .rating-summary strong { font-size: 48px; }
}

@media (max-width: 520px) {
  .hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .play-link__icon,
  .mobile-menu { animation: none; }
}

/* ==========================================================================
   Hero — rotating word
   ========================================================================== */

.apx-rotator-title {
  margin: 0;
  font-family: var(--apx-font-head);
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--apx-text);
}

.apx-rotator-title__line {
  display: block;
  margin: 10px 0 8px;
}

.apx-rotator {
  display: inline-block;
}

.apx-rotator__word {
  display: inline-block;
  padding: 2px 20px 8px;
  border-radius: 18px;
  background: var(--apx-sky);
  color: var(--apx-sky-ink);
  transform: rotate(-2deg);
}

.apx-rotator__word.is-entering {
  animation: apx-word-in .55s var(--apx-ease) both;
}

.apx-rotator-title__outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--apx-slate);
}

@keyframes apx-word-in {
  from { opacity: 0; transform: translateY(40%) rotate(-3deg); }
  to   { opacity: 1; transform: rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .apx-rotator__word.is-entering { animation: none; }
}

/* ==========================================================================
   Hero — orbit visual
   ========================================================================== */

.apx-orbit {
  --apx-orbit-outer-speed: 40s;
  --apx-orbit-inner-speed: 28s;
  position: relative;
  width: 520px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  font-family: var(--apx-font-body);
}

.apx-orbit__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--apx-line-strong);
}
.apx-orbit__ring--outer { inset: 0; }
.apx-orbit__ring--inner { inset: 19%; }

.apx-orbit__disc {
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: var(--apx-soft);
}

/* Tracks spin; each item counter-spins so its content stays upright. */
.apx-orbit__track {
  position: absolute;
}
.apx-orbit__track--outer {
  inset: 0;
  animation: apx-spin var(--apx-orbit-outer-speed) linear infinite;
}
.apx-orbit__track--inner {
  inset: 19%;
  animation: apx-spin var(--apx-orbit-inner-speed) linear infinite reverse;
}

.apx-orbit__item {
  position: absolute;
  transform: translate(-50%, -50%);
}
.apx-orbit__track--outer .apx-orbit__upright {
  animation: apx-spin var(--apx-orbit-outer-speed) linear infinite reverse;
}
.apx-orbit__track--inner .apx-orbit__upright {
  animation: apx-spin var(--apx-orbit-inner-speed) linear infinite;
}

.apx-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--apx-line);
  border-radius: 999px;
  background: var(--apx-white);
  box-shadow: 0 10px 24px -14px rgba(74, 101, 128, .55);
  font-size: 14px;
  font-weight: 700;
  color: var(--apx-text);
  white-space: nowrap;
}
.apx-chip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--apx-sky-soft);
  color: var(--apx-navy);
  font-size: 11px;
}
.apx-chip__icon--slate { background: var(--apx-slate); color: var(--apx-white); }
.apx-chip__icon--navy  { background: var(--apx-navy);  color: var(--apx-sky); }

.apx-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--apx-slate);
  color: var(--apx-white);
  box-shadow: 0 10px 24px -12px rgba(74, 101, 128, .8);
}
.apx-tile svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Core */
.apx-orbit__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
}
.apx-orbit__core-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 50%;
  background: var(--apx-navy);
  box-shadow: 0 30px 60px -20px rgba(11, 22, 34, .6);
  font-family: var(--apx-font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--apx-white);
}
.apx-orbit__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--apx-sky);
  animation: apx-pulse-ring 2.6s ease-out infinite;
}
.apx-orbit__pulse--late { animation-delay: 1.3s; }

/* Floating cards */
.apx-orbit__live {
  position: absolute;
  left: -2%;
  bottom: 4%;
  width: 230px;
  padding: 14px;
  border: 1px solid var(--apx-line);
  border-radius: 16px;
  background: var(--apx-white);
  box-shadow: 0 24px 48px -24px rgba(11, 22, 34, .35);
  animation: apx-float 6s ease-in-out infinite;
}
.apx-orbit__live-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--apx-muted);
}
.apx-orbit__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}
.apx-orbit__live-title {
  margin-top: 6px;
  font-family: var(--apx-font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--apx-text);
}
.apx-orbit__live-bar {
  height: 6px;
  margin-top: 10px;
  border-radius: 6px;
  background: #eef3f8;
  overflow: hidden;
}
.apx-orbit__live-bar span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: 6px;
  background: var(--apx-sky);
  transition: width .6s ease;
}
.apx-orbit__live-step {
  margin-top: 6px;
  font-size: 12px;
  color: var(--apx-muted);
}

.apx-orbit__stat {
  position: absolute;
  right: -2%;
  top: 8%;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--apx-navy);
  color: var(--apx-white);
  box-shadow: 0 24px 48px -24px rgba(11, 22, 34, .5);
  animation: apx-float 7s ease-in-out -2s infinite;
}
.apx-orbit__stat-label { font-size: 12px; color: #9fb3c8; }
.apx-orbit__stat-value {
  font-family: var(--apx-font-head);
  font-size: 26px;
  font-weight: 800;
}
.apx-orbit__stat-value span { color: var(--apx-sky); }

.apx-orbit__badge {
  position: absolute;
  right: 2%;
  bottom: 2%;
  width: 112px;
  height: 112px;
  animation: apx-spin 18s linear infinite;
}

@keyframes apx-spin { to { transform: rotate(360deg); } }
@keyframes apx-pulse-ring {
  0%   { transform: scale(.6); opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes apx-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Mobile */
@media (max-width: 860px) {
  .apx-chip { padding: 6px; gap: 0; }
  .apx-chip__name { display: none; }
  .apx-tile { width: 38px; height: 38px; }
  .apx-orbit__live { width: 170px; padding: 10px; left: 0; bottom: -2%; }
  .apx-orbit__stat,
  .apx-orbit__badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .apx-orbit__track,
  .apx-orbit__upright,
  .apx-orbit__pulse,
  .apx-orbit__live,
  .apx-orbit__stat,
  .apx-orbit__badge { animation: none; }
}

/* ==========================================================================
   Integrations marquee
   ========================================================================== */

.apx-marquee-section {
  padding: 26px 0 70px;
}
.apx-marquee-section__label {
  margin: 0 0 22px;
  text-align: center;
  font-family: var(--apx-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--apx-muted);
}

.apx-marquee {
  --apx-marquee-speed: 34s;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.apx-marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: apx-marquee var(--apx-marquee-speed) linear infinite;
}
.apx-marquee:hover .apx-marquee__track {
  animation-play-state: paused;
}

.apx-marquee__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--apx-line);
  border-radius: 14px;
  background: var(--apx-white);
  font-family: var(--apx-font-body);
  font-size: 16px;
  font-weight: 700;
  color: #2f4459;
  white-space: nowrap;
}
.apx-marquee__dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--apx-sky);
}

@keyframes apx-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .apx-marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ==========================================================================
   Stats
   ========================================================================== */

.apx-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 1240px;
  margin: 0 auto;
  border: 1px solid var(--apx-line);
  border-radius: var(--apx-radius);
  overflow: hidden;
}

.apx-stats__item {
  padding: 34px 30px;
  border-right: 1px solid var(--apx-line);
  background: var(--apx-white);
}
.apx-stats__item:last-child { border-right: 0; }

.apx-stats__value {
  font-family: var(--apx-font-head);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--apx-text);
  font-variant-numeric: tabular-nums;
}
.apx-stats__suffix { color: var(--apx-slate); }

.apx-stats__bar {
  width: 0;
  height: 4px;
  margin-top: 10px;
  border-radius: 4px;
  background: var(--apx-sky);
  transition: width 1.2s var(--apx-ease);
}
.apx-stats.is-counted .apx-stats__bar { width: 48px; }

.apx-stats__label {
  margin-top: 12px;
  font-family: var(--apx-font-body);
  font-size: 16px;
  color: var(--apx-muted);
}

@media (max-width: 700px) {
  .apx-stats__item { border-right: 0; border-bottom: 1px solid var(--apx-line); }
  .apx-stats__item:last-child { border-bottom: 0; }
}

/* ==========================================================================
   Platform
   ========================================================================== */

.apx-bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  font-family: var(--apx-font-body);
}

.apx-bento__card {
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--apx-line);
  border-radius: 26px;
  background: var(--apx-white);
  color: var(--apx-text);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.apx-bento__card:hover {
  transform: translateY(-8px);
  border-color: var(--apx-sky);
  box-shadow: 0 30px 60px -30px rgba(74, 101, 128, .45);
}
.apx-bento__card--wide {
  grid-column: span 2;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.apx-bento__card--bottom { align-items: flex-end; }
.apx-bento__card--slate {
  display: flex;
  flex-direction: column;
  border-color: var(--apx-slate);
  background: var(--apx-slate);
  color: var(--apx-white);
}

.apx-bento__text { flex: 1 1 260px; min-width: 0; }
.apx-bento__eyebrow {
  font-family: var(--apx-font-head);
  font-size: 13px;
  font-weight: 800;
  color: var(--apx-slate);
}
.apx-bento__card--slate .apx-bento__eyebrow { color: #d9e7f3; }
.apx-bento__title {
  margin: 12px 0 0;
  font-family: var(--apx-font-head);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.apx-bento__desc {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--apx-muted);
}

/* Chat + typing dots */
.apx-chat {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: var(--apx-soft);
}
.apx-chat__msg {
  max-width: 85%;
  padding: 11px 14px;
  font-size: 14px;
}
.apx-chat__msg--in {
  align-self: flex-start;
  border: 1px solid var(--apx-line);
  border-radius: 14px 14px 14px 4px;
  background: var(--apx-white);
}
.apx-chat__msg--out {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: var(--apx-navy);
  color: var(--apx-white);
}
.apx-chat__typing {
  align-self: flex-end;
  display: flex;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid var(--apx-line);
  border-radius: 14px;
  background: var(--apx-white);
}
.apx-chat__typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--apx-sky);
  animation: apx-typing 1.2s infinite;
}
.apx-chat__typing span:nth-child(2) { animation-delay: .15s; }
.apx-chat__typing span:nth-child(3) { animation-delay: .3s; }

/* Workflow steps */
.apx-flow {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: 24px;
}
.apx-flow__step {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--apx-white);
  color: var(--apx-text);
  font-size: 14px;
  font-weight: 700;
}
.apx-flow__step--accent { background: var(--apx-sky); color: var(--apx-sky-ink); }
.apx-flow__line {
  width: 2px;
  height: 20px;
  margin-left: 22px;
  background: var(--apx-sky);
}

/* Document scan */
.apx-doc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  padding: 18px;
  border-radius: 16px;
  background: var(--apx-soft);
  overflow: hidden;
}
.apx-doc__line { height: 8px; width: 90%; border-radius: 5px; background: #e1e9f1; }
.apx-doc__line--title { height: 10px; width: 55%; background: var(--apx-line-strong); }
.apx-doc__line--short { width: 80%; }
.apx-doc__row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--apx-muted);
}
.apx-doc__row:first-of-type { margin-top: 6px; }
.apx-doc__row strong {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--apx-sky-soft);
  color: var(--apx-text);
}
.apx-doc__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--apx-sky);
  box-shadow: 0 0 12px 2px rgba(56, 189, 248, .6);
  animation: apx-scan 3.2s ease-in-out infinite;
}

/* Bar chart */
.apx-bars {
  flex: 1 1 280px;
  min-width: 0;
  height: 150px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--apx-line);
}
.apx-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 0 0;
  background: var(--apx-line-strong);
  transform-origin: bottom;
  animation: apx-bar 2.4s ease-in-out infinite;
}
.apx-bars span:nth-child(even) { background: var(--apx-slate); }
.apx-bars span.is-accent { background: var(--apx-sky); }
.apx-bars span:nth-child(2) { animation-delay: .18s; }
.apx-bars span:nth-child(3) { animation-delay: .36s; }
.apx-bars span:nth-child(4) { animation-delay: .54s; }
.apx-bars span:nth-child(5) { animation-delay: .72s; }
.apx-bars span:nth-child(6) { animation-delay: .9s; }
.apx-bars span:nth-child(7) { animation-delay: 1.08s; }
.apx-bars span:nth-child(8) { animation-delay: 1.26s; }

@keyframes apx-typing {
  0%, 80%, 100% { transform: translateY(0); opacity: .4; }
  40%           { transform: translateY(-5px); opacity: 1; }
}
@keyframes apx-scan {
  0%   { top: 6%; }
  50%  { top: 86%; }
  100% { top: 6%; }
}
@keyframes apx-bar {
  0%, 100% { transform: scaleY(.35); }
  50%      { transform: scaleY(1); }
}

@media (max-width: 700px) {
  .apx-bento__card--wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .apx-chat__typing span,
  .apx-doc__scan,
  .apx-bars span { animation: none; }
}

/* ==========================================================================
   Live workflow
   ========================================================================== */

.apx-live {
  padding: 100px 24px;
  background: var(--apx-navy);
  color: #e6eef6;
  font-family: var(--apx-font-body);
}
.apx-live__inner { max-width: 1240px; margin: 0 auto; }

.apx-live__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.apx-live__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--apx-sky);
}
.apx-live__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--apx-sky);
  animation: apx-live-pulse 1.4s ease-out infinite;
}
.apx-live__title {
  max-width: 680px;
  margin: 14px 0 0;
  font-family: var(--apx-font-head);
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -1.6px;
  color: var(--apx-white);
}
.apx-live__meta {
  padding: 8px 14px;
  border: 1px solid #1f3349;
  border-radius: 999px;
  font-family: Consolas, Menlo, monospace;
  font-size: 14px;
  color: #9fb3c8;
}

/* Nodes */
.apx-live__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 50px;
}
.apx-node-wrap {
  display: flex;
  align-items: center;
  flex: 1 1 240px;
  min-width: 0;
}
.apx-node {
  flex: 1;
  min-width: 0;
  padding: 22px;
  border: 1px solid #1f3349;
  border-radius: 20px;
  background: #0e1b29;
  transition: border-color .35s ease, background .35s ease, box-shadow .35s ease;
}
.apx-node__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.apx-node__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #13243a;
  color: var(--apx-slate);
  transition: background .35s ease, color .35s ease;
}
.apx-node__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.apx-node__status {
  padding: 5px 10px;
  border-radius: 999px;
  background: #13243a;
  color: #9fb3c8;
  font-size: 12px;
  font-weight: 700;
}
.apx-node__meta {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9fb3c8;
}
.apx-node__title {
  margin-top: 4px;
  font-family: var(--apx-font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--apx-white);
}

/* States */
.apx-node.is-active {
  border-color: var(--apx-sky);
  background: #10283b;
  box-shadow: 0 0 0 5px rgba(56, 189, 248, .15);
}
.apx-node.is-active .apx-node__icon { background: var(--apx-sky); color: var(--apx-sky-ink); }
.apx-node.is-active .apx-node__status { background: var(--apx-sky); color: var(--apx-sky-ink); }
.apx-node.is-done { border-color: #2a4560; }
.apx-node.is-done .apx-node__icon { color: var(--apx-sky); }
.apx-node.is-done .apx-node__status { background: #0f3a2a; color: #4ade80; }

/* Connector between nodes */
.apx-connector {
  flex: none;
  width: 28px;
  height: 2px;
  background-image: linear-gradient(90deg, #2a4560 55%, transparent 0);
  background-size: 16px 2px;
  background-repeat: repeat-x;
}
.apx-connector.is-lit {
  background-image: linear-gradient(90deg, var(--apx-sky) 55%, transparent 0);
  animation: apx-dash .9s linear infinite;
}

/* Log */
.apx-live__log {
  min-height: 120px;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid #16273a;
  border-radius: 16px;
  background: #060e17;
  font-family: Consolas, Menlo, monospace;
  font-size: 13.5px;
  line-height: 1.9;
  color: #9fb3c8;
}
.apx-live__log-line { animation: apx-log-in .5s var(--apx-ease) both; }
.apx-live__log-time { color: var(--apx-slate); }
.apx-live__log-arrow { color: var(--apx-sky); }
.apx-live__caret { animation: apx-blink 1s steps(1) infinite; }

@keyframes apx-dash { to { background-position: 32px 0; } }
@keyframes apx-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(56, 189, 248, .6); }
  100% { box-shadow: 0 0 0 12px rgba(56, 189, 248, 0); }
}
@keyframes apx-log-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes apx-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Mobile: stack the steps vertically */
@media (max-width: 700px) {
  .apx-live { padding: 64px 20px; }
  .apx-node-wrap { flex-direction: column; align-items: stretch; flex-basis: 100%; }
  .apx-connector { width: 2px; height: 22px; margin-left: 32px; background: #2a4560; animation: none; }
  .apx-connector.is-lit { background: var(--apx-sky); }
}

@media (prefers-reduced-motion: reduce) {
  .apx-connector.is-lit,
  .apx-live__pulse,
  .apx-live__log-line { animation: none; }
}

/* ==========================================================================
   How it works
   ========================================================================== */

.apx-steps {
  --apx-step-duration: 2600ms;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  font-family: var(--apx-font-body);
}

.apx-step {
  position: relative;
  padding: 34px 30px;
  border: 1px solid var(--apx-line);
  border-radius: 26px;
  background: var(--apx-white);
  overflow: hidden;
  transition: border-color .45s ease, background .45s ease;
}
.apx-step__num {
  position: absolute;
  right: 18px;
  top: 4px;
  font-family: var(--apx-font-head);
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--apx-slate);
  opacity: .35;
}
.apx-step__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--apx-soft);
  color: var(--apx-slate);
  transition: background .45s ease, color .45s ease;
}
.apx-step__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.apx-step__title {
  position: relative;
  margin: 30px 0 0;
  font-family: var(--apx-font-head);
  font-size: 25px;
  font-weight: 800;
  color: var(--apx-text);
}
.apx-step__desc {
  position: relative;
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--apx-muted);
}
.apx-step__progress {
  height: 4px;
  margin-top: 24px;
  border-radius: 4px;
  background: var(--apx-line);
  overflow: hidden;
}
.apx-step__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--apx-sky);
}

/* Active and completed states (set by main.js) */
.apx-step.is-active { border-color: var(--apx-sky); background: #f0faff; }
.apx-step.is-active .apx-step__icon { background: var(--apx-sky); color: var(--apx-sky-ink); }
.apx-step.is-active .apx-step__progress span {
  width: 100%;
  transition: width var(--apx-step-duration) linear;
}
.apx-step.is-done .apx-step__progress span { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .apx-step.is-active .apx-step__progress span { transition: none; }
}

/* ==========================================================================
   Solutions tabs
   ========================================================================== */

.apx-tabs {
  max-width: 1240px;
  margin: 0 auto;
  font-family: var(--apx-font-body);
  color: var(--apx-text);
}

.apx-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.apx-tabs__tab {
  padding: 12px 20px;
  border: 1px solid #dbe5ee;
  border-radius: 999px;
  background: var(--apx-white);
  color: #2f4459;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.apx-tabs__tab:hover { border-color: var(--apx-slate); }
.apx-tabs__tab.is-active {
  border-color: var(--apx-navy);
  background: var(--apx-navy);
  color: var(--apx-white);
}
.apx-tabs__tab:focus-visible { outline: 2px solid var(--apx-sky); outline-offset: 2px; }

.apx-tabs__panel {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--apx-line);
  border-radius: 28px;
}
.apx-tabs__panel[hidden] { display: none; }
.apx-tabs__panel.is-entering { animation: apx-panel-in .6s var(--apx-ease) both; }

.apx-tabs__intro { flex: 1 1 380px; min-width: 0; }
.apx-tabs__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--apx-sky);
  color: var(--apx-sky-ink);
}
.apx-tabs__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.apx-tabs__title {
  margin: 24px 0 0;
  font-family: var(--apx-font-head);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.apx-tabs__desc {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--apx-muted);
}
.apx-tabs__cta {
  display: inline-block;
  margin-top: 26px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--apx-navy);
  color: var(--apx-white);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.apx-tabs__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(74, 101, 128, .6);
}

.apx-tabs__grid {
  flex: 1 1 380px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.apx-tabs__item {
  padding: 20px;
  border-radius: 18px;
  background: var(--apx-soft);
}
.apx-tabs__item span { font-size: 20px; font-weight: 800; color: var(--apx-slate); }
.apx-tabs__item strong {
  display: block;
  margin-top: 10px;
  font-family: var(--apx-font-head);
  font-size: 17px;
}
.apx-tabs__item p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--apx-muted);
}

@keyframes apx-panel-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 520px) {
  .apx-tabs__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .apx-tabs__panel.is-entering { animation: none; }
}

/* ==========================================================================
   Portfolio
   ========================================================================== */

.apx-portfolio {
  max-width: 1240px;
  margin: 0 auto;
  font-family: var(--apx-font-body);
}

.apx-portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.apx-portfolio__filter {
  padding: 12px 18px;
  border: 1px solid #dbe5ee;
  border-radius: 999px;
  background: var(--apx-white);
  color: #2f4459;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.apx-portfolio__filter.is-active {
  border-color: var(--apx-navy);
  background: var(--apx-navy);
  color: var(--apx-white);
}
.apx-portfolio__filter:focus-visible { outline: 2px solid var(--apx-sky); outline-offset: 2px; }

.apx-portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 24px;
  margin-top: 44px;
}

/* Card */
.apx-project {
  display: block;
  overflow: hidden;
  border: 1px solid var(--apx-line);
  border-radius: 26px;
  background: var(--apx-white);
  color: var(--apx-text);
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, opacity .35s ease;
}
.apx-project:hover {
  transform: translateY(-8px);
  border-color: var(--apx-sky);
  box-shadow: 0 30px 60px -30px rgba(74, 101, 128, .45);
}
.apx-project.is-hidden { display: none; }
.apx-project.is-entering { animation: apx-card-in .5s var(--apx-ease) backwards; }

.apx-project__media {
  position: relative;
  height: 260px;
  overflow: hidden;
}
.apx-project__media--navy  { background: var(--apx-navy); }
.apx-project__media--sky   { background: var(--apx-sky-soft); }
.apx-project__media--slate { background: var(--apx-slate); }
.apx-project__media--soft  { background: #eef3f8; }

/* Mock dashboard inside the preview */
.apx-project__screen {
  --panel: #13243a;
  --line: #2a4560;
  --accent: var(--apx-sky);
  position: absolute;
  left: 9%;
  right: 9%;
  top: 14%;
  bottom: -10%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px 16px 0 0;
  background: var(--panel);
  box-shadow: 0 30px 60px -30px rgba(11, 22, 34, .5);
  transition: transform .5s var(--apx-ease);
}
.apx-project__screen--light { --panel: #ffffff; --line: #dbe5ee; --accent: var(--apx-slate); }
.apx-project:hover .apx-project__screen { transform: scale(1.05) rotate(-1deg); }

.apx-project__dots { display: flex; align-items: center; gap: 6px; }
.apx-project__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.apx-project__dots i:first-child { background: var(--accent); }
.apx-project__dots b { margin-left: auto; width: 34%; height: 8px; border-radius: 4px; background: var(--line); }

.apx-project__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.apx-project__kpis i { height: 46px; border-radius: 10px; background: var(--line); }
.apx-project__kpis i.is-accent { background: var(--accent); }

.apx-project__bars { flex: 1; display: flex; align-items: flex-end; gap: 8px; }
.apx-project__bars i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: var(--line);
  transform-origin: bottom;
  animation: apx-project-bar 2.4s ease-in-out infinite;
}
.apx-project__bars i.is-accent { background: var(--accent); }
.apx-project__bars i:nth-child(2) { animation-delay: .2s; }
.apx-project__bars i:nth-child(3) { animation-delay: .4s; }
.apx-project__bars i:nth-child(4) { animation-delay: .6s; }
.apx-project__bars i:nth-child(5) { animation-delay: .8s; }
.apx-project__bars i:nth-child(6) { animation-delay: 1s; }
.apx-project__bars i:nth-child(7) { animation-delay: 1.2s; }

.apx-project__tag {
  position: absolute;
  left: 18px;
  top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--apx-white);
  color: var(--apx-text);
  font-size: 12px;
  font-weight: 700;
}
.apx-project__go {
  position: absolute;
  right: 18px;
  top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--apx-navy);
  color: var(--apx-sky);
  font-size: 18px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
}
.apx-project:hover .apx-project__go { opacity: 1; transform: none; }

.apx-project__body { padding: 26px 28px 28px; }
.apx-project__industry {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--apx-muted);
}
.apx-project__name {
  margin: 8px 0 0;
  font-family: var(--apx-font-head);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.apx-project__desc {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--apx-muted);
}
.apx-project__results { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.apx-project__results span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--apx-sky-soft);
  color: var(--apx-text);
  font-size: 13px;
  font-weight: 700;
}

@keyframes apx-project-bar {
  0%, 100% { transform: scaleY(.35); }
  50%      { transform: scaleY(1); }
}
@keyframes apx-card-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .apx-project__bars i,
  .apx-project.is-entering { animation: none; }
}

/* ==========================================================================
   Capability ticker
   ========================================================================== */

.apx-ticker {
  --apx-marquee-speed: 28s;
  margin: 0 -20px;
  padding: 26px 0;
  overflow: hidden;
  background: var(--apx-sky);
  transform: rotate(-1.2deg);
}
.apx-ticker__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: apx-ticker var(--apx-marquee-speed) linear infinite reverse;
}
.apx-ticker__item {
  font-family: var(--apx-font-head);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--apx-sky-ink);
  white-space: nowrap;
}
.apx-ticker__star { color: var(--apx-white); }

@keyframes apx-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 700px) {
  .apx-ticker { padding: 18px 0; }
  .apx-ticker__item { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .apx-ticker__track { animation: none; }
}

/* ==========================================================================
   Reviews
   ========================================================================== */

.apx-reviews {
  --apx-review-duration: 4500ms;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  font-family: var(--apx-font-body);
}

/* Featured card */
.apx-reviews__feature {
  position: relative;
  flex: 1.6 1 520px;
  min-width: 0;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 30px;
  background: var(--apx-navy);
  color: var(--apx-white);
  overflow: hidden;
}
.apx-reviews__quote-mark {
  position: absolute;
  right: 30px;
  top: -30px;
  font-family: var(--apx-font-head);
  font-size: 220px;
  font-weight: 800;
  line-height: 1;
  color: #13243a;
}
.apx-reviews__content { position: relative; }
.apx-reviews__content.is-entering { animation: apx-review-in .6s var(--apx-ease) both; }

.apx-reviews__stars { color: var(--apx-sky); font-size: 20px; letter-spacing: 3px; }
.apx-reviews__text {
  margin: 22px 0 0;
  font-family: var(--apx-font-head);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.apx-reviews__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}
.apx-reviews__author strong { display: block; font-size: 17px; }
.apx-reviews__author small { display: block; font-size: 14px; color: #a9bccf; }

.apx-reviews__progress {
  position: relative;
  height: 3px;
  margin-top: 34px;
  border-radius: 3px;
  background: #1f3349;
  overflow: hidden;
}
.apx-reviews__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--apx-sky);
}
.apx-reviews__progress span.is-running {
  animation: apx-review-progress var(--apx-review-duration) linear both;
}

/* Reviewer list */
.apx-reviews__list {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.apx-reviewer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--apx-line);
  border-radius: 18px;
  background: var(--apx-white);
  color: var(--apx-text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .3s ease, background .3s ease;
}
.apx-reviewer:hover { border-color: var(--apx-slate); }
.apx-reviewer.is-active { border-color: var(--apx-sky); background: #f0faff; }
.apx-reviewer:focus-visible { outline: 2px solid var(--apx-sky); outline-offset: 2px; }

.apx-reviewer__avatar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--apx-soft);
  color: var(--apx-slate);
  font-family: var(--apx-font-head);
  font-weight: 800;
  transition: background .3s ease, color .3s ease;
}
.apx-reviewer.is-active .apx-reviewer__avatar,
.apx-reviewer__avatar.is-on { background: var(--apx-sky); color: var(--apx-sky-ink); }
.apx-reviews__author .apx-reviewer__avatar { width: 56px; height: 56px; }

.apx-reviewer__text { flex: 1; min-width: 0; }
.apx-reviewer__text strong { display: block; font-size: 15px; }
.apx-reviewer__text small { display: block; margin-top: 2px; font-size: 13px; color: var(--apx-muted); }
.apx-reviewer__stars { color: var(--apx-sky); font-size: 13px; letter-spacing: 1px; }

@keyframes apx-review-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes apx-review-progress {
  from { width: 0; }
  to   { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .apx-reviews__content.is-entering { animation: none; }
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.apx-pricing {
  max-width: 1240px;
  margin: 0 auto;
  font-family: var(--apx-font-body);
  text-align: center;
}

.apx-pricing__switch {
  display: inline-flex;
  padding: 5px;
  border: 1px solid #dbe5ee;
  border-radius: 999px;
  background: var(--apx-white);
}
.apx-pricing__option {
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--apx-muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.apx-pricing__option.is-active { background: var(--apx-navy); color: var(--apx-white); }
.apx-pricing__option:focus-visible { outline: 2px solid var(--apx-sky); outline-offset: 2px; }

.apx-pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 22px;
  margin-top: 50px;
  text-align: left;
}

.apx-plan {
  display: flex;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--apx-line);
  border-radius: 26px;
  background: var(--apx-white);
  color: var(--apx-text);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.apx-plan:hover {
  transform: translateY(-8px);
  border-color: var(--apx-sky);
  box-shadow: 0 30px 60px -30px rgba(74, 101, 128, .45);
}
.apx-plan--featured {
  border-color: var(--apx-navy);
  background: var(--apx-navy);
  color: var(--apx-white);
}

.apx-plan__head { display: flex; justify-content: space-between; align-items: center; }
.apx-plan__name { font-family: var(--apx-font-head); font-size: 22px; font-weight: 800; }
.apx-plan__badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--apx-sky);
  color: var(--apx-sky-ink);
  font-size: 12px;
  font-weight: 700;
}
.apx-plan__desc { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--apx-muted); }
.apx-plan--featured .apx-plan__desc,
.apx-plan--featured .apx-plan__per { color: #a9bccf; }

.apx-plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 24px; }
.apx-plan__amount {
  display: inline-block;
  font-family: var(--apx-font-head);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -1px;
}
.apx-plan__amount.is-flipping { animation: apx-price-flip .45s var(--apx-ease); }
.apx-plan__per { font-size: 15px; color: var(--apx-muted); }

.apx-plan__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.apx-plan__features li::before {
  content: "✓";
  margin-right: 10px;
  font-weight: 800;
  color: var(--apx-slate);
}
.apx-plan--featured .apx-plan__features li::before { color: var(--apx-sky); }

.apx-plan__cta {
  margin-top: 30px;
  padding: 15px;
  border-radius: 999px;
  background: var(--apx-navy);
  color: var(--apx-white);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease;
}
.apx-plan__cta:hover { transform: translateY(-2px); }
.apx-plan--featured .apx-plan__cta { background: var(--apx-sky); color: var(--apx-sky-ink); }

@keyframes apx-price-flip {
  0%   { opacity: 0; transform: translateY(-12px); }
  100% { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .apx-plan__amount.is-flipping { animation: none; }
}

/* ==========================================================================
   Footer wordmark
   ========================================================================== */

.apx-wordmark {
  max-width: 1240px;
  margin: 30px auto 0;
  padding-bottom: 10px;
  font-family: var(--apx-font-head);
  font-size: clamp(56px, 16vw, 240px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.apx-wordmark__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.12em;
}
.apx-wordmark__letters { display: inline-flex; }

.apx-wordmark__letter {
  display: inline-block;
  opacity: 0;
  color: transparent;
  -webkit-text-stroke: 1.5px #9fb3c8;
}
.apx-wordmark__mark {
  display: inline-flex;
  width: 0.78em;
  height: 0.78em;
  opacity: 0;
}
.apx-wordmark__mark svg { width: 100%; height: 100%; }

/* Playing state (toggled by main.js) */
.apx-wordmark.is-playing .apx-wordmark__letter {
  animation:
    apx-letter-in .6s var(--apx-ease) calc(var(--i) * .16s) both,
    apx-letter-fill .9s ease calc(1.15s + var(--i) * .1s) forwards;
}
.apx-wordmark.is-playing .apx-wordmark__mark {
  animation: apx-mark-in .8s cubic-bezier(.3, 1.5, .5, 1) 1.85s both;
}

@keyframes apx-letter-in {
  from { opacity: 0; transform: translateY(45%) scale(.7); }
  to   { opacity: 1; transform: none; }
}
@keyframes apx-letter-fill {
  to { color: var(--fill); -webkit-text-stroke-color: var(--fill); }
}
@keyframes apx-mark-in {
  from { opacity: 0; transform: scale(.2) rotate(-120deg); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .apx-wordmark__letter,
  .apx-wordmark.is-playing .apx-wordmark__letter {
    opacity: 1;
    color: var(--fill);
    -webkit-text-stroke-color: var(--fill);
    animation: none;
  }
  .apx-wordmark__mark,
  .apx-wordmark.is-playing .apx-wordmark__mark { opacity: 1; animation: none; }
}
