/* ============================================
   Homepage Specific Styles
   ============================================ */

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Radial spotlight */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(
    ellipse,
    rgba(99, 102, 241, 0.12) 0%,
    rgba(37, 99, 235, 0.05) 40%,
    transparent 70%
  );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero h1 {
  font-size: 4.2rem;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-features {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

/* --- Geometric Lines Background --- */
.geo-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  opacity: 0.4;
}

.geo-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.15), transparent);
  animation: lineSlide 12s linear infinite;
}

.geo-line:nth-child(1) { top: 20%; width: 60%; left: 20%; animation-delay: 0s; }
.geo-line:nth-child(2) { top: 40%; width: 80%; left: 10%; animation-delay: -3s; }
.geo-line:nth-child(3) { top: 60%; width: 50%; left: 25%; animation-delay: -6s; }
.geo-line:nth-child(4) { top: 80%; width: 70%; left: 15%; animation-delay: -9s; }

.v-line {
  position: absolute;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.08), transparent);
  height: 100%;
}

.v-line:nth-child(5) { left: 20%; }
.v-line:nth-child(6) { left: 40%; }
.v-line:nth-child(7) { left: 60%; }
.v-line:nth-child(8) { left: 80%; }

/* --- Phone Mockup Section --- */
.phone-section {
  position: relative;
  z-index: 10;
  margin-top: 4rem;
}

.phone-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent-glow);
  filter: blur(120px);
  opacity: 0.1;
  z-index: 0;
}

.phone-device {
  width: 260px;
  height: 540px;
  background: var(--bg-surface);
  border-radius: 32px;
  border: 1.5px solid rgba(99, 102, 241, 0.15);
  position: relative;
  overflow: hidden;
  z-index: 2;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(99, 102, 241, 0.08);
}

.phone-notch {
  width: 90px;
  height: 22px;
  background: var(--bg-surface);
  border-radius: 0 0 12px 12px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.phone-screen {
  padding: 2rem 0.9rem 0.9rem;
  height: 100%;
  background: linear-gradient(180deg, #080d20 0%, #060a18 100%);
}

/* Phone screen inner elements */
.ps-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.ps-logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--neon-indigo);
}

.ps-welcome { font-size: 0.45rem; color: var(--text-muted); }

.ps-balance {
  background: linear-gradient(135deg, #111838, #0d1330);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 14px;
  padding: 0.8rem;
  text-align: center;
  margin-bottom: 0.7rem;
}

.ps-balance-label { font-size: 0.45rem; color: var(--text-secondary); }

.ps-balance-value {
  font-family: 'Manrope', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  margin: 0.15rem 0 0.3rem;
}

.ps-pills {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
}

.ps-pill {
  font-size: 0.38rem;
  padding: 0.2rem 0.4rem;
  border-radius: 5px;
  line-height: 1.3;
}

.ps-pill b { display: block; font-size: 0.42rem; }
.ps-pill-active { background: rgba(99, 102, 241, 0.2); color: #A5B4FC; }
.ps-pill-muted { background: rgba(255, 255, 255, 0.03); color: var(--text-muted); }

.ps-chart {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.6rem;
  margin-bottom: 0.7rem;
}

.ps-chart-title { font-size: 0.5rem; font-weight: 700; margin-bottom: 0.3rem; }
.ps-chart-svg { width: 100%; height: 45px; }

.ps-txn-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.ps-txn-head span { font-size: 0.5rem; font-weight: 700; }
.ps-txn-head small { font-size: 0.38rem; color: var(--text-muted); }

.ps-txn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.ps-txn-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.45rem;
  flex-shrink: 0;
}

.ps-txn-dot.expense { background: rgba(239, 68, 68, 0.1); color: #f87171; }
.ps-txn-dot.income { background: rgba(34, 197, 94, 0.1); color: #4ade80; }

.ps-txn-info { flex: 1; }
.ps-txn-name { font-size: 0.45rem; font-weight: 700; }
.ps-txn-cat { font-size: 0.35rem; color: var(--text-muted); }
.ps-txn-amt { font-size: 0.45rem; font-weight: 700; }
.ps-txn-amt.red { color: #f87171; }
.ps-txn-amt.green { color: #4ade80; }

/* Phone bottom nav */
.phone-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 0.4rem;
  background: rgba(3, 7, 18, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.phone-nav-item {
  font-size: 0.3rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.phone-nav-item.active { color: var(--neon-indigo); }
.phone-nav-item svg { width: 11px; height: 11px; }

.phone-nav-pill {
  background: rgba(99, 102, 241, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

/* --- Float card positions around phone --- */
.fc-top-left {
  top: 2%;
  left: -48%;
}

.fc-top-right {
  top: 2%;
  right: -48%;
}

.fc-bottom-left {
  bottom: 18%;
  left: -45%;
}

.fc-bottom-right {
  bottom: 18%;
  right: -45%;
}

/* --- FEATURES LIGHT SECTION --- */
.features-section {
  background: var(--bg-light);
  padding: 6rem 2rem;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- How It Works Step Cards --- */
.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-num {
  font-family: 'Manrope', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--accent-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1;
}

.step-card h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- CTA Box --- */
.cta-box {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.cta-box .hero-actions {
  margin-top: 2rem;
  margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero {
    padding: 7rem 1.5rem 3rem;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero-features {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .float-card {
    display: none;
  }

  .phone-device {
    width: 230px;
    height: 480px;
  }
}