/* ═══════════════════════════════════════════════
   CHAINFLOW — SUPPLY CHAIN MANAGEMENT SAAS
   Design inspired by OCI / Buzzworthy aesthetic:
   Electric blue + warm beige, monospaced precision
═══════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────── */
:root {
  --blue: #132AB4;
  --blue-dark: #0b1e8a;
  --blue-light: #1f3dd4;
  --beige: #E0E0DA;
  --beige-dark: #ccccc5;
  --white: #ffffff;
  --off-white: #f5f5f0;
  --dark: #0a0f2e;
  --text-muted: rgba(255, 255, 255, 0.55);

  --font-sans: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --nav-h: 68px;
  --max-w: 1280px;
  --pad: clamp(24px, 5vw, 24px);

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-y: overlay;
}

body {
  font-family: var(--font-sans);
  background: var(--blue);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Custom Scrollbar (Overlay & Transparent) */
::-webkit-scrollbar {
  width: 10px;
  background: transparent;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0);
  border-radius: 10px;
  transition: background 0.3s ease;
}

html:hover::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* ─── UTILITY ────────────────────────────────── */
.mono {
  font-family: var(--font-mono);
}

.label-sm {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section-header {
  margin-bottom: 64px;
}

.section-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-title em {
  font-style: italic;
  color: var(--beige);
}

.section-subtitle {
  margin-top: 16px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
}

/* ─── ANIMATIONS ─────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
}

.delay-3 {
  transition-delay: 0.45s;
}

.hero-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}

body.page-loaded .hero-reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.page-loaded .hero-reveal.delay-1 {
  transition-delay: 0.8s;
}

body.page-loaded .hero-reveal.delay-2 {
  transition-delay: 1.0s;
}

body.page-loaded .hero-reveal.delay-3 {
  transition-delay: 1.2s;
}

/* ─── PRELOADER & SPINE ──────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  clip-path: inset(0 0 0 0 round 0);
  transition: clip-path 1.2s cubic-bezier(0.76, 0, 0.24, 1), background-color 1.2s cubic-bezier(0.76, 0, 0.24, 1);
}

.preloader.loaded {
  background-color: transparent;
  pointer-events: none;
}

.preloader.loaded .preloader-logo {
  opacity: 0;
  transition: opacity 0.4s;
}

.preloader-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  animation: pulse 2s infinite ease-in-out;
}

.preloader-mark {
  width: 40px;
  height: 40px;
}

.preloader-text {
  font-size: 14px;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(0.95);
  }
}



/* ─── BUTTONS ────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--white);
  color: var(--blue);
  font-size: 13px;
  letter-spacing: 0.05em;
  border: 1.5px solid var(--white);
  transition: background 0.25s, color 0.25s, transform 0.2s;
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: transparent;
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.05em;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.25s, transform 0.2s;
}

.btn-ghost:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-primary-blue {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.05em;
  border: 1.5px solid var(--blue);
  transition: background 0.25s, transform 0.2s;
}

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

/* ─── NAV ────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: auto;
  pointer-events: none;
  padding: 32px 0 0 0;
}

.nav-inner {
  width: 100%;
  padding: 0 var(--pad);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(19, 42, 180, 0.85);
  /* Transparent blue */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 24px 36px;
  pointer-events: auto;
}

.logo-mark {
  width: 28px;
  height: 28px;
  color: var(--white);
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--white);
}

.nav-actions {
  display: flex;
  align-items: stretch;
  pointer-events: auto;
  width: 190px;
}

.nav-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  background: rgba(255, 255, 255, 0.9);
  /* Transparent white */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--blue);
  font-size: 13px;
  letter-spacing: 0.15em;
  font-weight: 700;
  transition: background 0.2s;
}

.nav-menu-btn:hover {
  background: var(--beige);
}

.nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  background: rgba(19, 42, 180, 0.85);
  /* Transparent blue */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--blue-dark);
}

/* ─── FULLSCREEN MENU ─────────────────────────── */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--beige);
  color: var(--blue);
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
  overflow: hidden;
}

.fullscreen-menu.open {
  transform: translateY(0);
}

.menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  border-bottom: 1px solid rgba(19, 42, 180, 0.15);
  flex-shrink: 0;
}

.menu-header .logo-mark {
  color: var(--blue);
}

.menu-header .logo-text {
  color: var(--blue);
}

.menu-close-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.close-x {
  font-size: 14px;
}

.menu-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.03em;
  line-height: 1;
  padding: 20px 0;
  border-bottom: 1px solid rgba(19, 42, 180, 0.12);
  transition: opacity 0.2s, letter-spacing 0.3s;
}

.menu-link:hover {
  opacity: 0.7;
  letter-spacing: -0.01em;
}

.link-num {
  font-size: 13px;
  color: rgba(19, 42, 180, 0.4);
  letter-spacing: 0.1em;
}

.menu-footer {
  display: flex;
  gap: 48px;
  padding: 28px 0;
  border-top: 1px solid rgba(19, 42, 180, 0.12);
  flex-shrink: 0;
}

.menu-footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-footer-col .label-sm {
  color: rgba(19, 42, 180, 0.5);
}

.menu-footer-col p {
  font-size: 14px;
  color: var(--blue);
}

/* ─── HERO ────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 0px;
  overflow: hidden;
  --mouse-x: 50vw;
  --mouse-y: 50vh;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(31, 61, 212, 0.5) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: glow-float 8s ease-in-out infinite;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(19, 42, 180, 0.4) 0%, transparent 70%);
  bottom: 100px;
  left: -50px;
  animation: glow-float 10s ease-in-out infinite reverse;
}

@keyframes glow-float {

  0%,
  100% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: auto auto;
  /* Center vertically in the flex container */
  padding: 0 var(--pad);
  width: 100%;
}

.hero-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-headline {
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
}

.hero-headline em {
  font-style: italic;
  color: var(--beige);
}

.hero-sub-row {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  flex-wrap: wrap;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  max-width: 420px;
  flex: 1;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle 400px at var(--mouse-x) var(--mouse-y), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.05) 80%);
  mask-image: radial-gradient(circle 400px at var(--mouse-x) var(--mouse-y), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.05) 80%);
  transition: opacity 0.5s var(--ease);
}

.hero:hover .hero-image-wrap {
  opacity: 1;
}

.hero-image-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) saturate(0.5) sepia(0.3) hue-rotate(190deg);
  opacity: 0.8;
  mix-blend-mode: screen;
  transform: scale(1.05);
  /* pre-scale for parallax to prevent edges showing */
}

.image-overlay-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 3px,
      rgba(19, 42, 180, 0.15) 3px,
      rgba(19, 42, 180, 0.15) 4px);
  pointer-events: none;
}

.hero-footer-bar {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 var(--pad) 32px;
  gap: 32px;
}

.hero-stats-bar {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 15, 46, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 900px;
  flex: 1;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 28px;
}

.stat-num {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-unit {
  font-size: 0.6em;
  color: var(--beige);
}

.stat-desc {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-indicator .mono {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(0.8);
  }
}

/* ─── MARQUEE ─────────────────────────────────── */
.marquee-section {
  background: var(--beige);
  color: var(--blue);
  border-top: 1px solid rgba(19, 42, 180, 0.15);
  border-bottom: 1px solid rgba(19, 42, 180, 0.15);
  padding: 16px 0;
  overflow: hidden;
}

.marquee-track {
  overflow: hidden;
}

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

.marquee-content span {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--blue);
  flex-shrink: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ─── PLATFORM SECTION ───────────────────────── */
.platform-section {
  background: var(--beige);
  color: var(--blue);
  padding: 120px 0;
}

.platform-section .section-label {
  color: rgba(19, 42, 180, 0.5);
}

.platform-section .section-title {
  color: var(--blue);
}

.platform-section .section-title em {
  color: rgba(19, 42, 180, 0.5);
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.platform-text {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.platform-lead {
  font-size: 19px;
  line-height: 1.65;
  color: rgba(19, 42, 180, 0.8);
}

.platform-image-block {
  position: relative;
}

.platform-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: saturate(0.3) sepia(0.8) hue-rotate(180deg) brightness(0.7);
  border: 1px solid rgba(19, 42, 180, 0.15);
}

.platform-img-caption {
  margin-top: 10px;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(19, 42, 180, 0.4);
}

/* ─── PROCESS SECTION ────────────────────────── */
.process-section {
  background: var(--blue);
  padding: 120px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.process-step {
  padding: 40px 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.3s;
  position: relative;
}

.process-step:last-child {
  border-right: none;
}

.process-step:hover {
  background: rgba(255, 255, 255, 0.04);
}

.step-num {
  font-size: 48px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
}

.step-divider {
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.step-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.step-content p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}

.step-tag {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--beige);
  opacity: 0.6;
  margin-top: auto;
  padding-top: 16px;
}

/* ─── FEATURES / ACCORDION ───────────────────── */
.features-section {
  background: var(--dark);
  padding: 120px 0;
}

.features-accordion {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  color: var(--white);
  cursor: pointer;
  transition: opacity 0.2s;
}

.accordion-header:hover {
  opacity: 0.8;
}

.acc-num {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  width: 28px;
  flex-shrink: 0;
}

.acc-title {
  flex: 1;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 600;
  text-align: left;
  letter-spacing: -0.01em;
}

.acc-toggle {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s;
}

.accordion-header[aria-expanded="true"] .acc-toggle {
  background: var(--white);
  border-color: var(--white);
}

.toggle-icon {
  font-size: 18px;
  color: var(--white);
  transition: transform 0.35s var(--ease), color 0.25s;
  line-height: 1;
}

.accordion-header[aria-expanded="true"] .toggle-icon {
  transform: rotate(45deg);
  color: var(--blue);
}

.accordion-body {
  max-height: 600px;
  transition: max-height 0.5s var(--ease);
  overflow: hidden;
}

.acc-body-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.acc-description p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
}

.acc-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acc-feature-list li {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}

.acc-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.4) sepia(0.5) hue-rotate(190deg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ─── ANALYTICS SECTION ──────────────────────── */
.analytics-section {
  background: var(--beige);
  color: var(--blue);
  padding: 120px 0;
}

.analytics-section .section-label {
  color: rgba(19, 42, 180, 0.5);
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-title-sm {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 16px 0 20px;
  color: var(--blue);
}

.section-title-sm em {
  font-style: italic;
  color: rgba(19, 42, 180, 0.5);
}

.analytics-text>p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(19, 42, 180, 0.7);
  margin-bottom: 36px;
}

.analytics-metrics {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-val {
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
}

.metric-label {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgba(19, 42, 180, 0.45);
}

.analytics-image-block {
  position: relative;
}

.analytics-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: saturate(0.4) sepia(0.5) hue-rotate(180deg) brightness(0.75);
  border: 1px solid rgba(19, 42, 180, 0.15);
}

.analytics-img-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--blue);
  color: var(--white);
  font-size: 9px;
  letter-spacing: 0.18em;
  padding: 6px 12px;
}

/* ─── PRICING ─────────────────────────────────── */
.pricing-section {
  background: var(--blue);
  padding: 120px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-card {
  padding: 44px 36px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.pricing-card:last-child {
  border-right: none;
}

.pricing-featured {
  background: var(--white);
  color: var(--blue);
}

.pricing-featured-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--beige);
  color: var(--blue);
  font-size: 9px;
  letter-spacing: 0.15em;
  padding: 5px 14px;
  border: 1px solid rgba(19, 42, 180, 0.15);
  white-space: nowrap;
}

.pricing-card-header {
  margin-bottom: 24px;
}

.plan-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pricing-featured .plan-label {
  color: rgba(19, 42, 180, 0.45);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-val {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1;
}

.pricing-featured .price-val {
  color: var(--blue);
}

.price-per {
  font-size: 12px;
  color: var(--text-muted);
}

.pricing-featured .price-per {
  color: rgba(19, 42, 180, 0.45);
}

.plan-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 28px;
}

.pricing-featured .plan-divider {
  background: rgba(19, 42, 180, 0.12);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: 36px;
}

.plan-features li {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
}

.pricing-featured .plan-features li {
  color: rgba(19, 42, 180, 0.7);
}

.plan-features li.dim {
  color: rgba(255, 255, 255, 0.2);
}

.btn-plan {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--white);
  transition: background 0.25s, border-color 0.25s;
}

.btn-plan:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}

.btn-plan-featured {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-plan-featured:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

/* ─── TESTIMONIALS ───────────────────────────── */
.testimonials-section {
  background: var(--dark);
  padding: 120px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.testimonial-card {
  padding: 40px 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.testimonial-card:last-child {
  border-right: none;
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--blue);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
}

.author-role {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* ─── CONTACT ─────────────────────────────────── */
.contact-section {
  background: var(--blue-dark);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(31, 61, 212, 0.6) 0%, transparent 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(60px);
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner .section-label {
  display: block;
  text-align: center;
  margin-bottom: 20px;
}

.contact-headline {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.contact-sub {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 52px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  display: block;
}

.form-group input,
.form-group select {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  width: 100%;
  -webkit-appearance: none;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--blue-dark);
  color: var(--white);
}

.btn-submit {
  margin-top: 8px;
  padding: 18px;
  background: var(--white);
  color: var(--blue);
  font-size: 13px;
  letter-spacing: 0.08em;
  border: 1.5px solid var(--white);
  transition: background 0.25s, color 0.25s, transform 0.2s;
  cursor: pointer;
  width: 100%;
}

.btn-submit:hover {
  background: transparent;
  color: var(--white);
}

.btn-submit:active {
  transform: scale(0.98);
}

/* ─── FOOTER ──────────────────────────────────── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 72px 0 32px;
}

.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo .logo-mark {
  color: var(--white);
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.4);
  max-width: 220px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 4px;
  display: block;
}

.footer-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.2);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ─── MOBILE RESPONSIVE ──────────────────────── */
@media (max-width: 1024px) {

  .platform-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step:nth-child(2) {
    border-right: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --pad: 24px;
  }

  .hero-sub-row {
    flex-direction: column;
    gap: 32px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .pricing-card:last-child {
    border-bottom: none;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

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

  .process-step {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .acc-body-inner {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 14px 16px;
  }

  .stat-desc {
    display: none;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-link {
    font-size: clamp(28px, 8vw, 50px);
    padding: 16px 0;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .analytics-metrics {
    gap: 20px;
  }
}