/* =============================================================================
   HERO.CSS — Hero Section with App Mockup & Floating Cards
   ============================================================================= */

.hero {
  padding: calc(var(--nav-height) + 80px) 0 100px;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}

/* ── Background Glows (purple/violet) ── */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -300px;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 100px;
  left: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Layout ── */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 560px;
}

/* ── Badge ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--purple-glow);
  border: 1px solid rgba(124, 58, 237, 0.15);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--purple);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ── Headline & Copy ── */
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* ── Phone Mockup ── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ── Realistic iPhone Frame ── */
.hero-phone-frame {
  position: relative;
  padding: 14px;
  border-radius: 58px;
  background: linear-gradient(180deg, #121212 0%, #050505 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.18),
    inset 0 0 0 4px rgba(255,255,255,0.03),
    0 36px 90px rgba(0,0,0,0.38),
    0 0 0 1px rgba(255,255,255,0.08);
}

.phone-silent,
.phone-vol-up,
.phone-vol-down,
.phone-power {
  position: absolute;
  background: linear-gradient(180deg, #474747 0%, #1a1a1a 100%);
  border-radius: 2px;
}
.phone-silent   { left: -2px; top: 126px; width: 2px; height: 24px; }
.phone-vol-up   { left: -2px; top: 170px; width: 2px; height: 46px; }
.phone-vol-down { left: -2px; top: 228px; width: 2px; height: 46px; }
.phone-power    { right: -2px; top: 190px; width: 2px; height: 84px; }

.phone-dynamic-island {
  width: 124px;
  height: 36px;
  background: #020202;
  border-radius: 18px;
  margin: 6px auto 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  gap: 8px;
}
.phone-dynamic-island::before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #0f0f12;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.04), inset 0 0 4px rgba(80,180,255,0.22);
}
.phone-dynamic-island::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #17171c;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04);
}

.hero-mockup {
  width: 344px;
  height: 572px;
  border-radius: 42px;
  position: relative;
  background: #fff;
  overflow: hidden;
  box-shadow: none;
}

.hero-mockup::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.55);
  pointer-events: none;
}

.hero-mockup::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 16%, rgba(0,0,0,0) 78%, rgba(0,0,0,0.04) 100%);
  pointer-events: none;
}

.mockup-header {
  padding: 10px 24px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.mockup-greeting { font-size: 0.8rem;  color: var(--text-muted); }
.mockup-name     { font-size: 1.1rem;  font-weight: 700; }

.mockup-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

/* ── Balance ── */
.mockup-balance {
  padding: 24px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(15, 211, 172, 0.03));
}

.mockup-balance-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mockup-balance-amount {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 8px 0;
}

.mockup-balance-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 600;
}

/* ── Quick Actions ── */
.mockup-actions {
  display: flex;
  gap: 12px;
  padding: 0 24px;
}

.mockup-action-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
}

.mockup-action-btn .icon {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

/* ── Transaction List (inside mockup) ── */
.mockup-transactions {
  padding: 18px 24px 0;
  position: relative;
}
.mockup-transactions::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}

.mockup-transactions h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.mockup-tx {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.mockup-tx:last-child { border-bottom: none; }

.mockup-tx-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(124, 58, 237, 0.1);
  flex-shrink: 0;
}

.mockup-tx-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mockup-tx-info  { flex: 1; }
.mockup-tx-name  { font-size: 0.82rem; font-weight: 600; }
.mockup-tx-cat   { font-size: 0.7rem;  color: var(--text-muted); }

.mockup-tx-amount          { font-size: 0.85rem; font-weight: 700; }
.mockup-tx-amount.negative { color: var(--danger); }
.mockup-tx-amount.positive { color: var(--success); }

/* ── Floating Stat Cards ── */
.float-card {
  position: absolute;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.11);
  animation: float 6s ease-in-out infinite;
}

.float-card-1 { top: -22px;    right: -44px; animation-delay: 0s;  }
.float-card-2 { bottom: -22px; left: -44px;  animation-delay: -2s; }
.float-card-3 { bottom: 110px; right: -44px; animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0px);   }
  50%      { transform: translateY(-12px); }
}

.float-card .fc-label { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 4px; }
.float-card .fc-value { font-size: 1rem;   font-weight: 700; }
.float-card .fc-icon  { font-size: 1.3rem; margin-bottom: 6px; }

/* ── Trust Banner ── */
.trust-banner {
  padding: 32px 0;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.trust-banner p {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 500;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  opacity: 0.7;
}

.trust-logo {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.trust-logo:hover {
  opacity: 1;
}

.trust-logo svg {
  height: 32px;
  width: auto;
}

/* =============================================================================
   DASHBOARD HERO MOCKUP (replaces phone)
   ============================================================================= */

/* ── Outer browser frame ── */
.hero-dashboard-frame {
  width: 100%;
  max-width: 560px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 32px 80px rgba(124, 58, 237, 0.14),
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(124, 58, 237, 0.06);
  overflow: hidden;
}

/* ── Browser chrome bar ── */
.dash-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 16px;
  background: #F5F5F7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.dash-chrome-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dash-chrome-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.dash-chrome-bar {
  flex: 1;
  height: 22px;
  background: #E9E9EC;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #888;
  font-weight: 400;
  letter-spacing: 0.01em;
  max-width: 240px;
  margin: 0 auto;
}

/* ── Dashboard body layout ── */
.dash-body {
  display: flex;
  height: 430px;
}

/* ── Sidebar ── */
.dash-sidebar {
  width: 54px;
  background: #1a0a2e;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 6px;
  flex-shrink: 0;
}

.dash-sidebar-logo {
  margin-bottom: 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  display: flex;
  justify-content: center;
}

.dash-nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.38);
  transition: all 0.2s ease;
  cursor: pointer;
}

.dash-nav-icon.active {
  background: rgba(124, 58, 237, 0.35);
  color: #A78BFA;
}

.dash-nav-icon:hover:not(.active) {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
}

.dash-nav-bottom {
  margin-top: auto;
}

/* ── Main content area ── */
.dash-main {
  flex: 1;
  padding: 16px 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Top bar ── */
.dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-greeting {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dash-subtext {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.dash-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-brand);
  flex-shrink: 0;
}

/* ── Balance card ── */
.dash-balance-card {
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1060 100%);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.dash-balance-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.18) 0%, transparent 70%);
}

.dash-bal-info {
  flex-shrink: 0;
}

.dash-bal-label {
  font-size: 0.63rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.dash-bal-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.dash-bal-cents {
  font-size: 1rem;
  opacity: 0.6;
}

.dash-bal-change {
  font-size: 0.68rem;
  color: #4FE3BF;
  font-weight: 600;
  margin-top: 6px;
}

.dash-bal-chart {
  flex: 1;
  height: 72px;
  max-width: 200px;
}

.dash-bal-chart svg {
  width: 100%;
  height: 100%;
}

/* ── Metric tiles ── */
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex-shrink: 0;
}

.dash-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 10px;
  background: var(--bg-section);
  border: 1px solid var(--border);
}

.dash-metric-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-metric-label {
  font-size: 0.58rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-metric-val {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1px;
}

/* ── Transaction header ── */
.dash-tx-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.dash-tx-header span:first-child {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-tx-viewall {
  font-size: 0.65rem;
  color: var(--purple);
  font-weight: 600;
  cursor: pointer;
}

/* ── Transaction rows ── */
.dash-txs {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.dash-tx-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.dash-tx-row:last-child { border-bottom: none; }

.dash-tx-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.dash-tx-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dash-tx-info { flex: 1; }

.dash-tx-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dash-tx-sub {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.dash-tx-amount {
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.dash-tx-neg { color: var(--danger); }
.dash-tx-pos { color: var(--success); }
