/* ============================================
   WedThread Landing Page — v2 (interactive)
   ============================================ */

/* --- CSS Variables --- */
:root,
[data-theme="light"] {
  --color-bg: #E1E1E1;
  --color-surface-glass: rgba(197, 197, 197, 0.60);
  --color-surface-solid: #D4D4D4;
  --color-text: #000000;
  --color-text-secondary: #7C7C7C;
  --color-text-tertiary: rgba(0, 0, 0, 0.35);
  --color-accent-start: #3A3A3C;
  --color-accent-end: #2C2C2E;
  --color-accent: #3A3A3C;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-shadow: rgba(0, 0, 0, 0.06);
  --color-shadow-elevated: rgba(0, 0, 0, 0.1);
  --color-success: #34C759;
  --glass-blur: 20px;
  --glass-border: rgba(255, 255, 255, 0.18);
  --nav-bg: rgba(225, 225, 225, 0.85);
  --glow-color: rgba(58, 58, 60, 0.15);
}

[data-theme="dark"] {
  --color-bg: #111111;
  --color-surface-glass: rgba(33, 33, 33, 0.60);
  --color-surface-solid: #222222;
  --color-text: #FFFFFF;
  --color-text-secondary: #BCBCBF;
  --color-text-tertiary: rgba(255, 255, 255, 0.35);
  --color-accent-start: #E5E5EA;
  --color-accent-end: #D1D1D6;
  --color-accent: #E5E5EA;
  --color-border: #2E2E2E;
  --color-shadow: rgba(0, 0, 0, 0.20);
  --color-shadow-elevated: rgba(0, 0, 0, 0.30);
  --color-success: #30D158;
  --glass-border: rgba(255, 255, 255, 0.06);
  --nav-bg: rgba(17, 17, 17, 0.85);
  --glow-color: rgba(229, 229, 234, 0.08);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1), color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Custom Cursor (desktop only) --- */
.cursor, .cursor-follower {
  display: none;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  mix-blend-mode: difference;
}
@media (hover: hover) and (pointer: fine) {
  body:not(.loading) .cursor {
    display: block;
    width: 8px; height: 8px;
    background: #fff;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, opacity 0.2s;
  }
  body:not(.loading) .cursor-follower {
    display: block;
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.5);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
  }
  body:not(.loading) .cursor.hovering {
    width: 48px; height: 48px;
    background: #fff;
    opacity: 0.4;
  }
  body:not(.loading) .cursor-follower.hovering {
    width: 64px; height: 64px;
    border-color: rgba(255,255,255,0.8);
  }
}

/* --- Loader --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner { text-align: center; }
.loader-icon {
  width: 48px; height: 48px;
  animation: loaderBounce 0.8s ease-in-out infinite alternate;
}
.loader-bar {
  width: 120px; height: 3px;
  background: var(--color-border);
  border-radius: 3px;
  margin-top: 20px;
  overflow: hidden;
}
.loader-fill {
  width: 0%;
  height: 100%;
  background: var(--color-accent);
  border-radius: 3px;
  animation: loaderFill 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes loaderBounce { from { transform: translateY(0); } to { transform: translateY(-12px); } }
@keyframes loaderFill { to { width: 100%; } }

/* --- Accent gradient text --- */
.accent {
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .accent {
  background: linear-gradient(135deg, #E5E5EA, #D1D1D6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--color-surface-glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 4px 12px var(--color-shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.5s ease,
              border-color 0.3s ease;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, transform 0.4s ease;
}
.nav.scrolled {}
.nav.hidden { transform: translateY(-100%); }

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 18px; z-index: 10;
}
.nav-logo-img { height: 48px; width: auto; }

.nav-links { display: flex; gap: 32px; }
.nav-link {
  font-size: 14px; font-weight: 500;
  color: var(--color-text);
  transition: color 0.3s ease;
  position: relative;
}
.nav-link-mobile-only { display: none; }
.nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 50%; width: 0; height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 2px;
}
.nav-link:hover { color: var(--color-text); }
.nav-link:hover::after { width: 100%; left: 0; }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.theme-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--color-text-secondary);
  padding: 8px; border-radius: 8px;
  transition: color 0.3s ease, background 0.3s ease, transform 0.4s ease;
  display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { color: var(--color-text); background: var(--color-border); }
.theme-toggle:active { transform: rotate(180deg); }

.theme-icon { width: 20px; height: 20px; }
[data-theme="light"] .theme-icon.sun { display: none; }
[data-theme="light"] .theme-icon.moon { display: block; }
[data-theme="dark"] .theme-icon.sun { display: block; }
[data-theme="dark"] .theme-icon.moon { display: none; }
.nav-cta {
  font-size: 14px; font-weight: 600;
  padding: 10px 24px; border-radius: 999px;
  background: var(--color-accent); color: var(--color-bg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--color-shadow-elevated);
}

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 10;
}
.nav-hamburger span {
  width: 24px; height: 2px;
  background: var(--color-text);
  transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6), opacity 0.3s ease;
  border-radius: 2px;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 24px 60px;
  position: relative; overflow: hidden;
}

/* Grid bg removed */
.hero-bg-grid { display: none; }

.hero-content {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
}

/* Text reveal animation */
.hero-headline-mobile { display: none; }

.hero-headline {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 24px;
}
.line-wrap {
  display: block; overflow: hidden;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}
.line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.line-inner.revealed { transform: translateY(0); }
.line-wrap:nth-child(2) .line-inner { transition-delay: 0.1s; }
.line-wrap:nth-child(3) .line-inner { transition-delay: 0.2s; }

.hero-sub {
  font-size: 18px; line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 520px; margin-bottom: 32px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-micro { margin-top: 20px; font-size: 13px; color: var(--color-text-tertiary); }

/* Hero visual */
.hero-visual { position: relative; }

.hero-phone-img {
  display: block;
  max-height: 580px;
  margin: 0 auto;
  transition: transform 0.1s ease;
  will-change: transform;
}

/* Floating cards */
.hero-floating-cards { position: absolute; inset: 0; pointer-events: none; }
.floating-card {
  position: absolute;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
  animation: floatCard 4s ease-in-out infinite;
}
.fc-1 { top: 30%; left: 12%; animation-delay: 0s; }
.fc-2 { top: 25%; right: 12%; animation-delay: 0.8s; }
.fc-3 { bottom: 33%; right: 12%; animation-delay: 1.6s; }
.fc-4 { bottom: 27%; left: 12%; animation-delay: 0.4s; }
.fc-5 { bottom: 13%; right: 5%; animation-delay: 1.2s; }

.fc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent);
}
.fc-dot-pink { background: #FF2D92; }
.fc-dot-red { background: #FF3B30; }
.fc-dot-teal { background: #25D2C1; }
.fc-dot-blue { background: #1877F2; }
.fc-dot-yellow { background: #FFCC00; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-text {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--color-text-tertiary);
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--color-text-tertiary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-section {
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}
.marquee-track {
  display: flex; align-items: center; gap: 32px;
  width: max-content;
  animation: marquee 25s linear infinite;
}
.marquee-reverse .marquee-track,
.marquee-track.marquee-reverse {
  animation-direction: reverse;
}
.marquee-item {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-stat {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-text-tertiary);
  flex-shrink: 0;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-stats { border-top: none; }
.marquee-stats .marquee-track { animation-direction: reverse; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; border: none;
  position: relative; overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn:hover::before { opacity: 1; }
.btn span { position: relative; z-index: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  color: var(--color-bg);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--color-shadow-elevated);
}
.btn-secondary {
  background: transparent; color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-secondary:hover {
  background: var(--color-surface-glass);
  border-color: var(--color-text-tertiary);
  transform: translateY(-3px);
}
.btn-white {
  background: #FFFFFF;
  color: #000000;
}
.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--color-shadow-elevated);
}
[data-theme="dark"] .btn-white {
  background: #FFFFFF;
  color: #000000;
}
.btn-apple-icon {
  width: 18px; height: 18px;
  vertical-align: -3px;
  margin-right: 6px;
  display: inline-block;
}
.btn-lg { padding: 18px 48px; font-size: 17px; }

/* ============================================
   SECTIONS (shared)
   ============================================ */
.section { padding: 140px 0; position: relative; }
.section-label {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--color-text-tertiary);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 24px;
}
.section-body {
  font-size: 18px; line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 640px;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.section-problem { text-align: center; }
.problem-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 60px;
}
.problem-card {
  padding: 32px 20px;
  text-align: center;
  border-radius: 20px;
}
.problem-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 12px 32px var(--color-shadow-elevated);
}
.problem-emoji { font-size: 40px; margin-bottom: 12px; }
.problem-card p {
  font-size: 15px; color: var(--color-text-secondary);
  line-height: 1.5;
}
.problem-card-answer {
  border-color: var(--color-accent);
}
.problem-card-answer .problem-emoji { filter: grayscale(1); }

.problem-summary {
  text-align: center;
  margin: 40px auto 0;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  max-width: none;
}

/* --- Problem merge animation --- */
.problem-merge-animation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
  height: 340px;
  position: relative;
  overflow: visible;
}
.merge-sources {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              margin 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              gap 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.merge-bubble {
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  will-change: transform;
  z-index: 2;
  position: relative;
  overflow: visible;
}
.merge-bubble.tapped {
  animation: bubblePress 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}
@keyframes bubblePress {
  0%   { transform: scale(1) translateY(0); }
  25%  { transform: scale(0.93) translateY(2px); }
  60%  { transform: scale(1.03) translateY(-1px); }
  100% { transform: scale(1) translateY(0); }
}
.merge-bubble-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.merge-bubble-share-icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--color-text-tertiary);
  margin-left: 4px;
  transition: opacity 0.3s ease;
}
.merge-bubble-share-icon.hidden {
  opacity: 0;
}

/* Shimmer on tap — contained inside bubble */
.merge-bubble-shimmer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.merge-bubble-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.2) 45%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.2) 55%,
    transparent 70%
  );
  transform: translateX(-100%);
  pointer-events: none;
}
.merge-bubble.shimmer .merge-bubble-shimmer::after {
  animation: bubbleShimmer 0.9s ease forwards;
}
@keyframes bubbleShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Fake cursor for merge animation */
.merge-cursor {
  position: absolute;
  width: 22px; height: 22px;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.25s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}
.merge-cursor.visible { opacity: 1; }
.merge-cursor svg { width: 100%; height: 100%; }
.merge-cursor.clicking { transform: scale(0.82); transition: transform 0.08s ease, opacity 0.25s ease; }

/* "Shared" badge that pops up */
.merge-shared-tag {
  position: absolute;
  top: -12px; right: -12px;
  background: var(--color-success);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 10px;
  opacity: 0;
  transform: scale(0.5) translateY(4px);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 4px;
}
.merge-shared-icon {
  width: 12px; height: 12px;
  flex-shrink: 0;
}
.merge-shared-tag.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.merge-target {
  padding: 24px 28px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  border: 1.5px solid var(--color-accent);
  will-change: transform, min-width;
  transition: min-width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  overflow: visible;
}
.merge-target.expanded {
  min-width: 340px;
}
.merge-target-logo {
  height: 48px; width: auto;
}
.merge-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.merge-target.expanded .merge-slots {
  max-height: 200px;
}
.merge-slot {
  height: 42px;
  border-radius: 10px;
  border: 1.5px dashed var(--color-border);
  position: relative;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps {
  display: flex; flex-direction: column;
  gap: 0; margin-top: 60px;
}
.step {
  position: relative;
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border);
}
.step:first-child { border-top: 1px solid var(--color-border); }

.step-number-big {
  font-size: clamp(60px, 8vw, 100px);
  font-weight: 900;
  color: var(--color-text-tertiary);
  opacity: 0.15;
  position: absolute;
  top: 20px; right: 20px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  user-select: none;
}

.step-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
}

.step-visual { perspective: 800px; }
.step-visual .placeholder-img {
  transition: transform 0.5s ease;
}
.step:hover .step-visual .placeholder-img {
  transform: rotateY(-5deg) scale(1.02);
}
.step-phone-img {
  max-height: 364px;
  border-radius: 16px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.step:hover .step-phone-img {
  transform: rotateY(-5deg) scale(1.02);
}

.step-title {
  font-size: 24px; font-weight: 600;
  margin-bottom: 12px;
}
.step-desc {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7; max-width: 480px;
}

.callout-box {
  margin-top: 48px;
  padding: 24px 32px;
  border-radius: 16px;
  font-size: 15px;
  color: var(--color-text-secondary);
  text-align: center;
}

/* ============================================
   BENEFITS
   ============================================ */
.section-benefits { text-align: center; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.benefit-card {
  padding: 36px 28px;
  text-align: left;
  cursor: default;
}
/* Glow effect on hover */
.benefit-card-glow {
  position: absolute; inset: 0;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), var(--glow-color) 0%, transparent 60%);
  pointer-events: none;
}
.benefit-card:hover .benefit-card-glow { opacity: 1; }
.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px var(--color-shadow-elevated);
  border-color: var(--color-text-tertiary);
}

.benefit-icon {
  width: 44px; height: 44px;
  margin-bottom: 20px;
  color: var(--color-accent);
  transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}
.benefit-card:hover .benefit-icon { transform: scale(1.15) rotate(-5deg); }
.benefit-icon svg { width: 100%; height: 100%; }
.benefit-icon-img { width: 100%; height: 100%; object-fit: contain; }
.benefit-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.benefit-card p { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; }

/* ============================================
   CAROUSEL (showcase)
   ============================================ */
.section-showcase { text-align: center; overflow: hidden; }

.carousel {
  margin-top: 60px;
  position: relative;
  padding: 0 24px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
@media (max-width: 768px) {
  .carousel { margin-top: 30px; }
  .carousel-slide:hover { transform: none; }
  .carousel-slide { cursor: pointer; }
}
.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 12px;
  padding: 20px 0;
}
.carousel-slide {
  flex-shrink: 0;
  width: calc(25% - 16px);
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.carousel-slide:hover { transform: scale(1.03); }
.carousel-phone {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--color-shadow);
  background: var(--color-surface-glass);
  border: 1px solid var(--glass-border);
}
.carousel-slide-plain .carousel-phone {
  background: none;
  box-shadow: none;
  border: none;
  border-radius: 16px;
}
.carousel-slide-plain .carousel-img {
  border-radius: 16px;
  width: 100%;
}
.carousel-slide-plain {
  width: calc(20% - 4px);
}
.carousel-img {
  width: 65%;
  display: block;
  margin: 0 auto;
}
.carousel-caption {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 12px;
  font-weight: 500;
}

.carousel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-top: 32px;
}
.carousel-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface-glass);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text);
  transition: all 0.3s ease;
}
.carousel-btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
  transform: scale(1.1);
}
.carousel-btn svg { width: 20px; height: 20px; }

.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-text-tertiary);
  border: none; cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.carousel-dot.active {
  background: var(--color-accent);
  width: 24px;
  border-radius: 4px;
}

/* ============================================
   PLACEHOLDER IMAGES
   ============================================ */
.placeholder-img {
  background: linear-gradient(135deg, var(--color-surface-solid), var(--color-surface-glass));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 9 / 16;
  border: 1px dashed var(--color-text-tertiary);
  position: relative;
  overflow: hidden;
}
.placeholder-img::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, var(--glow-color) 100%);
  animation: placeholderShimmer 3s ease-in-out infinite;
}
@keyframes placeholderShimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
.placeholder-img span {
  font-size: 13px; color: var(--color-text-tertiary);
  font-weight: 500; position: relative; z-index: 1;
}
.placeholder-phone { aspect-ratio: 9 / 14; max-height: 280px; border-radius: 16px; }
.placeholder-tall { aspect-ratio: 9 / 16; height: 420px; }

/* ============================================
   CATEGORIES
   ============================================ */
.section-categories { text-align: left; }
.categories-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.categories-left .section-title { margin-bottom: 20px; }
.categories-left .section-body { max-width: 420px; }
.section-subtitle {
  color: var(--color-text-secondary);
  font-size: 17px;
  max-width: 540px;
  margin: 16px auto 0;
  line-height: 1.6;
}
.categories-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  text-align: left;
}
.category-col {
  list-style: none;
  padding: 0;
  margin: 0;
}
.category-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
  cursor: default;
}
.category-item span {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}
.category-item:hover span {
  transform: scale(1.08) rotate(-1.5deg);
  color: #fff;
}
.category-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0);
  transition: none;
}
.category-icon.bounce-in {
  animation: categoryBounceIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.category-icon.bounce-out {
  animation: categoryBounceOut 0.35s cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes categoryBounceIn {
  0% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1.1); }
  70% { transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes categoryBounceOut {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.5); }
}

/* ============================================
   PRICING
   ============================================ */
.section-pricing { text-align: center; }
.pricing-cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; max-width: 720px; margin: 60px auto 0;
}
.pricing-card {
  padding: 44px 32px; text-align: left;
  display: flex; flex-direction: column;
  border-radius: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px var(--color-shadow-elevated);
}
.pricing-featured {
  border: 1.5px solid var(--color-accent);
}
.pricing-popular {
  position: absolute; top: -1px; right: 24px;
  background: var(--color-accent); color: var(--color-bg);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 14px; border-radius: 0 0 8px 8px;
}
.pricing-badge {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-text-tertiary); margin-bottom: 12px;
}
.pricing-featured .pricing-badge { color: var(--color-accent); }

.pricing-price {
  font-size: 52px; font-weight: 800;
  margin-bottom: 28px; letter-spacing: -0.03em;
}
.pricing-price span {
  font-size: 18px; font-weight: 500;
  color: var(--color-text-secondary);
}
.pricing-features {
  list-style: none; margin-bottom: 32px; flex-grow: 1;
}
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; font-size: 15px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}
.pricing-features li:last-child { border-bottom: none; }
.check-icon {
  width: 18px; height: 18px; flex-shrink: 0;
  color: var(--color-success);
}
.pricing-note { margin-top: 12px; font-size: 12px; color: var(--color-text-tertiary); }
.pricing-fine-print { margin-top: 32px; font-size: 13px; color: var(--color-text-tertiary); }

/* ============================================
   FAQ
   ============================================ */
.section-faq { text-align: center; }
.faq-list { max-width: 700px; margin: 48px auto 0; text-align: left; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; background: none; border: none;
  cursor: pointer; font-size: 17px; font-weight: 500;
  color: var(--color-text); font-family: inherit;
  text-align: left; gap: 16px;
  transition: color 0.3s ease;
}
.faq-question:hover { color: var(--color-text-secondary); }

/* Animated plus/minus icon */
.faq-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  position: relative;
}
.faq-icon span {
  position: absolute;
  background: var(--color-text-tertiary);
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6), opacity 0.3s ease;
}
.faq-icon span:first-child {
  width: 14px; height: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon span:last-child {
  width: 2px; height: 14px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item.open .faq-icon span:last-child {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.5s ease;
}
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 24px; }
.faq-answer p { font-size: 15px; color: var(--color-text-secondary); line-height: 1.7; }
.faq-answer a { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================
   DOWNLOAD CTA
   ============================================ */
.section-download {
  text-align: center; padding: 180px 0;
  overflow: hidden; position: relative;
}
.download-bg-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(80px, 15vw, 200px);
  font-weight: 900;
  color: var(--color-text);
  opacity: 0.03;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.download-actions { margin-top: 40px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 60px 24px 40px;
  border-top: 1px solid var(--color-border);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
}
.footer-logo-img { height: 70px; width: auto; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 14px; color: var(--color-text-secondary);
  transition: color 0.3s ease;
  position: relative;
}
.footer-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--color-text);
  transition: width 0.3s ease;
}
.footer-links a:hover { color: var(--color-text); }
.footer-links a:hover::after { width: 100%; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
}
.footer-tagline { font-size: 13px; color: var(--color-text-tertiary); }
.footer-copy { font-size: 12px; color: var(--color-text-tertiary); }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.anim-reveal {
  opacity: 0; transform: translateY(30px);
  animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.anim-delay-1 { animation-delay: 0.2s; }
.anim-delay-2 { animation-delay: 0.4s; }
.anim-delay-3 { animation-delay: 0.6s; }
@keyframes heroReveal { to { opacity: 1; transform: translateY(0); } }

.anim-up {
  opacity: 0; transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.anim-up.visible { opacity: 1; transform: translateY(0); }

/* Stagger */
.problem-cards .problem-card.anim-up:nth-child(2) { transition-delay: 0.1s; }
.problem-cards .problem-card.anim-up:nth-child(3) { transition-delay: 0.2s; }
.problem-cards .problem-card.anim-up:nth-child(4) { transition-delay: 0.3s; }

.steps .step.anim-up:nth-child(2) { transition-delay: 0.15s; }
.steps .step.anim-up:nth-child(3) { transition-delay: 0.3s; }

.benefits-grid .benefit-card.anim-up:nth-child(2) { transition-delay: 0.08s; }
.benefits-grid .benefit-card.anim-up:nth-child(3) { transition-delay: 0.16s; }
.benefits-grid .benefit-card.anim-up:nth-child(4) { transition-delay: 0.24s; }
.benefits-grid .benefit-card.anim-up:nth-child(5) { transition-delay: 0.32s; }
.benefits-grid .benefit-card.anim-up:nth-child(6) { transition-delay: 0.40s; }

.faq-list .faq-item.anim-up:nth-child(2) { transition-delay: 0.06s; }
.faq-list .faq-item.anim-up:nth-child(3) { transition-delay: 0.12s; }
.faq-list .faq-item.anim-up:nth-child(4) { transition-delay: 0.18s; }
.faq-list .faq-item.anim-up:nth-child(5) { transition-delay: 0.24s; }
.faq-list .faq-item.anim-up:nth-child(6) { transition-delay: 0.30s; }
.faq-list .faq-item.anim-up:nth-child(7) { transition-delay: 0.36s; }
.faq-list .faq-item.anim-up:nth-child(8) { transition-delay: 0.42s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-headline-mobile { display: block; order: -2; text-align: center; }
  .hero-text .hero-headline { display: none; }
  .hero-phone-img { max-height: 440px; }
  .floating-card { font-size: 11px; padding: 7px 12px; }
  .fc-1 { left: 2%; }
  .fc-2 { right: 2%; }
  .fc-3 { right: 2%; }
  .fc-4 { left: 2%; }
  .fc-5 { right: 2%; }

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

  .step-content { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .step-number-big { position: static; opacity: 0.15; margin-bottom: -20px; }
  .step-desc { margin: 0 auto; }
  .step-visual .placeholder-img { max-height: 200px; margin: 0 auto; }
  .step-phone-img { max-height: none; width: 90%; margin: 0 auto; display: block; }

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

  .carousel-slide { width: calc(50% - 12px); }

  .categories-two-col { grid-template-columns: 1fr; gap: 40px; }
  .categories-left { text-align: center; }
  .categories-left .section-body { margin: 0 auto; }
  .categories-list { gap: 0 20px; }
  .category-item { font-size: 13px; }
  .problem-merge-animation { flex-direction: column-reverse; gap: 30px; }

  .nav-cta { display: none; }

  .section { padding: 100px 0; }
  .section-download { padding: 120px 0; }

  .footer-top, .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 600px) {
  .hero-headline { font-size: clamp(32px, 9vw, 48px); }
  .section-title { font-size: clamp(28px, 7vw, 40px); }
  .benefits-grid { grid-template-columns: 1fr; }
  .problem-cards { grid-template-columns: 1fr; }
  .carousel-slide { width: calc(80% - 12px); }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; }
  .nowrap-mobile { white-space: nowrap; }
  .hide-mobile { display: none; }
}

/* ============================================
   SWIPE HINT
   ============================================ */
.carousel-swipe-hint {
  display: none;
}
@media (max-width: 768px) {
  .carousel-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.5s ease;
  }
  .carousel-swipe-hint.hidden {
    opacity: 0;
    pointer-events: none;
  }
  .carousel-btn { display: none; }
  .problem-merge-animation { height: auto; min-height: 480px; }
}

/* ============================================
   MOBILE NAV
   ============================================ */
@media (max-width: 768px) {
  .nav-inner { justify-content: center; position: relative; height: 80px; }
  .nav-hamburger { display: flex; position: absolute; right: 0; z-index: 10; }
  .nav-actions { display: flex; position: absolute; left: 0; }
  .nav-cta { display: none; }
  .nav-logo-img { height: 52px; }

  /* Full-screen menu overlay */
  .nav-links {
    display: none; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 40px; z-index: 9;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-link {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.02em;
  }
  .nav-links .nav-link::after { display: none; }
  .nav-link-mobile-only { display: block; }
}
