/* Lynk marketing site — tokens mirrored from the app (frontend/src/theme.ts, dark palette) */

:root {
  --bg: #211d18;
  --surface: #2f2b24;
  --card: #34302a;
  --event-bg: #423d34;
  --text: #f5f2ed;
  --text-muted: #c0b8aa;
  --text-faint: #968d81;
  --border: #544b41;
  --primary: #8b5cf6;
  --primary-dark: #7c3aed;
  --primary-deep: #6d28d9;
  --purple-400: #c4b5fd;
  --success: #34d399;
  --star: #fbbf24;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --glow: 0 10px 30px rgba(139, 92, 246, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Fredoka", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--purple-400);
  text-decoration: none;
}

a:hover {
  color: var(--text);
}

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

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(33, 29, 24, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(84, 75, 65, 0.5);
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.wordmark img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.5);
}

.wordmark:hover {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--text);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: var(--glow);
}

.btn-primary:hover {
  color: #fff;
}

/* The one CTA on the page quietly begs to be pressed */
.btn-pulse {
  animation: ctaPulse 3s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35); }
  50% { box-shadow: 0 10px 44px rgba(139, 92, 246, 0.6); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-pulse {
    animation: none;
  }
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  padding: 48px 0;
}

/* Purple wash + diagonal light streaks echoing the app's banners */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 500px at 78% 30%, rgba(124, 58, 237, 0.38), transparent 65%),
    radial-gradient(500px 400px at 12% 85%, rgba(124, 58, 237, 0.2), transparent 70%);
  pointer-events: none;
}

.slash {
  position: absolute;
  top: -12%;
  height: 130%;
  transform: rotate(24deg);
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.slash-a { right: 8%; width: 56px; }
.slash-b { right: 16%; width: 20px; background: rgba(255, 255, 255, 0.035); }
.slash-c { right: 20.5%; width: 9px; background: rgba(255, 255, 255, 0.03); }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  width: 100%;
}

/* Waitlist signup */
.signup {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 440px;
}

.signup .hp {
  position: absolute;
  left: -9999px;
}

.signup-input {
  flex: 1;
  min-width: 200px;
  background: rgba(47, 43, 36, 0.75);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 13px 22px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup-input::placeholder {
  color: var(--text-faint);
}

.signup-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.signup .btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.signup-done {
  font-size: 16px;
  font-weight: 600;
  color: var(--success);
}

.cta-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
}

.cta-note .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}

/* Rotating headline word */
.swap {
  display: inline-block;
}

.swap.w-out {
  animation: wOut 0.24s ease both;
}

.swap.w-in {
  animation: wIn 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

@keyframes wOut {
  to { opacity: 0; transform: translateY(-16px); }
}

@keyframes wIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--purple-400), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 30px;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

/* Chapter markers: synced to the demo, clickable to jump scenes */
.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(84, 75, 65, 0.55);
  max-width: 520px;
}

.point {
  display: flex;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.35s ease;
}

.point > span:last-child {
  flex: 1;
  min-width: 0;
}

.point:hover {
  opacity: 0.85;
}

.point.live {
  opacity: 1;
}

.pt-num {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-faint);
  padding-top: 3px;
  transition: color 0.35s ease;
}

.point.live .pt-num {
  color: var(--purple-400);
}

.pt-title {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text);
}

.point.live .pt-title {
  background: linear-gradient(120deg, var(--purple-400), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pt-desc {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.4;
}

.point.live .pt-desc {
  color: var(--text-muted);
}

.pt-bar {
  display: block;
  height: 2px;
  margin-top: 9px;
  background: rgba(84, 75, 65, 0.55);
  overflow: hidden;
}

.pt-bar .fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--purple-400), var(--primary));
}

/* ---------- App demo panel (sharp, auto-playing) ---------- */

.demo-panel {
  position: relative;
  width: 100%;
  max-width: 340px;
  justify-self: center;
  background: #17140f;
  border: 1px solid var(--border);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(109, 40, 217, 0.22);
  animation: panelBreathe 6s ease-in-out infinite;
}

/* Gentle glow breathing so the panel feels alive even between beats */
@keyframes panelBreathe {
  0%, 100% {
    box-shadow:
      0 40px 80px rgba(0, 0, 0, 0.5),
      0 0 50px rgba(109, 40, 217, 0.2);
  }
  50% {
    box-shadow:
      0 40px 80px rgba(0, 0, 0, 0.5),
      0 0 85px rgba(124, 58, 237, 0.42);
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-panel {
    animation: none;
  }
}

.demo-stage {
  position: relative;
  height: 520px;
  overflow: hidden;
}

/* Scenes zoom-settle in and blur-zoom out for a filmic hand-off */
.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08) translateY(14px);
  filter: blur(8px);
  transition:
    opacity 0.6s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.6s ease;
  pointer-events: none;
}

.scene.active {
  opacity: 1;
  transform: none;
  filter: none;
  pointer-events: auto;
}

/* --- Scene 0: logo intro (the real app icon pans in) --- */

.scene-intro {
  background:
    radial-gradient(340px 300px at 30% 20%, rgba(255, 255, 255, 0.14), transparent 65%),
    linear-gradient(135deg, #8b5cf6 0%, #6d28d9 60%, #5b21b6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  overflow: hidden;
}

.intro-logo {
  width: 128px;
  height: 128px;
  border-radius: 30px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
}

.scene-intro.active .intro-logo {
  animation:
    logoIn 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.15) 0.2s both,
    logoFloat 2.4s ease-in-out 1.2s infinite;
}

@keyframes logoIn {
  0% { opacity: 0; transform: scale(2.1) translateY(26px); filter: blur(10px); }
  55% { opacity: 1; filter: blur(0); }
  80% { transform: scale(0.97) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

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

.intro-name {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: #fff;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.3);
  line-height: 1;
  margin-top: -4px;
  opacity: 0;
}

.scene-intro.active .intro-name {
  animation: wordIn 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.95s both;
}

.intro-word {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  margin-top: -12px;
  opacity: 0;
}

.intro-word .accent {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 2.5px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.55);
}

.scene-intro.active .intro-word {
  animation: wordIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) 1.35s both;
}

@keyframes wordIn {
  from { opacity: 0; transform: translateY(16px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

/* --- Interstitial text cards --- */

.scene-text {
  background:
    radial-gradient(280px 240px at 50% 50%, rgba(109, 40, 217, 0.3), transparent 70%),
    #17140f;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.scene-text h4 {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.6px;
  opacity: 0;
}

.scene-text h4 .accent {
  background: linear-gradient(120deg, var(--purple-400), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scene-text.active h4 {
  animation:
    punchIn 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.25) 0.15s both,
    drift 1.3s ease-out 0.7s both;
}

@keyframes punchIn {
  from { opacity: 0; transform: scale(0.7); letter-spacing: 4px; }
  to { opacity: 1; transform: scale(1); letter-spacing: -0.6px; }
}

/* Slow push-in while the line hangs on screen, so it never feels static */
@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

/* Soft glow that swells behind interstitial text */
.scene-text::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 260px;
  margin: -130px 0 0 -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 70%);
  opacity: 0;
}

.scene-text.active::before {
  animation: glowSwell 1.8s ease-out 0.1s both;
}

@keyframes glowSwell {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1.25); }
}

/* --- Scene 1: discover reels (mirrors the app's home feed) --- */

.reel-track {
  height: 300%;
}

.scene-discover.active .reel-track {
  animation: swipe 5.4s cubic-bezier(0.7, 0, 0.3, 1) both;
}

@keyframes swipe {
  0%, 28% { transform: translateY(0); }
  36%, 62% { transform: translateY(-33.333%); }
  70%, 100% { transform: translateY(-66.667%); }
}

.reel {
  position: relative;
  height: 33.333%;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Slow Ken Burns push-in so each reel feels like live footage */
.scene-discover.active .reel {
  animation: reelDrift 6s ease-out both;
}

@keyframes reelDrift {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.reel.p1 {
  background-color: #3b2f4d;
  background-image: linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.08)), url("https://images.unsplash.com/photo-1554118811-1e0d58224f24?auto=format&fit=crop&w=700&q=75");
}

.reel.p2 {
  background-color: #4d3325;
  background-image: linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.08)), url("https://images.unsplash.com/photo-1569718212165-3a8278d5f624?auto=format&fit=crop&w=700&q=75");
}

.reel.p3 {
  background-color: #2c3b46;
  background-image: linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.08)), url("https://images.unsplash.com/photo-1522163182402-834f871fd851?auto=format&fit=crop&w=700&q=75");
}

.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, transparent 30%, transparent 45%, rgba(0, 0, 0, 0.62) 100%);
}

.reel .segments {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.reel .segments span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.reel .segments .on {
  background: #fff;
}

.reel .rail {
  position: absolute;
  right: 10px;
  bottom: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 2;
}

.reel .rail .act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
}

.reel .rail svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}

.reel .info {
  position: absolute;
  left: 14px;
  right: 64px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
}

.reel .info .name {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
}

.reel .info .meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  margin-top: 4px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
}

.reel .info .meta .star {
  color: var(--star);
}

.reel .info .social {
  font-size: 12px;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
}

.reel .plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  background: var(--primary-deep);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 999px;
  padding: 9px 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* --- Scene: saved spots (keep track of what you want to do) --- */

.scene-saved {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
}

.saved-head {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 2px 14px;
  opacity: 0;
}

.scene-saved.active .saved-head {
  animation: wordIn 0.4s ease 0.2s both;
}

.srow {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid rgba(84, 75, 65, 0.5);
  border-radius: 14px;
  padding: 10px 13px;
  margin-bottom: 9px;
  opacity: 0;
}

.scene-saved.active .srow {
  animation: rowSlide 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.scene-saved.active .sr1 { animation-delay: 0.7s; }
.scene-saved.active .sr2 { animation-delay: 1.1s; }
.scene-saved.active .sr3 { animation-delay: 1.5s; }

@keyframes rowSlide {
  from { opacity: 0; transform: translateX(42px); }
  to { opacity: 1; transform: none; }
}

.sthumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.sthumb.st1 { background: linear-gradient(135deg, #b45309, #7c2d12); }
.sthumb.st2 { background: linear-gradient(135deg, #4338ca, #312e81); }
.sthumb.st3 { background: linear-gradient(135deg, #0e7490, #164e63); }

.smeta {
  flex: 1;
  min-width: 0;
}

.sname {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}

.ssub {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
}

.ssub .star {
  color: var(--star);
}

.sbook {
  width: 19px;
  height: 19px;
  color: var(--primary);
  flex-shrink: 0;
  opacity: 0;
}

.scene-saved.active .sr1 .sbook { animation: pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.5) 2.2s both; }
.scene-saved.active .sr2 .sbook { animation: pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.5) 2.45s both; }
.scene-saved.active .sr3 .sbook { animation: pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.5) 2.7s both; }

.saved-note {
  margin-top: auto;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  padding-bottom: 6px;
  opacity: 0;
}

.scene-saved.active .saved-note {
  animation: wordIn 0.5s ease 3.3s both;
}

/* --- Scene: plans leave the group chat --- */

.scene-plan {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(84, 75, 65, 0.5);
  margin-bottom: 14px;
}

.chat-head .avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.chat-head .who {
  font-size: 14px;
  font-weight: 600;
}

.chat-head .who small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-faint);
}

.bubble {
  max-width: 78%;
  border-radius: 16px;
  padding: 8px 13px;
  font-size: 13px;
  margin-bottom: 8px;
  opacity: 0;
}

.bubble.left {
  align-self: flex-start;
  background: var(--surface);
  border-bottom-left-radius: 5px;
  color: var(--text);
}

.bubble.right {
  align-self: flex-end;
  background: var(--primary-deep);
  border-bottom-right-radius: 5px;
  color: #fff;
}

.scene-plan.active .bubble {
  animation: pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

.scene-plan.active .bb1 { animation-delay: 0.25s; }
.scene-plan.active .bb2 { animation-delay: 0.75s; }
.scene-plan.active .bb3 { animation-delay: 1.25s; }

/* The chat fades back as the plan takes over */
.scene-plan.active .chat-zone {
  animation: chatDim 0.5s ease 2.1s both;
}

@keyframes chatDim {
  to { opacity: 0.3; filter: blur(1px); }
}

.chat-zone {
  display: flex;
  flex-direction: column;
}

.locked-card {
  position: relative;
  margin-top: auto;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  border-radius: 18px;
  padding: 16px;
  color: #fff;
  box-shadow: 0 14px 34px rgba(109, 40, 217, 0.5);
  opacity: 0;
}

.scene-plan.active .locked-card {
  animation: cardLand 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.25) 2.3s both;
}

@keyframes cardLand {
  from { opacity: 0; transform: translateY(36px) scale(0.9); }
  to { opacity: 1; transform: none; }
}

.locked-card .lc-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.locked-card .lc-title {
  font-size: 18px;
  font-weight: 700;
  margin-top: 3px;
  letter-spacing: -0.3px;
}

.locked-card .lc-when {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}

.locked-card .lc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.locked-card .lc-avs {
  display: flex;
}

.locked-card .lc-avs span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--primary-deep);
  margin-right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  color: #fff;
  opacity: 0;
}

.locked-card .lc-avs .v1 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.locked-card .lc-avs .v2 { background: linear-gradient(135deg, #06b6d4, #6366f1); }
.locked-card .lc-avs .v3 { background: linear-gradient(135deg, #10b981, #15803d); }

.scene-plan.active .lc-avs span {
  animation: pop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}

.scene-plan.active .lc-avs .v1 { animation-delay: 2.85s; }
.scene-plan.active .lc-avs .v2 { animation-delay: 3s; }
.scene-plan.active .lc-avs .v3 { animation-delay: 3.15s; }

.locked-card .lc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(52, 211, 153, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 11px;
  opacity: 0;
}

.scene-plan.active .lc-badge {
  animation: pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.4) 3.5s both;
}

/* --- Scene 2: calendar week view --- */

.scene-cal {
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.cal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
}

.cal-top .month {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.cal-toggle {
  display: flex;
  background: var(--surface);
  border-radius: 999px;
  padding: 3px;
  font-size: 11.5px;
  font-weight: 600;
}

.cal-toggle span {
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--text-faint);
}

/* The toggle flips from Day to Week mid-scene */
.scene-cal.active .t-day {
  animation: tOff 0.35s ease 2.4s both;
  background: var(--primary);
  color: #fff;
}

.scene-cal.active .t-week {
  animation: tOn 0.35s ease 2.4s both;
}

@keyframes tOff {
  to { background: transparent; color: var(--text-faint); }
}

@keyframes tOn {
  to { background: var(--primary); color: #fff; }
}

/* Two stacked views: day first, week slides in after */
.cal-body {
  position: relative;
  flex: 1;
}

.cal-day,
.cal-week {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.scene-cal.active .cal-day {
  animation: dayOut 0.5s cubic-bezier(0.6, 0, 0.7, 0.4) 2.4s both;
}

@keyframes dayOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateX(-30px); }
}

.cal-week {
  opacity: 0;
}

.scene-cal.active .cal-week {
  animation: weekIn 0.55s cubic-bezier(0.2, 0.8, 0.3, 1) 2.75s both;
}

@keyframes weekIn {
  from { opacity: 0; transform: translateX(34px); }
  to { opacity: 1; transform: none; }
}

/* Day view: a relaxed schedule with a free gap Lynk spots */
.cal-day {
  padding: 4px 14px 12px;
  gap: 8px;
}

.day-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.drow {
  display: flex;
  gap: 10px;
  align-items: stretch;
  opacity: 0;
}

.scene-cal.active .drow {
  animation: pop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

.scene-cal.active .drow:nth-child(2) { animation-delay: 0.3s; }
.scene-cal.active .drow:nth-child(3) { animation-delay: 0.5s; }
.scene-cal.active .drow:nth-child(4) { animation-delay: 1.15s; } /* free slot lands last */
.scene-cal.active .drow:nth-child(5) { animation-delay: 0.7s; }
.scene-cal.active .drow:nth-child(6) { animation-delay: 0.9s; }

.drow .t {
  width: 40px;
  flex-shrink: 0;
  font-size: 10.5px;
  color: var(--text-faint);
  padding-top: 8px;
  text-align: right;
}

.dblock {
  flex: 1;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
}

.dblock small {
  display: block;
  font-weight: 500;
  font-size: 10.5px;
  opacity: 0.75;
}

.dblock.free {
  background: transparent;
  border: 1.5px dashed rgba(52, 211, 153, 0.5);
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 7px;
}

.dblock.free::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.cal-dows {
  display: grid;
  grid-template-columns: 26px repeat(7, 1fr);
  padding: 0 10px;
  margin-bottom: 4px;
}

.cal-dows span {
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-faint);
  padding: 3px 0;
}

.cal-dows .today {
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
}

.cal-grid {
  position: relative;
  flex: 1;
  margin: 0 4px 12px;
  background:
    repeating-linear-gradient(to bottom, rgba(84, 75, 65, 0.35) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(to right, transparent 0 calc((100% - 26px) / 7 - 1px), rgba(84, 75, 65, 0.22) calc((100% - 26px) / 7 - 1px) calc((100% - 26px) / 7));
  background-position: 0 0, 26px 0;
}

.cal-grid .hours {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0;
}

.cal-grid .hours span {
  font-size: 8.5px;
  color: var(--text-faint);
}

.ev {
  position: absolute;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  opacity: 0;
}

.scene-cal.active .ev {
  animation: pop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

.scene-cal.active .ev1 { animation-delay: 3.1s; }
.scene-cal.active .ev2 { animation-delay: 3.22s; }
.scene-cal.active .ev3 { animation-delay: 3.34s; }
.scene-cal.active .ev4 { animation-delay: 3.46s; }
.scene-cal.active .ev5 { animation-delay: 3.58s; }
.scene-cal.active .ev-new { animation-delay: 4.3s; }

@keyframes pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

.ev small {
  display: block;
  font-weight: 500;
  opacity: 0.8;
  font-size: 8.5px;
}

.ev-work { background: #e0e7ff; color: #3730a3; }
.ev-health { background: #dcfce7; color: #166534; }
.ev-social { background: #fce7f3; color: #9d174d; }
.ev-life { background: #fef3c7; color: #92400e; }

.ev-new {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.65);
  z-index: 2;
}

.cal-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
  padding-bottom: 12px;
  opacity: 0;
}

.scene-cal.active .cal-note {
  animation: wordIn 0.5s ease 4.7s both;
}

.cal-note strong {
  color: var(--purple-400);
  font-weight: 600;
}

/* --- Scene 3: coming soon --- */

.scene-soon {
  background:
    radial-gradient(340px 300px at 50% 40%, rgba(124, 58, 237, 0.45), transparent 70%),
    #17140f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  padding: 24px;
}

.soon-logo-wrap {
  position: relative;
  width: 84px;
  height: 84px;
}

.soon-logo {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  opacity: 0;
}

.scene-soon.active .soon-logo {
  animation:
    pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) 0.2s both,
    logoFloat 2.6s ease-in-out 0.9s infinite;
}

/* Sonar rings pulsing out from the icon */
.ring {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 2px solid rgba(139, 92, 246, 0.65);
  opacity: 0;
  pointer-events: none;
}

.scene-soon.active .r1 {
  animation: ringOut 2.2s ease-out 0.8s infinite;
}

.scene-soon.active .r2 {
  animation: ringOut 2.2s ease-out 1.9s infinite;
}

@keyframes ringOut {
  0% { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.9); }
}

.scene-soon h4 {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.25;
  opacity: 0;
}

.scene-soon.active h4 {
  animation: wordIn 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.65s both;
}

.scene-soon h4 .ios {
  background: linear-gradient(120deg, var(--purple-400), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Fake tab bar --- */

.demo-tabs {
  display: flex;
  border-top: 1px solid var(--border);
  background: var(--card);
}

/* Icon-only, matching the app: card bg, faint inactive, primary active */
.demo-tabs .tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 0 12px;
  color: var(--text-faint);
  transition: color 0.3s ease;
}

.demo-tabs .tab svg {
  width: 21px;
  height: 21px;
}

.demo-tabs .tab.on {
  color: var(--primary);
}

/* ---------- Entrance: hero rises in on load ---------- */

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.hero h1 { animation: riseIn 0.65s cubic-bezier(0.2, 0.8, 0.3, 1) 0.05s both; }
.hero .sub { animation: riseIn 0.65s cubic-bezier(0.2, 0.8, 0.3, 1) 0.17s both; }
.hero .cta-row { animation: riseIn 0.65s cubic-bezier(0.2, 0.8, 0.3, 1) 0.29s both; }
.hero .hero-points { animation: riseIn 0.65s cubic-bezier(0.2, 0.8, 0.3, 1) 0.41s both; }
.demo-panel { animation-name: riseIn, panelBreathe; animation-duration: 0.7s, 6s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1), ease-in-out; animation-delay: 0.3s, 1s; animation-iteration-count: 1, infinite; animation-fill-mode: both, none; }

@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .hero .sub,
  .hero .cta-row,
  .hero .hero-points,
  .demo-panel {
    animation: none;
  }
}

/* ---------- Vibe marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(84, 75, 65, 0.5);
  padding: 20px 0;
  background: rgba(47, 43, 36, 0.35);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 42px;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}

.marquee-track span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee-track span:nth-child(4n + 1) {
  color: var(--purple-400);
}

.marquee-track i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.6;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid rgba(84, 75, 65, 0.5);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.footer .wordmark {
  font-size: 20px;
}

.footer .wordmark img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-faint);
  font-size: 13.5px;
}

.footer-links a:hover {
  color: var(--text);
}

.footer .copy {
  color: var(--text-faint);
  font-size: 13px;
}

/* ---------- Legal / prose pages ---------- */

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.prose h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.prose .updated {
  color: var(--text-faint);
  font-size: 14px;
  margin-bottom: 36px;
}

.prose h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 36px 0 10px;
}

.prose p,
.prose li {
  color: var(--text-muted);
  font-size: 16px;
}

.prose ul {
  padding-left: 22px;
  margin: 10px 0;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Support cards ---------- */

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.support-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(84, 75, 65, 0.5);
}

.support-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.support-card p {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero {
    min-height: 0;
    padding: 56px 0 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }

  .hero .sub {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-row {
    align-items: center;
  }

  .signup {
    justify-content: center;
  }

  .hero-points {
    margin-left: auto;
    margin-right: auto;
  }

  .demo-stage {
    height: 460px;
  }
}

@media (max-width: 480px) {
  .hero-points {
    grid-template-columns: 1fr;
  }
}
