/**
 * Hero Section - Premium Edition
 * 
 * Design Philosophy: Apple meets Stripe
 * - MASSIVE typography that commands attention
 * - Generous whitespace (let it breathe)
 * - Subtle, purposeful animation (not gimmicky)
 * - Bold color confidence
 * - Every pixel intentional
 */

/* Import design tokens */
@import '../_tokens.css';

/* ============================================
   RESET LINKS IN HERO
   ============================================ */

.hero-premium a {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   HERO CONTAINER
   Full viewport, stark and confident
   ============================================ */

.hero-premium {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport for mobile */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Don't center - content can be tall */
  background: var(--color-bg-primary); /* Pure, clean - not muddy */
  overflow: visible;
  padding: 100px var(--space-6) var(--space-16);
}

@media (min-width: 768px) {
  .hero-premium {
    padding: var(--space-32) var(--space-12);
  }
}

/* ============================================
   SUBTLE BACKGROUND
   Apple-style soft gradient, not orbs
   ============================================ */

.hero-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 100%;
  background: radial-gradient(
    ellipse 50% 30% at 50% 0%,
    rgba(74, 103, 65, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* ============================================
   HERO CONTENT
   Centered, massive whitespace
   ============================================ */

.hero-premium__content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1000px;
  width: 100%;
}

/* ============================================
   EYEBROW - Subtle, not shouty
   ============================================ */

.hero-premium__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ferni);
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0, 0, 0.2, 1) 0.1s forwards;
}

/* ============================================
   HEADLINE - Apple-scale massive
   ============================================ */

.hero-premium__headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 11vw, 120px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--color-bg-dark); /* Apple's signature dark */
  margin: 0 auto var(--space-8);
  max-width: 12ch; /* Force it to wrap beautifully */
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0, 0, 0.2, 1) 0.2s forwards;
}

.hero-premium__headline-accent {
  display: block;
  color: var(--color-ferni);
  /* No gradient - solid color is more confident */
}

/* ============================================
   SUBHEADLINE - Stripe-style clarity
   ============================================ */

.hero-premium__subhead {
  font-family: var(--font-body);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 400;
  line-height: 1.5;
  color: #6E6E73; /* Apple's secondary gray */
  max-width: 560px;
  margin: 0 auto var(--space-12);
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0, 0, 0.2, 1) 0.3s forwards;
}

/* ============================================
   CTA GROUP - Clean, high-impact
   ============================================ */

.hero-premium__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-16);
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0, 0, 0.2, 1) 0.4s forwards;
}

@media (min-width: 640px) {
  .hero-premium__cta {
    flex-direction: row;
    justify-content: center;
  }
}

/* Primary CTA - Bold, confident */
.hero-premium__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-ferni);
  color: var(--color-text-inverse);
  padding: 18px 36px;
  border-radius: var(--radius-full); /* Apple's pill radius */
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none; /* Remove link underline */
}

.hero-premium__btn-primary:hover {
  background: var(--color-ferni-secondary);
  transform: scale(1.02);
}

.hero-premium__btn-primary:active {
  transform: scale(0.98);
}

.hero-premium__btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.hero-premium__btn-primary:hover svg {
  transform: translateX(3px);
}

/* Secondary CTA - Phone number, refined */
.hero-premium__btn-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 18px 32px;
  background: transparent;
  border: 1.5px solid #D1D1D6;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-bg-dark);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none; /* Remove link underline */
}

.hero-premium__btn-phone:hover {
  border-color: var(--color-ferni);
  background: rgba(74, 103, 65, 0.04);
}

.hero-premium__btn-phone svg {
  width: 18px;
  height: 18px;
  color: var(--color-ferni);
}

/* Trust row - inline social proof */
.hero-premium__trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: #6E6E73;
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0, 0, 0.2, 1) 0.5s forwards;
}

.hero-premium__trust-item strong {
  font-weight: 600;
  color: var(--color-bg-dark);
}

.hero-premium__trust-divider {
  color: #D1D1D6;
}

/* ============================================
   DEMO SECTION - Premium product preview
   Not a chat bubble - a sophisticated preview
   ============================================ */

.hero-premium__demo {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0, 0, 0.2, 1) 0.5s forwards;
}

/* Demo input - Apple search bar style */
.hero-premium__input-wrapper {
  position: relative;
  background: var(--color-text-inverse);
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.hero-premium__input-wrapper:focus-within {
  border-color: var(--color-ferni);
  box-shadow: 
    0 0 0 4px rgba(74, 103, 65, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-premium__input {
  width: 100%;
  padding: 20px 60px 20px 24px;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-bg-dark);
  outline: none;
}

.hero-premium__input::placeholder {
  color: #AEAEB2;
}

.hero-premium__mic-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-ferni);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.hero-premium__mic-btn:hover {
  background: var(--color-ferni-secondary);
}

.hero-premium__mic-btn svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-inverse);
}

/* Quick prompts - Stripe-style chips */
.hero-premium__prompts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.hero-premium__prompt {
  padding: 10px 16px;
  background: var(--color-bg-secondary);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: #6E6E73;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-premium__prompt:hover {
  background: var(--color-border-medium);
  color: var(--color-bg-dark);
}

/* ============================================
   RESPONSE PREVIEW - Premium, not casual
   ============================================ */

.hero-premium__response {
  margin-top: var(--space-6);
  padding: var(--space-6);
  background: var(--color-text-inverse);
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-lg);
  text-align: left;
  /* Start hidden, JS will show */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Debug: Force visible when has content */
.hero-premium__response:has(.hero-premium__typing),
.hero-premium__response.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-premium__response.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-premium__response-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.hero-premium__response-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-ferni), var(--color-ferni-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-2xs);
  font-weight: 700;
  color: var(--color-text-inverse);
  letter-spacing: 0.02em;
}

.hero-premium__response-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-bg-dark);
}

.hero-premium__response-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: #3A3A3C;
}

/* Typing indicator */
.hero-premium__typing {
  display: flex;
  gap: 4px;
  padding: var(--space-2) 0;
}

.hero-premium__typing span {
  width: 6px;
  height: 6px;
  background: #AEAEB2;
  border-radius: 50%;
  animation: typingDot 1.4s ease-in-out infinite;
}

.hero-premium__typing span:nth-child(2) { animation-delay: 0.2s; }
.hero-premium__typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* ============================================
   SOCIAL PROOF - Stripe-style metrics
   ============================================ */

.hero-premium__proof {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-border-medium);
  margin-top: var(--space-16);
  /* Force visible for debugging */
  opacity: 1 !important;
}

@media (max-width: 640px) {
  .hero-premium__proof {
    gap: var(--space-8);
  }
}

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

.hero-premium__stat-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  color: var(--color-bg-dark);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.hero-premium__stat-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: #6E6E73;
  letter-spacing: 0.01em;
}

/* ============================================
   SCROLL INDICATOR - Minimal, Apple-style
   ============================================ */

.hero-premium__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards, scrollHint 2s ease-in-out 2s infinite;
}

.hero-premium__scroll-text {
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #AEAEB2;
}

.hero-premium__scroll-icon {
  width: 24px;
  height: 38px;
  border: 2px solid #D1D1D6;
  border-radius: var(--radius-md);
  position: relative;
}

.hero-premium__scroll-icon::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: #AEAEB2;
  border-radius: var(--radius-xs);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { top: 8px; opacity: 1; }
  50% { top: 18px; opacity: 0.3; }
}

@keyframes scrollHint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(4px); }
}

@media (max-width: 768px) {
  .hero-premium__scroll {
    display: none;
  }
}

/* ============================================
   ANIMATIONS - Subtle, Apple-quality
   ============================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .hero-premium__eyebrow,
  .hero-premium__headline,
  .hero-premium__subhead,
  .hero-premium__cta,
  .hero-premium__demo,
  .hero-premium__proof,
  .hero-premium__scroll {
    opacity: 1;
    animation: none;
    transform: none;
  }
  
  .hero-premium__scroll-icon::before,
  .hero-premium__typing span {
    animation: none;
  }
}

