/**
 * Home page only — loaded from index.html only.
 */

body.apex-page--home .apex-page-shell {
  max-width: none;
  width: 100%;
}

body.apex-page--home main.apex-main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Base type scale — home page only */
.apex-home {
  font-family: system-ui, -apple-system, sans-serif;
}

.apex-home p {
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.58);
}

.apex-home h1 {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  color: #fff;
}

.apex-home h2 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  color: #fff;
}

.apex-home h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
}

.apex-section {
  padding: 100px 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.apex-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.apex-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: #1eb8ff;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

/* --- Hero --- */
.apex-hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.apex-hero canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.apex-hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.apex-hero-content h1 {
  font-size: 76px;
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1;
  color: #fff;
  margin-bottom: 28px;
}

.apex-hero-content h1 em {
  color: #1eb8ff;
  font-style: normal;
}

.apex-hero-content p {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto 40px;
}

.apex-hero-cta {
  display: inline-block;
  background: #1eb8ff;
  color: #000;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.apex-hero-cta:hover {
  background: #3dc5ff;
}

.apex-hero-sub {
  display: block;
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.3px;
}

/* --- Briak feature --- */
.apex-briak-section {
  padding: 100px 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.apex-briak-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.apex-briak-copy h2 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 20px;
}

.apex-briak-copy h2 em {
  color: #1eb8ff;
  font-style: normal;
}

.apex-briak-copy p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.85;
  margin-bottom: 18px;
  max-width: 460px;
}

.apex-briak-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 32px 0 36px;
}

.apex-briak-highlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.apex-briak-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1eb8ff;
  margin-top: 6px;
  flex-shrink: 0;
}

.apex-briak-btn {
  display: inline-block;
  background: #1eb8ff;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 4px;
  text-decoration: none;
  margin-right: 18px;
}

.apex-briak-btn:hover {
  background: #3dc5ff;
}

.apex-briak-ghost {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.apex-briak-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.apex-briak-visual {
  background: rgba(30, 184, 255, 0.04);
  border: 1px solid rgba(30, 184, 255, 0.1);
  border-radius: 6px;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.apex-briak-visual span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 1px;
}

/* --- Who we are --- */
.apex-who-section {
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  position: relative;
  overflow: hidden;
}

.apex-who-section canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.apex-who-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 100%;
}

.apex-who-block {
  padding: 64px 56px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.apex-who-block:last-child {
  border-right: none;
}

.apex-who-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: #1eb8ff;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.apex-who-block h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.apex-who-block p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  margin: 0;
}

.apex-who-block p strong {
  color: #fff;
  font-weight: 600;
}

/* --- Solutions --- */
.apex-solutions-section {
  padding: 100px 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.apex-solutions-header {
  max-width: 1200px;
  margin: 0 auto 64px;
}

.apex-solutions-header h2 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 14px;
}

.apex-solutions-header p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 520px;
}

.apex-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 0 auto;
}

.apex-solution-cell {
  padding: 52px 56px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: none;
}

.apex-solution-cell:last-child {
  border-right: none;
}

.apex-solution-num {
  font-size: 11px;
  font-weight: 700;
  color: rgba(30, 184, 255, 0.4);
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: block;
}

.apex-solution-cell h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.apex-solution-cell p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.75;
  margin-bottom: 20px;
}

.apex-solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.apex-solution-tag {
  font-size: 11px;
  color: rgba(30, 184, 255, 0.7);
  border: 1px solid rgba(30, 184, 255, 0.18);
  padding: 4px 11px;
  border-radius: 2px;
  letter-spacing: 0.3px;
}

/* --- Partner strip (HTML unchanged) --- */
body.apex-page--home .partner-strip {
  padding: 64px;
  border-top: 1px solid rgba(30, 184, 255, 0.2);
  border-bottom: 1px solid rgba(30, 184, 255, 0.2);
  background: rgba(30, 184, 255, 0.025);
}

body.apex-page--home .partner-strip-top {
  margin-bottom: 40px;
}

body.apex-page--home .partner-strip-label {
  font-size: 12px;
  letter-spacing: 3px;
  color: rgba(30, 184, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
}

body.apex-page--home .partner-strip-link {
  font-size: 14px;
  color: #1eb8ff;
  font-weight: 600;
  text-decoration: none;
}

body.apex-page--home .p-slot {
  min-width: 190px;
  height: 76px;
  border: 1px solid rgba(30, 184, 255, 0.18);
  background: rgba(30, 184, 255, 0.04);
  border-radius: 3px;
}

body.apex-page--home .p-placeholder {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
}

body.apex-page--home .p-placeholder a {
  font-size: 11px;
  color: rgba(30, 184, 255, 0.65);
  margin-top: 5px;
}

/* --- Process --- */
.apex-process-section {
  padding: 100px 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.apex-process-header {
  max-width: 1200px;
  margin: 0 auto 72px;
  text-align: center;
}

.apex-process-header h2 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 14px;
}

.apex-process-header p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 480px;
  margin: 0 auto;
}

.apex-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.apex-process-step {
  padding: 0 40px 0 0;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.apex-process-step:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 40px;
}

.apex-process-step:nth-child(2),
.apex-process-step:nth-child(3) {
  padding-left: 40px;
}

.apex-step-num {
  font-size: 11px;
  font-weight: 700;
  color: rgba(30, 184, 255, 0.45);
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: block;
}

.apex-process-step h3 {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.apex-process-step p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.75;
  margin: 0;
}

/* --- Closing CTA --- */
.apex-closing-cta {
  position: relative;
  overflow: hidden;
  padding: 120px 64px;
  text-align: center;
}

.apex-closing-cta canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.apex-closing-cta-content {
  position: relative;
  z-index: 1;
}

.apex-closing-cta h2 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.apex-closing-cta h2 em {
  color: #1eb8ff;
  font-style: normal;
}

.apex-closing-cta p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.apex-closing-btn {
  display: inline-block;
  background: #1eb8ff;
  color: #000;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  margin-right: 16px;
}

.apex-closing-btn:hover {
  background: #3dc5ff;
}

.apex-closing-ghost {
  display: inline-block;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 32px;
  border-radius: 4px;
  transition: color 0.15s, border-color 0.15s;
}

.apex-closing-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* --- Responsive --- */
@media (max-width: 1023px) {
  .apex-briak-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .apex-who-grid {
    grid-template-columns: 1fr;
  }

  .apex-who-block {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 48px 32px;
  }

  .apex-who-block:last-child {
    border-bottom: none;
  }

  .apex-solutions-grid {
    grid-template-columns: 1fr;
  }

  .apex-solution-cell {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .apex-solution-cell:last-child {
    border-bottom: none;
  }

  .apex-process-grid {
    grid-template-columns: 1fr;
  }

  .apex-process-step {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 32px 0;
  }

  .apex-process-step:last-child {
    padding-left: 0;
    border-bottom: none;
  }

  .apex-process-step:nth-child(2),
  .apex-process-step:nth-child(3) {
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .apex-home h1 {
    font-size: 40px;
  }

  .apex-home h2 {
    font-size: 32px;
  }

  .apex-hero-content h1 {
    font-size: clamp(36px, 9vw, 52px);
    letter-spacing: -1.5px;
  }

  .apex-briak-copy h2,
  .apex-solutions-header h2,
  .apex-process-header h2 {
    font-size: clamp(28px, 7vw, 40px);
  }

  .apex-closing-cta h2 {
    font-size: clamp(32px, 8vw, 44px);
  }

  .apex-briak-section,
  .apex-solutions-section,
  .apex-process-section,
  .apex-closing-cta,
  .apex-section {
    padding: 64px 24px;
  }

  .apex-briak-highlights {
    grid-template-columns: 1fr;
  }

  body.apex-page--home .partner-strip {
    padding: 48px 24px;
  }

  .apex-hero {
    padding: 0 24px;
    min-height: 85vh;
  }
}

/* ════════════════════════════════════════════
   SHARED SWIPE — home page only (HTML on index)
════════════════════════════════════════════ */

body.apex-page--home .apex-who-swipe,
body.apex-page--home .apex-solutions-swipe,
body.apex-page--home .apex-process-swipe {
  display: none;
}

@media (max-width: 1023px) {
  body.apex-page--home .apex-who-swipe,
  body.apex-page--home .apex-solutions-swipe,
  body.apex-page--home .apex-process-swipe {
    display: block;
  }

  body.apex-page--home .apex-who-grid,
  body.apex-page--home .apex-solutions-grid,
  body.apex-page--home .apex-process-grid {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  body.apex-page--home .apex-who-swipe,
  body.apex-page--home .apex-solutions-swipe,
  body.apex-page--home .apex-process-swipe {
    display: none !important;
  }
}

body.apex-page--home .apex-swipe-wrap {
  position: relative;
  overflow: hidden;
}

body.apex-page--home .apex-swipe-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 16px;
  padding-bottom: 24px;
  cursor: grab;
}

body.apex-page--home .apex-swipe-track:active {
  cursor: grabbing;
}

body.apex-page--home .apex-swipe-track::-webkit-scrollbar {
  display: none;
}

body.apex-page--home .apex-swipe-track::after {
  content: '';
  flex: 0 0 8px;
  display: block;
}

body.apex-page--home .apex-swipe-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(30, 184, 255, 0.1);
  border-radius: 4px;
  padding: 32px 28px;
}

body.apex-page--home .apex-swipe-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

body.apex-page--home .apex-swipe-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s;
  cursor: pointer;
}

body.apex-page--home .apex-swipe-dot.active {
  background: #1eb8ff;
}

/* Phone portrait + landscape — max-width: 767px */
@media (max-width: 767px) {
  body.apex-page--home .apex-section,
  body.apex-page--home .apex-briak-section,
  body.apex-page--home .apex-who-section,
  body.apex-page--home .apex-solutions-section,
  body.apex-page--home .apex-process-section,
  body.apex-page--home .apex-closing-cta {
    padding: 56px 20px;
  }

  body.apex-page--home .apex-links {
    display: none;
  }

  body.apex-page--home .apex-hero {
    min-height: 100svh;
    padding: 0 20px;
    text-align: center;
    align-items: center;
  }

  body.apex-page--home .apex-hero-content h1 {
    font-size: 38px;
    letter-spacing: -1.5px;
    line-height: 1.05;
  }

  body.apex-page--home .apex-hero-content p {
    font-size: 15px;
    max-width: 100%;
  }

  body.apex-page--home .apex-hero-sub {
    font-size: 11px;
    line-height: 1.8;
  }

  body.apex-page--home .apex-hero-cta {
    width: 100%;
    text-align: center;
    display: block;
  }

  body.apex-page--home .apex-briak-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  body.apex-page--home .apex-briak-visual {
    aspect-ratio: 16 / 9;
  }

  body.apex-page--home .apex-briak-copy h2 {
    font-size: 30px;
    letter-spacing: -0.8px;
  }

  body.apex-page--home .apex-briak-copy p {
    max-width: 100%;
  }

  body.apex-page--home .apex-briak-highlights {
    grid-template-columns: 1fr;
  }

  body.apex-page--home .apex-briak-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-right: 0;
    margin-bottom: 14px;
  }

  body.apex-page--home .apex-briak-ghost {
    display: block;
    text-align: center;
  }

  body.apex-page--home .apex-who-swipe .apex-swipe-track {
    padding-left: 20px;
  }

  body.apex-page--home .apex-who-swipe .apex-swipe-card {
    flex: 0 0 80%;
  }

  body.apex-page--home .apex-solutions-swipe .apex-swipe-track {
    padding-left: 20px;
  }

  body.apex-page--home .apex-solutions-swipe .apex-swipe-card {
    flex: 0 0 80%;
  }

  body.apex-page--home .apex-process-swipe .apex-swipe-track {
    padding-left: 20px;
  }

  body.apex-page--home .apex-process-swipe .apex-swipe-card {
    flex: 0 0 80%;
  }

  body.apex-page--home .apex-solutions-header h2,
  body.apex-page--home .apex-process-header h2 {
    font-size: 32px;
  }

  body.apex-page--home .apex-closing-cta h2 {
    font-size: 34px;
    letter-spacing: -1px;
  }

  body.apex-page--home .apex-closing-btn,
  body.apex-page--home .apex-closing-ghost {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 0 12px 0;
  }

  body.apex-page--home .apex-footer {
    padding: 48px 20px 28px !important;
  }

  body.apex-page--home .apex-footer__grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }

  body.apex-page--home .apex-footer .newsletter-signup {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* Tablet portrait — 768px–1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  body.apex-page--home .apex-section,
  body.apex-page--home .apex-briak-section,
  body.apex-page--home .apex-who-section,
  body.apex-page--home .apex-solutions-section,
  body.apex-page--home .apex-process-section,
  body.apex-page--home .apex-closing-cta {
    padding: 72px 36px;
  }

  body.apex-page--home .apex-links {
    display: none;
  }

  body.apex-page--home .apex-hero {
    min-height: 80vh;
    padding: 0 36px;
  }

  body.apex-page--home .apex-hero-content h1 {
    font-size: 54px;
    letter-spacing: -2px;
  }

  body.apex-page--home .apex-hero-content p {
    font-size: 17px;
  }

  body.apex-page--home .apex-briak-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  body.apex-page--home .apex-briak-visual {
    aspect-ratio: 16 / 9;
    max-width: 600px;
    margin: 0 auto;
  }

  body.apex-page--home .apex-briak-copy h2 {
    font-size: 38px;
  }

  body.apex-page--home .apex-briak-highlights {
    grid-template-columns: 1fr 1fr;
  }

  body.apex-page--home .apex-who-swipe .apex-swipe-track {
    padding-left: 36px;
  }

  body.apex-page--home .apex-who-swipe .apex-swipe-card {
    flex: 0 0 72%;
  }

  body.apex-page--home .apex-solutions-swipe .apex-swipe-track {
    padding-left: 36px;
  }

  body.apex-page--home .apex-solutions-swipe .apex-swipe-card {
    flex: 0 0 72%;
  }

  body.apex-page--home .apex-process-swipe .apex-swipe-track {
    padding-left: 36px;
  }

  body.apex-page--home .apex-process-swipe .apex-swipe-card {
    flex: 0 0 72%;
  }

  body.apex-page--home .apex-closing-cta h2 {
    font-size: 44px;
  }

  body.apex-page--home .apex-footer {
    padding: 56px 36px 32px !important;
  }

  body.apex-page--home .apex-footer__grid {
    grid-template-columns: 2fr 1fr 1fr !important;
    gap: 36px !important;
  }
}
