/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */

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

/* Background orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0;
  animation: orb-drift 12s ease-in-out infinite, fade-up 1s ease forwards;
}

.hero-orb--1 {
  width: 600px;
  height: 600px;
  background: rgba(30, 126, 232, 0.15);
  top: -10%;
  right: -5%;
  animation-duration: 12s, 1s;
}

.hero-orb--2 {
  width: 400px;
  height: 400px;
  background: rgba(125, 214, 245, 0.1);
  bottom: -5%;
  left: -5%;
  animation-duration: 16s, 1s;
  animation-delay: 0s, 200ms;
}

.hero .container {
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  gap: var(--space-16);
  position: relative;
  z-index: 1;
}

/* Hero text */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero-text h1 {
  font-size: var(--text-6xl);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.hero-subheadline {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 480px;
}

/* Hero App Store badge */
.hero-cta-row {
  margin-top: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.hero-badge-link {
  display: inline-flex;
  align-items: center;
  transition: opacity var(--duration-base) var(--ease-hover),
              transform var(--duration-base) var(--ease-hover);
}

.hero-badge-link:hover {
  opacity: 0.85;
  transform: scale(1.03) translateY(-1px);
}

.hero-app-store-badge {
  display: block;
  height: 56px;
  width: auto;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.hero-stars {
  color: #FBBF24;
  letter-spacing: 2px;
}

/* Hero mockup */
.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup .screenshot-placeholder {
  animation: float 4s ease-in-out infinite;
  box-shadow: 0 32px 80px rgba(30, 126, 232, 0.2), 0 0 0 1px rgba(255,255,255,0.06);
}

/* Hero animations */
.hero-text .eyebrow      { animation: fade-up 700ms var(--ease-fluid) 0ms both; }
.hero-text h1            { animation: fade-up 700ms var(--ease-fluid) 0ms both; }
.hero-subheadline        { animation: fade-up 700ms var(--ease-fluid) 120ms both; }
.hero-cta-row            { animation: fade-up 700ms var(--ease-fluid) 240ms both; }
.hero-social-proof       { animation: fade-up 700ms var(--ease-fluid) 300ms both; }
.hero-mockup             { animation: fade-up 700ms var(--ease-fluid) 360ms both; }

/* ═══════════════════════════════════════════════════════════════
   VALUE PROPS
   ═══════════════════════════════════════════════════════════════ */

.values {
  text-align: center;
}

.values h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-12);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  text-align: left;
}

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

.value-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(125, 214, 245, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
  color: var(--color-secondary);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.value-card p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════════════ */

.features {
  text-align: center;
}

.features > .container > h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-16);
}

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

.feature-row + .feature-row {
  margin-top: var(--space-24);
}

.feature-row--reverse {
  direction: rtl;
}

.feature-row--reverse > * {
  direction: ltr;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-text .eyebrow {
  margin-bottom: 0;
}

.feature-text h3 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
}

.feature-text p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* AI row elevated treatment */
.feature-row--ai {
  position: relative;
}

.feature-row--ai::before {
  content: '';
  position: absolute;
  inset: -60px -100px;
  background: radial-gradient(ellipse at center, rgba(30, 126, 232, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.feature-row--ai .screenshot-placeholder {
  box-shadow: 0 0 60px rgba(30, 126, 232, 0.3), var(--shadow-lg);
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(30, 126, 232, 0.15);
  border: 1px solid rgba(30, 126, 232, 0.3);
  color: var(--color-secondary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  padding: 4px 12px;
  font-weight: 500;
  width: fit-content;
}

/* Integration badges */
.integration-badges {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.integration-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
}

/* ═══════════════════════════════════════════════════════════════
   COMPARISON
   ═══════════════════════════════════════════════════════════════ */

.comparison {
  background: var(--color-bg-elevated);
  text-align: center;
}

.comparison h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.comparison > .container > p {
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto var(--space-12);
}

.compare-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  text-align: center;
  vertical-align: middle;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  border-bottom: 1px solid var(--color-border);
}

.compare-table td:first-child,
.compare-table th:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--color-text);
}

.compare-table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  padding: var(--space-5) var(--space-6);
}

.compare-table th.col-mufo {
  background: var(--color-primary);
  color: #ffffff;
  text-align: center;
}

.compare-table th.col-others {
  color: var(--color-text-muted);
  font-weight: 500;
  text-align: center;
}

.compare-table td.col-mufo {
  background: rgba(30, 126, 232, 0.06);
  text-align: center;
}

.compare-table tbody tr {
  transition: background var(--duration-fast) var(--ease-hover);
}

.compare-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.compare-table tbody tr:hover td.col-mufo {
  background: rgba(30, 126, 232, 0.09);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.table-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.table-limited {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  font-style: italic;
}

.mufo-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.mufo-header img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════════════════════════ */

.cta-section {
  padding: var(--space-32) var(--space-8);
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(30, 126, 232, 0.12) 0%, var(--color-bg) 70%);
}

.cta-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin: 0 auto var(--space-6);
  animation: pulse-glow 3s ease-in-out infinite;
}

.cta-section h2 {
  font-size: var(--text-5xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.cta-section p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin: 0 auto var(--space-8);
}

.cta-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.cta-fine-print {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════
   INSTAGRAM STORY SHARE
   ═══════════════════════════════════════════════════════════════ */

.instagram-share-section {
  margin-top: var(--space-24);
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.instagram-share-heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  max-width: 540px;
  line-height: var(--leading-tight);
}

.instagram-share-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 480px;
  line-height: var(--leading-normal);
}

.instagram-share-mockup {
  margin-top: var(--space-10);
}

.screenshot-placeholder--story {
  width: 220px;
  aspect-ratio: 9 / 16;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow-lg), 0 0 48px rgba(30, 126, 232, 0.15);
}

/* ═══════════════════════════════════════════════════════════════
   FEATURE CLOUD
   ═══════════════════════════════════════════════════════════════ */

.section--elevated {
  background: var(--color-bg-elevated);
}

.section-header--center {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 500px;
  margin: var(--space-4) auto 0;
  line-height: var(--leading-normal);
}

.feature-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1;
  width: 100%;
}

.fc-tag {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  white-space: nowrap;
  cursor: default;
  transition: color var(--duration-base) var(--ease-hover),
              border-color var(--duration-base) var(--ease-hover),
              background var(--duration-base) var(--ease-hover),
              transform var(--duration-base) var(--ease-hover);
}

.fc-tag:hover {
  color: var(--color-text);
  border-color: var(--color-border-hover);
  background: var(--color-surface-hover);
  transform: scale(1.04);
}

.fc-tag--xl {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  padding: var(--space-3) var(--space-6);
}

.fc-tag--lg {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-3) var(--space-5);
}

.fc-tag--md {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-4);
}

.fc-tag--sm {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  padding: var(--space-1) var(--space-3);
}

.fc-tag--xs {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  padding: var(--space-1) var(--space-2);
}

.fc-tag--xl:hover,
.fc-tag--lg:hover {
  color: var(--color-secondary);
  border-color: rgba(125, 214, 245, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero-subheadline {
    max-width: 100%;
  }

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

  .hero-social-proof {
    justify-content: center;
  }

  .hero-mockup .screenshot-placeholder {
    width: 200px;
    overflow: hidden!important;
  }

  .hero-text h1 {
    font-size: var(--text-4xl);
  }

  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    text-align: center;
  }

  .feature-text {
    align-items: center;
  }

  .feature-visual {
    order: -1;
  }

  .feature-row > * {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: calc(var(--nav-height) + var(--space-10));
  }

  .hero .eyebrow {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: var(--text-4xl);
  }

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

  .hero-app-store-badge {
    height: 48px;
  }

  .cta-section h2 {
    font-size: var(--text-4xl);
  }

  .screenshot-placeholder {
    width: 100%;
    max-width: 260px;
  }

  .instagram-share-heading {
    font-size: var(--text-2xl);
  }

  .screenshot-placeholder--story {
    width: 180px;
  }

  .fc-tag--xl { font-size: var(--text-xl); }
  .fc-tag--lg { font-size: var(--text-lg); }
  .fc-tag--md { font-size: var(--text-sm); }
  .fc-tag--sm { font-size: var(--text-xs); }
}
