/* ─────────────────────────────────────────────────────────
   CHARGETIDE SOLUTIONS — Premium Design System
   Taste-Skill Settings: DESIGN_VARIANCE:8  MOTION_INTENSITY:6  VISUAL_DENSITY:4
   ───────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:        #020617;
  --bg-card:   #0f172a;
  --bg-raised: #1e293b;
  --border:    rgba(255,255,255,0.07);
  --border-mid: rgba(255,255,255,0.12);
  --accent:    #0072bc;
  --accent-dark: #002d50;
  --accent-dim: rgba(0, 114, 188, 0.12);
  --accent-glow: rgba(0, 114, 188, 0.3);
  --text-primary:   #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --success: #10b981;
  --orange: #f7941d;
  --warning: #f59e0b;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 20px 60px -20px rgba(0,0,0,0.6);
  --shadow-accent: 0 0 0 1px rgba(0, 114, 188, 0.25), 0 20px 60px -20px rgba(0, 114, 188, 0.2);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
select, input, textarea { font-family: inherit; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── NAV ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo),
              padding 0.4s var(--ease-out-expo);
}
.navbar.scrolled {
  background: rgba(7,9,15,0.85);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 1px 0 var(--border), 0 8px 32px rgba(0,0,0,0.4);
  padding: 0.75rem 0;
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.8; }
.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-transform: uppercase;
  background: linear-gradient(to right, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-link {
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.nav-cta-link {
  margin-left: 0.5rem;
  background: var(--accent);
  color: #fff !important;
  padding: 0.48rem 1rem;
}
.nav-cta-link:hover { background: #2878ff; opacity: 1; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 99px;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s, background 0.2s, opacity 0.2s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98) translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(26,108,246,0.4), 0 4px 16px rgba(26,108,246,0.35);
}
.btn-primary:hover {
  background: #2878ff;
  box-shadow: 0 0 0 1px rgba(26,108,246,0.6), 0 8px 24px rgba(26,108,246,0.45);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-mid);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-white {
  background: #fff;
  color: #07090f;
  font-weight: 700;
}
.btn-white:hover { background: #e8edff; transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }
.btn-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SECTION HEADER ─────────────────────────────────────── */
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.section-title em { font-style: normal; color: var(--accent); }
.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 52ch;
}
.section-header { margin-bottom: 4rem; }
.tc-center { text-align: center; }
.tc-center.section-sub { margin: 0 auto 1rem; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(26,108,246,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(15,155,110,0.06) 0%, transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}
.hero-orb--1 {
  width: 400px; height: 400px;
  top: -100px; right: 5%;
  background: radial-gradient(circle, rgba(26,108,246,0.2) 0%, transparent 70%);
  animation-delay: 0s;
}
.hero-orb--2 {
  width: 280px; height: 280px;
  bottom: 10%; left: 5%;
  background: radial-gradient(circle, rgba(15,155,110,0.15) 0%, transparent 70%);
  animation-delay: -4s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-content { max-width: 600px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(26,108,246,0.1);
  border: 1px solid rgba(26,108,246,0.25);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #7fb3ff;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.2s forwards;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(26,108,246,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(26,108,246,0); }
}
.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}
.hl-line {
  display: block;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) forwards;
}
.hl-line:nth-child(1) { animation-delay: 0.35s; }
.hl-line:nth-child(2) { animation-delay: 0.48s; }
.hl-line:nth-child(3) { animation-delay: 0.6s; }
.hl-accent { color: var(--accent); }
.hero-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 52ch;
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.72s forwards;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.84s forwards;
}
.hero-trust {
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.96s forwards;
}
.trust-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}
.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.trust-tag {
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Hero Visual Panel */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  opacity: 0;
  animation: fadeLeft 0.8s var(--ease-out-expo) 0.5s forwards;
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
.visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow-card);
}
.visual-card:hover { border-color: var(--border-mid); box-shadow: var(--shadow-accent); }
.vc-main { grid-column: 1 / 3; }
.vc-secondary { grid-column: 1 / 2; }
.vc-stat { grid-column: 2 / 3; display: flex; flex-direction: column; justify-content: center; }
.vc-delay-1 { animation-delay: 0.65s; }
.vc-delay-2 { animation-delay: 0.8s; }
.vc-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.vc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.vc-dot--green { background: #0f9b6e; box-shadow: 0 0 0 3px rgba(15,155,110,0.2); }
.vc-dot--blue  { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.vc-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 1;
}
.vc-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0f9b6e;
  background: rgba(15,155,110,0.12);
  border: 1px solid rgba(15,155,110,0.25);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.vc-metric { margin-bottom: 0.5rem; }
.vc-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
}
.vc-unit {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 0.25rem;
}
.vc-spark { margin: 0.75rem 0; }
.vc-spark svg { width: 100%; height: 40px; }
.vc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vc-change {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f9b6e;
  font-family: var(--font-mono);
}
.vc-time { font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono); }
.vc-bars { display: flex; flex-direction: column; gap: 0.6rem; }
.vc-bar-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr 2.5rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}
.bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #0f9b6e);
  border-radius: inherit;
  transition: width 1.5s var(--ease-out-expo);
}
.bar-val { color: var(--text-primary); font-weight: 600; text-align: right; }
.vc-num-lg {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-family: var(--font-mono);
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.vc-stat-label { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.4; }

/* Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out-expo) 1.5s forwards;
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero-scroll-hint span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── MARQUEE ─────────────────────────────────────────────── */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  overflow: hidden;
  background: rgba(255,255,255,0.015);
}
.marquee-track { overflow: hidden; }
.marquee-items {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-items span {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.marquee-items .sep { color: var(--text-muted); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SERVICES ────────────────────────────────────────────── */
.services-section { padding: 7rem 0; }
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.service-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out-expo);
}
.service-block:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.sb-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid rgba(26,108,246,0.2);
  border-radius: var(--radius-md);
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.sb-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.sb-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 48ch;
}
.sb-list { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 2rem; }
.sb-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.sb-list li svg { color: var(--accent); flex-shrink: 0; }
.sb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s var(--ease-out-expo), opacity 0.2s;
}
.sb-link:hover { gap: 0.7rem; opacity: 0.8; }

/* ── METRICS ─────────────────────────────────────────────── */
.metrics-section {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.metrics-inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 5rem;
  align-items: start;
}
.metrics-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.metrics-sub {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 46ch;
}
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.metric-item {
  padding: 2rem;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  transition: background 0.3s;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo), background 0.3s;
  transition-delay: calc(var(--i) * 0.1s);
}
.metric-item.visible { opacity: 1; transform: translateY(0); }
.metric-item:hover { background: rgba(26,108,246,0.04); }
.metric-item:nth-child(odd) { border-left: none; }
.metric-item:nth-child(1), .metric-item:nth-child(2) { border-top: none; }
.metric-num {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  font-family: var(--font-mono);
  color: var(--accent);
  line-height: 1;
}
.metric-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
}
.metric-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 0.75rem;
  max-width: 22ch;
}

/* ── SOLUTIONS BENTO ─────────────────────────────────────── */
.solutions-section { padding: 7rem 0; }
.solutions-bento {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out-expo);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
}
.bento-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease-out-expo) calc(var(--i) * 0.08s),
              transform 0.7s var(--ease-out-expo) calc(var(--i) * 0.08s),
              border-color 0.3s, box-shadow 0.3s;
}
.bento-card:hover { border-color: var(--border-mid); box-shadow: var(--shadow-card); transform: translateY(-3px); }
.bc-wide { grid-column: 1 / 2; grid-row: 1 / 2; }
.bc-tall { grid-column: 2 / 3; grid-row: 1 / 3; }
.bc-standard { grid-column: span 1; }
.bc-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #0b3d8b 100%);
  border-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}
.bc-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(26,108,246,0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.bc-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.bc-body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Mini chart inside bento */
.bc-visual { margin-top: 1.5rem; }
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 50px;
}
.mc-bar {
  flex: 1;
  background: var(--accent);
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  opacity: 0.4;
  animation: barGrow 0.8s var(--ease-out-expo) var(--d) both;
}
.bc-wide:hover .mc-bar { opacity: 0.7; }
@keyframes barGrow {
  from { height: 0; opacity: 0; }
  to { height: var(--h); opacity: 0.4; }
}

/* Icon stack for retail card */
.bc-icon-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}
.bento-card:hover .icon-badge { background: var(--accent-dim); color: var(--accent); }

/* CTA card accent */
.bc-cta-pre {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.bc-cta-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

/* ── PROCESS ─────────────────────────────────────────────── */
.process-section { padding: 7rem 0; border-top: 1px solid var(--border); }
.process-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}
.process-header { position: sticky; top: 8rem; }
.process-steps { display: flex; flex-direction: column; }
.process-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateX(30px);
}
.process-step.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.7s var(--ease-out-expo) calc(var(--i) * 0.12s),
              transform 0.7s var(--ease-out-expo) calc(var(--i) * 0.12s);
}
.step-number {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 0.2rem;
}
.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testimonials-section { padding: 7rem 0; }
.testimonials-section .section-header { margin-bottom: 4rem; }
.testimonials-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  transition: all 0.4s var(--ease-out-expo);
  opacity: 1; /* Changed from 0 to 1 for dynamically added ones */
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover { border-color: var(--border-mid); box-shadow: var(--shadow-card); transform: translateY(-5px); }
.tc-quote {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 0.75rem;
  font-family: Georgia, serif;
}
.tc-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  font-style: italic;
  flex-grow: 1;
}
.tc-author { display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--border); padding-top: 1.25rem; }
.tc-details { display: flex; flex-direction: column; gap: 0.15rem; }
.tc-name { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.tc-meta { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

/* Testimonial Form */
.testimonial-submit-box {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xl);
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}
.testimonial-submit-box .sb-title { text-align: center; margin-bottom: 2rem; font-size: 1.5rem; }
.testimonial-form { display: flex; flex-direction: column; gap: 1.25rem; }
.testimonial-form .btn { margin-top: 1rem; align-self: center; padding: 0.85rem 3rem; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-section {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}
.contact-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.contact-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 44ch;
  margin-bottom: 2rem;
}
.contact-details { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.contact-link:hover { color: var(--accent); }
.contact-link svg { flex-shrink: 0; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.form-input {
  background: var(--bg-raised);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,108,246,0.15);
}
.form-input.error { border-color: #d94f4f; box-shadow: 0 0 0 3px rgba(217,79,79,0.15); }
.form-select { cursor: pointer; }
.form-select option { background: #1a1e2a; }
.form-textarea { resize: vertical; min-height: 120px; }
.form-error {
  font-size: 0.78rem;
  color: #d94f4f;
  font-weight: 500;
  min-height: 1em;
}
.form-success {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f9b6e;
  padding: 0.75rem 1rem;
  background: rgba(15,155,110,0.1);
  border: 1px solid rgba(15,155,110,0.25);
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  background: var(--bg-card);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 36ch;
  line-height: 1.6;
}
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--text-secondary); }

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

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { grid-template-columns: 1fr 1fr; }
  .vc-main { grid-column: 1 / 3; }
  .services-grid { gap: 1rem; }
  .solutions-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: unset;
  }
  .bc-wide { grid-column: 1 / 3; }
  .bc-tall { grid-column: 1 / 2; grid-row: unset; }
  .process-inner { grid-template-columns: 1fr; gap: 3rem; }
  .process-header { position: static; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: rgba(7,9,15,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .nav-links.open .nav-link { width: 100%; padding: 0.75rem 1rem; }
  .nav-links.open .nav-cta-link { margin-left: 0; margin-top: 0.5rem; width: 100%; justify-content: center; }
  .hero-inner { padding: 2rem 1.25rem 4rem; }
  .hero-visual { grid-template-columns: 1fr; }
  .vc-main { grid-column: 1 / 2; }
  .vc-secondary, .vc-stat { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .metrics-inner { grid-template-columns: 1fr; gap: 3rem; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .solutions-bento { grid-template-columns: 1fr; }
  .bc-wide, .bc-tall { grid-column: 1 / 2; }
  .testimonials-track { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .process-step { grid-template-columns: 2.5rem 1fr; gap: 1rem; }
  .hero-scroll-hint { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; width: 100%; }
  .btn { width: 100%; justify-content: center; }
  .metrics-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
}
