@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;900&display=swap");

/* ==========================================================================
   Global Styles
   Base typography, body defaults, layout utilities
   ========================================================================== */

/* ---- Base ---- */

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  font-style: normal;
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* ---- Typography ---- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-black);
  font-style: normal;
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text);
  text-transform: none;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: var(--font-weight-black);
}

h2 {
  font-size: var(--font-size-2xl);
}

h3 {
  font-size: var(--font-size-xl);
}

h4 {
  font-size: var(--font-size-lg);
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--font-size-4xl);
  }

  h2 {
    font-size: var(--font-size-3xl);
  }

  h3 {
    font-size: var(--font-size-2xl);
  }
}

@media (min-width: 1280px) {
  h1 {
    font-size: var(--font-size-5xl);
  }

  h2 {
    font-size: var(--font-size-4xl);
  }
}

p {
  max-width: 70ch;
  font-weight: var(--font-weight-regular);
}

li,
span,
small,
label,
input,
textarea,
select {
  font-weight: var(--font-weight-regular);
}

/* Keep body copy in regular-weight, natural casing sitewide */
main p,
main li,
main span,
main small,
main label,
main input,
main textarea,
main select,
main [class*="__body"],
main [class*="__copy"],
main [class*="__description"],
main [class*="__intro"],
main [class*="__subheadline"] {
  font-family: var(--font-family-base) !important;
  font-weight: var(--font-weight-regular) !important;
  text-transform: none !important;
  letter-spacing: var(--letter-spacing-normal) !important;
}

/* Style numeric values sitewide like headline treatment, but italic */
main [data-countup-target],
main [data-count-target],
main [class*="__number"],
main [class*="__value"],
main [class*="stat-value"],
main .metric-value,
main .metric-tile-val,
main .int-metric-val {
  font-family: var(--font-family-heading) !important;
  font-weight: var(--font-weight-black) !important;
  font-style: italic !important;
  text-transform: none !important;
  letter-spacing: var(--letter-spacing-tight) !important;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-link-hover);
}

strong {
  font-weight: var(--font-weight-bold);
}

/* Enforce upright type treatment sitewide */
* {
  font-style: normal;
}

/* ---- Layout utilities ---- */

.container {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container--wide {
  max-width: 100%;
}


.section {
  padding-block: var(--section-padding);
}

:root[data-theme="dark"] .section:not(.section--dark) {
  background-color: var(--color-surface);
}

/* ---- Universal Grid Container (Max-width constrained) ---- */

.max-width-container {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* ---- Universal Responsive Grid (1 → 2 → 3 columns) ---- */

.grid-3col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .grid-3col {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Universal Glass-effect Grid Item (Dark background) ---- */

.glass-item {
  position: relative;
  padding: 48px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.glass-item:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(8, 127, 255, 0.5);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

/* ---- Dark section variant ---- */

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-text-on-dark);
}

/* ---- Screen reader only ---- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Text utilities ---- */

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.text-center {
  text-align: center;
}

.section-lead {
  font-family: "Barlow", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 500;
  line-height: 1.65;
  color: #475569; /* A readable dark grey-blue, common in the design */
  max-width: 65ch;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

:root[data-theme="dark"] .section-lead {
  color: #94a3b8; /* A light, readable slate color for dark mode */
}

.text-muted {
  color: var(--color-text-light);
}

/* ---- Global interactive scroll motion ---- */

.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 1150ms ease,
    transform 1300ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ---- Lightweight hover interactions (desktop/pointer only) ---- */
@media (hover: hover) and (pointer: fine) {
  .features__card,
  .tiers__card,
  .case-studies__card,
  .adv-solution,
  .adv-process__step,
  .adv-proof__item,
  .adv-hero__panel,
  .story__image {
    transition:
      transform 220ms ease,
      border-color 220ms ease,
      opacity 220ms ease;
    transform: translate3d(0, 0, 0);
  }

  .features__card:hover,
  .tiers__card:hover,
  .case-studies__card:hover,
  .adv-solution:hover,
  .adv-process__step:hover,
  .adv-proof__item:hover,
  .adv-hero__panel:hover,
  .story__image:hover {
    transform: translate3d(0, -4px, 0);
  }

  .partners__logo,
  .leadership__card,
  .services__card,
  .adv-chart-control {
    transition:
      transform 200ms ease,
      opacity 200ms ease,
      border-color 200ms ease;
    transform: translate3d(0, 0, 0);
  }

  .partners__logo:hover,
  .leadership__card:hover,
  .services__card:hover,
  .adv-chart-control:hover {
    transform: translate3d(0, -2px, 0);
  }
}

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

  .scroll-section {
    transition: none;
  }

  .features__card,
  .tiers__card,
  .case-studies__card,
  .adv-solution,
  .adv-process__step,
  .adv-proof__item,
  .adv-hero__panel,
  .story__image,
  .partners__logo,
  .leadership__card,
  .services__card,
  .adv-chart-control,
  .btn {
    transition: none !important;
    transform: none !important;
  }
}

/* ---- Shared video hero treatment ---- */
.media-gradient-section {
  position: relative;
  overflow: hidden;
}

.media-gradient-section.adv-hero {
  background: transparent !important;
}

.media-gradient-section.adv-hero::after {
  display: none !important;
}

.media-gradient-section__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.media-gradient-section__asset {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-gradient-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--gradient-hero);
}

/* Standardized sub-page hero sizing */
.sub-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: var(--hero-height-mobile);
  padding-top: 130px; /* Elegant spacing below mobile sticky header, matching homepage */
  padding-bottom: var(--space-5xl);
}

@media (min-width: 768px) {
  .sub-hero {
    min-height: var(--hero-height-tablet);
    padding-top: 150px;
    padding-bottom: 8rem;
  }
}

@media (min-width: 1280px) {
  .sub-hero {
    min-height: var(--hero-height-desktop);
    padding-top: 180px; /* Elegant spacing below desktop sticky header, matching homepage */
    padding-bottom: 10rem;
  }
}

.media-gradient-section > .container {
  position: relative;
  z-index: 2;
}

/* No hero boxes */
.media-gradient-section .adv-hero__copy,
.media-gradient-section .adv-hero__panel,
.media-gradient-section .adv-proof__item {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.media-gradient-section .adv-kicker {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: rgba(219, 234, 254, 0.98) !important;
}

/* Barlow + weight rules for hero text */
.media-gradient-section .adv-hero__title,
.hero__headline {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold) !important;
}

.media-gradient-section .adv-hero__body,
.hero__subheadline {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular) !important;
}

.media-gradient-section .adv-hero__title,
.media-gradient-section .adv-hero__body,
.media-gradient-section .adv-hero__panel-label,
.media-gradient-section .adv-metric__name,
.media-gradient-section .adv-metric__value,
.media-gradient-section .adv-hero__panel-note,
.media-gradient-section .adv-proof__value,
.media-gradient-section .adv-proof__label {
  color: #ffffff !important;
}
/* ==========================================================================
   Elite Architectural System
   ========================================================================== */

.elite-header {
  margin-bottom: 48px;
  max-width: 800px;
}

.elite-kicker {
  display: block;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #087fff;
  margin-bottom: 16px;
}

.elite-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #0f172a;
  text-transform: uppercase;
  margin-bottom: 24px;
}

:root[data-theme="dark"] .elite-title {
  color: #ffffff;
}

.elite-header__divider {
  width: 80px;
  height: 4px;
  background: #087fff;
  border-radius: 2px;
}

/* ==========================================================================
   Elite Master Matrix (Blueprint Aesthetic)
   ========================================================================== */

/* ==========================================================================
   Core Excellence Pillars (3-Column Architecture)
   ========================================================================== */

.arch-capability-matrix {
  position: relative;
  padding: 120px 0;
  margin-top: 60px;
  background: #ffffff;
  overflow: hidden;
}

:root[data-theme="dark"] .arch-capability-matrix {
  background: #061020;
}

.elite-technical-matrix {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 80px 60px;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.elite-technical-matrix::before,
.elite-technical-matrix::after,
.arch-capability-matrix::before,
.arch-capability-matrix::after {
  display: none !important;
}

@media (min-width: 1024px) {
  .elite-technical-matrix {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tech-node {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px;
  background: transparent;
  border: none;
  transition: all 0.6s cubic-bezier(0.2, 1, 0.2, 1);
  text-decoration: none;
  border-radius: 32px;
}

/* Subtle Hover Wash instead of Box */
.tech-node::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(8, 127, 255, 0.03) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.tech-node__num {
  font-family: var(--font-family-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: #087fff;
  letter-spacing: 0.2em;
  margin-bottom: 32px;
  opacity: 0.5;
}

.tech-node__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: #087fff;
  opacity: 0.8;
  transition: transform 0.4s ease;
}

.tech-node__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tech-node__label {
  font-family: var(--font-family-heading);
  font-size: 2.25rem;
  font-weight: 900;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color 0.4s ease;
}

:root[data-theme="dark"] .tech-node__label {
  color: #ffffff;
}

.tech-node__sub {
  font-size: 1rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.6;
  opacity: 0.9;
}

:root[data-theme="dark"] .tech-node__sub {
  color: rgba(255, 255, 255, 0.5);
}

.tech-node:hover {
  transform: translateY(-8px);
}

.tech-node:hover::before {
  opacity: 1;
}

.tech-node:hover .tech-node__label {
  color: #087fff;
}

.tech-node:hover .tech-node__icon {
  transform: scale(1.1) rotate(5deg);
}

/* ==========================================================================
   Elite Network Ticker
   ========================================================================== */

.elite-ticker {
  background: #061020;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.elite-ticker__track {
  display: inline-flex;
  align-items: center;
  animation: elite-ticker-scroll 40s linear infinite;
}

.elite-ticker__item {
  font-family: var(--font-family-heading);
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  padding: 0 40px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.elite-ticker__item:nth-child(even) {
  color: #087fff;
  opacity: 0.8;
}

@keyframes elite-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.elite-ticker:hover .elite-ticker__track {
  animation-play-state: paused;
}

/* ==========================================================================
   Text Section — 16:9 ratio utility
   Enforces a 16:9 minimum-height aspect ratio with flex-centred content.
   Apply .text-section--ratio to any section element.
   ========================================================================== */

.text-section--ratio {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-section--ratio p {
  font-family: var(--font-family-base) !important;
  font-size: clamp(1.8rem, 4vw, 3rem) !important;
  font-weight: 400;
  line-height: 1.6 !important;
  max-width: 1150px;
  margin-inline: auto;
  text-align: center;
}
