/* ============================================================
   Focalizee — Landing Page Styles
   ============================================================ */

/* ════════════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  padding-top: var(--navbar-height);
  position: relative;
  overflow: hidden;
}

/* Background decorative blobs */
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: blob-float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 125, 50, 0.08) 0%, transparent 70%);
  bottom: 50px;
  left: -80px;
  animation: blob-float 10s ease-in-out infinite reverse;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -20px) scale(1.05); }
  66%       { transform: translate(-10px, 15px) scale(0.97); }
}

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

/* Content */
.hero__content {}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: var(--md-primary-container);
  color: var(--md-primary-dark);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
  animation: fade-slide-up 0.6s ease both;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--md-on-surface);
  margin-bottom: var(--space-5);
  animation: fade-slide-up 0.6s 0.1s ease both;
}

.hero__title span {
  background: var(--gradient-primary-soft);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--md-on-surface-variant);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 520px;
  animation: fade-slide-up 0.6s 0.2s ease both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  animation: fade-slide-up 0.6s 0.3s ease both;
}

.hero__store-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
  animation: fade-slide-up 0.6s 0.4s ease both;
}

.hero__store-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero__soon-label {
  font-size: var(--text-xs);
  color: var(--md-outline);
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Visual */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: var(--space-4);
  animation: fade-slide-up 0.8s 0.2s ease both;
  overflow: visible;
  padding-bottom: var(--space-8);
}

/* Device mockup */
.phone-mockup {
  position: relative;
  display: inline-block;
}

.phone-mockup__frame {
  width: 220px;
  background-color: #1A1A1A;
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    var(--elevation-5),
    0 40px 80px rgba(0,0,0,0.25);
}

.phone-mockup__screen {
  border-radius: 36px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
  background-color: #F5F5F5;
}

.phone-mockup__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-mockup--main {
  transform: translateY(0px);
  animation: phone-float 5s ease-in-out infinite;
  z-index: 2;
}

.phone-mockup--secondary {
  transform: scale(0.88) translateY(30px);
  filter: brightness(0.9);
  z-index: 1;
}

.phone-mockup--tertiary {
  transform: scale(0.78) translateY(60px);
  filter: brightness(0.75);
  z-index: 0;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

@keyframes fade-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════
   FEATURES SECTION
   ════════════════════════════════════════════════════════════ */
.features {}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-card__screenshot {
  margin-top: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 9/18;
  background-color: var(--md-surface-container);
  box-shadow: var(--elevation-2);
  border: 1px solid var(--md-outline-variant);
  max-height: 220px;
}

.feature-card__screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition-slow);
}

.feature-card:hover .feature-card__screenshot img {
  transform: scale(1.05);
}

/* ════════════════════════════════════════════════════════════
   HOW IT WORKS SECTION
   ════════════════════════════════════════════════════════════ */
.how-it-works {
  background-color: var(--md-surface-variant);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  position: relative;
}

/* Connector line between steps */
.steps::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.66% + 44px);
  right: calc(16.66% + 44px);
  height: 2px;
  background: linear-gradient(90deg, var(--md-primary-container), var(--md-primary), var(--md-primary-container));
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--gradient-primary-soft);
  color: var(--md-on-primary);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.35);
  transition: transform var(--transition-spring);
}

.step:hover .step__number {
  transform: scale(1.1);
}

.step__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--md-on-surface);
}

.step__description {
  color: var(--md-on-surface-variant);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════
   PREMIUM SECTION
   ════════════════════════════════════════════════════════════ */
.premium {
  background-color: var(--md-surface);
}

.premium__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.premium__card {
  position: relative;
  background: var(--gradient-card);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--elevation-4);
  overflow: hidden;
}

/* Animated gradient border */
.premium__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-2xl);
  padding: 2px;
  background: var(--gradient-primary-soft);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-rotate 3s linear infinite;
  z-index: 0;
}

/* Glow behind card */
.premium__card::after {
  content: '';
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at 50% 50%, rgba(76,175,80,0.15), transparent 70%);
  z-index: -1;
}

@keyframes border-rotate {
  0%   { --angle: 0deg; }
  100% { --angle: 360deg; }
}

.premium__card-content {
  position: relative;
  z-index: 1;
}

.premium__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--gradient-primary-soft);
  color: var(--md-on-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}

.premium__price {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
}

.premium__price-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--md-primary-dark);
  line-height: 1.2;
}

.premium__price-subtitle {
  font-size: var(--text-sm);
  color: var(--md-on-surface-variant);
  font-weight: 500;
}

.premium__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.premium__feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--md-on-surface);
}

.premium__feature-item::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background-color: var(--md-primary-container);
  color: var(--md-primary-dark);
  font-size: var(--text-xs);
  font-weight: 700;
}

.premium__cta {
  width: 100%;
  justify-content: center;
  font-size: var(--text-base);
  padding-block: var(--space-4);
}

/* Right side content */
.premium__content {}

.premium__tagline {
  font-size: var(--text-sm);
  color: var(--md-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.premium__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--md-on-surface);
  margin-bottom: var(--space-5);
}

.premium__description {
  font-size: var(--text-lg);
  color: var(--md-on-surface-variant);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.premium__highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.premium__highlight {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.premium__highlight-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.premium__highlight-text {}

.premium__highlight-title {
  font-weight: 600;
  color: var(--md-on-surface);
  margin-bottom: var(--space-1);
}

.premium__highlight-desc {
  font-size: var(--text-sm);
  color: var(--md-on-surface-variant);
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════
   DOWNLOAD / CTA SECTION
   ════════════════════════════════════════════════════════════ */
.download {
  background: var(--gradient-primary);
  color: var(--md-on-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
}

.download__inner {
  position: relative;
  z-index: 1;
}

.download__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

.download__subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-10);
  max-width: 500px;
  margin-inline: auto;
  line-height: 1.7;
}

.download__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.download__coming-soon {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
}

/* White variant for download section buttons */
.btn--store-white {
  background-color: #FFFFFF;
  color: var(--md-on-surface);
}

.btn--store-white:hover {
  color: var(--md-on-surface);
  background-color: rgba(255,255,255,0.9);
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-12);
  }

  .hero__subtitle { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__store-group { justify-content: center; }
  .hero__soon-label { justify-content: center; }

  .hero__visual {
    order: -1;
    gap: var(--space-4);
  }

  .phone-mockup__frame { width: 180px; }

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

  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }

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

@media (max-width: 768px) {
  .hero__visual { gap: var(--space-2); }
  .phone-mockup--secondary,
  .phone-mockup--tertiary { display: none; }
  .phone-mockup__frame { width: 200px; }
  .phone-mockup--main { animation-play-state: paused; }

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

  .premium__card { padding: var(--space-8); }
}
