/* ============================================
   Routipia - Landing Page Styles
   ============================================ */

/* Import Inter font */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6e8efb;
  --primary-dark: #5a7af0;
  --accent: #a777e3;
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-200: #c7d2fe;
  --primary-600: #4f46e5;
  --text-900: #111827;
  --text-700: #374151;
  --text-500: #6b7280;
  --text-400: #9ca3af;
  --text-300: #d1d5db;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-900: #111827;
  --white: #ffffff;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --card-shadow-hover:
    0 4px 6px rgba(0, 0, 0, 0.04), 0 10px 15px rgba(0, 0, 0, 0.06);
  --card-shadow-lg:
    0 10px 25px rgba(0, 0, 0, 0.04), 0 20px 40px rgba(0, 0, 0, 0.06);
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--text-900);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

::selection {
  background: var(--primary-200);
  color: #312e81;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== Utility ===== */
.container-app {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-app {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-app {
    padding: 0 2rem;
  }
}

.gradient-primary {
  background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-balance {
  text-wrap: balance;
}

.hidden {
  display: none !important;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 640px) {
  .header-inner {
    height: 80px;
  }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-900);
}

.logo-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
}

.logo-text {
  transition: color 0.2s;
}

.logo-link:hover .logo-text {
  color: var(--primary);
}

/* Desktop nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-500);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-900);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .header-actions {
    display: flex;
  }
}

/* Language selector */
.lang-selector {
  position: relative;
}

.lang-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-700);
  background: var(--gray-100);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.lang-button:hover {
  background: var(--gray-200);
}

.lang-button svg {
  width: 14px;
  height: 14px;
  color: var(--text-400);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--card-shadow-lg);
  border: 1px solid var(--gray-100);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 60;
}

.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-700);
  transition: all 0.2s;
}

.lang-option:hover {
  background: var(--gray-50);
  color: var(--text-900);
}

.lang-option.active {
  color: var(--primary-600);
  background: var(--primary-50);
}

/* Download button (header) */
.btn-download-sm {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.btn-download-sm:hover {
  opacity: 0.9;
  box-shadow: 0 4px 6px rgba(110, 142, 251, 0.3);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  color: var(--text-500);
  transition: all 0.2s;
}

.mobile-menu-btn:hover {
  background: var(--gray-100);
  color: var(--text-900);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn svg {
  width: 20px;
  height: 20px;
}

/* Mobile menu */
.mobile-menu {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
  display: none;
  overflow: hidden;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-inner {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-500);
  transition: all 0.2s;
}

.mobile-nav-link:hover {
  background: var(--gray-50);
  color: var(--text-900);
}

.mobile-menu-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin-top: 4px;
}

.mobile-menu-footer .btn-download-sm {
  flex: 1;
  justify-content: center;
  text-align: center;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(238, 242, 255, 0.5),
    var(--white) 60%,
    var(--white)
  );
  pointer-events: none;
}

.hero-decoration {
  position: absolute;
  border-radius: 9999px;
  filter: blur(48px);
  pointer-events: none;
}

.hero-decoration-1 {
  top: 25%;
  left: 25%;
  width: 18rem;
  height: 18rem;
  background: rgba(199, 210, 254, 0.3);
}

.hero-decoration-2 {
  bottom: 25%;
  right: 25%;
  width: 24rem;
  height: 24rem;
  background: rgba(216, 180, 254, 0.3);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    #6e8efb 1px,
    transparent 0
  );
  background-size: 40px 40px;
  opacity: 0.03;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

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

@media (min-width: 1024px) {
  .hero-text {
    text-align: left;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  margin-bottom: 24px;
}

.badge svg {
  width: 14px;
  height: 14px;
  color: var(--primary-600);
}

.badge span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-600);
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-900);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

@media (min-width: 1280px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  margin-top: 24px;
  font-size: 1.125rem;
  color: var(--text-500);
  line-height: 1.625;
  max-width: 32rem;
}

@media (min-width: 1024px) {
  .hero-subtitle {
    margin-left: 0;
    margin-right: auto;
  }
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

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

@media (min-width: 1024px) {
  .hero-cta {
    justify-content: flex-start;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
  box-shadow: 0 4px 6px rgba(110, 142, 251, 0.25);
  transition: all 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 8px 12px rgba(110, 142, 251, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-700);
  background: var(--gray-100);
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--gray-200);
  transform: translateY(-2px);
}

.btn-secondary svg {
  width: 16px;
  height: 16px;
  transform: rotate(-90deg);
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .phone-mockup {
    max-width: 340px;
  }
}

.phone-frame {
  position: relative;
  background: var(--white);
  border-radius: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 6px solid var(--text-900);
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 128px;
  height: 24px;
  background: var(--text-900);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.phone-screen {
  background: var(--gray-50);
  padding: 32px 16px 16px;
}

.phone-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 20px;
}

.phone-app-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-app-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.75rem;
  background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
}

.phone-app-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.phone-avatar {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: var(--gray-200);
}

.phone-search {
  background: var(--white);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--gray-100);
  margin-bottom: 16px;
  font-size: 0.75rem;
  color: var(--text-400);
}

.phone-routine-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-routine-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--gray-100);
  transition: box-shadow 0.2s;
  cursor: pointer;
}

.phone-routine-card:hover {
  box-shadow: var(--card-shadow-hover);
}

.phone-routine-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.phone-routine-icon.blue {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}
.phone-routine-icon.purple {
  background: linear-gradient(135deg, #c084fc, #8b5cf6);
}
.phone-routine-icon.green {
  background: linear-gradient(135deg, #4ade80, #22c55e);
}
.phone-routine-icon.orange {
  background: linear-gradient(135deg, #fb923c, #f97316);
}

.phone-routine-info {
  flex: 1;
  min-width: 0;
}

.phone-routine-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-routine-category {
  font-size: 0.75rem;
  color: var(--text-400);
}

.phone-routine-likes {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-400);
}

.phone-routine-likes svg {
  width: 12px;
  height: 12px;
  color: #facc15;
}

.phone-tabs {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.phone-tab {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-400);
}

.phone-tab.active {
  color: var(--primary-600);
}

.phone-glow {
  position: absolute;
  inset: -16px;
  background: linear-gradient(
    135deg,
    rgba(110, 142, 251, 0.2),
    rgba(167, 119, 227, 0.2)
  );
  border-radius: 3rem;
  filter: blur(32px);
  z-index: -1;
}

/* ===== Social Proof ===== */
.social-proof {
  padding: 4rem 0;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

@media (min-width: 640px) {
  .social-proof {
    padding: 5rem 0;
  }
}

.social-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .social-proof-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
}

.stat-item {
  text-align: center;
}

.stat-icon {
  font-size: 1.875rem;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-900);
  margin-bottom: 4px;
}

@media (min-width: 640px) {
  .stat-value {
    font-size: 1.875rem;
  }
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-500);
}

/* ===== Section common ===== */
.section {
  padding: 5rem 0;
}

@media (min-width: 640px) {
  .section {
    padding: 7rem 0;
  }
}

.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-900);
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--text-500);
}

.section.alt-bg {
  background: rgba(249, 250, 251, 0.5);
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--card-shadow);
  transition: all 0.3s;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary-600);
}

.feature-icon.blue {
  background: #eff6ff;
}
.feature-icon.purple {
  background: #f5f3ff;
}
.feature-icon.green {
  background: #f0fdf4;
}
.feature-icon.orange {
  background: #fff7ed;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-900);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-500);
  line-height: 1.625;
}

.feature-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(238, 242, 255, 0),
    rgba(238, 242, 255, 0) 0%,
    rgba(238, 242, 255, 0)
  );
  transition: all 0.5s;
  pointer-events: none;
}

.feature-card:hover .feature-hover-overlay {
  background: linear-gradient(
    to bottom right,
    rgba(238, 242, 255, 0.3),
    rgba(238, 242, 255, 0.1),
    rgba(238, 242, 255, 0)
  );
}

/* ===== Explore / Routine Cards ===== */
.routines-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .routines-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .routines-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.routine-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--card-shadow);
  transition: all 0.3s;
}

.routine-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.routine-card-header {
  height: 112px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
}

.routine-card-header .routine-emoji {
  font-size: 2.25rem;
}

.routine-card-header.blue {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}
.routine-card-header.purple {
  background: linear-gradient(135deg, #c084fc, #7c3aed);
}
.routine-card-header.cyan {
  background: linear-gradient(135deg, #22d3ee, #0891b2);
}
.routine-card-header.green {
  background: linear-gradient(135deg, #4ade80, #16a34a);
}
.routine-card-header.amber {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}
.routine-card-header.orange {
  background: linear-gradient(135deg, #fb923c, #ea580c);
}

.routine-card-body {
  padding: 20px;
}

.routine-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-900);
  transition: color 0.2s;
}

.routine-card:hover .routine-card-title {
  color: var(--primary-600);
}

.routine-category-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-600);
  background: var(--primary-50);
}

.routine-card-meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-400);
}

.routine-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.routine-card-meta svg {
  width: 14px;
  height: 14px;
}

.view-all {
  text-align: center;
  margin-top: 40px;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-600);
  transition: color 0.2s;
}

.view-all-link:hover {
  color: var(--primary-dark);
}

.view-all-link svg {
  width: 16px;
  height: 16px;
}

/* ===== Categories ===== */
.categories-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-700);
  box-shadow: var(--card-shadow);
  transition: all 0.2s;
}

.category-chip:hover {
  background: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary-600);
  box-shadow: var(--card-shadow-hover);
}

.category-chip .category-icon {
  font-size: 1.125rem;
}

/* ===== Community ===== */
.community-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .community-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.community-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  margin-bottom: 24px;
}

.community-badge svg {
  width: 14px;
  height: 14px;
  color: var(--primary-600);
}

.community-badge span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-600);
}

.community-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-900);
  line-height: 1.25;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .community-title {
    font-size: 2.25rem;
  }
}

.community-subtitle {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--text-500);
  max-width: 28rem;
}

.community-members {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.avatar-stack {
  display: flex;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  margin-left: -8px;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar-1 {
  background: linear-gradient(135deg, #6e8efb, #a777e3);
}
.avatar-2 {
  background: linear-gradient(135deg, #f472b6, #fb7185);
}
.avatar-3 {
  background: linear-gradient(135deg, #34d399, #22d3ee);
}
.avatar-4 {
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

.members-info {
  font-size: 0.875rem;
  color: var(--text-500);
}

.members-info strong {
  color: var(--text-900);
}

/* Trending box */
.trending-box {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
}

@media (min-width: 640px) {
  .trending-box {
    padding: 2rem;
  }
}

.trending-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.trending-header svg {
  width: 18px;
  height: 18px;
  color: var(--primary-600);
}

.trending-header h3 {
  font-weight: 600;
  color: var(--text-900);
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.trending-item:hover {
  background: var(--primary-50);
  border-color: var(--primary-100);
}

.trending-emoji {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.trending-info {
  flex: 1;
}

.trending-hashtag {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-900);
}

.trending-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-400);
  margin-top: 2px;
}

.trending-meta svg {
  width: 12px;
  height: 12px;
}

.trending-follow {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-600);
  transition: color 0.2s;
}

.trending-follow:hover {
  color: var(--primary-dark);
}

/* ===== Final CTA ===== */
.final-cta {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background: linear-gradient(135deg, #4f46e5, #4338ca 50%, #6d28d9);
}

@media (min-width: 640px) {
  .final-cta {
    padding: 8rem 0;
  }
}

.cta-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-circle-1,
.cta-circle-2 {
  position: absolute;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(48px);
}

.cta-circle-1 {
  top: 0;
  right: 0;
  width: 24rem;
  height: 24rem;
  transform: translate(50%, -50%);
}

.cta-circle-2 {
  bottom: 0;
  left: 0;
  width: 16rem;
  height: 16rem;
  transform: translate(-50%, 50%);
}

.cta-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.cta-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .cta-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .cta-title {
    font-size: 3rem;
  }
}

.cta-subtitle {
  margin: 16px auto 0;
  font-size: 1.125rem;
  color: rgba(224, 231, 255, 0.9);
  max-width: 36rem;
}

.cta-buttons {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s;
}

.store-btn-light {
  background: var(--white);
  color: var(--text-900);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.store-btn-light:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.15);
}

.store-btn-glass {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.store-btn-glass:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.store-btn svg {
  width: 22px;
  height: 22px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}

.footer-main {
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
}

.footer-brand {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 1;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-900);
}

.footer-description {
  font-size: 0.875rem;
  color: var(--text-500);
  line-height: 1.625;
  max-width: 20rem;
}

.footer-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-900);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-500);
  transition: color 0.2s;
  cursor: pointer;
}

.footer-link:hover {
  color: var(--text-900);
}

.footer-bottom {
  padding: 32px 0;
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.copyright {
  font-size: 0.875rem;
  color: var(--text-400);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.social-link {
  color: var(--text-400);
  transition: color 0.2s;
  display: flex;
}

.social-link:hover {
  color: var(--text-600);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* ===== Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-left,
  .fade-in-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Responsive helpers ===== */
@media (max-width: 767px) {
  .desktop-nav,
  .header-actions {
    display: none;
  }
}
