/* HEROES1 — AINNA /ainna/ hero fit (nav offset, no clip, mobile compact) */
:root {
  --ainna-nav-height: 64px;   /* desktop .desktop-nav ~56-64px */
  --ainna-mobile-nav-height: 56px; /* mobile burger + top controls */
  /* Floating animation timing */
  --float-duration-slow: 8s;
  --float-duration-medium: 6s;
  --float-duration-fast: 4s;
  --float-duration-superslow: 12s;
  --float-duration-delayed: 7s;
}

/* Desktop nav is already fixed in base — reinforce for safety */
.desktop-nav {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 9999;
}

/* AINNA-specific mobile topbar (burger + theme) — ensure predictable height, fixed */
.ainna-mobile-topbar {
  display: none;
}
@media (max-width: 768px) {
  .ainna-mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    min-height: var(--ainna-mobile-nav-height);
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    pointer-events: none; /* let inner controls receive events */
  }
  .ainna-mobile-topbar > * { pointer-events: auto; }
}

.hero{
  /* Kill full-viewport centering that creates empty air above content */
  min-height: 0 !important;
  height: auto !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  /* Use CSS var for correct offset under fixed nav */
  padding: calc(var(--ainna-nav-height) + 12px) 24px 40px !important;
  overflow-x: clip;
  overflow-y: visible;
  background:
    radial-gradient(circle at 15% 20%, rgba(78,205,196,.16), transparent 34rem),
    radial-gradient(circle at 88% 20%, rgba(255,107,157,.13), transparent 30rem),
    linear-gradient(180deg,#fff 0%,#f7f8fb 100%) !important;
}
.hero-bg .blob{opacity:.22;filter:blur(120px)}
.hero-revamp-grid{
  width:min(1180px,100%);
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  text-align:left !important;
}
.hero-copy,
.hero-visuals { min-width: 0; max-width: 100%; }
.hero-copy{min-width:0}
.hero-kicker{
  margin:0 0 16px !important;
  background:rgba(255,255,255,.72)!important;
  border:1px solid rgba(15,23,42,.10)!important;
  color:#334155;
  box-shadow:0 14px 34px rgba(15,23,42,.06);
}
.hero-kicker span{font-weight:800;color:#0f172a}
.hero h1{
  max-width:680px;
  margin:0 0 14px !important;
  font-size:clamp(30px,3.6vw,48px)!important;
  line-height:1.08!important;
  letter-spacing:-.04em;
  font-weight:850!important;
  color:#0f172a;
}
.hero .gradient-text{
  background:linear-gradient(105deg,#0f172a 0%,#1d4ed8 38%,#0f766e 72%,#111827 100%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
.hero-desc{
  max-width:660px!important;
  margin:0 0 20px!important;
  font-size:clamp(15px,1.1vw,17px)!important;
  line-height:1.5;
  color:#475569!important;
}
/* Standardized hero action buttons - uniform shape & size, alternating black/white */
.hero-actions-row,
.hero-buttons,
.hero-actions-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.btn-hero {
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 0;
  min-height: 42px;
  padding: 0 20px !important;
  font-size: 13.5px !important;
  font-weight: 650 !important;
  line-height: 1;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all .2s ease;
  box-shadow: 0 8px 20px rgba(15,23,42,.08);
}

/* Alternating colors selang hitam putih */
.btn-hero-dark {
  background: #0f172a;
  color: #fff;
  border: 1px solid #0f172a;
}
.btn-hero-dark:hover {
  background: #1e293b;
  border-color: #1e293b;
  transform: translateY(-1px);
}

.btn-hero-light {
  background: #fff;
  color: #0f172a;
  border: 1px solid #0f172a;
}
.btn-hero-light:hover {
  background: #f8fafc;
  border-color: #334155;
  transform: translateY(-1px);
}

/* Dark theme for alternating */
[data-theme="dark"] .btn-hero-dark {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #f8fafc !important;
}
[data-theme="dark"] .btn-hero-dark:hover {
  background: #e2e8f0 !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Dark mode: lift the "light" (now dark) button off the near-black hero bg
   so it keeps contrast — elevated surface + visible edge + bright text */
[data-theme="dark"] .btn-hero-light {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: #64748b !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
[data-theme="dark"] .btn-hero-light:hover {
  background: #334155 !important;
  border-color: #94a3b8 !important;
  color: #f8fafc !important;
  transform: translateY(-1px);
}

/* Quiet secondary links under primary CTAs (Step 2 — subtle, not button-weight) */
.hero-ql {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 14px;
  max-width: 100%;
  align-items: center;
}
.hero-ql-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 2px;
  font-size: 12px;
  font-weight: 550;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease, opacity .15s ease;
  box-shadow: none;
  opacity: .88;
}
.hero-ql-item + .hero-ql-item {
  /* light separators between quiet links */
  border-left: 1px solid rgba(15,23,42,.08);
  padding-left: 12px;
}
.hero-ql-item:hover {
  background: transparent;
  border-color: transparent;
  transform: none;
  color: #0f172a;
  opacity: 1;
}
.hero-ql-item:hover .hero-ql-arrow {
  opacity: 1;
}
.hero-ql-label {
  letter-spacing: .02em;
}
.hero-ql-arrow {
  font-size: 10px;
  opacity: .6;
}
.hero-quick-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  max-width:640px;
}
.hero-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  min-height:38px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.72);
  color:#334155;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  white-space:nowrap;
  text-decoration:none;
  cursor:pointer;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.hero-chip:hover{
  transform:translateY(-1px);
  background:#fff;
  border-color:rgba(15,23,42,.16);
  box-shadow:0 14px 28px rgba(15,23,42,.10);
}
.hero-chip-peach{background:rgba(255,203,164,.35);border-color:rgba(234,88,12,.14)}
.hero-chip-mint{background:rgba(149,225,211,.28);border-color:rgba(15,118,110,.14);color:#0f766e}
.hero-chip-cyan{background:rgba(6,182,212,.08);border-color:rgba(6,182,212,.4);color:#0e7490}
.hero-chip-preview{
  background:linear-gradient(135deg,rgba(15,23,42,.94),rgba(30,64,175,.88));
  border-color:rgba(59,130,246,.28);
  color:#fff;
  font-family:inherit;
}
.hero-chip-preview:hover{background:linear-gradient(135deg,#020617,#1d4ed8);color:#fff}
.hero-proof-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  max-width:640px;
  margin:0 0 18px;
}
.hero-proof-strip span{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:12px 14px;
  border-radius:18px;
  background:rgba(255,255,255,.66);
  border:1px solid rgba(15,23,42,.09);
  box-shadow:0 12px 26px rgba(15,23,42,.055);
  color:#64748b;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.hero-proof-strip strong{
  color:#0f172a;
  font-size:18px;
  letter-spacing:-.03em;
}
.hero-command-card{
  position:relative;
  padding:20px;
  border-radius:32px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.78);
  box-shadow:0 34px 90px rgba(15,23,42,.14), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter:blur(22px) saturate(150%);
  overflow:hidden;
}
.hero-command-card:before{
  content:"";
  position:absolute;
  inset:-24% -18% auto auto;
  width:230px;height:230px;
  border-radius:50%;
  background:rgba(78,205,196,.22);
  filter:blur(38px);
  pointer-events:none;
}
.hero-command-card:after{
  content:"";
  position:absolute;
  left:-80px;bottom:-100px;
  width:220px;height:220px;
  border-radius:50%;
  background:rgba(59,130,246,.12);
  filter:blur(44px);
  pointer-events:none;
}
.hero-card-top{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  font-weight:800;
  color:#475569;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:14px;
}
.hero-card-top-link{
  text-decoration:none;
  color:inherit;
  border-radius:16px;
  padding:4px 2px;
  transition:background .2s ease,color .2s ease;
}
.hero-card-top-link:hover{background:rgba(15,23,42,.04)}
.hero-card-top-link strong{margin-left:auto;color:#16a34a}
.hero-live-dot{
  width:9px;height:9px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 7px rgba(34,197,94,.12);
  flex-shrink:0;
  animation:heroLivePulse 2s ease-in-out infinite;
}
@keyframes heroLivePulse{
  0%,100%{box-shadow:0 0 0 7px rgba(34,197,94,.12)}
  50%{box-shadow:0 0 0 11px rgba(34,197,94,.22)}
}
.hero-cockpit{
  position:relative;
  min-height:160px;
  margin:0 0 12px;
  border-radius:26px;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(34,211,238,.26), transparent 36%),
    linear-gradient(135deg,rgba(15,23,42,.96),rgba(30,41,59,.90));
  border:1px solid rgba(148,163,184,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 18px 34px rgba(15,23,42,.16);
}
.hero-cockpit:before{
  content:"";
  position:absolute;
  inset:18px;
  border-radius:50%;
  border:1px dashed rgba(125,211,252,.36);
  box-shadow:0 0 34px rgba(34,211,238,.12);
  pointer-events:none;
}
.hero-cockpit:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:26px 26px;
  mask-image:radial-gradient(circle at center,#000 0%,transparent 72%);
  opacity:.55;
  pointer-events:none;
}
.hero-cockpit-core{
  position:absolute;
  inset:0;
  margin:auto;
  width:104px;height:104px;
  border-radius:50%;
  display:grid;
  place-items:center;
  align-content:center;
  color:#fff;
  background:radial-gradient(circle,#1e3a8a 0%,#0f172a 62%,#020617 100%);
  border:1px solid rgba(125,211,252,.42);
  box-shadow:0 0 44px rgba(14,165,233,.34);
  z-index:2;
  text-decoration:none;
  cursor:pointer;
  transition:transform .25s ease,box-shadow .25s ease;
}
.hero-cockpit-core:hover{
  transform:scale(1.04);
  box-shadow:0 0 52px rgba(14,165,233,.48);
}
.hero-cockpit-core strong{font-size:18px;letter-spacing:.04em}
.hero-cockpit-core em{font-style:normal;font-size:10px;color:#a5f3fc;text-transform:uppercase;letter-spacing:.14em}
.hero-cockpit-ring{
  position:absolute;
  inset:-16px;
  border-radius:50%;
  border:1px solid rgba(45,212,191,.42);
  animation:heroOrbit 8s linear infinite;
  pointer-events:none;
}
.hero-cockpit-ring:after{
  content:"";
  position:absolute;
  top:8px;left:14px;
  width:8px;height:8px;
  border-radius:50%;
  background:#5eead4;
  box-shadow:0 0 16px #5eead4;
}
@keyframes heroOrbit{to{transform:rotate(360deg)}}
.hero-cockpit-node{
  position:absolute;
  z-index:2;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  color:#e0f2fe;
  font-size:11px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
  text-decoration:none;
  backdrop-filter:blur(10px);
  cursor:pointer;
  transition:transform .2s ease,background .2s ease,border-color .2s ease;
}
.hero-cockpit-node:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.18);
  border-color:rgba(125,211,252,.45);
}
.hero-cockpit-node.node-one{top:28px;left:24px}
.hero-cockpit-node.node-two{top:34px;right:28px}
.hero-cockpit-node.node-three{right:34px;bottom:26px}
.hero-flow-mini{
  position:relative;
  display:grid;
  gap:8px;
}
.hero-flow-link{
  display:grid;
  grid-template-columns:38px 1fr;
  gap:6px 12px;
  padding:12px;
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 12px 26px rgba(15,23,42,.055);
  text-decoration:none;
  color:inherit;
  cursor:pointer;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.hero-flow-link:hover{
  transform:translateY(-2px);
  border-color:rgba(59,130,246,.28);
  box-shadow:0 16px 32px rgba(15,23,42,.10);
}
.hero-flow-link span{
  grid-row:1/3;
  width:38px;height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#0f172a;
  color:#fff;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:11px;
  font-weight:800;
}
.hero-flow-link strong{font-size:14px;color:#0f172a}
.hero-flow-link em{font-style:normal;font-size:12px;color:#64748b}
.hero-flow-outcome{
  padding:14px;
  border-radius:20px;
  background:linear-gradient(135deg,rgba(14,165,233,.10),rgba(20,184,166,.10));
  border:1px solid rgba(14,165,233,.22);
}
.hero-flow-outcome span{
  display:block;
  margin-bottom:4px;
  color:#0369a1;
  font-size:10px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.hero-flow-outcome strong{
  display:block;
  color:#0f172a;
  font-size:13px;
  line-height:1.35;
}

.scroll-indicator{display:none!important}

/* Hero visuals — single NeuralOps Command Card (preview removed for cleaner hero) */
.hero-visuals{
  display: block;
  min-width: 0;
  width: 100%;
}
.hero-command-card{
  width: 100%;
}

@keyframes heroCommandLift {
  0%, 100% { transform: translateY(-18px); }
  50% { transform: translateY(-28px); }
}

/* Desktop (>1100px two-col): ql as 2x2 grid on left to add vertical weight and balance the right command visual */
@media (min-width: 1101px) {
  .hero-copy {
    display: flex;
    flex-direction: column;
  }
  .hero-visuals {
    align-self: start;
  }
  .hero-command-card {
    transform: translateY(-18px);
  }
  .hero-ql {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: auto; /* push ql to bottom of left for visual bottom balance */
  }
  .hero-ql-item {
    font-size: 12px;
    padding: 10px 14px;
    min-height: 38px;
    justify-content: space-between;
  }
}

/* Hide the duplicate preview chip when inline desktop preview is visible */
@media (min-width: 1101px){
  .hero-quick-links .hero-chip-preview { display: none; }
}

[data-theme="dark"] .hero{
  background:radial-gradient(circle at 15% 20%,rgba(78,205,196,.15),transparent 34rem),radial-gradient(circle at 88% 20%,rgba(255,107,157,.14),transparent 30rem),linear-gradient(180deg,#020617 0%,#0f172a 100%)!important;
}
[data-theme="dark"] .hero h1{color:#fff}
[data-theme="dark"] .hero .gradient-text{
  background:linear-gradient(105deg,#fff 0%,#93c5fd 42%,#5eead4 75%,#fff 100%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
[data-theme="dark"] .hero-desc{color:#cbd5e1!important}
[data-theme="dark"] .hero-kicker,
[data-theme="dark"] .hero-command-card,
[data-theme="dark"] .hero-chip{
  background:rgba(15,23,42,.72)!important;
  border-color:rgba(255,255,255,.12)!important;
  color:#e2e8f0;
}
[data-theme="dark"] .hero-kicker span,
[data-theme="dark"] .hero-flow-link strong{color:#fff!important}
[data-theme="dark"] .hero-flow-link{background:rgba(2,6,23,.68);border-color:rgba(255,255,255,.10)}
[data-theme="dark"] .hero-flow-link em,
[data-theme="dark"] .hero-card-top{color:#cbd5e1!important}
[data-theme="dark"] .hero-flow-outcome strong{color:#f8fafc!important}
[data-theme="dark"] .hero-flow-outcome span{color:#7dd3fc!important}

[data-theme="dark"] .hero-ql-item {
  color: #94a3b8;
  background: transparent;
  border-color: transparent;
}
[data-theme="dark"] .hero-ql-item + .hero-ql-item {
  border-left-color: rgba(255,255,255,.10);
}
[data-theme="dark"] .hero-ql-item:hover {
  background: transparent;
  border-color: transparent;
  color: #f8fafc;
}
[data-theme="dark"] .hero-card-top-link:hover{background:rgba(255,255,255,.06)}
[data-theme="dark"] .hero-chip-peach{background:rgba(251,146,60,.18)!important;color:#fdba74!important}
[data-theme="dark"] .hero-chip-mint{background:rgba(52,211,153,.16)!important;color:#6ee7b7!important}
[data-theme="dark"] .hero-chip-cyan{background:rgba(6,182,212,.14)!important;border-color:rgba(34,211,238,.35)!important;color:#67e8f9!important}
[data-theme="dark"] .hero-chip-preview{background:linear-gradient(135deg,#020617,#1d4ed8)!important;color:#fff!important}
@media(max-width:1100px){
  .hero{padding: calc(var(--ainna-mobile-nav-height) + 8px) 18px 32px !important; overflow: visible;}
  .hero-revamp-grid{grid-template-columns:1fr;gap:24px;text-align:center!important}
  .hero-copy{text-align:center}
  .hero-ql { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 6px;
  }
  .hero h1,.hero-desc{margin-left:auto!important;margin-right:auto!important}
  .hero-actions-row,.hero-actions-secondary,.hero-quick-links{justify-content:center!important}
  .hero-quick-links{margin-left:auto;margin-right:auto}
  .hero-visuals{
    display:block;
    max-width:100%;
    margin:0 auto;
  }
  .hero-command-card{
    max-width:100%;
    margin:0;
    display:block;
  }
  .hero-cockpit { min-height: 158px; }
}
@media(max-width:560px){
  .hero{padding: calc(var(--ainna-mobile-nav-height) + 4px) 14px 24px !important; min-height:0!important; overflow:visible}
  .hero-kicker{margin-bottom:10px!important;padding:7px 12px!important}
  .hero h1{font-size:clamp(28px, 7.2vw, 34px)!important;line-height:1.05!important;letter-spacing:-.045em}
  .hero-desc{font-size:15px!important;margin-bottom:14px!important}
  .hero-proof-strip{grid-template-columns:1fr;gap:8px}
  .hero-proof-strip span{flex-direction:row;align-items:baseline;justify-content:space-between}
  .btn-hero { width: 100%; min-width: 0; }
  .hero-quick-links{
    gap:8px;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    max-width:100%;
  }
  .hero-chip{
    min-height:38px;
    font-size:11px;
    padding:0 12px;
    white-space:normal;
    text-align:center;
  }
  .hero-command-card{padding:14px;border-radius:26px}
  .hero-visuals{max-width:100%}
  .hero-cockpit{min-height:132px;margin-bottom:10px;border-radius:22px}
  .hero-cockpit-core{width:82px;height:82px}
  .hero-cockpit-core strong{font-size:15px}
  .hero-cockpit-node{font-size:9px;padding:6px 8px}
  .hero-cockpit-node.node-one{top:16px;left:16px}
  .hero-cockpit-node.node-two{top:20px;right:16px}
  .hero-cockpit-node.node-three{right:18px;bottom:16px}
  .hero-flow-mini{gap:8px}
  .hero-flow-link{grid-template-columns:34px 1fr;padding:10px;border-radius:16px}
  .hero-flow-link span{width:34px;height:34px}

  .hero-ql { gap: 6px 10px; margin-top: 10px; display:flex; flex-wrap:wrap; justify-content:center; }
  .hero-ql-item { font-size: 11px; padding: 3px 2px; min-height: 0; }
  .hero-ql-item + .hero-ql-item { padding-left: 10px; }
}
@media(prefers-reduced-motion:reduce){
  .hero-cockpit-ring,.hero-live-dot,.hero-command-card{animation:none!important}
  .hero-command-card{transform:none!important}
  .hero-bg .blob{animation:none!important}
}

/* HEROES1 short viewport compact (desktop too) */
@media (max-height: 780px) and (min-width: 901px) {
  .hero {
    padding: calc(var(--ainna-nav-height) + 4px) 24px 28px !important;
  }
  .hero-revamp-grid { gap: 18px; }
  .hero h1 { font-size: clamp(26px, 3.2vw, 40px) !important; margin-bottom: 10px !important; }
  .hero-desc { margin-bottom: 12px !important; }
  .hero-proof-strip { margin-bottom: 12px; }
}

/* Crayon tier — card radius 20px (token); crayon palette unchanged */
.feature-card,
.service-card,
.team-card,
#ecosystem-scroll a.feature-card{
  border-radius:20px;
}

/* HEROES1 defensive: no horizontal bleed, flex/grid children safe */
.hero-revamp-grid,
.hero-visuals,
.hero-command-card,
.hero-cockpit,
.hero-flow-mini {
  min-width: 0;
}
.hero-cockpit-core,
.hero-cockpit-node {
  max-width: 100%;
  box-sizing: border-box;
}

/* ===== SUBTLE FLOATING ANIMATIONS FOR HERO TEXT ===== */
/* These animations give a gentle, organic floating effect to hero text elements */

/* Slow floating - for badge/title */
.float-slow {
  animation: floatSlow var(--float-duration-slow) ease-in-out infinite;
  transform-origin: center;
}

/* Medium floating - for main title */
.float-medium {
  animation: floatMedium var(--float-duration-medium) ease-in-out infinite;
  transform-origin: center;
}

/* Fast floating - for description */
.float-fast {
  animation: floatFast var(--float-duration-fast) ease-in-out infinite;
  transform-origin: center;
}

/* Superslow floating - for tagline */
.float-superslow {
  animation: floatSuperslow var(--float-duration-superslow) ease-in-out infinite;
  transform-origin: center;
}

/* Delayed floating - for secondary elements */
.float-delayed {
  animation: floatDelayed var(--float-duration-delayed) ease-in-out infinite;
  transform-origin: center;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(0.5deg); }
  50% { transform: translateY(-10px) rotate(0deg); }
  75% { transform: translateY(-5px) rotate(-0.5deg); }
}

@keyframes floatMedium {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(0.3deg); }
  66% { transform: translateY(-4px) rotate(-0.3deg); }
}

@keyframes floatFast {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(0.5deg); }
}

@keyframes floatSuperslow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(0.3deg); }
  50% { transform: translateY(-8px) rotate(0deg); }
  75% { transform: translateY(-3px) rotate(-0.3deg); }
}

@keyframes floatDelayed {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(-10px) rotate(0.5deg); }
  65% { transform: translateY(-5px) rotate(-0.5deg); }
}

/* Random subtle floating for natural movement */
@keyframes randomFloat1 {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
  20% { transform: translateY(-2px) translateX(1px) rotate(0.5deg); }
  40% { transform: translateY(-4px) translateX(-1px) rotate(-0.3deg); }
  60% { transform: translateY(-3px) translateX(2px) rotate(0.2deg); }
  80% { transform: translateY(-2px) translateX(-0.5px) rotate(-0.1deg); }
}

@keyframes randomFloat2 {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
  30% { transform: translateY(-3px) translateX(-1px) rotate(0.5deg); }
  60% { transform: translateY(-5px) translateX(1px) rotate(-0.3deg); }
  90% { transform: translateY(-3px) translateX(-0.5px) rotate(0.1deg); }
}

/* Apply floating to hero elements */
.hero-kicker.float-element {
  animation: floatSlow 10s ease-in-out infinite;
}

.hero h1.float-element {
  animation: floatMedium 8s ease-in-out infinite;
}

.hero-desc.float-element {
  animation: floatSuperslow 12s ease-in-out infinite;
}

/* Gentle opacity floating for depth */
@keyframes opacityFloat {
  0%, 100% { opacity: 1; }
  40% { opacity: 0.98; }
  70% { opacity: 0.96; }
}

.opacity-float {
  animation: opacityFloat 6s ease-in-out infinite;
}

/* Dark theme floating adjustments */
[data-theme="dark"] .float-slow,
[data-theme="dark"] .float-medium,
[data-theme="dark"] .float-fast,
[data-theme="dark"] .float-superslow,
[data-theme="dark"] .float-delayed {
  animation-duration: var(--float-duration-superslow);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .float-slow,
  .float-medium,
  .float-fast,
  .float-superslow,
  .float-delayed,
  .randomFloat1,
  .randomFloat2,
  .opacity-float {
    animation: none !important;
  }
}

/* Mobile: About section — no scroll animation, show immediately */
@media (max-width: 768px) {
  #about .milestone,
  #about .milestones,
  #about .feature-card,
  #about .about-outcome-grid,
  #about .about-cards,
  #about .about-text,
  #about .feature-link {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Soften cockpit glow */
.hero-cockpit-core {
  box-shadow: 0 0 28px rgba(14, 165, 233, 0.18) !important;
}
.hero-cockpit-core:hover {
  transform: scale(1.02);
  box-shadow: 0 0 34px rgba(14, 165, 233, 0.26) !important;
}
.hero-cockpit:before {
  box-shadow: none;
  border-color: rgba(125, 211, 252, 0.22);
}

/* Blobs quieter */
.hero-bg .blob {
  opacity: 0.12 !important;
  filter: blur(140px) !important;
  animation: none !important;
}

/* Micro-hover only on flow links */
.hero-flow-link {
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.hero-flow-link:hover {
  transform: translateY(-2px);
}
