:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --surface: #141414;
  --surface-hover: #1a1a1a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-secondary: #a3a3a3;
  --text-tertiary: #737373;
  --accent: #d4bbff;
  --accent-deep: #b388ff;
  --accent-glow: rgba(179, 136, 255, 0.35);
  --success: #00e676;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1120px;
  --nav-h: 72px;
  --mobile-nav-h: 0px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--mobile-nav-h) + 12px);
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* ── Nav ── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #000;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

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

/* Mobile section tabs (guests / photographers / etc.) */
.mobile-nav {
  display: none;
}

@media (max-width: 767px) {
  :root {
    --mobile-nav-h: 50px;
    --nav-h: 64px;
  }

  .mobile-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 99;
    padding: 8px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }

  .mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav a {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    background: rgba(20, 20, 20, 0.9);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
  }

  .mobile-nav a:active,
  .mobile-nav a:focus-visible {
    color: var(--accent);
    border-color: rgba(212, 187, 255, 0.35);
    background: rgba(212, 187, 255, 0.1);
  }

  .nav-cta {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .nav-cta svg {
    width: 16px;
    height: 16px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .hero {
    padding-top: calc(var(--nav-h) + var(--mobile-nav-h) + 48px);
  }

  .share-panel {
    padding: 16px 14px;
  }

  .share-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .share-code-box {
    width: 100%;
    min-width: unset;
    padding: 18px 20px;
    border-radius: 14px;
  }

  .share-code {
    font-size: 1.4rem;
    letter-spacing: 0.16em;
  }

  .share-code-hint {
    display: block;
    font-size: 0.62rem;
    margin-top: 2px;
  }

  .share-connector {
    width: 2px;
    height: 36px;
    margin: 12px auto;
    align-self: center;
  }

  .share-connector .connector-line {
    background: linear-gradient(180deg, transparent, var(--accent-deep), transparent);
  }

  .share-connector .connector-pulse {
    left: 50%;
    top: 0;
    margin-left: -4px;
    margin-top: 0;
    animation: flow-pulse-v 2.4s ease-in-out infinite;
  }

  .mini-screen {
    width: 100%;
    flex: none;
    min-width: unset;
    max-width: none;
    padding: 14px 12px;
    border-radius: 14px;
  }

  .mini-screen-bar {
    font-size: 0.65rem;
    margin-bottom: 10px;
  }

  .mini-result,
  .mini-profile {
    padding: 12px;
    gap: 10px;
    border-radius: 12px;
  }

  .mini-result strong,
  .mini-profile-text strong {
    font-size: 0.82rem;
  }

  .mini-result span,
  .mini-profile-text span {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .mini-result-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .mini-profile-text {
    flex: 1;
    min-width: 0;
  }

  .mini-profile-badge {
    display: block;
    margin-left: auto;
    font-size: 0.58rem;
    padding: 4px 8px;
    flex-shrink: 0;
  }

  .avatar {
    width: 34px;
    height: 34px;
  }

  .ui-panel.share-panel {
    min-height: auto;
  }

  .bento-visual {
    padding: 14px 14px 0;
  }
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 96px;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: drift 18s ease-in-out infinite alternate;
}

.blob-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #6b3fa0 0%, transparent 70%);
  top: -120px;
  right: -80px;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #3d2a6b 0%, transparent 70%);
  bottom: 10%;
  left: -100px;
  animation-delay: -6s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, 20px) scale(1.08); }
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(20, 20, 20, 0.8);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px var(--success); transform: scale(1); }
  50% { box-shadow: 0 0 20px var(--success); transform: scale(1.15); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .shimmer {
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #000;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(20, 20, 20, 0.6);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* Phone mockup */
.phone-wrap {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone {
  width: min(100%, 300px);
  aspect-ratio: 9 / 19;
  border-radius: 36px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, #1a1a1a 0%, #0a0a0a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 60px var(--accent-glow);
  padding: 14px;
  transform: rotateY(-8deg) rotateX(4deg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(4deg) translateY(-12px); }
}

.phone-screen {
  height: 100%;
  border-radius: 26px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
}

.phone-header {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.phone-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.phone-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.phone-card {
  flex: 1;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-row {
  display: flex;
  gap: 8px;
}

.match-thumb {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 10px;
  background: #1a1530;
  position: relative;
  overflow: hidden;
}

.match-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.match-thumb:hover img {
  transform: scale(1.08);
}

.match-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.match-badge {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 230, 118, 0.15);
  color: var(--success);
  font-weight: 600;
}

.pop-in {
  opacity: 0;
  transform: scale(0.85);
  animation: pop-in 0.5s ease forwards;
  animation-delay: calc(0.8s + var(--i, 0) * 0.1s);
}

@keyframes pop-in {
  to { opacity: 1; transform: scale(1); }
}

.pulse-badge {
  animation: pulse-badge 2.5s ease-in-out infinite;
  animation-delay: 1.6s;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
  50% { box-shadow: 0 0 12px 2px rgba(0, 230, 118, 0.25); }
}

/* ── Sections ── */
section {
  padding: 96px 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 640px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  gap: 16px;
}

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

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

.feature-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--surface) 0%, var(--bg-elevated) 100%);
  transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  border-color: rgba(212, 187, 255, 0.25);
  transform: translateY(-4px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(212, 187, 255, 0.12);
  color: var(--accent);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.feature-card p em {
  color: var(--accent);
  font-style: normal;
}

/* Role tabs */
.role-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.role-pill {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: default;
}

.role-pill.active {
  background: rgba(212, 187, 255, 0.12);
  border-color: rgba(212, 187, 255, 0.35);
  color: var(--accent);
}

/* How it works */
.steps {
  display: grid;
  gap: 24px;
  counter-reset: step;
}

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

.step {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 0.3s, transform 0.3s;
}

.step:hover {
  border-color: rgba(212, 187, 255, 0.2);
  transform: translateY(-2px);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(212, 187, 255, 0.35);
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Why */
.why-grid {
  display: grid;
  gap: 16px;
}

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

.why-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.why-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 230, 118, 0.12);
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.why-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.why-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* CTA banner */
.cta-banner {
  margin: 0 20px 96px;
  padding: 56px 40px;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(179, 136, 255, 0.2), transparent 60%),
    linear-gradient(145deg, #141414, #0a0a0a);
  border: 1px solid rgba(212, 187, 255, 0.2);
  max-width: var(--max);
  margin-inline: auto;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 480px;
  margin-inline: auto;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 16px;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.2s, border-color 0.2s;
}

.play-badge:hover {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.3);
}

.play-badge svg {
  width: 28px;
  height: 28px;
}

.play-badge-text {
  text-align: left;
  line-height: 1.2;
}

.play-badge-text small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.play-badge-text strong {
  font-size: 1rem;
  font-weight: 600;
}

/* Footer */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 280px;
}

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

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-tertiary);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

.stagger.visible {
  transition-delay: calc(0.08s * var(--i, 0));
}

/* ── Connect bento grid ── */
.connect-section {
  position: relative;
  overflow: hidden;
}

.connect-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(179, 136, 255, 0.1), transparent),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(107, 63, 160, 0.08), transparent);
  pointer-events: none;
}

.bento-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

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

.bento-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #161616 0%, #0d0d0d 100%);
  overflow: hidden;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s;
}

.bento-card:hover {
  border-color: rgba(212, 187, 255, 0.28);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(179, 136, 255, 0.06);
  transform: translateY(-4px);
}

.bento-wide {
  grid-column: 1 / -1;
}

.bento-visual {
  padding: 20px 20px 0;
}

.bento-copy {
  padding: 24px 28px 28px;
  margin-top: auto;
}

.bento-copy h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.bento-copy p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-copy p em {
  color: var(--accent);
  font-style: normal;
}

/* Shared UI panel chrome */
.ui-panel {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, #0c0c0c 0%, #050505 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  min-height: 240px;
}

.ui-label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #5a4080, #2e2048);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.avatar.sm { width: 34px; height: 34px; }
.avatar.xs { width: 30px; height: 30px; }
.av-purple { background: linear-gradient(135deg, #6b4fa0, #3d2a60); }
.av-teal   { background: linear-gradient(135deg, #3d7a68, #1e4038); }
.av-rose   { background: linear-gradient(135deg, #8a4a5a, #4a2830); }
.av-gold   { background: linear-gradient(135deg, #8a7040, #4a3820); }

/* ── Share panel ── */
.share-panel { padding: 24px 20px; }

.share-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.share-code-box {
  text-align: center;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px dashed rgba(212, 187, 255, 0.35);
  background: rgba(212, 187, 255, 0.05);
  min-width: 130px;
  flex-shrink: 0;
}

.share-code {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 4px;
}

.share-code-hint {
  font-size: 0.65rem;
  color: var(--text-tertiary);
}

.share-connector {
  position: relative;
  width: 48px;
  height: 2px;
  flex-shrink: 0;
  align-self: center;
}

.connector-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent-deep), transparent);
  opacity: 0.5;
}

.connector-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: flow-pulse 2.4s ease-in-out infinite;
}

@keyframes flow-pulse {
  0%   { left: 0; opacity: 0.4; }
  50%  { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0.4; }
}

@keyframes flow-pulse-v {
  0%   { top: 0; opacity: 0.4; }
  50%  { opacity: 1; }
  100% { top: calc(100% - 8px); opacity: 0.4; }
}

.mini-screen {
  flex: 1 1 0;
  min-width: 0;
  max-width: 240px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-screen-bar {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  letter-spacing: -0.02em;
}

.mini-result,
.mini-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.mini-result-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(0, 230, 118, 0.12);
  color: var(--success);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mini-result strong,
.mini-profile-text strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
}

.mini-result span,
.mini-profile-text span {
  font-size: 0.62rem;
  color: var(--text-tertiary);
}

.mini-profile-badge {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(212, 187, 255, 0.15);
  color: var(--accent);
  white-space: nowrap;
}

.anim-slide-1 {
  animation: slide-in-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both,
             float-subtle 4s ease-in-out 1s infinite;
}

.anim-slide-2 {
  animation: slide-in-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both,
             float-subtle 4s ease-in-out 1.4s infinite;
}

@keyframes slide-in-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float-subtle {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* ── Search panel ── */
.search-panel { padding: 16px; }

.search-ui {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(212, 187, 255, 0.2);
  background: var(--surface);
  color: var(--text-tertiary);
  box-shadow: 0 0 20px rgba(179, 136, 255, 0.06);
}

.search-text-anim {
  display: inline-block;
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  animation: type-loop 5s steps(6) infinite;
  max-width: 6ch;
}

@keyframes type-loop {
  0%, 10%  { max-width: 0; }
  40%, 80% { max-width: 6ch; }
  100%     { max-width: 6ch; }
}

.search-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: caret-blink 1s step-end infinite;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

.search-map-bg {
  position: absolute;
  top: 52px;
  right: 12px;
  width: 80px;
  height: 60px;
  border-radius: 10px;
  background: rgba(212, 187, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
  opacity: 0.7;
}

.map-pin {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-deep);
  opacity: 0.6;
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(179, 136, 255, 0.3);
  animation: pin-ring 2s ease-out infinite;
}

.map-pin.active {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  opacity: 1;
}

.pin-1 { top: 20%; left: 25%; }
.pin-2 { top: 55%; left: 60%; animation-delay: 0.5s; }
.pin-3 { top: 30%; left: 70%; }

@keyframes pin-ring {
  0%   { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

.search-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
}

.search-item strong {
  display: block;
  font-size: 0.82rem;
}

.search-item span {
  font-size: 0.68rem;
  color: var(--text-tertiary);
}

.si-1 { animation: list-in 0.5s ease 0.8s both; }
.si-2 { animation: list-in 0.5s ease 1.1s both; }
.si-3 { animation: list-in 0.5s ease 1.4s both; }

@keyframes list-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.bento-card:hover .search-item {
  border-color: rgba(212, 187, 255, 0.15);
}

/* ── Chat panel ── */
.chat-panel { padding: 14px; }

.chat-ui {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 210px;
}

.chat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.chat-top strong {
  display: block;
  font-size: 0.85rem;
}

.chat-online {
  font-size: 0.65rem;
  color: var(--success);
  font-weight: 500;
}

.chat-online::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 4px;
  box-shadow: 0 0 6px var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-end;
  padding: 4px 0;
}

.bubble {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.72rem;
  line-height: 1.5;
}

.bubble-in {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text-secondary);
}

.bubble-out {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(212, 187, 255, 0.2), rgba(179, 136, 255, 0.1));
  border: 1px solid rgba(212, 187, 255, 0.25);
  border-bottom-right-radius: 4px;
  color: var(--text);
}

.msg-1 { animation: bubble-in 0.45s ease 0.4s both; }
.msg-2 { animation: bubble-in 0.45s ease 1.1s both; }
.msg-3 { animation: bubble-in 0.45s ease 1.8s both; }

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-compose {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.chat-send-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #000;
  display: grid;
  place-items: center;
  cursor: default;
  animation: send-pulse 2.5s ease-in-out 2.5s infinite;
}

@keyframes send-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 187, 255, 0); }
  50%      { box-shadow: 0 0 16px 2px rgba(212, 187, 255, 0.35); }
}

/* ── Insights panel ── */
.insights-panel { padding: 16px; }

.insights-ui {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.insights-hero {
  text-align: center;
  padding: 16px 12px;
  border-radius: 14px;
  background: rgba(212, 187, 255, 0.05);
  border: 1px solid rgba(212, 187, 255, 0.12);
}

.insights-count {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: count-pulse 3s ease-in-out infinite;
}

@keyframes count-pulse {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.2); }
}

.insights-sub {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin: 6px 0 14px;
}

.insights-sparkline {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 32px;
}

.insights-sparkline span {
  width: 6px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  height: var(--h);
  transform-origin: bottom;
  animation: bar-grow 1s ease calc(var(--i, 0) * 0.1s) both;
}

.insights-sparkline span:nth-child(1) { --i: 0; animation-delay: 0.2s; }
.insights-sparkline span:nth-child(2) { --i: 1; animation-delay: 0.3s; }
.insights-sparkline span:nth-child(3) { --i: 2; animation-delay: 0.4s; }
.insights-sparkline span:nth-child(4) { --i: 3; animation-delay: 0.5s; }
.insights-sparkline span:nth-child(5) { --i: 4; animation-delay: 0.6s; }
.insights-sparkline span:nth-child(6) { --i: 5; animation-delay: 0.7s; }
.insights-sparkline span:nth-child(7) { --i: 6; animation-delay: 0.8s; }

@keyframes bar-grow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.viewer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.viewer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.viewer strong {
  display: block;
  font-size: 0.78rem;
}

.viewer span {
  font-size: 0.65rem;
  color: var(--text-tertiary);
}

.vi-1 { animation: list-in 0.45s ease 0.5s both; }
.vi-2 { animation: list-in 0.45s ease 0.75s both; }
.vi-3 { animation: list-in 0.45s ease 1s both; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .blob, .phone, .pop-in, .pulse-badge, .eyebrow-dot,
  .hero h1 .shimmer,
  .connector-pulse, .anim-slide-1, .anim-slide-2,
  .search-text-anim, .search-caret, .map-pin::after,
  .si-1, .si-2, .si-3, .msg-1, .msg-2, .msg-3,
  .chat-send-btn, .insights-count, .insights-sparkline span,
  .vi-1, .vi-2, .vi-3 {
    animation: none !important;
  }

  .search-text-anim { max-width: 6ch; }
}
