/* ============================================================
   MN HEDGE FUND — Homepage Styles
   ============================================================ */

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

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(var(--accent-primary-rgb), 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(var(--accent-secondary-rgb), 0.04) 0%, transparent 50%);
  animation: hero-glow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes hero-glow {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: rgba(var(--accent-secondary-rgb), 0.08);
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
}

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

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 520px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Hero Centered Layout (no engine visual) */
.hero-content.hero-centered {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content.hero-centered .hero-badge {
  margin-left: auto;
  margin-right: auto;
}

.hero-content.hero-centered .hero-subtitle {
  max-width: 620px;
  text-align: center;
}

.hero-content.hero-centered .hero-cta {
  justify-content: center;
}

/* --- Terminal Simulator --- */
.terminal {
  background: rgba(10, 14, 23, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: glow-pulse 4s infinite;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #FF5F57; }
.terminal-dot.yellow { background: #FFBD2E; }
.terminal-dot.green { background: #28CA42; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: var(--space-sm);
}

.terminal-body {
  padding: var(--space-lg);
  height: 320px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
}

.terminal-body::-webkit-scrollbar { width: 4px; }
.terminal-body::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 2px; }

.terminal-line {
  opacity: 0;
  animation: terminalFadeIn 0.3s ease forwards;
}

@keyframes terminalFadeIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.terminal-line .time { color: var(--text-muted); }
.terminal-line .action { color: var(--accent-primary); }
.terminal-line .buy { color: var(--accent-secondary); }
.terminal-line .sell { color: var(--accent-red); }
.terminal-line .info { color: var(--accent-blue); }
.terminal-line .profit { color: var(--accent-secondary); }
.terminal-line .symbol { color: var(--text-primary); font-weight: 600; }

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent-primary);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 4px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- Stats Row --- */
.stats-section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.stats-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.stat-item {
  text-align: center;
  padding: var(--space-lg);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: var(--space-xs);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* --- Metrics Preview --- */
.metrics-section {
  position: relative;
}

.metrics-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.metrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.metrics-header h3 {
  font-size: 1rem;
}

.table-wrapper {
  overflow-x: auto;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: var(--space-4xl) 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(var(--accent-primary-rgb), 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: var(--space-md);
}

.cta-section p {
  margin: 0 auto var(--space-xl);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* --- Profit Calculator --- */
.calculator-section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.calc-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.calc-slider-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.calc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

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

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

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.5);
  transition: transform 0.1s;
}

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

.calc-result-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.calc-result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.calc-result-item {
  margin-bottom: var(--space-lg);
}

.calc-result-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.calc-result-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-secondary);
}

.calc-result-value.total {
  color: var(--text-primary);
  font-size: 2rem;
}

.calc-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
}

/* --- How It Works Timeline --- */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 50px;
  right: 50px;
  height: 2px;
  background: var(--border-subtle);
  z-index: 0;
}

.timeline-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.timeline-number {
  width: 50px;
  height: 50px;
  background: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin: 0 auto var(--space-md);
  box-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.2);
}

.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.timeline-content p {
  font-size: 0.9rem;
  margin: 0 auto;
}

/* --- Pricing Cards --- */
.pricing-section {
  background: var(--bg-secondary);
  padding: var(--space-4xl) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-glow);
}

.pricing-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(180deg, var(--accent-primary), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pricing-fee {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin: var(--space-md) 0;
}

.pricing-fee-desc {
  font-size: 1rem;
  color: var(--accent-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xl);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-2xl);
}

.pricing-features li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pricing-features li svg {
  flex-shrink: 0;
  color: var(--accent-secondary);
  margin-top: 2px;
}

/* --- Badges --- */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  opacity: 0.7;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .calc-wrapper {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }
  
  .terminal-body {
    height: 240px;
    font-size: 0.7rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}

/* Sniper Solar System Layout */
.sniper-solar-system {
  position: relative;
  width: 100%;
  max-width: 650px;
  aspect-ratio: 1;
  margin: var(--space-4xl) auto;
}

.sun {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 185, 11, 0.15) 0%, rgba(10, 14, 23, 0.9) 80%);
  border: 2px solid var(--accent-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  box-shadow: 0 0 30px rgba(240, 185, 11, 0.2);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  padding: 20px;
}
.sun h3 { color: var(--text-primary); font-size: 1.2rem; margin: 0; transition: all 0.3s; }
.sun p { 
  opacity: 0; 
  height: 0; 
  margin: 0; 
  font-size: 0.85rem; 
  color: var(--text-muted); 
  line-height: 1.4; 
  transition: all 0.4s; 
  overflow: hidden; 
}
.sun:hover {
  width: 320px;
  height: 320px;
  z-index: 30;
  background: var(--bg-card);
  box-shadow: 0 0 60px rgba(240, 185, 11, 0.4);
}
.sun:hover h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--accent-primary);
}
.sun:hover p {
  opacity: 1;
  height: auto;
}

.sun-glow {
  position: absolute;
  top: -20px; left: -20px; right: -20px; bottom: -20px;
  border-radius: 50%;
  border: 1px dashed var(--accent-primary);
  animation: spin 30s linear infinite;
  opacity: 0.5;
  z-index: -1;
  transition: all 0.5s;
}
.sun:hover .sun-glow {
  top: -30px; left: -30px; right: -30px; bottom: -30px;
  border-width: 2px;
  opacity: 0.8;
}

/* Dim planets when sun is hovered */
.sniper-solar-system:has(.sun:hover) .planet {
  opacity: 0.3;
  filter: blur(2px);
  transform: translate(-50%, -50%) scale(0.9);
}

/* Planets */
.planet {
  position: absolute;
  width: 140px; height: 140px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  z-index: 5;
}
.planet-icon {
  color: var(--accent-primary);
  margin-bottom: 8px;
  transition: all 0.3s;
}
.planet h3 {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-primary);
  transition: all 0.3s;
}
.planet p {
  opacity: 0;
  height: 0;
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  transition: opacity 0.3s, height 0.3s, margin 0.3s;
  overflow: hidden;
}

/* Coordinates for 6 planets around center (R=240px) */
.planet-1 { top: calc(50% - 240px); left: 50%; }
.planet-2 { top: calc(50% - 120px); left: calc(50% + 208px); }
.planet-3 { top: calc(50% + 120px); left: calc(50% + 208px); }
.planet-4 { top: calc(50% + 240px); left: 50%; }
.planet-5 { top: calc(50% + 120px); left: calc(50% - 208px); }
.planet-6 { top: calc(50% - 120px); left: calc(50% - 208px); }

/* Hover Expansion */
.planet:hover {
  width: 240px; 
  height: 240px;
  z-index: 20;
  border-color: var(--accent-primary);
  box-shadow: 0 0 30px rgba(240, 185, 11, 0.3);
  background: var(--bg-card-hover);
}
.planet:hover .planet-icon {
  transform: scale(1.2);
  margin-bottom: 12px;
}
.planet:hover h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}
.planet:hover p {
  opacity: 1;
  height: auto;
  margin-top: 5px;
}

@media (max-width: 900px) {
  .sniper-solar-system {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    aspect-ratio: auto;
    margin: var(--space-xl) 0;
  }
  .sun, .planet {
    position: static;
    width: 100%;
    height: auto;
    transform: none;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
  }
  .sun-glow { display: none; }
  .planet p {
    opacity: 1;
    height: auto;
  }
}

/* --- Process Flow --- */
.process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin: var(--space-3xl) auto;
  flex-wrap: wrap;
}
.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  width: 175px;
  position: relative;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  z-index: 5;
}
.process-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}
.pc-icon {
  color: var(--accent-primary);
  margin-bottom: var(--space-sm);
}
.process-card h4 {
  font-size: 0.85rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}
.process-card p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}
.process-arrow {
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(var(--accent-primary-rgb), 0.3));
  transition: all var(--transition-base);
}
.process-arrow:hover {
  filter: drop-shadow(0 0 15px rgba(var(--accent-primary-rgb), 0.6));
}
.process-loop {
  position: relative;
  width: 520px;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loop-center {
  width: 115px;
  height: 115px;
  background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.15) 0%, rgba(10, 14, 23, 0.9) 80%);
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 0 30px rgba(var(--accent-primary-rgb), 0.2);
  z-index: 10;
}
.loop-center h3 {
  font-size: 0.95rem;
  color: var(--accent-primary);
  margin: 0;
  line-height: 1.4;
}
.card-top { position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
.card-right { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
.card-bottom { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }
.card-left { position: absolute; top: 50%; left: 0; transform: translateY(-50%); }

.loop-arrows {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 1024px) {
  .process-flow { flex-direction: column; }
  .process-arrow svg { transform: rotate(90deg); }
}

@media (max-width: 900px) {
  .process-loop {
    width: 100%;
    height: auto;
    flex-direction: column;
    gap: var(--space-md);
  }
  .card-top, .card-right, .card-bottom, .card-left {
    position: static;
    transform: none;
    width: 175px;
  }
  .loop-center {
    margin: var(--space-md) 0;
  }
  .loop-arrows { display: none; }
}
