/* ═══════════════════════════════════════════════
   E2E SOLUTIONS — DESIGN SYSTEM CSS
   Colors · Typography · Layout · Components
   ═══════════════════════════════════════════════ */

/* ——— VARIABLES ——— */
:root {
  --cloud-mist: #D7E1EC;
  --signal-blue: #0030CF;
  --signal-bright: #5B8DEF;
  --pure-white: #FFFFFF;
  --dark: #13171B;
  --dark-soft: #1C2128;
  --warning: #FF4D6A;
  --success: #00D68F;

  --text-primary: #13171B;
  --text-body: #555F6D;
  --text-muted: #8A95A5;
  --text-on-dark: #D7E1EC;

  --grad-deep-space: linear-gradient(135deg, #13171B 0%, #1C2128 40%, #162040 100%);
  --grad-blue-shift: linear-gradient(135deg, #0030CF 0%, #5B8DEF 100%);
  --grad-mist-fade: linear-gradient(180deg, #D7E1EC 0%, #FFFFFF 100%);
  --grad-midnight-glow: radial-gradient(ellipse at 30% 20%, rgba(91,141,239,0.15) 0%, #13171B 70%);
  --grad-horizon: linear-gradient(135deg, #13171B 0%, #0030CF 150%);

  --font-stack: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-width: 1280px;
  --section-pad: 120px;
  --section-pad-mobile: 64px;
  --radius: 12px;
  --radius-pill: 100px;
}

/* ——— RESET ——— */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-stack);
  color: var(--text-primary);
  background: var(--pure-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* ——— TYPOGRAPHY ——— */
.overline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--signal-blue);
  margin-bottom: 16px;
  display: block;
}
.overline--bright { color: var(--signal-bright); }

h1, .h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -2px;
}
h2, .h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1px;
}
h3, .h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
h4, .h4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.body-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
}
.body-text--dark {
  font-weight: 500;
  color: var(--text-on-dark);
}
.body-text--small {
  font-size: 14px;
  line-height: 1.6;
}

/* ——— LAYOUT ——— */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
.section {
  padding: var(--section-pad) 0;
}
.section--white { background: var(--pure-white); }
.section--mist { background: var(--cloud-mist); }
.section--dark { background: var(--dark); color: var(--pure-white); }
.section--dark-soft { background: var(--dark-soft); color: var(--pure-white); }

.grid { display: grid; gap: 40px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2-1 { grid-template-columns: 1.2fr 0.8fr; align-items: center; }

/* ——— NAVIGATION ——— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s ease;
}
.nav--scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  padding: 14px 40px;
}
.nav--scrolled .nav__logo { color: var(--text-primary); }
.nav--scrolled .nav__link { color: var(--text-primary); }
.nav__logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--pure-white);
  transition: color 0.4s;
}
.nav__links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav__link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: all 0.3s;
  position: relative;
}
.nav__link:hover,
.nav__link--active {
  color: var(--pure-white);
}
.nav--scrolled .nav__link:hover,
.nav--scrolled .nav__link--active {
  color: var(--signal-blue);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--signal-bright);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__link:hover::after { width: 100%; }
.nav--scrolled .nav__link::after { background: var(--signal-blue); }

/* Mobile menu */
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 1001;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 5px auto;
  transition: all 0.3s;
  border-radius: 2px;
}
.nav--scrolled .nav__hamburger span { background: var(--dark); }
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background: white; }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); background: white; }

.nav__mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav__mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.nav__mobile-link {
  font-size: 28px;
  font-weight: 700;
  color: var(--pure-white);
  letter-spacing: -0.5px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__mobile-menu.open .nav__mobile-link {
  opacity: 1;
  transform: translateY(0);
}
.nav__mobile-menu.open .nav__mobile-link:nth-child(1) { transition-delay: 0.1s; }
.nav__mobile-menu.open .nav__mobile-link:nth-child(2) { transition-delay: 0.15s; }
.nav__mobile-menu.open .nav__mobile-link:nth-child(3) { transition-delay: 0.2s; }
.nav__mobile-menu.open .nav__mobile-link:nth-child(4) { transition-delay: 0.25s; }
.nav__mobile-menu.open .nav__mobile-link:nth-child(5) { transition-delay: 0.3s; }
.nav__mobile-menu.open .nav__mobile-link:nth-child(6) { transition-delay: 0.35s; }

/* ——— BUTTONS ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--signal-blue);
  color: var(--pure-white);
  box-shadow: 0 4px 20px rgba(0,48,207,0.25);
}
.btn--primary:hover {
  box-shadow: 0 8px 28px rgba(0,48,207,0.35);
}
.btn--ghost-light {
  background: transparent;
  color: var(--pure-white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn--ghost-light:hover {
  border-color: rgba(255,255,255,0.5);
}
.btn--ghost-dark {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(19,23,27,0.15);
}
.btn--ghost-dark:hover {
  border-color: rgba(19,23,27,0.3);
}
.btn--white {
  background: var(--pure-white);
  color: var(--signal-blue);
}
.btn--white:hover {
  box-shadow: 0 8px 28px rgba(255,255,255,0.2);
}
.btn--sm {
  padding: 10px 24px;
  font-size: 12px;
}

/* ——— HERO ——— */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 40px 80px;
  position: relative;
  overflow: hidden;
}
.hero--inner {
  min-height: 50vh;
  padding-top: 140px;
  padding-bottom: 80px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(91,141,239,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero__overline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--signal-bright);
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -2px;
  color: var(--pure-white);
  margin-bottom: 28px;
  max-width: 800px;
}
.hero__subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-on-dark);
  max-width: 540px;
  margin-bottom: 40px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero__meta {
  display: flex;
  gap: 48px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.hero__meta strong {
  color: var(--pure-white);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

/* Breadcrumb for inner pages */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.breadcrumb__home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  background: rgba(255,255,255,0.08);
  color: var(--pure-white);
  transition: background 0.3s;
}
.breadcrumb__home:hover { background: rgba(255,255,255,0.12); }
.breadcrumb__current {
  font-size: 13px;
  color: var(--text-muted);
}

/* ——— SOLUTION CARDS ——— */
.solution-card {
  background: var(--pure-white);
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--signal-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.solution-card:hover::before { transform: scaleX(1); }
.solution-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0,48,207,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.solution-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--signal-blue);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.solution-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.solution-card__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
}

/* ——— FEATURE STRIP ——— */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.feature-strip__item {
  padding: 0 32px;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.feature-strip__item:first-child { border-left: none; padding-left: 0; }
.feature-strip__item:last-child { padding-right: 0; }
.feature-strip__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--pure-white);
  margin-bottom: 12px;
}
.feature-strip__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ——— PARTNER LOGOS ——— */
.partner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.partner-logo {
  flex: 1;
  min-width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cloud-mist);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  transition: all 0.3s;
}
.partner-logo:hover {
  background: rgba(0,48,207,0.06);
  color: var(--signal-blue);
}

/* ——— CTA BANNER ——— */
.cta-banner {
  background: var(--grad-blue-shift);
  padding: 80px 0;
  text-align: center;
}
.cta-banner__title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--pure-white);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.cta-banner__text {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

/* ——— CONNECTOR CARDS ——— */
.connector {
  padding: var(--section-pad) 0;
  background: var(--cloud-mist);
}
.connector__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.connector-card {
  background: var(--pure-white);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.connector-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--signal-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.connector-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.connector-card:hover::before { transform: scaleX(1); }
.connector-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--signal-blue);
}
.connector-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.connector-card__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-body);
}
.connector-card__arrow {
  margin-top: auto;
  color: var(--signal-blue);
  font-size: 18px;
  transition: transform 0.3s;
}
.connector-card:hover .connector-card__arrow { transform: translateX(4px); }

/* ——— IMAGE PLACEHOLDER ——— */
.img-placeholder {
  background: linear-gradient(135deg, #1C2128 0%, #2A3040 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91,141,239,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,141,239,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.img-placeholder__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}
.img-placeholder__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(91,141,239,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.img-placeholder__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--signal-bright);
  fill: none;
  stroke-width: 1.5;
}

/* ——— FOOTER ——— */
.footer {
  background: var(--dark);
  padding: 80px 0 40px;
  color: var(--text-muted);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer__brand-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--pure-white);
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer__brand-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 280px;
}
.footer__heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer__link {
  display: block;
  font-size: 14px;
  color: var(--text-on-dark);
  margin-bottom: 12px;
  transition: color 0.3s;
}
.footer__link:hover { color: var(--signal-bright); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* ——— SCROLL ANIMATIONS ——— */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ——— RESPONSIVE ——— */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .feature-strip { grid-template-columns: 1fr; gap: 32px; }
  .feature-strip__item { border-left: none; padding: 0; border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 32px; }
  .feature-strip__item:last-child { border-bottom: none; padding-bottom: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 64px;
  }
  .container { padding: 0 24px; }
  .nav { padding: 16px 24px; }
  .nav--scrolled { padding: 12px 24px; }
  .nav__links { display: none; }
  .nav__hamburger { display: block; }

  .hero {
    padding: 0 24px 48px;
    min-height: 90vh;
  }
  .hero--inner {
    padding-top: 120px;
    padding-bottom: 48px;
    min-height: auto;
  }
  .hero__title { margin-bottom: 20px; }
  .hero__subtitle { font-size: 16px; margin-bottom: 32px; }
  .hero__meta { flex-direction: column; gap: 16px; }

  .grid--2, .grid--3, .grid--2-1 { grid-template-columns: 1fr; }
  .connector__grid { grid-template-columns: 1fr; }
  .solution-card:hover { transform: none; }
  .partner-row { justify-content: center; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
  .cta-banner { padding: 60px 0; }
}

/* ——— PRINT ——— */
@media print {
  .nav, .nav__mobile-menu { display: none; }
  .hero { min-height: auto; padding: 40px; }
  .section { padding: 40px 0; }
  .btn { border: 1px solid #000; }
}

/* ——— REDUCED MOTION ——— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}