/* ===== PAGE-SPECIFIC: HERO (CaliberData lens) ===== */
.hero {
  position: relative; min-height: 88svh;
  display: flex; align-items: center; justify-content: center;
  padding: 96px 48px 56px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--hero-mid-bg) 50%, var(--bg-secondary) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1160px; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 44px;
}

/* faint editorial grid */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line-opacity) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-opacity) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 100%);
  animation: gridPulse 6s ease-in-out infinite;
}
@keyframes gridPulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }

.orb { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.orb-1 { width: 500px; height: 500px; top: 5%; left: 10%; background: var(--orb1-bg); animation: drift 10s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; top: 15%; right: 5%; background: var(--orb2-bg); animation: drift 10s ease-in-out infinite reverse; }
.orb-3 { width: 300px; height: 300px; bottom: 10%; left: 35%; background: var(--orb3-bg); animation: drift 12s ease-in-out infinite 2s; }
@keyframes drift {
  0%,100% { transform: translate(0,0); }
  33% { transform: translate(15px,-20px); }
  66% { transform: translate(-10px,10px); }
}

.hero-content { max-width: 560px; text-align: left; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(238,119,51,0.08);
  border: 1px solid rgba(238,119,51,0.25);
  border-radius: 100px; padding: 6px 16px 6px 8px;
  font-size: 12px; font-weight: 500; color: var(--accent);
  margin-bottom: 32px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(238,119,51,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(238,119,51,0); }
}

.hero h1 {
  font-family: 'Satoshi', sans-serif;
  font-size: 68px; font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em; margin-bottom: 24px;
  color: var(--text-primary);
}
.hero h1 .glow {
  background: linear-gradient(135deg, var(--ink), var(--accent));
  background-size: 200% 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: gradShift 5s ease-in-out infinite;
}
@keyframes gradShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero p {
  font-size: 18px; line-height: 1.7; color: var(--text-secondary);
  max-width: 540px; margin: 0 0 44px;
}
.hero-btns { display: flex; gap: 14px; }

/* === lens visual === */
.hero-visual { position: relative; width: 560px; height: 340px; flex-shrink: 0; }
.lens-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.zone-label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px; fill: var(--ink-soft); letter-spacing: 0.22em; text-transform: uppercase;
}
.zone-label.dirty { fill: var(--ink-soft); }
.zone-label.fine  { fill: var(--accent); }

.dirty-flow { fill: var(--text-primary); opacity: 0.5; animation: dirtyFlow 2.4s linear infinite; }
.dirty-flow.df1 { animation-delay: 0.0s; }
.dirty-flow.df2 { animation-delay: 0.3s; }
.dirty-flow.df3 { animation-delay: 0.6s; }
.dirty-flow.df4 { animation-delay: 0.9s; }
.dirty-flow.df5 { animation-delay: 1.2s; }
.dirty-flow.df6 { animation-delay: 1.5s; }
.dirty-flow.df7 { animation-delay: 1.8s; }
.dirty-flow.df8 { animation-delay: 2.1s; }
@keyframes dirtyFlow {
  0%   { opacity: 0;   transform: translate(-30px, 0); }
  20%  { opacity: 0.6; }
  70%  { opacity: 0.5; transform: translate(220px, 0); }
  100% { opacity: 0;   transform: translate(260px, 0); }
}

.out-track { stroke: var(--accent); opacity: 0.35; stroke-width: 1; stroke-dasharray: 2 4; }
.fine-flow {
  fill: var(--accent); r: 11;
  stroke: var(--text-primary); stroke-width: 1.5;
  animation: fineFlow 1.6s linear infinite;
  filter: drop-shadow(0 2px 6px rgba(238,119,51,0.45));
}
.fine-flow.ff1 { animation-delay: 0.0s; }
.fine-flow.ff2 { animation-delay: 0.4s; }
.fine-flow.ff3 { animation-delay: 0.8s; }
.fine-flow.ff4 { animation-delay: 1.2s; }
@keyframes fineFlow {
  0%   { transform: translateX(0); opacity: 0; }
  15%  { opacity: 1; } 85% { opacity: 1; }
  100% { transform: translateX(360px); opacity: 0; }
}

.lens-arc { fill: none; stroke: var(--text-primary); stroke-width: 8; stroke-linecap: round; }
.lens-d-fill {
  fill: var(--accent);
  transform-origin: 480px 480px; transform-box: view-box;
  animation: dBreath 2.4s ease-in-out infinite;
}
@keyframes dBreath {
  0%,100% { opacity: 0.92; transform: scale(1); }
  50%     { opacity: 1;    transform: scale(1.03); }
}
.lens-glow {
  fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round;
  opacity: 0; animation: lensGlow 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 9px rgba(238,119,51,0.5));
}
@keyframes lensGlow { 0%,100% { opacity: 0; } 50% { opacity: 0.5; } }

.funnel-line {
  fill: none; stroke: var(--text-secondary); stroke-width: 1.5; stroke-dasharray: 4 6;
  animation: funnelFlow 1.2s linear infinite;
}
@keyframes funnelFlow { 0% { stroke-dashoffset: 20; } 100% { stroke-dashoffset: 0; } }

.packet-top {
  fill: var(--text-primary);
  animation: packetTopTravel 1.8s ease-in-out infinite;
  filter: drop-shadow(0 1px 3px rgba(31,90,51,0.25));
}
.packet-bot {
  fill: var(--text-primary);
  animation: packetBotTravel 1.8s ease-in-out infinite;
  filter: drop-shadow(0 1px 3px rgba(31,90,51,0.25));
}
.packet-top.pt1 { animation-delay: 0.0s; }
.packet-top.pt2 { animation-delay: 0.9s; }
.packet-bot.pb1 { animation-delay: 0.45s; }
.packet-bot.pb2 { animation-delay: 1.35s; }

/* top packet: from (480, 400) to (660, 480) — delta (180, 80) */
@keyframes packetTopTravel {
  0%   { transform: translate(0, 0);     opacity: 0; fill: var(--text-primary); }
  18%  { opacity: 1; }
  80%  { opacity: 1; fill: var(--text-primary); }
  95%  { transform: translate(180px, 80px); opacity: 0.85; fill: var(--accent); }
  100% { transform: translate(180px, 80px); opacity: 0; fill: var(--accent); }
}
/* bot packet: from (480, 560) to (660, 480) — delta (180, -80) */
@keyframes packetBotTravel {
  0%   { transform: translate(0, 0);      opacity: 0; fill: var(--text-primary); }
  18%  { opacity: 1; }
  80%  { opacity: 1; fill: var(--text-primary); }
  95%  { transform: translate(180px, -80px); opacity: 0.85; fill: var(--accent); }
  100% { transform: translate(180px, -80px); opacity: 0; fill: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  .dirty-flow, .fine-flow, .packet-top, .packet-bot,
  .lens-d-fill, .lens-glow, .funnel-line,
  .orb-1, .orb-2, .orb-3, .hero-grid,
  .hero h1 .glow { animation: none !important; }
}

/* responsive */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 96px 20px 40px;
  }
  .hero-inner { flex-direction: column; text-align: center; gap: 22px; }
  .hero-content { text-align: center; max-width: 100%; }
  .hero-content .hero-btns { justify-content: center; }
  .hero-badge { margin-bottom: 28px; }
  .hero-content p { margin: 0 auto 32px; }
  .hero-visual { width: min(100%, 340px); height: 180px; margin: -2px auto 0; }
  .hero h1 { font-size: 46px; line-height: 1.1; }
}

/* ===== WHY US ===== */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.partner-grid { grid-template-columns: repeat(2, 1fr); }
.why-card { padding: 40px 32px; }
.why-icon {
  width: 44px; height: 44px; margin-bottom: 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(31,90,51,0.08), rgba(238,119,51,0.06));
  border: 1px solid var(--ink-faint);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.why-card h3 { font-family: 'Satoshi', sans-serif; font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ===== STAGES ===== */
.stages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stage-card { padding: 40px 32px; position: relative; }
.stage-num {
  font-family: 'Geist Mono', monospace;
  font-size: 48px; font-weight: 900; letter-spacing: -0.04em;
  background: linear-gradient(180deg, rgba(31,90,51,0.4), rgba(31,90,51,0.1));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 16px; line-height: 1;
}
.stage-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.stage-card h3 {
  font-family: 'Satoshi', sans-serif; font-size: 22px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 8px;
}
.stage-volume {
  font-family: 'Geist Mono', monospace;
  font-size: 13px; color: var(--ink); margin-bottom: 14px;
}
.stage-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.stage-card:not(:last-child)::after {
  content: '';
  position: absolute; top: 50%; right: -14px;
  width: 8px; height: 8px;
  border-top: 2px solid var(--ink-faint);
  border-right: 2px solid var(--ink-faint);
  transform: translateY(-50%) rotate(45deg);
  z-index: 2;
}

/* Responsive (why-us / stages) */
@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .stages-grid { grid-template-columns: 1fr; }
  .stage-card::after { display: none; }
  .hero-btns { flex-direction: column; align-items: center; }
}

.cta-email {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.cta-email a {
  color: var(--accent);
  text-decoration: none;
}
.cta-email a:hover {
  text-decoration: underline;
}
