/* ============================================================
   home.css -- futuristic/AI-forward homepage
   ============================================================ */

/* ---- Hero floating status cards (AI-dashboard accent, aetelco-inspired) ---- */
.hero-float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 16, 21, 0.75);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  animation: float-card 6s ease-in-out infinite;
}
.hero-float-icon {
  width: 34px; height: 34px; min-width: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-blue, #3E63DD), var(--brand-purple, #7B3FE4));
  display: flex; align-items: center; justify-content: center;
}
.hero-float-icon i { color: #fff; font-size: 16px; }
.hero-float-text {
  display: flex; flex-direction: column;
  font-size: 13px; font-weight: 700; color: #fff;
  white-space: nowrap;
}
.hero-float-text small { font-weight: 500; color: #8a93a3; font-size: 11.5px; }
/* Cards now live inside the headline block, so they frame the content the way they
   did in the original hero at ANY screen height: one beside the eyebrow, one level
   with the headline, one beside the buttons. */
.hero-futuristic-inner { position: relative; }
.hero-float-card-1 { top: -6px; left: 0; animation-delay: 0s; }
.hero-float-card-2 { top: 64px; right: 0; animation-delay: 1.4s; }
.hero-float-card-3 { bottom: 4px; left: 4%; animation-delay: 2.8s; }
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (max-width: 1300px) {
  .hero-float-card { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-float-card { animation: none; }
}

/* ---- Orbit rings behind the Two Tracks section ---- */
.tracks-section { position: relative; }
.tracks-orbit {
  position: absolute;
  top: 50%; left: 50%;
  width: 700px; height: 700px;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.orbit-ring {
  fill: none;
  stroke-width: 1;
}
.orbit-ring-1 { stroke: #3E63DD; opacity: 0.16; animation: orbit-spin 90s linear infinite; }
.orbit-ring-2 { stroke: #7B3FE4; opacity: 0.14; stroke-dasharray: 2 10; animation: orbit-spin-reverse 70s linear infinite; }
.orbit-ring-3 { stroke: #C13FBD; opacity: 0.16; animation: orbit-spin 50s linear infinite; }
@keyframes orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbit-spin-reverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@media (prefers-reduced-motion: reduce) {
  .orbit-ring-1, .orbit-ring-2, .orbit-ring-3 { animation: none; }
}
.tracks-section .silvertech-container { position: relative; z-index: 1; }

/* ---- Stats strip ---- */
.stats-strip {
  background: #000;
  padding: 36px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stats-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
@media (max-width: 700px) { .stats-strip-inner { grid-template-columns: repeat(2, 1fr); } }
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-number { font-size: 34px; font-weight: 800; color: #fff; font-family: "DM Sans", sans-serif; }
.stat-label { font-size: 13px; color: #9ca9c4; letter-spacing: 0.02em; }

/* ---- Vision / Mission ---- */
/* ---- Our Story timeline ---- */
.story-section { padding: 60px 20px 52px; background: #000; }
.story-intro { max-width: 700px; margin: 0 auto 50px; text-align: center; }
.story-intro h2 { font-size: 32px; color: #fff; margin: 16px 0; font-weight: 700; }
.story-intro p { color: #a3adc2; font-size: 15.5px; line-height: 1.75; margin: 0; }

.story-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1140px;
  margin: 0 auto;
}
.story-timeline:before {
  content: "";
  position: absolute;
  top: 9px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(90deg, rgba(51,119,255,0), rgba(51,119,255,0.5), rgba(138,60,150,0.5), rgba(138,60,150,0));
}
.story-item { position: relative; padding-top: 34px; }
.story-item:before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue, #3E63DD), var(--brand-purple, #7B3FE4), var(--brand-magenta, #C13FBD));
  box-shadow: 0 0 0 4px #000, 0 0 16px rgba(51,119,255,0.5);
}
.story-item-today:before { background: linear-gradient(135deg, #3ddc84, var(--brand-blue, #3E63DD)); }
.story-year {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #8fb0ff;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.story-item-today .story-year { color: #3ddc84; }
.story-item h3 { color: #fff; font-size: 17px; margin: 0 0 10px; font-weight: 700; }
.story-item p { color: #a3adc2; font-size: 14px; line-height: 1.65; margin: 0; }

@media (max-width: 900px) {
  .story-timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .story-timeline:before { display: none; }
}
@media (max-width: 560px) {
  .story-timeline { grid-template-columns: 1fr; }
}

/* ---- Vision/Mission media panel ----
   .vm-media-el is deliberately generic: an <img> (animated SVG) and a
   <video> tag are sized identically, so swapping one for the other needs
   no CSS change at all. ---- */
.vm-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 26px;
  background: #0a0c11;
  border: 1px solid rgba(255,255,255,0.07);
}
.vm-media-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vm-section { padding: 56px 20px 40px; background: #060608; }
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) { .vm-grid { grid-template-columns: 1fr; } }
.vm-card { max-width: 520px; }
.vm-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fb0ff;
  margin-bottom: 14px;
}
.vm-card h2 { font-size: 26px; color: #fff; margin: 0 0 16px; font-weight: 700; line-height: 1.3; }
.vm-card p { font-size: 15.5px; color: #a3adc2; line-height: 1.75; margin: 0; }

/* ---- Tracks section ---- */
.tracks-section { padding: 16px 20px 56px; background: #060608; }
.tracks-intro { max-width: 700px; margin: 0 auto 40px; text-align: center; }
.tracks-intro h2 { font-size: 28px; color: #fff; margin: 0 0 16px; font-weight: 700; }
.tracks-intro p { color: #a3adc2; font-size: 15px; line-height: 1.7; margin: 0; }

/* ---- Why section ---- */
.why-section { padding: 56px 20px; background: #000; }
.why-intro { max-width: 700px; margin: 0 auto 44px; text-align: center; }
.why-intro h2 { font-size: 28px; color: #fff; margin: 0; font-weight: 700; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { background: #0e1015; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 30px 24px; text-align: left; }
.why-card .si-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-blue, #3E63DD), var(--brand-purple, #7B3FE4), var(--brand-magenta, #C13FBD));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: box-shadow 0.3s ease;
}
.why-card:hover .si-icon { box-shadow: 0 0 22px rgba(51,119,255,0.5); }
.why-card .si-icon i { color: #fff; font-size: 20px; }
.why-card h3 { font-size: 17px; color: #fff; margin: 0 0 8px; font-weight: 700; }
.why-card p { font-size: 14px; color: #a3adc2; line-height: 1.6; margin: 0; }

/* ---- FAQ ---- */
.home-faq-section { padding: 56px 20px; background: #060608; }
.home-faq-list { max-width: 760px; margin: 0 auto; }
.home-faq-item {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 4px 22px;
  margin-bottom: 14px;
  background: #0e1015;
}
.home-faq-item summary {
  padding: 18px 0;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 18px;
  font-size: 20px;
  color: #8fb0ff;
  font-weight: 400;
}
.home-faq-item[open] summary::after { content: '\2212'; }
.home-faq-answer { padding: 0 0 20px; color: #a3adc2; font-size: 14.5px; line-height: 1.7; }
.home-faq-answer a { color: #8fb0ff; font-weight: 600; }

/* ---- Final CTA ---- */
.final-cta-section {
  position: relative;
  overflow: hidden;
  padding: 110px 20px;
  background: #000;
  text-align: center;
}
/* animated background (SVG loop now, or a <video> later -- same sizing via .vm-media-el) */
.final-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* darken the centre so the headline and buttons always stay legible over the motion */
.final-cta-bg:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.25) 70%, rgba(0,0,0,0) 100%);
}
.final-cta-inner { position: relative; z-index: 1; }

/* ---- Journey banner above the Our Story timeline ---- */
.story-media {
  max-width: 1140px;
  margin: 0 auto 56px;
  aspect-ratio: 20 / 7;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  background: #0a0c11;
}
@media (max-width: 600px) {
  .story-media { aspect-ratio: 16 / 9; }
}
.final-cta-inner h2 { color: #fff; font-size: 28px; margin: 0 0 14px; }
.final-cta-inner p { color: #9ca9c4; max-width: 560px; margin: 0 auto 28px; font-size: 15px; line-height: 1.6; }

/* ---- Shared: two-tracks cards (also used in tracks-section) ---- */
.home-tracks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 700px) { .home-tracks-grid { grid-template-columns: 1fr; } }
.home-track-card {
  background: #0e1015;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: left;
}
.home-track-card .si-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-blue, #3E63DD), var(--brand-purple, #7B3FE4), var(--brand-magenta, #C13FBD));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: box-shadow 0.3s ease;
}
.home-track-card:hover .si-icon { box-shadow: 0 0 22px rgba(51,119,255,0.5); }
.home-track-card .si-icon i { color: #fff; font-size: 22px; }
.home-track-card h3 { font-size: 20px; color: #fff; margin: 0 0 10px; font-weight: 700; }
.home-track-card p { font-size: 14.5px; color: #a3adc2; line-height: 1.65; margin: 0 0 16px; }
.home-track-link { color: #8fb0ff; font-weight: 600; font-size: 14px; text-decoration: none; }
.home-track-link:hover { text-decoration: underline; }

.si-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fb0ff;
  background: rgba(255,255,255,0.06);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}

/* ---- Subtle dot-grid texture behind the dark sections, for atmosphere
   beyond the hero. Declared last so it wins the cascade for
   background-image specifically (each section above sets background-color
   via the shorthand `background: #000`, which this doesn't touch) without
   bleeding onto nested cards, which set their own solid background. ---- */
.vm-section, .tracks-section, .why-section, .home-faq-section, .final-cta-section, .story-section {
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.5px);
  background-size: 30px 30px;
}

/* ==========================================================================
   HOMEPAGE MOTION: globe hero, capability marquee, scene frames
   ========================================================================== */
/* Taller hero so the globe can rise out of the bottom edge (GitHub/Stripe style) */
.hero-globe { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* soft fade so the globe melts into the stats strip instead of hard-cropping */
.hero-home::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 130px;
  background: linear-gradient(to bottom, rgba(3,4,9,0) 0%, #000 100%);
  z-index: 1; pointer-events: none;
}

/* ---- capability marquee (AE Telco-style infinite ticker) ---- */
.capability-marquee {
  position: relative; overflow: hidden; background: #000;
  padding: 26px 0; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marqueeScroll 48s linear infinite; }
.capability-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 22px; padding-right: 22px;
  font-family: "DM Sans", sans-serif; font-size: clamp(18px, 2.2vw, 26px); font-weight: 700;
  letter-spacing: -0.01em; color: rgba(255,255,255,0.34); white-space: nowrap; transition: color .3s;
}
.marquee-item:hover { color: #fff; }
.marquee-item::after {
  content: ""; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple), var(--brand-magenta));
}
@keyframes marqueeScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---- scene frames: story banner + vision/mission ---- */
.story-media[data-motion], .vm-media[data-motion] {
  background: radial-gradient(ellipse at 50% 40%, #0d1024 0%, #06070d 70%);
  border: 1px solid rgba(160,150,255,0.14);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 30px 80px -30px rgba(123,63,228,0.35);
}

/* ==========================================================================
   HOMEPAGE: video hero, video-inside-text zoom, video CTA
   ========================================================================== */
.hero-futuristic.hero-has-video {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-top: 150px !important; padding-bottom: 120px !important;
  isolation: isolate; overflow: hidden; background: #030409;
}
.hero-has-video > .hero-futuristic-inner { width: 100%; }
.hero-has-video > .hero-video, .hero-has-video > .hero-video-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-has-video > .hero-video { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; }
/* legibility scrim: darkens behind the headline, lets the waves glow below */
.hero-has-video > .hero-video-shade {
  background: radial-gradient(ellipse 70% 55% at 50% 38%, rgba(3,4,9,0.72) 0%, rgba(3,4,9,0.35) 55%, rgba(3,4,9,0) 80%),
              linear-gradient(to bottom, rgba(3,4,9,0.55) 0%, rgba(3,4,9,0) 30%);
}
.hero-has-video > .hero-glow, .hero-has-video > .hero-network { display: none; }

/* ---- video inside text ---- */
.vt-section { position: relative; height: 100vh; background: #000; }
.xp-motion .vt-section { height: 210vh; }                /* scroll distance for the zoom (JS only) */
.vt-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: #000; }
.vt-sticky > .vt-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* black layer with WHITE letters, multiplied over the video: the video only
   shows through the letterforms. Scaling this layer zooms through the "I". */
.vt-mask {
  position: absolute; inset: 0; background: #000; color: #fff; mix-blend-mode: multiply;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: "DM Sans", sans-serif; font-weight: 900; text-transform: uppercase;
  font-size: clamp(50px, 12.4vw, 250px); line-height: 0.86; letter-spacing: -0.045em; text-align: center;
  will-change: transform; user-select: none;
}
.vt-line { display: block; }
.vt-line-sm { font-size: 0.52em; letter-spacing: -0.02em; margin-top: 0.12em; }
.vt-hint {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.vt-hint::after { content: ""; width: 1px; height: 38px; background: linear-gradient(#fff, transparent); animation: vtHint 1.8s ease-in-out infinite; }
@keyframes vtHint { 0%, 100% { transform: scaleY(0.3); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }
.vt-after {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px; opacity: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(5,6,16,0.62), rgba(5,6,16,0.1) 75%);
}
.no-js .vt-after, html:not(.xp) .vt-after { display: none; }
.vt-after .vt-kicker { color: #fff; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; opacity: 0.85; margin: 0 0 18px; }
.vt-after h2 { color: #fff; font-size: clamp(30px, 4.6vw, 64px); line-height: 1.08; margin: 0 auto; max-width: 16ch; letter-spacing: -0.02em; }
.vt-after p { color: rgba(255,255,255,0.86); font-size: clamp(15px, 1.4vw, 19px); max-width: 560px; margin: 20px auto 0; line-height: 1.6; }

/* ---- marquee: GSAP drives it when available ---- */
.xp .marquee-track { animation: none; }

/* ---- closing CTA with video ---- */
.final-cta-section.has-video { position: relative; overflow: hidden; isolation: isolate; background: #030409 !important; }
.final-cta-section.has-video > .cta-video, .final-cta-section.has-video > .cta-video-shade { position: absolute; inset: 0; z-index: -1; }
.final-cta-section.has-video > .cta-video-shade { background: radial-gradient(ellipse 65% 70% at 50% 50%, rgba(3,4,9,0.78), rgba(3,4,9,0.35) 70%); }
.final-cta-section.has-video > .final-cta-bg { display: none; }
.vt-after .vt-cta { display: inline-block; margin-top: 26px; padding: 13px 24px; border-radius: 11px; color: #fff; font-weight: 700; text-decoration: none;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vt-after .vt-cta:hover { background: rgba(255,255,255,0.22); }
.vt-after h2 { max-width: 20ch; }
