/* Hero illustration: a simplified AppFlight window recording a login flow (pure CSS, no screenshot). */
.hero-visual { position: relative; perspective: 1600px; }
.mock {
  text-align: left; background: var(--panel); border: 1px solid #263040; border-radius: 18px; overflow: hidden;
  transform: rotateY(-14deg) rotateX(6deg); transform-origin: left center;
  box-shadow: 40px 50px 120px -40px rgba(255, 107, 26, 0.45), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-visual:hover .mock { transform: rotateY(-6deg) rotateX(3deg); }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--panel-2); border-bottom: 1px solid var(--line); font: 600 13px var(--display); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar b { margin-left: 10px; }
.mock-live { margin-left: auto; color: var(--red); font: 600 11px var(--mono); letter-spacing: 0.08em; animation: pulse 1.4s infinite; }

.mock-body { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 20px; align-items: center; }

/* Phone */
.mock-phone { background: #f5f6fa; color: #11131a; border: 6px solid #1c2129; border-radius: 30px; padding: 34px 14px 22px; position: relative; display: flex; flex-direction: column; gap: 10px; font-family: var(--body); }
.ph-notch { position: absolute; top: 8px; left: 50%; width: 64px; height: 17px; margin-left: -32px; background: #1c2129; border-radius: 10px; }
.ph-logo { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--orange), #ff9a4d); margin: 6px auto 0; }
.ph-title { text-align: center; font: 800 17px var(--display); margin-bottom: 4px; }
.ph-field { background: #e8ebf1; border-radius: 9px; padding: 9px 11px; font-size: 12px; color: #5b6275; border: 2px solid transparent; }
.ph-focus { border-color: var(--orange); }
.ph-btn { position: relative; background: #11131a; color: #fff; text-align: center; border-radius: 9px; padding: 10px; font-weight: 600; font-size: 13px; margin-top: 4px; }
.tap { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid var(--orange); animation: tap 2.4s infinite; }

/* Recorded steps */
.mock-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font: 12.5px var(--mono); }
.mock-steps li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; opacity: 0; animation: step-in 0.4s ease forwards; white-space: nowrap; }
.mock-steps em { color: var(--orange); font-size: 11px; }
.mock-steps li.ok { border-color: rgba(61, 220, 132, 0.45); background: rgba(61, 220, 132, 0.07); }
.mock-steps li.ok em { color: var(--green); }
.mock-steps li:nth-child(1) { animation-delay: 0.6s; }
.mock-steps li:nth-child(2) { animation-delay: 0.9s; }
.mock-steps li:nth-child(3) { animation-delay: 1.2s; }
.mock-steps li:nth-child(4) { animation-delay: 1.5s; }
.mock-steps li:nth-child(5) { animation-delay: 1.8s; }
.mock-steps li:nth-child(6) { animation-delay: 2.1s; }

/* Floating HUD chips */
.chip { position: absolute; font: 600 12px var(--mono); padding: 9px 13px; border-radius: 10px; backdrop-filter: blur(10px); white-space: nowrap; animation: float 5s ease-in-out infinite; }
.chip-a { right: -10px; bottom: -22px; color: var(--green); background: rgba(13, 30, 22, 0.85); border: 1px solid rgba(61, 220, 132, 0.4); }
.chip-b { left: -24px; top: 18%; color: var(--cyan); background: rgba(10, 24, 32, 0.85); border: 1px solid rgba(90, 209, 255, 0.35); animation-delay: -2.5s; }

@keyframes step-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes tap { 0% { transform: scale(0.4); opacity: 1; } 70%, 100% { transform: scale(1.9); opacity: 0; } }
@keyframes float { 50% { transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
  .mock-steps li { opacity: 1; }
}
@media (max-width: 900px) {
  .mock { transform: none; }
  .hero-visual:hover .mock { transform: none; }
  .chip-b { left: 8px; top: -18px; }
  .chip-a { right: 8px; }
}
@media (max-width: 560px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-phone { width: 200px; margin: 0 auto; }
}
