/* ============================================================
   PLATINUM COMMERCE — Shared Design System
   Version 3.0 — "Executive Monolith"
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
  /* Surface — true black base, Spreetail-level contrast */
  --surface: #000000;
  --surface-2: #0A0A0E;
  --surface-3: #141418;
  --surface-4: #1C1C22;

  /* Accent: Growth Blue (original palette) */
  --accent: #b3c5ff;
  --accent-light: #dae1ff;
  --accent-dim: rgba(179, 197, 255, 0.10);
  --accent-border: rgba(179, 197, 255, 0.20);
  --accent-glow: rgba(179, 197, 255, 0.18);
  --accent-on: #003996;

  /* Text — white headlines, lighter body */
  --on-bg: #FFFFFF;
  --silver: #CBCBCF;
  --muted: #AAADAF;
  --tertiary: #fcf9f8;

  /* Structural */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --ghost-border: rgba(255, 255, 255, 0.05);

  /* Semantic */
  --green: #2DB87A;
  --green-dim: rgba(45, 184, 122, 0.10);
  --red: #E05252;

  /* Spacing scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 110px;
  --space-2xl: 140px;

  /* Typography */
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Easing */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Transitions */
  --t-fast: 0.2s;
  --t-base: 0.3s;
  --t-slow: 0.5s;
}

/* --- RESET --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* --- BASE --- */
body {
  background: var(--surface);
  color: var(--on-bg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}


/* ============================================================
   NAVIGATION — Glass & Gradient
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 26px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 14, 14, 0.60);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: border-color var(--t-base);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--on-bg);
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links > li > a {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--t-base);
  font-weight: 500;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--on-bg);
}

/* Dropdown */
.has-drop {
  position: relative;
}

.nav-drop {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: -16px;
  padding-top: 16px;
  min-width: 190px;
  pointer-events: none;
}

.has-drop:hover .nav-drop {
  pointer-events: auto;
}

.nav-drop::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface-3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 0.125rem;
}

.has-drop:hover .nav-drop {
  display: flex;
  flex-direction: column;
}

.nav-drop a {
  padding: 12px 20px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.nav-drop a:hover,
.nav-drop a.active {
  color: var(--accent);
  background: var(--surface-4);
}

/* Nav CTA */
.nav-cta {
  background: var(--accent);
  border: none;
  color: var(--accent-on);
  padding: 10px 26px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0.125rem;
  transition: background var(--t-base), transform var(--t-fast);
  display: inline-block;
}

.nav-cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* --- HAMBURGER (mobile) --- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  padding: 0;
  z-index: 102;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--on-bg);
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-fast);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 14, 0.96);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  transition: opacity var(--t-base);
}

.nav-mobile-overlay.open {
  display: flex;
  opacity: 1;
}

.nav-mobile-overlay a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--on-bg);
  padding: 16px 0;
  letter-spacing: -0.02em;
  transition: color var(--t-base);
}

.nav-mobile-overlay a:hover {
  color: var(--accent);
}

.nav-mobile-overlay .mobile-cta {
  margin-top: 32px;
  background: var(--accent);
  color: var(--accent-on);
  padding: 16px 48px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0.125rem;
}


/* ============================================================
   SHARED TYPOGRAPHY
   ============================================================ */
.s-ey {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.s-ey-line {
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.s-ey span {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.s-h {
  font-family: var(--font-display);
  font-size: clamp(38px, 3.5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--on-bg);
}

.s-h em {
  font-style: normal;
  color: var(--accent-light);
}

.s-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 58ch;
}


/* ============================================================
   BUTTONS — Precision Primitives
   ============================================================ */
.btn-primary {
  background: var(--accent);
  color: var(--accent-on);
  border: none;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0.125rem;
  transition: background var(--t-base), transform var(--t-fast);
  display: inline-block;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--silver);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color var(--t-base);
}

.btn-ghost::after {
  content: '\2192';
  transition: transform var(--t-base) var(--ease-spring);
}

.btn-ghost:hover {
  color: var(--accent);
}

.btn-ghost:hover::after {
  transform: translateX(6px);
}

.btn-ink {
  background: var(--surface);
  color: var(--on-bg);
  border: none;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0.125rem;
  display: inline-block;
  transition: opacity var(--t-fast);
  cursor: pointer;
}

.btn-ink:hover {
  opacity: 0.85;
}

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--muted);
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0.125rem;
  transition: border-color var(--t-base), color var(--t-base);
  display: inline-block;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-on);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  z-index: 200;
  border-radius: 0.125rem;
  transition: top var(--t-fast);
}

.skip-link:focus {
  top: 12px;
}


/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float1 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-8px) translateX(4px); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.4); }
}

@keyframes scan {
  0%   { top: -2px; }
  100% { top: 100%; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children — used with data-stagger attribute */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-stagger] > .stagger-in {
  opacity: 1;
  transform: translateY(0);
}

/* Process step border grow */
.process-step {
  border-left-color: transparent !important;
}
.process-step.visible {
  border-left-color: var(--accent) !important;
  transition: border-left-color 0.8s ease 0.2s;
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none !important;
  }
}


/* ============================================================
   SHARED SECTION PATTERNS
   ============================================================ */
section {
  padding: var(--space-xl) 60px;
}

/* Marquee */
.marquee-wrap {
  padding: 20px 0;
  overflow: hidden;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 60px;
  flex-shrink: 0;
}

.marquee-item::after {
  content: '\25C6';
  font-size: 6px;
  color: var(--accent);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface);
  padding: 44px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--silver);
}

.footer-logo span {
  color: var(--accent);
}

.footer-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-nav a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  transition: color var(--t-base);
}

.footer-nav a:hover {
  color: var(--on-bg);
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --space-xl: 80px;
  }

  .nav {
    padding: 22px 24px;
  }

  section {
    padding: 70px 24px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .footer {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    padding: 36px 24px;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }
}
