/* Landing page animations & premium layout */
.landing-page {
  overflow-x: hidden;
}

.landing-page .hero-wrap {
  position: relative;
  padding-bottom: 24px;
  overflow: visible;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow.a {
  width: 420px;
  height: 420px;
  background: rgba(255, 107, 82, 0.22);
  top: -80px;
  right: 10%;
  animation: drift 14s ease-in-out infinite;
}

.hero-glow.b {
  width: 360px;
  height: 360px;
  background: rgba(63, 81, 181, 0.16);
  bottom: 0;
  left: 5%;
  animation: drift 18s ease-in-out infinite reverse;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -20px) scale(1.06); }
}

.hero {
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-visual {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  animation: fadeUp 0.7s ease both;
  border: 1px solid rgba(255, 107, 82, 0.2);
}

.hero-badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-stat span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.hero-visual {
  background: transparent;
  padding: 0 16px;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Phone scene: enough padding so float cards never clip */
.phone-scene {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 48px 56px 48px;
  margin: 0 auto;
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 248px;
  margin: 0 auto;
  animation: phoneFloat 7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  will-change: transform;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.phone-shell {
  background: linear-gradient(165deg, #323645 0%, #1a1d26 55%, #12141a 100%);
  border-radius: 38px;
  padding: 10px;
  box-shadow:
    0 32px 64px rgba(26, 29, 38, 0.2),
    0 8px 24px rgba(255, 107, 82, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.phone-screen {
  background: var(--bg);
  border-radius: 32px;
  overflow: hidden;
  padding: 20px 16px;
}

.phone-notch {
  width: 100px;
  height: 24px;
  background: #1a1d26;
  border-radius: 0 0 16px 16px;
  margin: -20px auto 16px;
}

.mock-status {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(26, 29, 38, 0.06);
  border: 1px solid rgba(232, 236, 242, 0.8);
  opacity: 0;
  transform: translateY(12px);
  animation: cardEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mock-status-1 { animation-delay: 0.5s; }
.mock-status-2 { animation-delay: 0.72s; }
.mock-status-3 { animation-delay: 0.94s; }

@keyframes cardEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mock-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mock-icon.coral { background: var(--coral-bg); color: var(--primary); }
.mock-icon.blue { background: var(--secondary-light); color: var(--secondary); }
.mock-icon.green { background: var(--success-bg, #dcfce7); color: var(--success); }

.mock-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mock-status strong {
  display: block;
  font-size: 0.8125rem;
  margin-bottom: 2px;
}

.mock-status span {
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

.float-card {
  position: absolute;
  z-index: 3;
  background: white;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 8px 28px rgba(26, 29, 38, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  white-space: nowrap;
  opacity: 0;
}

.float-card-confirm {
  left: 0;
  top: 72px;
  animation: floatCardEnter 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards,
             floatCardBob 5s cubic-bezier(0.45, 0, 0.55, 1) 1.15s infinite;
}

.float-card-eta {
  right: 0;
  bottom: 88px;
  animation: floatCardEnter 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards,
             floatCardBob 5s cubic-bezier(0.45, 0, 0.55, 1) 1.35s infinite;
}

@keyframes floatCardEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatCardBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.float-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.float-card-icon.green { background: var(--success-bg); color: var(--success); }
.float-card-icon.coral { background: var(--coral-bg); color: var(--primary); }

.float-card-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* SVG icon component */
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
}

.icon-box svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-box.coral {
  background: linear-gradient(145deg, var(--coral-bg), #ffe4de);
  color: var(--primary-dark);
}

.icon-box.blue {
  background: linear-gradient(145deg, var(--secondary-light), #d8ddff);
  color: var(--secondary);
}

.feature-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(26, 29, 38, 0.1);
  border-color: rgba(255, 107, 82, 0.25);
}

.feature-card:hover .icon-box {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(255, 107, 82, 0.2);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Steps timeline */
.steps-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.25;
  z-index: 0;
}

.step-card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 12px;
}

.step-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: white;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.4s ease;
  box-shadow: var(--shadow);
}

.step-card:hover .step-icon-wrap {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: scale(1.1);
}

.step-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

.step-card h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow);
}

.trust-pill svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.partner-card {
  background: linear-gradient(145deg, white 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26, 29, 38, 0.08);
}

.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  top: -100px;
  right: -60px;
  animation: drift 12s ease infinite;
}

.cta-band .btn-store-light {
  position: relative;
  z-index: 1;
}

/* Google Play store buttons */
.btn-store {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #ff8269 45%, var(--primary-dark) 100%);
  background-size: 200% 200%;
  color: white;
  border: none;
  box-shadow:
    0 4px 16px rgba(255, 107, 82, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background-position 0.4s ease;
}

.btn-store::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 62%
  );
  transform: translateX(-120%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.btn-store:hover {
  text-decoration: none;
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow:
    0 8px 28px rgba(255, 107, 82, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.btn-store:hover::before {
  transform: translateX(120%);
}

.btn-store:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(255, 107, 82, 0.3);
}

.btn-store-lg {
  padding: 14px 26px;
  font-size: 1rem;
}

.btn-store-light {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.btn-store-light:hover {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.gplay-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-store-lg .gplay-icon {
  width: 22px;
  height: 22px;
}

.nav .btn-store {
  padding: 10px 18px;
  font-size: 0.875rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.btn svg.icon-fill {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 900px) {
  .steps-timeline {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .steps-timeline::before {
    display: none;
  }

  .phone-scene {
    max-width: 320px;
    padding: 32px 40px;
  }

  .float-card-confirm {
    left: 4px;
    top: 48px;
  }

  .float-card-eta {
    right: 4px;
    bottom: 64px;
  }

  .hero-stats {
    justify-content: center;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .steps-timeline {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
