/* Global styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-family-body, system-ui, -apple-system, sans-serif);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 24px;
}

.badge-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 14px;
  font-weight: 500;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background-color: var(--secondary);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.highlight {
  color: var(--primary);
}

button,
.btn {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity 0.2s;
  white-space: nowrap;
}

button:hover,
.btn:hover {
  opacity: 0.9;
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0;
  transition: background-color 0.2s ease, backdrop-filter 0.2s ease,
    box-shadow 0.2s ease, color 0.2s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 248, 247, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-foreground);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  gap: 32px;
  color: var(--primary-foreground);
  font-weight: 500;
  font-size: 15px;
}

.navbar-nav a {
  text-decoration: none;
  color: inherit;
  opacity: 0.85;
}

.navbar-nav a:hover {
  opacity: 1;
}

.navbar-nav a.active {
  opacity: 1;
  font-weight: 700;
}

.navbar-btn {
  background-color: var(--primary-foreground);
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 999px;
}

/* Navbar color swap when scrolled (light background) */
.navbar.scrolled .navbar-logo {
  color: var(--foreground);
}

.navbar.scrolled .navbar-nav {
  color: var(--foreground);
}

.navbar.scrolled .navbar-btn {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Utility for anchor scroll offsets under fixed navbar */
.scroll-target {
  scroll-margin-top: 120px;
}

/* Hero */
.hero {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 160px 0 160px;
  position: relative;
  overflow: hidden;
}

.hero-content-wrapper {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-text {
  flex: 1;
  z-index: 2;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  margin: 24px 0;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-store {
  background-color: var(--primary-foreground);
  color: var(--primary);
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-outline-white {
  background-color: transparent;
  color: var(--primary-foreground);
  border: 2px solid var(--primary-foreground);
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-mockup {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 320px;
  height: 650px;
  background-color: #000;
  border-radius: 48px;
  border: 12px solid #1a1a1a;
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.2);
}

.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
}

.reel-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.reel-user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.reel-caption {
  font-size: 14px;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.reel-sidebar {
  position: absolute;
  bottom: 32px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  color: #fff;
}

.reel-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.reel-action-btn {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-action span {
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.floating-avatar {
  position: absolute;
  left: -40px;
  top: 120px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.floating-pill {
  position: absolute;
  right: -60px;
  top: 240px;
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-stats {
  position: relative;
  z-index: 2;
  margin-top: 64px;
  display: flex;
  gap: 64px;
}

.stat-item h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 14px;
  opacity: 0.8;
}

/* Sections shared */
.section-header {
  margin-bottom: 64px;
  text-align: center;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--foreground);
  margin: 24px 0;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 18px;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Features */
.features-section {
  padding: 140px 0 100px;
  text-align: center;
  background-color: var(--background);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: left;
}

.feature-card {
  padding: 40px 32px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background-color: var(--card);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--foreground);
}

.feature-card p {
  color: var(--muted-foreground);
  line-height: 1.6;
  font-size: 15px;
}

/* Discover */
.discover-section {
  padding: 60px 0;
  background-color: var(--background);
}

.discover-container {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: center;
  padding: 80px;
}

.discover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.discover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.5) 60%,
    transparent 100%
  );
  z-index: 2;
}

.discover-content {
  position: relative;
  z-index: 3;
  display: flex;
  width: 100%;
  gap: 64px;
}

.discover-text {
  flex: 1;
  max-width: 520px;
  color: #fff;
}

.discover-text h2 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.discover-text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hashtag-pill {
  padding: 8px 20px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.discover-gallery {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-card {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  background-color: #000;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gc-1 {
  top: -20px;
  right: 140px;
  width: 150px;
  height: 210px;
  transform: rotate(-6deg);
  z-index: 2;
}

.gc-2 {
  top: 20px;
  right: -10px;
  width: 170px;
  height: 240px;
  transform: rotate(4deg);
  z-index: 3;
}

.gc-3 {
  bottom: -30px;
  right: 120px;
  width: 160px;
  height: 220px;
  transform: rotate(-2deg);
  z-index: 4;
}

.gc-4 {
  bottom: -10px;
  right: -50px;
  width: 140px;
  height: 200px;
  transform: rotate(8deg);
  z-index: 1;
}

/* Steps (How it works) */
.steps-section {
  padding: 140px 0;
  background: linear-gradient(to bottom, var(--background), var(--secondary));
  text-align: center;
}

.steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 80px;
}

.steps-line {
  position: absolute;
  top: 64px;
  left: 12%;
  right: 12%;
  height: 1px;
  background-color: var(--border);
  z-index: 1;
}

.step-card {
  position: relative;
  z-index: 2;
  padding: 48px 32px 32px;
  background-color: var(--card);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.02);
  text-align: left;
}

.step-number {
  position: absolute;
  top: -20px;
  left: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background-color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--foreground);
}

.step-card p {
  color: var(--muted-foreground);
  line-height: 1.6;
  font-size: 15px;
}

/* Showcase (app screens) */
.showcase-section {
  padding: 140px 0;
  background-color: var(--background);
}

.showcase-wrapper {
  display: flex;
  align-items: center;
  gap: 80px;
}

.showcase-phones {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 640px;
}

.showcase-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background-color: var(--primary);
  filter: blur(140px);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.phone-small {
  position: absolute;
  z-index: 1;
  opacity: 0.6;
  width: 260px;
  height: 520px;
  border-radius: 36px;
  border: 8px solid var(--border);
  background-color: var(--card);
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.phone-small.left {
  left: 5%;
  transform: scale(0.85);
}

.phone-small.right {
  right: 5%;
  transform: scale(0.85);
}

.phone-main {
  position: relative;
  z-index: 2;
  width: 300px;
  height: 620px;
  border-radius: 44px;
  border: 12px solid #1a1a1a;
  background-color: #000;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.15);
}

.showcase-content {
  flex: 1;
}

.nav-controls {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
}

.nav-btn.active {
  border: none;
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.progress-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  align-items: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--border);
}

.dot.active {
  width: 24px;
  border-radius: 4px;
  background-color: var(--primary);
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-list-item {
  background: transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  color: var(--muted-foreground);
}

.feature-list-item:hover {
  border-color: rgba(0, 0, 0, 0.06);
  background-color: rgba(0, 0, 0, 0.02);
  color: var(--foreground);
}

.feature-list-item.active {
  border-color: rgba(232, 59, 46, 0.3);
  background-color: rgba(232, 59, 46, 0.05);
  color: var(--primary);
  font-weight: 600;
}

/* Testimonials / Community */
.testimonials-section {
  padding: 120px 0;
  background-color: var(--background);
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
  text-align: left;
}

.testimonial-card {
  padding: 40px 32px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
  position: relative;
}

.quote-icon {
  position: absolute;
  top: -16px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stars {
  display: flex;
  gap: 4px;
  color: #fbbf24;
  margin-bottom: 24px;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 32px;
  min-height: 120px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.user-details h4 {
  font-weight: 700;
  color: var(--foreground);
  font-size: 16px;
  margin-bottom: 2px;
}

.user-handle {
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
}

.user-meta {
  color: var(--muted-foreground);
  font-size: 12px;
}

.social-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack img,
.avatar-stack .more {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--background);
  margin-left: -12px;
  object-fit: cover;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.avatar-stack .more {
  background-color: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  z-index: 10;
}

/* CTA */
.cta-section {
  background-color: var(--primary);
  padding: 140px 0;
  color: var(--primary-foreground);
  position: relative;
  overflow: hidden;
}

.cta-bg-pattern {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 75% 30%,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.cta-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 80px;
}

.cta-content {
  flex: 1;
}

.cta-content h2 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 480px;
}

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-bottom: 48px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  background-color: var(--primary-foreground);
  color: var(--foreground);
  padding: 12px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.store-btn-text-sm {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 2px;
}

.store-btn-text-lg {
  font-weight: 800;
  font-size: 16px;
}

.cta-mockup {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.cta-phone {
  width: 320px;
  height: 650px;
  background-color: #000;
  border-radius: 44px;
  border: 12px solid #1a1a1a;
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
}

.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.nav-icon {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
}

.nav-icon.active {
  background-color: white;
  border-color: white;
}

.nav-icon.circle {
  border-radius: 50%;
}

.nav-add {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), #fbbf24);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background-color: var(--background);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 80px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 24px;
}

.footer-logo-icon {
  color: var(--primary);
}

.footer-desc {
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--secondary);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-link {
  font-size: 15px;
  color: var(--muted-foreground);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 15px;
  color: var(--muted-foreground);
}

.footer-legal {
  display: flex;
  gap: 32px;
}

/* Design tokens */
:root {
  --background: #fff8f7;
  --foreground: #0b1620;
  --border: #00000014;
  --input: #ffffff;
  --primary: #e83b2e;
  --primary-foreground: #ffffff;
  --secondary: #ffd8cc;
  --secondary-foreground: #3a1e17;
  --muted: #f7f8f9;
  --muted-foreground: #7a8590;
  --success: #28c76f;
  --success-foreground: #ffffff;
  --accent: #ff7a33;
  --accent-foreground: #18120f;
  --destructive: #d6453b;
  --destructive-foreground: #ffffff;
  --warning: #ffb36b;
  --warning-foreground: #3b2b00;
  --card: #ffffff;
  --card-foreground: #0b1620;
  --sidebar: #fff3f1;
  --sidebar-foreground: #2a1a18;
  --sidebar-primary: #ffede9;
  --sidebar-primary-foreground: #2a1a18;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --font-family-body: Inter, system-ui, -apple-system, sans-serif;
}

