/* ============================================================
   AXIS — Hero (bold redesign) + live app UI
   ============================================================ */

.hero {
  min-height: 100vh;
  background: var(--black);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding: 96px 32px 72px;
}

/* animated grid + glows */
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-grid {
  position: absolute; inset: -2px;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 80% 70% at 65% 35%, black 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 65% 35%, black 10%, transparent 80%);
  animation: gridDrift 24s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 58px 58px; }
}
.hero-glow-lime, .hero-glow-violet { position: absolute; border-radius: 50%; filter: blur(10px); }
.hero-glow-lime {
  top: -180px; left: 8%; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(115,255,92,0.13) 0%, transparent 65%);
  animation: glowPulse 8s ease-in-out infinite;
}
.hero-glow-violet {
  bottom: -240px; right: 4%; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(127,58,239,0.16) 0%, transparent 65%);
  animation: glowPulse 10s ease-in-out infinite 2s;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.08); }
}

/* HUD corner brackets */
.hud-corner {
  position: absolute; width: 26px; height: 26px; z-index: 2;
  border-color: rgba(115,255,92,0.5); pointer-events: none;
}
.hud-tl { top: 80px; left: 22px; border-top: 1.5px solid; border-left: 1.5px solid; }
.hud-tr { top: 80px; right: 22px; border-top: 1.5px solid; border-right: 1.5px solid; }
.hud-bl { bottom: 22px; left: 22px; border-bottom: 1.5px solid; border-left: 1.5px solid; }
.hud-br { bottom: 22px; right: 22px; border-bottom: 1.5px solid; border-right: 1.5px solid; }

/* HUD readout (top right under nav) */
.hud-readout {
  position: absolute; top: 86px; right: 56px; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1px;
  color: rgba(255,255,255,0.4); text-transform: uppercase;
}
.hud-readout .live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 0 rgba(115,255,92,0.6); animation: ping 1.8s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(115,255,92,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(115,255,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(115,255,92,0); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  max-width: 1140px; width: 100%; margin: 0 auto;
  position: relative; z-index: 2;
}

/* LEFT */
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(115,255,92,0.08); border: 1px solid rgba(115,255,92,0.25);
  border-radius: 100px; padding: 7px 15px; margin-bottom: 28px;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime); animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-badge-text {
  font-size: 12px; font-weight: 600; color: var(--lime); letter-spacing: 0.3px;
  white-space: nowrap;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 800; line-height: 1.02;
  color: var(--white); letter-spacing: -2.5px;
  margin-bottom: 22px; max-width: 620px;
}
.hero h1 .word {
  display: inline-block; margin-right: 0.18em;
}
.hero h1 .word:last-child { margin-right: 0; }
.hero h1 em {
  font-style: normal; position: relative;
  background: linear-gradient(100deg, var(--lime) 30%, #b6ff4d 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px;
  background: var(--lime); border-radius: 2px; opacity: 0.35;
}
@keyframes heroUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.hero-sub {
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 300; color: rgba(255,255,255,0.55);
  max-width: 440px; line-height: 1.65; margin-bottom: 32px;
}

/* WAITLIST FORM */
.waitlist-form {
  display: flex; gap: 8px; margin-bottom: 16px; max-width: 460px;
}
.waitlist-input {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px; padding: 15px 22px;
  font-family: 'Manrope', sans-serif; font-size: 15px; color: var(--white);
  outline: none; transition: border-color 0.2s, background 0.2s;
}
.waitlist-input::placeholder { color: rgba(255,255,255,0.35); }
.waitlist-input:focus { border-color: rgba(115,255,92,0.6); background: rgba(255,255,255,0.09); }
.waitlist-btn {
  background: var(--lime); color: var(--black);
  font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700;
  padding: 15px 26px; border-radius: 100px;
  border: none; cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.waitlist-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(115,255,92,0.32); }
.waitlist-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.waitlist-success {
  display: none; align-items: center; gap: 12px;
  background: rgba(115,255,92,0.08); border: 1px solid rgba(115,255,92,0.2);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 16px; max-width: 460px;
}
.waitlist-success.show { display: flex; }
.ws-icon { font-size: 20px; flex-shrink: 0; }
.ws-text { font-size: 14px; font-weight: 600; color: var(--lime); line-height: 1.4; }
.ws-sub  { font-size: 12px; font-weight: 400; color: rgba(115,255,92,0.6); margin-top: 2px; }
.waitlist-error {
  display: none; font-size: 13px; font-weight: 600; color: var(--red);
  margin-top: -8px; margin-bottom: 12px; padding-left: 4px;
}
.waitlist-error.show { display: block; }

.hero-social-proof {
  display: flex; align-items: center; gap: 12px; margin-top: 22px;
}
.sp-avatars { display: flex; }
.sp-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; margin-left: -9px;
}
.sp-avatar:first-child { margin-left: 0; }
.sp-text { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.5); }
.sp-text b { color: var(--white); font-weight: 700; }

/* ── RIGHT: device stage ── */
.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
}
.device-stage { position: relative; }

.device {
  position: relative; width: 290px; height: 600px;
  background: linear-gradient(160deg, #1a1a1e, #0c0c0e);
  border-radius: 44px; padding: 11px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.6),
              inset 0 0 0 1.5px rgba(255,255,255,0.09),
              0 0 0 1px rgba(0,0,0,0.5);
  animation: floatPhone 6s ease-in-out infinite;
}
@keyframes floatPhone {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
.device-screen {
  position: relative; width: 100%; height: 100%;
  background: var(--ink); border-radius: 34px; overflow: hidden;
}
.device-notch {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 26px; background: #000; border-radius: 14px; z-index: 30;
}

/* app chrome */
.app-statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 44px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; font-size: 12px; font-weight: 700; color: var(--white);
}
.app-statusbar .sb-icons { display: flex; gap: 5px; align-items: center; font-size: 11px; opacity: 0.85; }
.app-topbar {
  position: absolute; top: 44px; left: 0; right: 0; height: 50px; z-index: 15;
  display: flex; align-items: center; justify-content: space-between; padding: 0 18px;
}
.app-bike {
  display: flex; align-items: center; gap: 8px;
}
.app-bike-ico {
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(115,255,92,0.14); color: var(--lime);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.app-bike-name { font-size: 13px; font-weight: 700; color: var(--white); line-height: 1.1; }
.app-bike-km { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.4); }
.app-topbar .app-menu { color: rgba(255,255,255,0.5); font-size: 20px; }

/* screens */
.app-body { position: absolute; top: 94px; left: 0; right: 0; bottom: 64px; }
.scr {
  position: absolute; inset: 0; padding: 6px 18px 0;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.scr.active { opacity: 1; transform: none; pointer-events: auto; }

.scr-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 14px;
}

/* health ring */
.health-ring-wrap { display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; }
.ring { position: relative; width: 150px; height: 150px; }
.ring svg { transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 11; }
.ring-prog {
  fill: none; stroke: var(--lime); stroke-width: 11; stroke-linecap: round;
  stroke-dasharray: 408; stroke-dashoffset: 408;
  filter: drop-shadow(0 0 6px rgba(115,255,92,0.5));
  transition: stroke-dashoffset 1.4s cubic-bezier(.2,.7,.2,1);
}
.scr.active .ring-prog { stroke-dashoffset: var(--ring-target, 33); }
.ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ring-pct { font-size: 38px; font-weight: 800; color: var(--white); letter-spacing: -1.5px; line-height: 1; }
.ring-pct .num { display: inline-block; }
.ring-state {
  font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--lime); margin-top: 4px;
}

/* component rows */
.comp-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-top: 1px solid rgba(255,255,255,0.06);
}
.comp-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.comp-dot.ok { background: var(--lime); }
.comp-dot.warn { background: #ffd24a; }
.comp-dot.bad { background: var(--red); }
.comp-name { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85); flex: 1; }
.comp-bar { width: 70px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.1); overflow: hidden; flex-shrink: 0; }
.comp-bar > i {
  display: block; height: 100%; border-radius: 3px; width: 0;
  transition: width 1.1s cubic-bezier(.2,.7,.2,1) 0.2s;
}
.scr.active .comp-bar > i { width: var(--w, 50%); }
.comp-bar > i.ok { background: var(--lime); }
.comp-bar > i.warn { background: #ffd24a; }
.comp-bar > i.bad { background: var(--red); }
.comp-pct { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.4); width: 30px; text-align: right; flex-shrink: 0; }

/* chat screen */
.chat-head {
  display: flex; align-items: center; gap: 9px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 14px;
}
.chat-avatar {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(135deg, rgba(115,255,92,0.2), rgba(127,58,239,0.2));
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: var(--black);
}
.chat-avatar img { width: 24px; height: 24px; object-fit: contain; display: block; }
.chat-name { font-size: 13px; font-weight: 700; color: var(--white); }
.chat-status { font-family: var(--mono); font-size: 9px; color: var(--lime); display: flex; align-items: center; gap: 5px; }
.chat-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.chat-thread { display: flex; flex-direction: column; gap: 10px; }
.bubble {
  max-width: 82%; font-size: 12.5px; line-height: 1.5; padding: 10px 13px;
  border-radius: 15px; opacity: 0; transform: translateY(8px);
}
.bubble.user {
  align-self: flex-end; background: var(--lime); color: var(--black);
  font-weight: 600; border-bottom-right-radius: 5px;
}
.bubble.bot {
  align-self: flex-start; background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.08); border-bottom-left-radius: 5px;
}
.bubble.show { opacity: 1; transform: none; transition: opacity 0.4s, transform 0.4s; }
.bubble.bot b { color: var(--lime); font-weight: 700; }
.typing-wrap { align-self: flex-start; opacity: 0; transform: translateY(8px); }
.typing-wrap.show { opacity: 1; transform: none; transition: opacity 0.3s, transform 0.3s; }
.typing {
  display: inline-flex; gap: 4px; align-items: center; padding: 13px 15px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 15px; border-bottom-left-radius: 5px;
}
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); animation: typingDot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot { 0%,60%,100% { opacity: 0.3; transform: translateY(0);} 30% { opacity: 1; transform: translateY(-3px);} }

/* parts screen */
.part-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; margin-bottom: 8px;
  background: rgba(255,255,255,0.04); border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.06);
  opacity: 0; transform: translateX(10px);
}
.scr.active .part-item { animation: partIn 0.5s cubic-bezier(.2,.7,.2,1) forwards; }
.scr.active .part-item:nth-child(2) { animation-delay: 0.08s; }
.scr.active .part-item:nth-child(3) { animation-delay: 0.16s; }
.scr.active .part-item:nth-child(4) { animation-delay: 0.24s; }
@keyframes partIn { to { opacity: 1; transform: none; } }
.part-ico {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  background: rgba(115,255,92,0.12); color: var(--lime);
}
.part-info { flex: 1; min-width: 0; }
.part-name { font-size: 12.5px; font-weight: 700; color: var(--white); }
.part-km { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.4); }
.part-pill {
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
  padding: 4px 9px; border-radius: 100px; text-transform: uppercase; flex-shrink: 0;
}
.part-pill.ok { background: rgba(115,255,92,0.15); color: var(--lime); }
.part-pill.warn { background: rgba(255,210,74,0.15); color: #ffd24a; }
.part-pill.bad { background: rgba(244,33,103,0.15); color: var(--red); }

/* app tabbar */
.app-tabbar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 64px; z-index: 15;
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 14px 10px; background: linear-gradient(transparent, var(--ink) 40%);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 18px; color: rgba(255,255,255,0.3); transition: color 0.3s; }
.tab .tl { font-size: 8px; font-weight: 600; }
.tab.on { color: var(--lime); }

/* floating chips */
.float-chip {
  position: absolute; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  background: rgba(18,18,22,0.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 11px 15px; white-space: nowrap;
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}
.fc-ico {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.fc-ico.lime { background: rgba(115,255,92,0.15); color: var(--lime); }
.fc-ico.violet { background: rgba(127,58,239,0.15); color: var(--violet); }
.fc-ico .agente-ico { width: 22px; height: 22px; object-fit: contain; display: block; }
.fc-val { font-size: 15px; font-weight: 800; color: var(--white); line-height: 1; }
.fc-label { font-size: 10px; font-weight: 500; color: rgba(255,255,255,0.45); margin-top: 3px; }
.chip-health { top: 64px; left: -42px; animation: floatBadge 4.5s ease-in-out infinite; }
.chip-ai { bottom: 120px; right: -46px; animation: floatBadge 4.5s ease-in-out infinite 1.6s; }
.chip-strava { bottom: 28px; left: -28px; animation: floatBadge 5s ease-in-out infinite 0.8s; }
@keyframes floatBadge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* scroll cue */
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 3;
}
.hero-scroll span {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,0.3); letter-spacing: 2px; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, rgba(115,255,92,0.6), transparent);
  animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

/* ── RESPONSIVE HERO ── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; justify-items: center; }
  .hero-content { max-width: 560px; }
  .hero h1, .hero-sub { max-width: 100%; }
  .hero-visual { order: 2; }
  .waitlist-form, .waitlist-success { margin-left: auto; margin-right: auto; }
  .hero-social-proof { justify-content: center; }
  .hud-readout { display: none; }
  .chip-health { left: -10px; }
  .chip-ai { right: -14px; }
  .chip-strava { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 86px 20px 60px; }
  .hero-scroll { display: none; }
  .device { width: 250px; height: 518px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-btn { width: 100%; padding: 15px; }
  .float-chip { padding: 9px 12px; }
  .fc-ico { width: 30px; height: 30px; font-size: 15px; }
  .chip-health { top: 30px; left: -6px; }
  .chip-ai { bottom: 80px; right: -8px; }
  .hud-corner { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero-badge        { animation: heroUp 0.7s cubic-bezier(.2,.7,.2,1) 0.10s backwards; }
  .js .hero h1 .word     { animation: heroUp 0.7s cubic-bezier(.2,.7,.2,1) backwards; }
  .js .hero-sub          { animation: heroUp 0.7s cubic-bezier(.2,.7,.2,1) 0.50s backwards; }
  .js .waitlist-form     { animation: heroUp 0.7s cubic-bezier(.2,.7,.2,1) 0.60s backwards; }
  .js .hero-social-proof { animation: heroUp 0.7s cubic-bezier(.2,.7,.2,1) 0.75s backwards; }
  .js .hero-visual       { animation: heroUp 0.9s cubic-bezier(.2,.7,.2,1) 0.40s backwards; }
}

@media print {
  .hero-badge, .hero h1 .word, .hero-sub, .waitlist-form, .hero-social-proof, .hero-visual {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
  .device, .float-chip { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .device, .float-chip, .hero-glow-lime, .hero-glow-violet, .hero-grid { animation: none !important; }
}
