﻿/* =========================================
   MINDIESM — Hero Section (2-Column Layout)
   ========================================= */

.hero {
  position: relative;
  /* Use a minimum height to fill screen, but flex-start to keep content higher */
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: var(--header-height);
  padding-bottom: var(--sp-6);
  background: var(--bg-white);
}

/* === BACKGROUND ELEMENTS === */
.hero-bg-dots {
  position: absolute;
  top: 0; left: 0;
  width: 40%; height: 100%;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse at 30% 50%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black, transparent 70%);
  z-index: 0;
}

.hero-bg-circles {
  position: absolute;
  top: 45%; right: 0;
  width: 800px; height: 800px;
  transform: translate(30%, -50%);
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0,
    transparent 40px,
    var(--border-light) 41px,
    transparent 42px
  );
  opacity: 0.7;
  z-index: 0;
}

.hero-bg-circles-left {
  right: auto;
  left: 0;
  top: 60%;
  transform: translate(-50%, -50%);
}

.hero-bg-leaves {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

.leaf {
  position: absolute;
  width: 120px; height: 120px;
  opacity: 0.4;
}

.leaf-1 { top: 20%; left: 35%; transform: rotate(-30deg); }
.leaf-2 { top: 65%; right: 5%; transform: rotate(15deg); }
.leaf-3 { bottom: 15%; left: 10%; transform: rotate(60deg) scale(0.8); }
.leaf-4 { top: 10%; right: 25%; transform: rotate(-100deg) scale(0.6); opacity: 0.2; }

/* === CONTAINER === */
.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  max-width: 1200px;
  /* Reduced top padding to start higher on page */
  margin-top: clamp(0.5rem, 1vh, 1rem);
}

/* === LEFT COLUMN: TEXT === */
.hero-text-col {
  flex: 1;
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.4rem 1.1rem;
  background: var(--accent-mist);
  border: 1px solid var(--border-light);
  border-radius: var(--r-full);
  color: var(--accent-dark);
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-3);
  white-space: nowrap;
}
.badge-dot-sep { opacity: 0.4; }

.hero-headline {
  font-family: var(--font-primary);
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  font-weight: var(--fw-bold);
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  letter-spacing: var(--ls-tight);
}

.hero-headline .line {
  display: block;
}
.hero-headline .text-accent {
  color: var(--accent);
}

.hero-sub {
  font-size: var(--text-base);
  color: var(--text-tertiary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-4);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.hero-actions .btn {
  font-size: var(--text-sm);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* STATS ROW */
.hero-stats-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  border-top: 1px solid var(--border-light);
  padding-top: var(--sp-3);
}

.hero-stat-block {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.hero-stat-icon {
  width: 42px; height: 42px;
  background: var(--accent-mist);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
}
.hero-stat-icon svg { width: 20px; height: 20px; }

.hero-stat-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero-stat-val {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.hero-stat-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.star-accent { color: var(--accent); font-size: 0.9em; }


/* === RIGHT COLUMN: VISUALS === */
.hero-visual-col {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Adjusted min-height for scaled mockup */
  min-height: 480px;
}

/* Phone Mockup */
.phone-mockup {
  position: relative;
  width: 290px;
  height: 580px;
  background: var(--bg-white);
  border-radius: 34px;
  box-shadow: 0 20px 50px rgba(123, 156, 226, 0.12),
              0 0 0 10px var(--bg-pearl),
              0 0 0 11px var(--border-medium);
  overflow: hidden;
  z-index: 2;
  display: flex;
  flex-direction: column;
  /* Scale down by ~10% for a tighter, balanced layout */
  transform: scale(0.9);
  /* Reduce layout footprint to pull surrounding elements closer */
  margin: -29px -15px;
}

.phone-inner {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.phone-inner::-webkit-scrollbar { display: none; }

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 0.5rem;
}

.ph-title { font-weight: var(--fw-bold); color: var(--text-primary); font-size: 1rem; }
.ph-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }

.ph-bell {
  position: relative;
  color: var(--text-tertiary);
  width: 20px; height: 20px;
}
.bell-dot {
  position: absolute;
  top: 0; right: 2px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  border: 1px solid var(--bg-white);
}

.phone-card {
  background: var(--bg-white);
  border-radius: var(--r-xl);
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(123,156,226,0.06);
  border: 1px solid var(--border-light);
}

.pcard-title {
  font-weight: var(--fw-semibold);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.pcard-sub {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.pcard-sub .blue-text { color: var(--accent-dark); font-weight: var(--fw-medium); }

/* Mood Chart */
.pcard-chart-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ring-chart {
  position: relative;
  width: 60px; height: 60px;
}
.circular-chart {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 250px;
}
.circle-bg {
  fill: none;
  stroke: var(--bg-soft);
  stroke-width: 3.5;
}
.circle-val {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.5;
  stroke-linecap: round;
}
.ring-face {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.25rem;
}
.ring-stats {
  display: flex;
  flex-direction: column;
}
.ring-pct { font-size: 1.25rem; font-weight: var(--fw-bold); color: var(--text-primary); }
.ring-lbl { font-size: 0.7rem; color: var(--text-muted); }

/* Bar Chart */
.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 70px;
}
.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 12px;
}
.bar-wrap {
  width: 6px;
  height: 50px;
  background: var(--bg-soft);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.bar-fill {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.bar-col span {
  font-size: 0.6rem;
  font-weight: var(--fw-medium);
  color: var(--text-muted);
}

/* Phone Nav */
.phone-nav {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0 0 0;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}
.pnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-subtle);
}
.pnav-item.active { color: var(--accent); }
.pnav-item svg { width: 18px; height: 18px; }
.pnav-item span { font-size: 0.55rem; font-weight: var(--fw-medium); }


/* Floating Cards */
.fc-item {
  position: absolute;
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  z-index: 3;
  white-space: nowrap;
}

.fc-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fc-icon svg { width: 14px; height: 14px; }

/* Subtle color variations using existing palette */
.bg-blue { background: var(--accent); color: white; }
.bg-light-blue { background: var(--accent-soft); color: var(--accent-dark); }
.bg-red { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: white; } 

.fc-text { display: flex; flex-direction: column; gap: 1px; }
.fc-lbl { font-size: 0.6rem; color: var(--text-muted); }
.fc-val { font-size: 0.75rem; font-weight: var(--fw-semibold); color: var(--text-primary); }
.fc-sub { font-size: 0.6rem; color: var(--text-primary); font-weight: var(--fw-medium); margin-top: 1px;}

/* Positions - Anchored to center to bring them tightly around the phone */
.fc-top-left { top: 15%; right: calc(50% + 110px); left: auto; }
.fc-mid-right { top: 40%; left: calc(50% + 125px); right: auto; }
.fc-bot-left { bottom: 22%; right: calc(50% + 120px); left: auto; }
.fc-bot-right { bottom: 12%; left: calc(50% + 115px); right: auto; }

/* Ambient UI Elements */
.ambient-badge {
  position: absolute;
  background: var(--glass-white-soft);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: 1px solid var(--border-light);
  color: var(--text-tertiary);
  font-size: 0.65rem;
  font-weight: var(--fw-medium);
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-full);
  z-index: 1; /* behind floating cards and phone */
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  animation: float-amb 8s ease-in-out infinite alternate;
}

@keyframes float-amb {
  0% { transform: translateY(0); }
  100% { transform: translateY(-15px); }
}

.amb-tl { top: 8%; right: calc(50% + 210px); animation-delay: 0s; }
.amb-tr { top: 18%; left: calc(50% + 230px); animation-delay: 2s; }
.amb-bl { bottom: 12%; right: calc(50% + 230px); animation-delay: 1s; }
.amb-br { bottom: 6%; left: calc(50% + 200px); animation-delay: 3s; }

.ambient-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.15;
  z-index: 0;
  animation: pulse-amb 10s infinite alternate;
}
@keyframes pulse-amb {
  0% { transform: scale(1); opacity: 0.1; }
  100% { transform: scale(1.5); opacity: 0.25; }
}

.amb-dot-1 { top: 10%; right: calc(50% + 240px); width: 80px; height: 80px; filter: blur(20px); }
.amb-dot-2 { bottom: 20%; left: calc(50% + 240px); width: 120px; height: 120px; filter: blur(30px); }
.amb-dot-3 { top: 50%; right: calc(50% + 280px); width: 60px; height: 60px; filter: blur(15px); }

/* Scroll Down */
.hero-scroll-down {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
  .hero-container { flex-direction: column; text-align: center; gap: 2rem; margin-top: 1.5rem;}
  .hero-text-col { max-width: 800px; display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-inline: auto; }
  .fc-top-left { right: calc(50% + 75px); left: auto; top: 8%; }
  .fc-mid-right { left: calc(50% + 75px); right: auto; }
  .fc-bot-left { right: calc(50% + 75px); left: auto; bottom: 18%; }
  .fc-bot-right { left: calc(50% + 75px); right: auto; bottom: 6%; }
}

@media (max-width: 768px) {
  .hero-headline { font-size: clamp(2.2rem, 7vw, 3rem); }
  .hero-stats-row { flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
  .fc-item { display: none; } /* Hide floating cards on small mobile */
}


