/* ============================================
   VaultNoir — Main styles
   Modern, dark, purple accent. See docs/LEAPFI_STYLE_IMPLEMENTATION_GUIDE.md
   ============================================ */

:root {
  --black: #0a0f1a;
  --near-black: #0d1424;
  --dark: #111827;
  --card: #141c2e;
  --border: #1e293b;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-dim: rgba(139, 92, 246, 0.08);
  --accent-mid: rgba(139, 92, 246, 0.15);
  --white: #ffffff;
  --gray: #94a3b8;
  --light-gray: #cbd5e1;
  --radius: 6px;
  --hero-gap: 64px;
  --hero-padding-y: 120px;
  --hero-padding-x: 32px;
  --nav-height: 72px;
  --content-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------------------------------------- NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 60px;
  background: rgba(10, 15, 26, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius);
}
.nav-logo__img {
  display: block;
  height: 26px;
  width: auto;
  object-fit: contain;
}
.nav-logo:has(.nav-logo__img) .nav-logo__text { display: none; }
.nav-logo__text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.nav-logo__w { color: var(--white); }
.nav-logo__accent { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  color: var(--white);
}
.nav-cta {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 22px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s;
  cursor: pointer;
  font-family: inherit;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--white);
}
.nav-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius);
}
.hamburger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 26, 0.96);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .nav-cta { font-size: 14px; padding: 14px 28px; margin-top: 16px; }

/* ---------------------------------------- HERO */
#hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: var(--hero-padding-y) var(--hero-padding-x) 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-effects {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-flow, .hero-stream, .hero-dot, .hero-node { animation: none !important; opacity: 0.5; }
}
.hero-flow {
  position: absolute;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.6), transparent);
  animation: hero-flow-line 10s linear infinite;
}
.hero-flow--1 { top: 15%; width: 120px; }
.hero-flow--2 { top: 28%; width: 90px; animation-delay: 2s; animation-duration: 11s; }
.hero-flow--3 { top: 38%; width: 150px; animation-delay: 1s; animation-duration: 12s; }
.hero-flow--4 { top: 62%; width: 100px; animation-delay: 3s; animation-duration: 9s; }
.hero-flow--5 { top: 78%; width: 140px; animation-delay: 1.5s; animation-duration: 10s; }
.hero-stream {
  position: absolute;
  top: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.5), transparent);
  animation: hero-data-stream 10s linear infinite;
}
.hero-stream--1 { left: 18%; height: 120px; }
.hero-stream--2 { left: 42%; height: 100px; animation-delay: 2s; animation-duration: 11s; }
.hero-stream--3 { left: 62%; height: 140px; animation-delay: 1.5s; animation-duration: 9s; }
.hero-stream--4 { left: 82%; height: 90px; animation-delay: 3s; animation-duration: 10s; }
.hero-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.7);
  animation: hero-float 6s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
}
.hero-dot--1 { top: 18%; left: 12%; width: 6px; height: 6px; }
.hero-dot--2 { top: 32%; left: 48%; width: 5px; height: 5px; animation-delay: 1s; animation-duration: 7s; }
.hero-dot--3 { top: 48%; left: 22%; width: 7px; height: 7px; animation-delay: 2s; animation-duration: 8s; }
.hero-dot--4 { top: 58%; left: 68%; width: 6px; height: 6px; animation-delay: 0.5s; animation-duration: 6.5s; }
.hero-dot--5 { top: 38%; left: 78%; width: 5px; height: 5px; animation-delay: 1.5s; animation-duration: 7.5s; }
.hero-dot--6 { top: 72%; left: 32%; width: 6px; height: 6px; animation-delay: 2.5s; animation-duration: 8.5s; }
.hero-node {
  position: absolute;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.5);
  animation: hero-pulse-node 3.5s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}
.hero-node--1 { top: 16%; left: 10%; width: 10px; height: 10px; }
.hero-node--2 { top: 30%; left: 40%; width: 12px; height: 12px; animation-delay: 0.5s; animation-duration: 3.8s; }
.hero-node--3 { top: 46%; left: 20%; width: 10px; height: 10px; animation-delay: 1s; animation-duration: 4s; }
.hero-node--4 { top: 60%; left: 60%; width: 12px; height: 12px; animation-delay: 0.3s; animation-duration: 3.2s; }

@keyframes hero-flow-line {
  0% { transform: translateX(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(100vw); opacity: 0; }
}
@keyframes hero-data-stream {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(100vh); opacity: 0; }
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.5; }
  50% { transform: translateY(-18px) translateX(8px); opacity: 0.9; }
}
@keyframes hero-pulse-node {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(13, 20, 36, 0.4) 0%, var(--black) 100%),
    repeating-linear-gradient(0deg, transparent 0, transparent 79px, rgba(255,255,255,0.02) 79px, rgba(255,255,255,0.02) 80px),
    repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(255,255,255,0.02) 79px, rgba(255,255,255,0.02) 80px);
  pointer-events: none;
}
.hero-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}
.hero-col--content { min-width: 0; }
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 999px;
  background: var(--accent-dim);
  font-weight: 600;
}
#hero h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--white);
}
#hero h1 em {
  display: block;
  color: var(--accent);
  font-style: normal;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--light-gray);
  margin-bottom: 32px;
  max-width: 800px;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
#hero .btn-primary {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, box-shadow 0.2s;
}
#hero .btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.3);
}
#hero .btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--light-gray);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
#hero .btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
#hero .btn-secondary .arrow { display: inline-block; transition: transform 0.2s; }
#hero .btn-secondary:hover .arrow { transform: translateX(4px); }
.hero-cred {
  font-size: 13px;
  color: var(--gray);
  letter-spacing: 0.02em;
  margin: 0;
}
.hero-model-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  max-width: 360px;
  margin-left: auto;
}
.hero-model-card__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 22px;
  text-transform: uppercase;
}
.hero-model-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-model-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 12px 0;
}
.hero-model-row + .hero-model-row { border-top: 1px solid var(--border); }
.hero-model-row__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--light-gray);
  line-height: 1.35;
}
.hero-model-row__desc {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.45;
}
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.hero-scroll .scroll-line {
  width: 32px;
  height: 1px;
  background: var(--gray);
  display: block;
}

/* ---------------------------------------- BUTTONS (global) */
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 2px 12px rgba(139, 92, 246, 0.25); }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------- SECTIONS COMMON */
section { padding: 72px 60px; }
.section-inner { max-width: var(--content-max); margin: 0 auto; }
.section-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}
h2 {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-copy {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
  max-width: 640px;
}
.section-copy + .section-copy {
  margin-top: 1em;
}

/* ---------------------------------------- PROBLEM */
#problem { background: var(--near-black); }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}
.stat-block {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 32px;
}
.stat-block:last-child {
  margin-bottom: 0;
}
.stat-block__num {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.stat-block__label {
  font-size: 13px;
  color: var(--gray);
  margin-top: 6px;
  line-height: 1.5;
}

/* ---------------------------------------- OFFERINGS */
#offerings { background: var(--black); }
.offerings-header { max-width: 600px; margin-bottom: 48px; }
.offerings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.offering-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
  transition: border-color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}
.offering-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.3s;
}
.offering-card:hover {
  border-color: #2a3548;
  background: #161f33;
}
.offering-card:hover::before { height: 100%; }
.offering-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}
.offering-card__desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
}

/* ---------------------------------------- CASE STUDIES */
#case-studies { background: var(--near-black); }
.case-studies-intro { margin-bottom: 40px; }
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
}

/* --- Card (entire card is one <a>) --- */
.cs-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}
.cs-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(139, 92, 246, 0.12);
}
.cs-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 16px;
}

/* --- Hero (logo area) --- */
.cs-card__hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  background: linear-gradient(170deg, #0c1018 0%, #111828 50%, #0d1220 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.cs-card__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.cs-card__glow--purple {
  background: radial-gradient(ellipse 70% 80% at 50% 40%, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
}
.cs-card__glow--gold {
  background: radial-gradient(ellipse 70% 80% at 50% 40%, rgba(202, 170, 60, 0.08) 0%, transparent 60%);
}
.cs-card:hover .cs-card__glow--purple {
  background: radial-gradient(ellipse 80% 90% at 50% 40%, rgba(139, 92, 246, 0.16) 0%, transparent 60%);
}
.cs-card:hover .cs-card__glow--gold {
  background: radial-gradient(ellipse 80% 90% at 50% 40%, rgba(202, 170, 60, 0.13) 0%, transparent 60%);
}

/* --- Logo --- */
.cs-card__logo {
  position: relative;
  z-index: 1;
  max-width: 48%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
  transition: transform 0.3s ease;
}
.cs-card__logo--large {
  width: 75%;
  max-width: none;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
.cs-card__logo--tall {
  max-width: 40%;
}
.cs-card:hover .cs-card__logo {
  transform: scale(1.04);
}
@media (prefers-reduced-motion: reduce) {
  .cs-card:hover { transform: none; }
  .cs-card:hover .cs-card__logo { transform: none; }
}

/* --- Body --- */
.cs-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 28px 0;
}
.cs-card__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.cs-card__desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  margin: 0 0 16px;
}
.cs-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cs-chip {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--light-gray);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.28);
  padding: 4px 10px;
  border-radius: 5px;
}

/* --- CTA (pinned to bottom) --- */
.cs-card__cta {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 20px 28px 24px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s;
}
.cs-card__cta .arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.cs-card:hover .cs-card__cta { color: var(--white); }
.cs-card:hover .cs-card__cta .arrow { transform: translateX(4px); }

/* ---------------------------------------- LEADERSHIP */
#leadership { background: var(--black); }
.leader-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  background: linear-gradient(165deg, rgba(28, 35, 52, 0.7) 0%, var(--card) 50%, rgba(18, 25, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  transition: box-shadow 0.25s, border-color 0.25s;
  align-items: center;
}
.leader-card:hover {
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.leader-card--reverse { grid-template-columns: 1fr 300px; }
.leader-card--reverse .leader-card__photo { order: 2; }
.leader-card--reverse .leader-card__info { order: 1; }
.leader-card__photo {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
}
.leader-card__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, transparent 50%, rgba(0,0,0,0.2) 100%);
}
.leader-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: brightness(0.96) contrast(1.03);
}
.leader-card__info { padding: 52px 52px 52px 0; }
.leader-card--reverse .leader-card__info { padding: 52px 0 52px 52px; }
.leader-card__name {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.leader-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.leader-card__bio {
  font-size: 15px;
  color: var(--light-gray);
  line-height: 1.7;
  margin-bottom: 24px;
}
.leader-card__creds {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.leader-card__creds .cred {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--light-gray);
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s;
}
.leader-card__creds .cred:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ---------------------------------------- CTA */
#cta {
  background: var(--near-black);
  text-align: center;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
}
.cta-inner { position: relative; z-index: 2; }
.cta-warning {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
#cta h2 {
  font-size: clamp(28px, 4.5vw, 52px);
  margin-bottom: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
#cta .section-copy { margin: 0 auto 36px; text-align: center; max-width: 520px; }
#cta .btn-primary {
  font-size: 14px;
  padding: 18px 40px;
}
#cta .btn-primary:hover { box-shadow: 0 2px 16px rgba(139, 92, 246, 0.3); }
.cta-note {
  margin-top: 24px;
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.04em;
}

/* ---------------------------------------- FOOTER */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  max-width: var(--content-max);
  margin: 0 auto;
  box-sizing: border-box;
}
.footer-logo-link {
  display: none;
}
.footer-logo-link:hover { opacity: 0.9; }
.footer-logo-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.footer-logo__img {
  display: block;
  height: 22px;
  width: auto;
  object-fit: contain;
}
.footer-logo-link:has(.footer-logo__img) .footer-logo__text { display: none; }
.footer-logo__text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: center;
}
.footer-links a {
  font-size: 14px;
  color: var(--light-gray);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  padding: 4px 0;
}
.footer-links a:hover { color: var(--white); }
.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.footer-copy {
  font-size: 13px;
  color: var(--gray);
  flex-shrink: 0;
}

/* ---------------------------------------- CONTACT DRAWER */
.contact-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.contact-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
.contact-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: var(--near-black);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.contact-drawer-overlay.open .contact-drawer {
  transform: translateX(0);
}
.contact-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.contact-drawer__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--white);
}
.contact-drawer__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--light-gray);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.contact-drawer__close:hover {
  border-color: var(--accent);
  color: var(--white);
}
.contact-drawer__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.contact-drawer__form {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-drawer__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-drawer__field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--light-gray);
}
.contact-drawer__field input,
.contact-drawer__field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--white);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.contact-drawer__field input::placeholder,
.contact-drawer__field textarea::placeholder {
  color: var(--gray);
}
.contact-drawer__field input:focus,
.contact-drawer__field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-drawer__field textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-drawer__submit {
  margin-top: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--white);
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.contact-drawer__submit:hover {
  background: var(--accent-hover);
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.3);
}
.contact-drawer__submit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.contact-drawer__error {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 13px;
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: var(--radius);
}
.contact-drawer__error[hidden] { display: none !important; }
.contact-drawer__success {
  padding: 28px;
  text-align: center;
  flex: 1;
  display: none;
}
.contact-drawer__success[hidden] { display: none !important; }
.contact-drawer__success-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
}
.contact-drawer__success-text {
  font-size: 15px;
  color: var(--gray);
  margin: 0;
  line-height: 1.5;
}
.contact-drawer--success .contact-drawer__form { display: none; }
.contact-drawer--success .contact-drawer__success { display: block !important; }

/* ---------------------------------------- SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-child {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal.visible .reveal-child { opacity: 1; transform: translateY(0); }
.reveal.visible .reveal-child:nth-child(1) { transition-delay: 0s; }
.reveal.visible .reveal-child:nth-child(2) { transition-delay: 0.08s; }
.reveal.visible .reveal-child:nth-child(3) { transition-delay: 0.16s; }
.reveal.visible .reveal-child:nth-child(4) { transition-delay: 0.24s; }
.reveal.visible .reveal-child:nth-child(5) { transition-delay: 0.32s; }
.reveal.visible .reveal-child:nth-child(6) { transition-delay: 0.40s; }

/* ---------------------------------------- RESPONSIVE */
@media (max-width: 900px) {
  .case-studies-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .cs-card__hero { height: 160px; }
  .cs-card__body { padding: 20px 24px 0; }
  .cs-card__cta { padding: 16px 24px 22px; }
}
@media (max-width: 900px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  section { padding: 56px 20px; }
  #hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }
  .hero-container { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-cred { text-align: center; }
  .hero-scroll { display: none; }
  .problem-grid { grid-template-columns: 1fr; gap: 32px; }
  .offerings-grid { grid-template-columns: 1fr; }
  .leader-card,
  .leader-card--reverse {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .leader-card__photo {
    min-height: 300px;
    order: -1 !important;
  }
  .leader-card__info {
    padding: 28px 24px 32px !important;
    order: 1 !important;
  }
  footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 32px 24px;
    max-width: none;
  }
  #cta { padding: 60px 20px; }
}
@media (max-width: 600px) {
  .hero-sub { font-size: 17px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn-primary,
  .hero-btns .btn-secondary { width: 100%; text-align: center; }
  .leader-card__photo { min-height: 240px; }
}
