/* ========================================
   HOME PAGE — Specific Styles
   ======================================== */

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-gradient);
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(56, 189, 248, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  animation: fadeInLeft 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--primary-200);
  margin-bottom: var(--space-6);
}

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

.hero h1 {
  font-size: var(--text-6xl);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-400), var(--accent-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--primary-200);
  line-height: 1.8;
  margin-bottom: var(--space-8);
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.hero-stats {
  display: flex;
  gap: var(--space-10);
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: white;
  display: flex;
  align-items: baseline;
}

.hero-stat-number span {
  color: var(--accent-400);
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--primary-300);
  margin-top: var(--space-1);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-card-main {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.hero-card-title {
  font-size: var(--text-sm);
  color: var(--primary-200);
  font-weight: 500;
}

.hero-card-badge {
  padding: var(--space-1) var(--space-3);
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.hero-card-amount {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-2);
}

.hero-card-growth {
  font-size: var(--text-sm);
  color: #34D399;
  margin-bottom: var(--space-6);
}

/* Inline Chart */
.hero-chart {
  width: 100%;
  height: 120px;
  margin-bottom: var(--space-6);
  position: relative;
}

.hero-chart svg {
  width: 100%;
  height: 100%;
}

.hero-card-funds {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero-fund-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-fund-name {
  font-size: var(--text-sm);
  color: var(--primary-200);
}

.hero-fund-return {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #34D399;
}

/* Floating notification cards */
.hero-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: float 5s ease-in-out infinite;
}

.hero-float-card:nth-child(1) {
  top: 10%;
  right: -20px;
  animation-delay: 0s;
}

.hero-float-card:nth-child(2) {
  bottom: 15%;
  left: -30px;
  animation-delay: -2.5s;
}

.hero-float-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.hero-float-text {
  font-size: var(--text-xs);
  color: var(--neutral-500);
}

.hero-float-text strong {
  display: block;
  color: var(--neutral-900);
  font-size: var(--text-sm);
}

/* ---------- Why Choose Section ---------- */
.why-choose {
  position: relative;
}

.why-choose .card-icon svg {
  width: 28px;
  height: 28px;
}

/* ---------- Goals Section ---------- */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.goal-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
}

.goal-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.goal-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  background: rgba(255, 255, 255, 0.1);
}

.goal-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.goal-card p {
  font-size: var(--text-sm);
  color: var(--primary-300);
}

/* ---------- Mini Calculator ---------- */
.calc-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.calc-form-mini {
  max-width: 480px;
}

.calc-slider-group {
  margin-bottom: var(--space-6);
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.calc-slider-label {
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--neutral-700);
}

.calc-slider-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--primary-700);
}

.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--neutral-200);
  outline: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-400);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
  transition: transform var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-400);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}

.calc-result-card {
  background: var(--bg-gradient);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.calc-result-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.calc-result-label {
  font-size: var(--text-sm);
  color: var(--primary-200);
  margin-bottom: var(--space-2);
}

.calc-result-amount {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 800;
  margin-bottom: var(--space-6);
}

.calc-result-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.calc-breakdown-item {
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}

.calc-breakdown-label {
  font-size: var(--text-xs);
  color: var(--primary-300);
  margin-bottom: var(--space-1);
}

.calc-breakdown-value {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
}

/* ---------- How It Works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary-200), var(--primary-400), var(--primary-200));
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

.step-number span {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.step-card p {
  color: var(--neutral-500);
  font-size: var(--text-sm);
  max-width: 280px;
  margin: 0 auto;
}

/* ---------- Testimonials ---------- */
.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-100);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
  color: var(--accent-400);
  font-size: var(--text-lg);
}

.testimonial-text {
  font-style: italic;
  color: var(--neutral-600);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: var(--text-lg);
}

.testimonial-author-info h4 {
  font-size: var(--text-base);
  font-weight: 600;
}

.testimonial-author-info p {
  font-size: var(--text-sm);
  color: var(--neutral-500);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--bg-gradient);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 10% 50%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 90% 50%, rgba(56, 189, 248, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: var(--text-4xl);
  color: white;
  margin-bottom: var(--space-4);
}

.cta-content p {
  font-size: var(--text-lg);
  color: var(--primary-200);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-form {
  display: flex;
  gap: var(--space-3);
  max-width: 520px;
  margin: 0 auto;
}

.cta-form .form-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: var(--radius-lg);
}

.cta-form .form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.cta-form .form-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 {
    font-size: var(--text-5xl);
  }

  .hero-description {
    margin: 0 auto var(--space-8);
  }

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

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

  .hero-visual {
    display: none;
  }

  .goals-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc-preview {
    grid-template-columns: 1fr;
  }

  .testimonials-slider {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: var(--text-4xl);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
  }

  .hero-stat {
    text-align: center;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

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

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

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

  .cta-form {
    flex-direction: column;
  }
}

/* App Banner Specific Styles */
.app-banner {
  background: var(--bg-gradient);
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-8);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.app-banner-bg-circle {
  position: absolute;
  right: -10%;
  top: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.app-banner-content {
  flex: 1;
  min-width: 300px;
  color: white;
  position: relative;
  z-index: 2;
}

.app-banner-content h2 {
  font-size: var(--text-4xl);
  color: white;
  margin-bottom: var(--space-4);
}

.app-banner-content p {
  font-size: var(--text-lg);
  color: var(--primary-200);
  margin-bottom: var(--space-8);
}

.app-banner-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-8);
  display: grid;
  gap: var(--space-3);
}

.app-banner-content li {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.app-banner-content .check {
  color: var(--success);
  font-weight: bold;
}

.app-banner-content .play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-banner-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.app-banner-image img {
  max-height: 400px;
  border-radius: 24px;
  border: 4px solid rgba(255,255,255,0.2);
  box-shadow: var(--shadow-2xl);
  transform: rotate(-5deg);
  transition: transform 0.3s ease;
}

.app-banner-image img:hover {
  transform: rotate(0deg);
}

@media (max-width: 768px) {
  .app-banner {
    padding: var(--space-6);
  }
  .app-banner-content, .app-banner-image {
    min-width: 100%;
  }
  .app-banner-content h2 {
    font-size: var(--text-3xl);
  }
  .app-banner-image img {
    width: 100%;
    max-height: none;
    transform: none;
  }
}

@media (max-width: 480px) {
  .calc-result-card {
    padding: var(--space-6);
  }
}
