/* ============== DESIGN TOKENS ============== */
:root {
  /* Praxis logo palette only — navy is the lead, blue is the accent */
  --navy: #0d2e73;
  --navy-deep: #08214f;
  --navy-darker: #050b22;
  --navy-soft: #2a4d99;     /* gradient companion to navy */
  --blue: #1455fe;          /* used sparingly: CTAs + key highlights */
  --blue-soft: #4a7dff;
  --white: #ffffff;

  /* Neutrals — derived from navy for cohesion */
  --bg-light: #f7f9fc;
  --bg-mid: #eef2f9;
  --border: #e3e8f1;
  --text: #0d2e73;
  --text-body: #3a4661;
  --text-muted: #6b7895;

  --shadow-sm: 0 4px 12px rgba(13, 46, 115, 0.06);
  --shadow-md: 0 12px 32px rgba(13, 46, 115, 0.10);
  --shadow-lg: 0 30px 60px rgba(13, 46, 115, 0.18);
  --shadow-blue: 0 12px 32px rgba(20, 85, 254, 0.35);

  --container: 1400px;
  --header-h: 84px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
}

/* ============== RESET & BASE ============== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 64px;
}

/* ============== TYPE ============== */
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
h1 { font-size: clamp(34px, 5.2vw, 72px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.8vw, 54px); font-weight: 700; }
h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; }
em { font-style: italic; }

.highlight, .accent {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}
.hero .highlight {
  /* On the dark hero, navy doesn't read — use the brighter end */
  background: linear-gradient(135deg, var(--blue-soft) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============== SECTION EYEBROW ============== */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 100px;
  background: rgba(13, 46, 115, 0.08);
  color: var(--navy);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 24px;
}
.section-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
}

.section-head {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px;
  align-items: end; margin-bottom: 72px;
}
.section-head.centered {
  display: block; text-align: center; max-width: 800px; margin: 0 auto 80px;
}
.section-head.centered .section-eyebrow { margin-left: auto; margin-right: auto; }
.head-desc {
  font-size: 18px; line-height: 1.65; color: var(--text-muted); max-width: 480px;
}
.head-desc.center { max-width: 640px; margin: 24px auto 0; }

/* ============== HEADER ============== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  background: transparent;
  transition: background 0.3s ease, border-bottom 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { height: 44px; transition: opacity 0.3s; }
.logo-color { display: none; }
.header.scrolled .logo-white { display: none; }
.header.scrolled .logo-color { display: block; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 15px; font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative; transition: color 0.3s;
}
.header.scrolled .nav a { color: var(--text-body); }
.nav a:hover { color: var(--white); }
.header.scrolled .nav a:hover { color: var(--blue); }
.nav a::after {
  content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px;
  background: var(--blue); transition: width 0.3s;
}
.nav a:not(.cta-btn):hover::after { width: 100%; }

.cta-btn {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-blue);
  transition: transform 0.3s, box-shadow 0.3s;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(20, 85, 254, 0.45);
}
.cta-btn::after { display: none !important; }
.cta-arrow { transition: transform 0.3s; }
.cta-btn:hover .cta-arrow { transform: translateX(4px); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span {
  width: 24px; height: 2px; background: var(--white);
  transition: all 0.3s;
}
.header.scrolled .menu-toggle span { background: var(--navy); }

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(20, 85, 254, 0.30) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(20, 85, 254, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy-darker) 0%, var(--navy) 100%);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
}

.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(20, 85, 254, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 85, 254, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift {
  to { background-position: 60px 60px; }
}

.hex { position: absolute; opacity: 0.4; filter: drop-shadow(0 0 30px rgba(20, 85, 254, 0.6)); }
.hex-1 { top: 12%; left: 8%; width: 80px; animation: float 8s ease-in-out infinite; }
.hex-2 { top: 60%; left: 5%; width: 50px; animation: float 6s ease-in-out infinite reverse; }
.hex-3 { top: 18%; right: 12%; width: 100px; animation: float 10s ease-in-out infinite; }
.hex-4 { top: 70%; right: 18%; width: 70px; animation: float 7s ease-in-out infinite reverse; }
.hex-5 { top: 40%; right: 8%; width: 40px; animation: float 9s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(8deg); }
}

.hero-content {
  position: relative; z-index: 10;
  max-width: var(--container); margin: 0 auto; padding: 0 64px;
  width: 100%;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px;
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 100px;
  background: rgba(20, 85, 254, 0.15);
  border: 1px solid rgba(20, 85, 254, 0.4);
  color: #a8c0ff;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--blue); }
  50% { opacity: 0.6; box-shadow: 0 0 20px var(--blue); }
}

.hero h1 { color: var(--white); margin-bottom: 24px; }
.subhead {
  font-size: 19px; line-height: 1.6; color: rgba(255, 255, 255, 0.75);
  max-width: 560px; margin-bottom: 40px;
}

.hero-ctas { display: flex; gap: 16px; margin-bottom: 56px; flex-wrap: wrap; }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  padding: 18px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-blue);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--blue-soft), var(--blue));
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary span { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(20, 85, 254, 0.5); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary .arrow { transition: transform 0.3s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-secondary {
  color: var(--white);
  padding: 18px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.stats {
  display: flex; gap: 48px; padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 38px; font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, #ffffff 0%, #a8c0ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat .lbl {
  font-size: 12px; color: rgba(255, 255, 255, 0.6);
  margin-top: 6px; text-transform: uppercase; letter-spacing: 0.08em;
}

/* Hero right: floating cards */
.hero-right { position: relative; height: 560px; perspective: 1500px; }
.float-card {
  position: absolute; border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  padding: 24px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.main-card {
  top: 140px; right: 0; width: 440px; height: 340px;
  transform: rotateY(-12deg) rotateX(6deg);
  animation: floatCard 8s ease-in-out infinite;
}
.main-card .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px;
  background: rgba(20, 85, 254, 0.2);
  color: #a8c0ff;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 16px;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 8px var(--blue); animation: pulse 2s ease-in-out infinite; }
.main-card h3 { color: var(--white); font-size: 18px; margin-bottom: 6px; }
.main-card p { color: rgba(255, 255, 255, 0.65); font-size: 13px; margin-bottom: 20px; }
.chart-area { height: 170px; position: relative; z-index: 1;
  background: linear-gradient(180deg, rgba(20, 85, 254, 0.15) 0%, transparent 100%);
  border-radius: 8px; overflow: hidden;
  margin-bottom: -36px;
}
.chart-area svg { width: 100%; height: 100%; display: block; }
.chart-pulse { animation: chartPulse 2s ease-in-out infinite; }
@keyframes chartPulse {
  0%, 100% { r: 4; opacity: 1; }
  50% { r: 6; opacity: 0.7; }
}
.metric-row { position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 0; }
.metric { background: rgba(10, 22, 56, 0.92); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px; padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.metric .v { color: var(--white); font-weight: 700; font-size: 18px;
  font-family: 'Space Grotesk', sans-serif; }
.metric .l { color: rgba(255, 255, 255, 0.65); font-size: 11px; margin-top: 2px; }

.badge-card {
  top: 0; right: 60px; width: 220px; padding: 16px;
  transform: rotateY(-8deg) rotateX(4deg);
  animation: floatCard 7s ease-in-out infinite 0.5s;
  z-index: 3;
}
.badge-card .icon-wrap {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.badge-card h4 { color: var(--white); font-size: 14px; margin-bottom: 4px; }
.badge-card p { color: rgba(255, 255, 255, 0.6); font-size: 11px; line-height: 1.5; }

.alert-card {
  bottom: -20px; right: 60px; width: 260px; padding: 14px 16px;
  transform: rotateY(-15deg) rotateX(2deg);
  display: flex; align-items: center; gap: 12px;
  animation: floatCard 9s ease-in-out infinite 1s;
}
.alert-card .pulse {
  width: 10px; height: 10px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
  animation: pulse 2s ease-in-out infinite;
}
.alert-card .text { color: var(--white); font-size: 13px; font-weight: 500; }
.alert-card .sub { color: rgba(255, 255, 255, 0.55); font-size: 11px; margin-top: 2px; }

@keyframes floatCard {
  0%, 100% { transform: rotateY(var(--ry, -12deg)) rotateX(var(--rx, 6deg)) translateY(0); }
  50% { transform: rotateY(var(--ry, -12deg)) rotateX(var(--rx, 6deg)) translateY(-10px); }
}

.scroll-hint {
  position: absolute; bottom: 32px; right: 64px;
  color: rgba(255, 255, 255, 0.5); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  z-index: 10; transition: color 0.3s;
}
@media (max-width: 1100px) { .scroll-hint { right: 40px; } }
@media (max-width: 768px) { .scroll-hint { display: none; } }
.scroll-hint:hover { color: var(--white); }
.scroll-hint .line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============== REVEAL ANIMATIONS ============== */
.reveal {
  opacity: 0; transform: translateY(30px);
  animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}
.scroll-reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============== PHILOSOPHY ============== */
.philosophy {
  padding: 120px 0;
  background: var(--bg-light);
  position: relative;
}
.philosophy::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.philosophy-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px;
  align-items: center;
}
.philosophy h2 { margin-bottom: 28px; }
.lead { font-size: 19px; line-height: 1.65; color: var(--text-body); margin-bottom: 24px; }
.philosophy p:not(.lead) {
  font-size: 16px; line-height: 1.75; color: var(--text-muted); margin-bottom: 32px;
}
.philosophy-tags {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px;
}
.tag {
  padding: 20px 28px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 6px; min-width: 200px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.tag:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tag-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px; font-weight: 600; color: var(--navy);
  letter-spacing: -0.01em;
}
.tag-label {
  font-size: 13px; font-weight: 600; color: var(--text);
  letter-spacing: 0.04em;
}
.tag-label span {
  display: block; margin-top: 4px;
  font-weight: 400; color: var(--text-muted); font-size: 12px;
  letter-spacing: 0;
}
.tag-arrow { color: var(--blue); font-size: 24px; font-weight: 300; }
.accent-tag {
  background: var(--navy); border-color: var(--navy);
  box-shadow: var(--shadow-blue);
}
.accent-tag .tag-num { color: var(--white); }
.accent-tag .tag-label { color: var(--white); }
.accent-tag .tag-label span { color: rgba(255, 255, 255, 0.7); }

.quote-card {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 56px 48px;
  border-radius: var(--radius-lg);
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.quote-card::after {
  content: ''; position: absolute; width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 85, 254, 0.4) 0%, transparent 70%);
  top: -120px; right: -120px; pointer-events: none;
}
.quote-mark { margin-bottom: 24px; }
.quote-card p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px; line-height: 1.5; color: var(--white) !important;
  margin-bottom: 32px !important; font-weight: 500;
  position: relative; z-index: 2;
}
.quote-attr {
  display: flex; align-items: center; gap: 20px;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative; z-index: 2;
}
.quote-line { width: 32px; height: 1px; background: var(--blue); }
.quote-name { font-size: 14px; font-weight: 600; color: var(--white); }
.quote-role { font-size: 12px; color: rgba(255, 255, 255, 0.6); margin-top: 2px; }

/* ============== ABOUT / FIT ============== */
.about {
  padding: 120px 0;
  background: var(--white);
  position: relative;
}
.fit-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.fit-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s, border-color 0.4s, background 0.4s;
  position: relative; overflow: hidden;
}
.fit-card:hover { background: var(--white); }
.fit-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 0; height: 3px;
  background: var(--blue);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.fit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(20, 85, 254, 0.2);
}
.fit-card:hover::before { width: 100%; }
.fit-stage {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px; font-weight: 700; color: var(--blue);
  letter-spacing: 0.15em; margin-bottom: 16px;
  display: inline-block;
  padding: 6px 12px; border-radius: 6px;
  background: rgba(20, 85, 254, 0.08);
}
.fit-card h3 { margin-bottom: 12px; font-size: 24px; }
.fit-card p { color: var(--text-muted); margin-bottom: 20px; font-size: 15px; }
.fit-card ul { list-style: none; }
.fit-card ul li {
  padding: 8px 0; font-size: 14px; color: var(--text-body);
  display: flex; align-items: center; gap: 10px;
}
.fit-card ul li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--blue);
  flex-shrink: 0;
}

/* ============== SERVICES ============== */
.services-section { padding: 120px 0; background: var(--bg-light); }
.services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  position: relative;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
  min-height: 520px;
  display: flex; flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(20, 85, 254, 0.2);
}
.service-card.featured {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white); border: none;
  box-shadow: var(--shadow-lg);
}
.service-card.featured:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 80px rgba(13, 46, 115, 0.35);
}
.service-card.featured h3 { color: var(--white); }
.service-card.featured .desc { color: rgba(255, 255, 255, 0.75); }
.service-card.featured ul.features li { color: rgba(255, 255, 255, 0.8); border-top-color: rgba(255, 255, 255, 0.1); }
.service-card.featured ul.features li::before {
  background-color: rgba(255, 255, 255, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}
.service-card.featured .learn-more {
  color: #a8c0ff; border-top-color: rgba(255, 255, 255, 0.1);
}
.service-card.featured .arrow-circle {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.glow {
  position: absolute; width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 85, 254, 0.4) 0%, transparent 70%);
  top: -120px; right: -120px; pointer-events: none;
}

.service-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(20, 85, 254, 0.1);
  border: 1px solid rgba(20, 85, 254, 0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  transition: transform 0.4s;
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); }
.service-card.featured .service-icon {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.service-card h3 { margin-bottom: 14px; }
.desc { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin-bottom: 24px; }
ul.features { list-style: none; margin-bottom: 28px; }
ul.features li {
  padding: 12px 0; font-size: 14px; color: var(--text-body);
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--border);
}
ul.features li::before {
  content: ''; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background-color: rgba(20, 85, 254, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231455fe' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}
.learn-more {
  margin-top: auto;
  color: var(--blue);
  font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  transition: gap 0.3s;
}
.arrow-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(20, 85, 254, 0.1);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.3s, background 0.3s;
}
.service-card:hover .arrow-circle { transform: translateX(4px); background: var(--blue); color: var(--white); }
.service-card.featured:hover .arrow-circle { background: var(--white); color: var(--navy); }

/* ============== PROCESS ============== */
.process {
  padding: 120px 0;
  background: var(--white);
  position: relative;
}

.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  position: relative;
}
.step-connector {
  position: absolute;
  top: 32px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--blue), transparent);
  opacity: 0.3;
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.step-marker {
  position: relative;
  width: 64px; height: 64px; margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--blue);
  box-shadow: 0 0 0 6px rgba(20, 85, 254, 0.08);
  transition: transform 0.4s, background 0.4s, color 0.4s, box-shadow 0.4s;
}
.step:hover .step-marker {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 0 0 8px rgba(20, 85, 254, 0.15), var(--shadow-blue);
}
.step-marker-glow {
  position: absolute; inset: -2px; border-radius: 50%;
  background: var(--blue);
  opacity: 0; filter: blur(20px);
  transition: opacity 0.4s;
  z-index: -1;
}
.step:hover .step-marker-glow { opacity: 0.4; }

.step-content { text-align: left; padding: 0 8px; }
.step-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 700; color: var(--blue);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 12px;
  text-align: center;
}
.step h4 { margin-bottom: 12px; text-align: center; font-size: 20px; }
.step p {
  font-size: 14px; line-height: 1.65; color: var(--text-muted);
  margin-bottom: 20px;
  text-align: center;
}
.step-meta {
  display: flex; justify-content: center; gap: 10px;
  font-size: 12px; color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* ============== CTA BAND ============== */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--bg-light);
  padding: 120px 64px;
  border-top: 1px solid var(--border);
}
.grid-bg-light {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(13, 46, 115, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 46, 115, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.cta-band::after {
  content: ''; position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 85, 254, 0.08) 0%, transparent 70%);
  bottom: -200px; right: -100px; pointer-events: none;
}

.cta-content {
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px;
  align-items: start;
}

.cta-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 100px;
  background: rgba(13, 46, 115, 0.08);
  color: var(--navy);
  border: 1px solid rgba(13, 46, 115, 0.12);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 24px;
}
.cta-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}
.cta-band h2 { color: var(--navy); margin-bottom: 20px; }
.cta-left > p {
  color: var(--text-body); font-size: 18px;
  line-height: 1.65; max-width: 540px; margin-bottom: 40px;
}
.cta-bullets { display: flex; flex-direction: column; gap: 14px; }
.cta-bullet {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-body); font-size: 15px;
}
.cta-bullet svg { flex-shrink: 0; }
.cta-bullet svg circle { fill: rgba(20, 85, 254, 0.12); }
.cta-bullet svg path { stroke: var(--blue); }

.cta-card {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: ''; position: absolute;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 85, 254, 0.45) 0%, transparent 70%);
  top: -140px; right: -140px; pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h3 { color: var(--white); margin-bottom: 8px; font-size: 22px; }
.cta-card > p {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 14px !important; margin-bottom: 28px !important;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block; color: rgba(255, 255, 255, 0.7);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 8px; font-weight: 500;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-family: inherit; font-size: 14px;
  transition: border-color 0.3s, background 0.3s;
  resize: vertical;
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(255, 255, 255, 0.1);
}
.form-row select option { background: var(--navy); color: var(--white); }

.submit-btn {
  width: 100%; padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: var(--white);
  font-weight: 600; font-size: 15px; cursor: pointer;
  box-shadow: var(--shadow-blue);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(20, 85, 254, 0.5); }
.submit-btn .arrow { transition: transform 0.3s; }
.submit-btn:hover .arrow { transform: translateX(4px); }
.form-disclaimer {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.45) !important;
  text-align: center;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}

/* ============== FOOTER ============== */
footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.65);
  padding: 80px 64px 32px;
  position: relative; overflow: hidden;
}
footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 85, 254, 0.5), transparent);
}
.footer-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand img { height: 40px; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; line-height: 1.65; margin-bottom: 24px; max-width: 320px; }
.footer-brand em { font-style: italic; color: var(--blue-soft); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
}
.socials a:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
}
.footer-col h5 {
  color: var(--white); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 24px;
}
.footer-col a {
  display: block; color: rgba(255, 255, 255, 0.6);
  font-size: 14px; padding: 8px 0;
  transition: color 0.3s, transform 0.3s;
}
.footer-col a:hover { color: var(--white); transform: translateX(4px); }

.footer-bottom {
  max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; padding-top: 32px;
  font-size: 13px; color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap; gap: 16px;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1100px) {
  .header-inner, .hero-content, .container, .cta-content {
    padding-left: 40px; padding-right: 40px;
  }
  .cta-band { padding-left: 40px; padding-right: 40px; }
  footer { padding-left: 40px; padding-right: 40px; }
  .hero-content { grid-template-columns: 1fr; gap: 60px; }
  .hero-right { height: 480px; max-width: 560px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 60px; }
  .cta-content { grid-template-columns: 1fr; gap: 60px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .step-connector { display: none; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .header-inner, .hero-content, .container, .cta-content, footer {
    padding-left: 20px !important; padding-right: 20px !important;
  }
  h1 { font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; }
  h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; }
  h3 { font-size: 19px; }
  h4 { font-size: 17px; }
  .subhead { font-size: 15px; margin-bottom: 32px; line-height: 1.6; }
  .lead { font-size: 16px; }
  .head-desc { font-size: 15px; }
  .eyebrow { font-size: 11px; padding: 6px 14px; margin-bottom: 18px; letter-spacing: 0.06em; }
  .section-eyebrow, .cta-eyebrow { font-size: 11px; padding: 6px 14px; margin-bottom: 18px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 24px; gap: 16px;
    box-shadow: var(--shadow-md); border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav a { color: var(--text-body); width: 100%; padding: 12px 0; }
  .menu-toggle { display: flex; }
  .hero { padding-top: 110px; padding-bottom: 56px; min-height: auto; }
  .hero-right { display: none; }
  .hero h1 { margin-bottom: 20px; }
  .hero-ctas { gap: 12px; margin-bottom: 40px; }
  .btn-primary, .btn-secondary { padding: 14px 22px; font-size: 14px; width: 100%; justify-content: center; }
  .stats { flex-wrap: wrap; gap: 24px; padding-top: 28px; }
  .stat { flex: 1 1 40%; }
  .stat .num { font-size: 26px; }
  .stat .lbl { font-size: 11px; }
  .services, .fit-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 32px 24px; min-height: auto; }
  .service-card h3 { font-size: 20px; }
  .fit-card { padding: 28px 24px; }
  .fit-card h3 { font-size: 20px; }
  .process-steps { grid-template-columns: 1fr; gap: 32px; }
  .step-content { padding: 0; }
  .step h4 { font-size: 18px; }
  .step p { font-size: 14px; }
  .philosophy-tags { flex-direction: column; align-items: stretch; }
  .tag-arrow { transform: rotate(90deg); align-self: center; }
  .tag { width: 100%; padding: 18px 22px; }
  .tag-num { font-size: 24px; }
  .philosophy, .about, .services-section, .process { padding: 72px 0; }
  .cta-band { padding-left: 20px !important; padding-right: 20px !important; padding-top: 72px !important; padding-bottom: 72px !important; }
  .cta-left > p { font-size: 16px; margin-bottom: 28px; }
  .cta-card { padding: 28px 24px; }
  .cta-card h3 { font-size: 19px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
  footer { padding-top: 60px; padding-bottom: 24px; }
  .quote-card { padding: 32px 24px; }
  .quote-card p { font-size: 18px; }
  .section-head, .section-head.centered { margin-bottom: 48px; gap: 20px; }
}

@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;
  }
}
