/**
 * ══════════════════════════════════════════════════════════════════════════
 *   SettlementRadar — Mobile Experience Premium Section
 *   Task #1321299 — The Most Addictive Settlement Platform on Earth
 *
 *   Design: Dark premium, gold accents, Fortune 500 grade
 *   Colors: #0d0d0f bg, #F5A623 gold, #ffffff text, #1a1a1f card bg
 * ══════════════════════════════════════════════════════════════════════════
 */

/* ── Section Base ─────────────────────────────────────────── */
#mobile-experience {
  background: linear-gradient(180deg, #0d0d0f 0%, #111118 60%, #0d0d0f 100%);
  padding: 100px 0 110px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(245, 166, 35, 0.12);
}

/* Atmospheric background glow */
#mobile-experience::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(245, 166, 35, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Subtle grid pattern */
#mobile-experience::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 166, 35, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 166, 35, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.5;
}

/* ── Container ───────────────────────────────────────────── */
#mobile-experience .me-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Eyebrow ─────────────────────────────────────────────── */
.me-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #F5A623;
  margin-bottom: 20px;
}

.me-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: #F5A623;
  border-radius: 50%;
  animation: me-pulse-dot 2s ease-in-out infinite;
}

@keyframes me-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ── Main Headline ────────────────────────────────────────── */
.me-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  color: #ffffff;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  max-width: 720px;
}

.me-headline-gold {
  color: #F5A623;
  position: relative;
}

/* Swipe underline */
.me-headline-gold::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #F5A623, rgba(245, 166, 35, 0.3));
  border-radius: 2px;
}

/* ── Subheadline ─────────────────────────────────────────── */
.me-subheadline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 60px;
  max-width: 580px;
  line-height: 1.55;
}

.me-subheadline-accent {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* ── Feature Cards Grid ─────────────────────────────────── */
.me-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 70px;
}

@media (max-width: 900px) {
  .me-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ── Feature Card ───────────────────────────────────────── */
.me-card {
  background: linear-gradient(145deg, #16161e 0%, #1a1a24 100%);
  border: 1px solid rgba(245, 166, 35, 0.14);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  cursor: default;
}

/* Card top accent line */
.me-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #F5A623, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.me-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 166, 35, 0.35);
  box-shadow: 0 20px 60px rgba(245, 166, 35, 0.12), 0 0 0 1px rgba(245, 166, 35, 0.1);
}

.me-card:hover::before {
  opacity: 1;
}

/* Card shimmer effect on hover */
.me-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(245, 166, 35, 0.03) 50%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.me-card:hover::after {
  opacity: 1;
}

/* ── Card Icon ───────────────────────────────────────────── */
.me-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 24px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.me-card:hover .me-card-icon {
  background: rgba(245, 166, 35, 0.18);
  border-color: rgba(245, 166, 35, 0.45);
}

.me-card-icon svg {
  width: 26px;
  height: 26px;
  stroke: #F5A623;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Card Title ──────────────────────────────────────────── */
.me-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

/* ── Card Description ────────────────────────────────────── */
.me-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* ── Card Tag (e.g. Coming Soon) ─────────────────────────── */
.me-card-tag {
  display: inline-block;
  margin-top: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F5A623;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ── Phone Mockup ────────────────────────────────────────── */
.me-mockup-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.me-phone-mockup {
  position: relative;
  width: 280px;
}

.me-phone-frame {
  width: 280px;
  height: 570px;
  background: #111118;
  border: 2px solid rgba(245, 166, 35, 0.25);
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 6px #1a1a24,
    0 0 0 8px rgba(245, 166, 35, 0.12),
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(245, 166, 35, 0.06);
}

/* Notch */
.me-phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #0d0d0f;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

/* Screen content */
.me-phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #0d0d0f 0%, #141420 100%);
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.me-phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.me-phone-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #F5A623;
}

.me-phone-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

/* Swipe cards in phone */
.me-swipe-card {
  background: #1a1a28;
  border: 1px solid rgba(245, 166, 35, 0.15);
  border-radius: 16px;
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.me-swipe-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), transparent);
  border-radius: 0 16px 0 40px;
}

.me-card-settlement-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.me-card-meta {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.45);
}

.me-card-amount {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #F5A623;
}

.me-card-amount-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  margin-left: 4px;
}

.me-card-score-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.me-card-score-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #F5A623);
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* Swipe indicators */
.me-swipe-indicators {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px 0;
}

.me-swipe-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 600;
}

.me-swipe-save {
  color: #22c55e;
}

.me-swipe-dismiss {
  color: #ef4444;
}

.me-swipe-indicator svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.me-swipe-save svg { stroke: #22c55e; }
.me-swipe-dismiss svg { stroke: #ef4444; }

/* Floating glow behind phone */
.me-phone-mockup::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ── Social Proof Bar ────────────────────────────────────── */
.me-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 28px 0;
  border-top: 1px solid rgba(245, 166, 35, 0.08);
  border-bottom: 1px solid rgba(245, 166, 35, 0.08);
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 28px 48px;
}

.me-proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.me-proof-number {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: #F5A623;
  line-height: 1;
}

.me-proof-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.me-proof-divider {
  width: 1px;
  height: 40px;
  background: rgba(245, 166, 35, 0.15);
}

@media (max-width: 600px) {
  .me-proof-divider { display: none; }
}

/* ── Install CTA ─────────────────────────────────────────── */
.me-install-section {
  text-align: center;
}

.me-install-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
}

.me-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #F5A623;
  color: #0d0d0f;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 24px rgba(245, 166, 35, 0.3);
}

.me-install-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 36px rgba(245, 166, 35, 0.45);
  background: #fbb03f;
}

.me-install-btn:active {
  transform: translateY(0) scale(0.99);
}

.me-install-btn svg {
  width: 18px;
  height: 18px;
  stroke: #0d0d0f;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.me-install-sub {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 12px;
}

/* ── Scroll-Reveal Animation ─────────────────────────────── */
.me-section-wrap {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.me-section-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger card animations */
.me-card:nth-child(1) { transition-delay: 0.1s; }
.me-card:nth-child(2) { transition-delay: 0.2s; }
.me-card:nth-child(3) { transition-delay: 0.3s; }

.me-section-wrap.is-visible .me-card {
  opacity: 1;
  transform: translateY(0);
}

/* Phone float animation */
@keyframes me-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.me-phone-mockup {
  animation: me-float 4s ease-in-out infinite;
}

/* ── Confetti Sparkle on Features ────────────────────────── */
@keyframes me-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.me-card.animated {
  background-size: 200% auto;
  animation: me-shimmer 2s linear infinite;
}

/* ── Mobile Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  #mobile-experience {
    padding: 72px 0 80px;
  }

  #mobile-experience .me-container {
    padding: 0 20px;
  }

  .me-headline {
    font-size: 36px;
  }

  .me-subheadline {
    font-size: 16px;
    margin-bottom: 44px;
  }

  .me-features {
    margin-bottom: 50px;
  }

  .me-card {
    padding: 28px 24px;
  }

  .me-phone-mockup {
    width: 240px;
  }

  .me-phone-frame {
    width: 240px;
    height: 490px;
    border-radius: 34px;
  }

  .me-phone-mockup::before {
    display: none;
  }

  .me-social-proof {
    gap: 20px 36px;
    padding: 22px 0;
  }
}

@media (max-width: 480px) {
  #mobile-experience {
    padding: 56px 0 64px;
  }

  .me-headline {
    font-size: 30px;
  }

  .me-phone-mockup {
    width: 200px;
  }

  .me-phone-frame {
    width: 200px;
    height: 410px;
    border-radius: 28px;
  }

  .me-phone-frame::before {
    width: 80px;
    height: 22px;
    border-radius: 0 0 12px 12px;
  }

  .me-proof-number {
    font-size: 22px;
  }

  .me-install-btn {
    padding: 14px 28px;
    font-size: 14px;
  }
}

/* ── Reduced Motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .me-phone-mockup {
    animation: none;
  }

  .me-card {
    transition: none;
  }

  .me-card:hover {
    transform: none;
  }

  .me-install-btn:hover {
    transform: none;
  }

  .me-eyebrow-dot {
    animation: none;
  }

  .me-section-wrap {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Gold scrollbar ───────────────────────────────────────── */
#mobile-experience ::-webkit-scrollbar {
  width: 6px;
}

#mobile-experience ::-webkit-scrollbar-track {
  background: #0d0d0f;
}

#mobile-experience ::-webkit-scrollbar-thumb {
  background: rgba(245, 166, 35, 0.3);
  border-radius: 3px;
}

/* ── Text selection ──────────────────────────────────────── */
#mobile-experience ::selection {
  background: rgba(245, 166, 35, 0.25);
  color: #ffffff;
}