/* Hero section + animations styles */
/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-h);
  overflow: hidden;
}

/* ── Background ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--clr-bg);
  overflow: hidden;
}

.hero-bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(229,57,53,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(34,197,94,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(37,99,235,0.06) 0%, transparent 60%);
  animation: meshPulse 8s ease-in-out infinite alternate;
}

@keyframes meshPulse {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

[data-theme="dark"] .hero-bg {
  background: var(--clr-bg);
}

[data-theme="dark"] .hero-bg-mesh {
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(229,57,53,0.20) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(34,197,94,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(37,99,235,0.10) 0%, transparent 60%);
}

/* ── Floating Orbs ── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orbFloat 10s ease-in-out infinite;
}

.hero-orb--1 {
  width: 400px; height: 400px;
  background: rgba(229,57,53,0.15);
  top: 10%; right: 5%;
  animation-delay: 0s;
}

.hero-orb--2 {
  width: 250px; height: 250px;
  background: rgba(34,197,94,0.12);
  bottom: 20%; right: 25%;
  animation-delay: -3s;
}

.hero-orb--3 {
  width: 180px; height: 180px;
  background: rgba(37,99,235,0.10);
  top: 40%; left: 5%;
  animation-delay: -6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.05); }
  66%       { transform: translate(-15px, 20px) scale(0.96); }
}

/* ── Grid Pattern ── */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  display: none;
}

/* ── Particles ── */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0;
  animation: particleFloat 12s ease-in-out infinite;
}

.particle--1 {
  left: 10%; top: 20%;
  animation-delay: 0s;
  animation-duration: 14s;
  font-size: 0.9rem;
  opacity: 0;
}
.particle--2 {
  left: 80%; top: 60%;
  animation-delay: -4s;
  animation-duration: 16s;
  font-size: 0.8rem;
  opacity: 0;
}
.particle--3 {
  left: 60%; top: 15%;
  animation-delay: -8s;
  animation-duration: 12s;
  font-size: 1rem;
  opacity: 0;
}
.particle--4 {
  left: 30%; top: 75%;
  animation-delay: -2s;
  animation-duration: 18s;
  font-size: 0.7rem;
  opacity: 0;
}

@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(0) rotate(0deg); }
  10%  { opacity: 0.35; }
  50%  { opacity: 0.2; transform: translateY(-60px) rotate(20deg); }
  90%  { opacity: 0.35; }
  100% { opacity: 0; transform: translateY(-120px) rotate(40deg); }
}

/* ── Content ── */
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  padding: var(--sp-20) 0;
  width: 100%;
}

.hero-text {
  max-width: 620px;
  /* Text always column 1 in DOM */
}

.hero-visual {
  /* Visual always column 2 in DOM */
}

/* ── Badge ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(229,57,53,0.10);
  border: 1px solid rgba(229,57,53,0.25);
  color: var(--clr-primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-6);
  animation: heroFadeUp 0.6s var(--ease-out) 0.1s both;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--clr-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.6; }
}

/* ── Headline ── */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--txt-primary);
  margin-bottom: var(--sp-6);
  animation: heroFadeUp 0.6s var(--ease-out) 0.2s both;
}

.hero-headline-accent {
  color: var(--clr-primary);
  position: relative;
  display: inline-block;
}

.hero-headline-accent::after {
  content: '';
  position: absolute;
  left: 0; bottom: 4px;
  width: 100%; height: 4px;
  background: var(--clr-primary);
  border-radius: 2px;
  opacity: 0.3;
}

/* ── Sub ── */
.hero-sub {
  font-size: 1.125rem;
  color: var(--txt-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-8);
  max-width: 520px;
  font-weight: 300;
  animation: heroFadeUp 0.6s var(--ease-out) 0.3s both;
}

/* ── CTA Group ── */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  animation: heroFadeUp 0.6s var(--ease-out) 0.4s both;
}

/* ── Stats ── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  margin-top: var(--sp-10);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border-subtle);
  animation: heroFadeUp 0.6s var(--ease-out) 0.5s both;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--txt-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--txt-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* ── Visual ── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroFadeUp 0.8s var(--ease-out) 0.3s both;
}

.hero-visual-card {
  background: var(--clr-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 420px;
  position: relative;
  overflow: hidden;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-primary-light));
}

.hero-visual-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-visual-avatar {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.hero-visual-info { flex: 1; }
.hero-visual-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--txt-primary);
}
.hero-visual-city {
  font-size: 0.85rem;
  color: var(--txt-muted);
  margin-top: 2px;
}

.hero-visual-badge {
  background: var(--bg-O);
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  box-shadow: 0 4px 12px rgba(229,57,53,0.4);
}

.hero-visual-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  font-size: 0.875rem;
  color: var(--txt-secondary);
}

.hero-visual-row:not(:last-child) {
  border-bottom: 1px solid var(--border-subtle);
}

.hero-visual-icon {
  width: 32px; height: 32px;
  background: var(--border-subtle);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.hero-visual-available {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(34,197,94,0.1);
  color: var(--clr-accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-full);
  margin-top: var(--sp-5);
}

.hero-visual-available-dot {
  width: 6px; height: 6px;
  background: var(--clr-accent);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

/* ── Floating Cards ── */
.hero-float-card {
  position: absolute;
  background: var(--clr-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--txt-secondary);
  white-space: nowrap;
  animation: floatCard 4s ease-in-out infinite;
}

.hero-float-card--1 {
  top: -20px; left: -30px;
  animation-delay: 0s;
}
.hero-float-card--2 {
  bottom: 20px; right: -30px;
  animation-delay: -2s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.hero-float-icon { font-size: 1.2rem; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

  /* CRITICAL: Text first, Visual below on mobile */
  .hero-text  { order: 1; max-width: 100%; }
  .hero-visual { order: 2; }

  .hero-sub { max-width: 100%; margin: 0 auto var(--sp-8); }
  .hero-cta-group { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-float-card--1 { display: none; }
  .hero-float-card--2 { display: none; }
}

@media (max-width: 640px) {
  .hero { min-height: auto; padding-bottom: var(--sp-10); }
  .hero-headline { font-size: 2.25rem; }
  .hero-stats { gap: var(--sp-5); flex-wrap: wrap; }
  .hero-visual-card { padding: var(--sp-6); }
}