/* ----------------------------------------------------------------------------
   Stranger Chat — marketing site styles
   Dark indigo theme, consistent with the chat app.
   ------------------------------------------------------------------------- */

:root {
  --bg: #0a0a0f;
  --bg-soft: #0f0f17;
  --panel: #13131c;
  --panel-2: #17171f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --emerald: #34d399;
  --amber: #fbbf24;
  --red: #ef4444;
  --radius: 16px;
  --maxw: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  color: #fff;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
}

.brand svg {
  flex: none;
}

.brand .sub {
  display: block;
  font-size: 0.65rem;
  color: var(--text-faint);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: -2px;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  line-height: 0;
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.99);
}

.btn-primary {
  background: linear-gradient(180deg, #6d70f5, var(--accent-dark));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(99, 102, 241, 0.55);
}

.btn-primary:hover {
  box-shadow: 0 10px 30px -8px rgba(99, 102, 241, 0.7);
  background: linear-gradient(180deg, #7b7ef8, var(--accent-dark));
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  padding: 84px 0 72px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 360px at 20% 10%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(600px 360px at 80% 20%, rgba(129, 140, 248, 0.14), transparent 60%);
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin: 20px auto 16px;
  max-width: 900px;
}

.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent-light), #a5b4fc, var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

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

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  margin-right: 6px;
  animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* --------------------------------------------------------- hero: animated demo */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: center;
  text-align: left;
}

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

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(3px);
  opacity: 0.55;
  animation: orbFloat 10s ease-in-out infinite;
}

.orb-1 {
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.55), transparent 70%);
  top: 10%;
  left: 5%;
}

.orb-2 {
  width: 84px;
  height: 84px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.42), transparent 70%);
  bottom: 8%;
  right: 7%;
  animation-delay: 1.6s;
}

.orb-3 {
  width: 54px;
  height: 54px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.42), transparent 70%);
  top: 55%;
  left: 48%;
  animation-delay: 3.2s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-24px) translateX(12px); }
}

.hero-demo {
  display: none;
}

.demo-phone {
  position: relative;
  margin: 0 auto;
  max-width: 360px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 22px 18px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow:
    0 24px 60px -20px rgba(99, 102, 241, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.demo-phone::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: var(--accent);
  opacity: 0.8;
}

.demo-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-bubble {
  align-self: flex-start;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  opacity: 0;
  animation: bubbleIn 0.5s ease forwards;
  animation-delay: var(--d, 0s);
}

.demo-bubble-out {
  align-self: flex-end;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #fff;
  border: none;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 4px;
}

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

.demo-typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 15px 16px;
}

.demo-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: typingBlink 1s ease-in-out infinite;
}

.demo-typing span:nth-child(2) { animation-delay: 0.15s; }
.demo-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBlink {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.hero-feed {
  list-style: none;
  margin: 46px auto 0;
  padding: 0;
  max-width: 620px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.hero-feed li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 6px 14px;
  animation: feedIn 0.5s ease;
}

.hero-feed .feed-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
}

@keyframes feedIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 900px) {
  .hero-demo {
    display: block;
  }
}

@media (max-width: 899px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    text-align: center;
  }
}


/* ------------------------------------------------------------ trust strip */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 18px 0;
}

.trust-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  justify-content: center;
  align-items: center;
}

.trust-strip li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-strip svg {
  flex: none;
  color: var(--emerald);
}

/* ----------------------------------------------------------------- sections */
section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.section-head .kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0 0 14px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.02rem;
}

.section-head.align-left {
  text-align: left;
  margin-left: 0;
}

/* ---------------------------------------------------------------- feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.feature-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-3px);
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(99, 102, 241, 0.14);
  color: var(--accent-light);
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ------------------------------------------------------------------- steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 22px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px -4px rgba(99, 102, 241, 0.6);
}

.step h3 {
  margin: 10px 0 8px;
  font-size: 1.05rem;
}

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

/* --------------------------------------------------------------- comparison */
.compare {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
}

.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 560px;
}

.compare th, .compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare thead th {
  background: var(--panel);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.compare tbody tr:last-child td {
  border-bottom: none;
}

.compare td:first-child {
  color: var(--text-muted);
}

.compare .yes {
  color: var(--emerald);
  font-weight: 600;
}

.compare .no {
  color: var(--text-faint);
}

/* --------------------------------------------------------------------- faq */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  color: #fff;
  font-size: 0.98rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .chev {
  flex: none;
  color: var(--accent-light);
  transition: transform 0.2s;
}

.faq-item[open] summary .chev {
  transform: rotate(180deg);
}

.faq-item .answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.faq-item .answer p {
  margin: 0 0 10px;
}

.faq-item .answer p:last-child {
  margin: 0;
}

/* ------------------------------------------------------------------- cta */
.cta-band {
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 24px;
  background:
    radial-gradient(480px 240px at 30% 0%, rgba(99, 102, 241, 0.28), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--panel-2));
  text-align: center;
  padding: 60px 28px;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin: 0 0 12px;
}

.cta-band p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 26px;
}

/* ---------------------------------------------------------------- breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 22px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: #fff;
}

.breadcrumbs .sep {
  color: var(--text-faint);
}

/* ------------------------------------------------------------- prose / page */
.page-hero {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 12px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0;
}

.prose {
  max-width: 820px;
}

.prose h2 {
  font-size: 1.5rem;
  margin: 40px 0 14px;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
}

.prose p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.prose ul, .prose ol {
  color: var(--text-muted);
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: #fff;
}

.prose .callout {
  border-left: 3px solid var(--accent);
  background: rgba(99, 102, 241, 0.08);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
}

.prose .callout p:last-child {
  margin: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 16px 0 24px;
}

.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.prose th {
  background: var(--panel);
  color: #fff;
}

/* ---------------------------------------------------------- interest grid */
.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.interest-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.interest-card:hover {
  text-decoration: none;
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
}

.interest-card .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-light);
  flex: none;
}

/* -------------------------------------------------------------- tag lists */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.tag-list li {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 999px;
}

/* -------------------------------------------------------------- 404 page */
.error-page {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.error-page .code {
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(120deg, var(--accent-light), #a5b4fc, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin: 0;
}

/* ------------------------------------------------------------------ footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--text-faint);
  font-size: 0.88rem;
  margin: 12px 0 0;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  color: var(--text-faint);
  font-size: 0.9rem;
  padding: 4px 0;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.footer-bottom .lang {
  color: var(--text-faint);
}

/* -------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 18px;
    gap: 2px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .nav-cta .btn-ghost {
    display: none;
  }

  section {
    padding: 52px 0;
  }

  .hero {
    padding: 56px 0 48px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .live-dot {
    animation: none;
  }
  .orb,
  .demo-bubble,
  .demo-typing span,
  .hero-feed li {
    animation: none;
  }
  .demo-bubble {
    opacity: 1;
  }
  .feature-card:hover {
    transform: none;
  }
  .interest-card:hover {
    transform: none;
  }
}

/* ----------------------------------------------------------------------------
   Hero WOW — animated demo stage with floating phone, video card and toasts
   ------------------------------------------------------------------------- */
.demo-stage {
  position: relative;
  padding: 34px 6px 58px;
}

.demo-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

.demo-glow-1 {
  width: 260px;
  height: 260px;
  background: rgba(99, 102, 241, 0.38);
  top: 0;
  left: 6%;
}

.demo-glow-2 {
  width: 200px;
  height: 200px;
  background: rgba(52, 211, 153, 0.2);
  bottom: 0;
  right: 2%;
  animation-delay: 2s;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

.demo-float {
  animation: demoFloat 6s ease-in-out infinite;
}

.demo-video {
  animation-delay: 0.8s;
}

.demo-toast {
  animation-delay: 1.6s;
}

.demo-chip {
  animation-delay: 2.4s;
}

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

.demo-phone {
  max-width: 330px;
}

.demo-phone-cam {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.demo-phone-cam .live-dot {
  margin-right: 0;
}

.demo-card {
  position: absolute;
  z-index: 2;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.6);
}

.demo-video {
  width: 188px;
  padding: 12px;
  top: 0;
  right: -18px;
}

.demo-video-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.demo-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #818cf8, #4f46e5);
  flex: none;
}

.demo-video-head strong {
  display: block;
  font-size: 0.72rem;
  color: #fff;
  line-height: 1.2;
}

.demo-video-head small {
  font-size: 0.62rem;
  color: var(--text-faint);
}

.demo-live-badge {
  margin-left: auto;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: #ef4444;
  border-radius: 999px;
  padding: 2px 7px;
  animation: badgeBlink 1.6s ease-in-out infinite;
}

@keyframes badgeBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.demo-video-tiles {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 6px;
}

.demo-video-tile {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  height: 64px;
}

.tile-stranger {
  background: linear-gradient(135deg, #23233a, #16161f);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-avatar.big {
  width: 30px;
  height: 30px;
}

.tile-self {
  background: linear-gradient(135deg, #2a2a45, #191926);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.56rem;
  color: #fff;
}

.demo-eq {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.demo-eq i {
  width: 2.5px;
  height: 8px;
  background: var(--emerald);
  border-radius: 2px;
  animation: eq 1.2s ease-in-out infinite;
}

.demo-eq i:nth-child(2) { height: 12px; animation-delay: 0.2s; }
.demo-eq i:nth-child(3) { height: 9px; animation-delay: 0.4s; }

@keyframes eq {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.demo-video-controls {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.demo-video-controls .ctrl {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-video-controls .ctrl.on { background: rgba(52, 211, 153, 0.6); }
.demo-video-controls .ctrl.off { background: #ef4444; }

.demo-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  left: -16px;
  bottom: 12%;
}

.demo-toast-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.18);
  display: grid;
  place-items: center;
  font-size: 16px;
}

.demo-toast strong {
  display: block;
  font-size: 0.74rem;
  color: #fff;
  line-height: 1.2;
}

.demo-toast small {
  font-size: 0.62rem;
  color: var(--text-faint);
}

.demo-chip {
  position: absolute;
  bottom: -6px;
  left: 6%;
  z-index: 2;
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 12px;
}

@media (min-width: 900px) and (max-width: 1099px) {
  .demo-video { width: 160px; right: -6px; }
  .demo-toast { left: -8px; }
  .demo-chip { left: 2%; }
}

/* ----------------------------------------------------------------------------
   Hero CTA glow
   ------------------------------------------------------------------------- */
.hero-actions .btn-primary {
  animation: btnGlow 3.2s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 8px 24px -8px rgba(99, 102, 241, 0.55); }
  50% { box-shadow: 0 8px 36px -6px rgba(99, 102, 241, 0.9); }
}

/* ----------------------------------------------------------------------------
   Featured feature card
   ------------------------------------------------------------------------- */
.feature-card--featured {
  position: relative;
  border: 1px solid rgba(99, 102, 241, 0.55);
  background:
    radial-gradient(420px 220px at 90% 0%, rgba(99, 102, 241, 0.28), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: 0 14px 44px -14px rgba(99, 102, 241, 0.45);
}

.feature-card--featured:hover {
  border-color: rgba(99, 102, 241, 0.75);
  box-shadow: 0 18px 54px -14px rgba(99, 102, 241, 0.6);
}

.feature-badge {
  position: absolute;
  top: -12px;
  right: 22px;
  background: linear-gradient(180deg, #818cf8, #4f46e5);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(99, 102, 241, 0.8);
}

@media (min-width: 700px) {
  .feature-card--featured {
    grid-column: span 2;
  }
  .feature-card--featured h3 {
    font-size: 1.25rem;
  }
}

/* ----------------------------------------------------------------------------
   Meet the interface — browser mockups
   ------------------------------------------------------------------------- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
}

.shot {
  margin: 0;
}

.shot-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 10px 34px;
}

.shot figcaption {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.shot figcaption strong {
  color: #fff;
}

/* phone device frame */
.phone {
  position: absolute;
  right: 4%;
  bottom: -2px;
  z-index: 3;
  width: 122px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #000;
  padding: 7px 5px 9px;
  box-shadow: 0 22px 48px -16px rgba(0, 0, 0, 0.7);
}

.phone-notch {
  width: 44%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 auto 6px;
}

.phone-screen {
  height: 168px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* phone: text chat */
.p-head {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.56rem;
  font-weight: 600;
  color: var(--text);
  padding: 7px 8px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.p-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.p-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  overflow: hidden;
}

.p-bubble {
  max-width: 82%;
  padding: 5px 8px;
  border-radius: 9px;
  font-size: 0.56rem;
  line-height: 1.35;
}

.p-bubble.in {
  align-self: flex-start;
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text);
  border-bottom-left-radius: 3px;
}

.p-bubble.out {
  align-self: flex-end;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-bottom-right-radius: 3px;
}

.p-bubble.typing {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  padding: 7px 9px;
}

.p-bubble.typing i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: typingBlink 1s ease-in-out infinite;
}

.p-bubble.typing i:nth-child(2) { animation-delay: 0.15s; }
.p-bubble.typing i:nth-child(3) { animation-delay: 0.3s; }

.p-input {
  height: 18px;
  margin: 0 8px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

/* phone: video chat */
.phone-screen.p-video {
  background: linear-gradient(135deg, #23233a, #16161f);
}

.pv-tile {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.pv-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #818cf8, #4f46e5);
  display: grid;
  place-items: center;
}

.pv-avatar::after {
  content: "🙂";
  font-size: 20px;
}

.pv-eq {
  position: absolute;
  right: 8px;
  bottom: 34px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.pv-eq i {
  width: 2.5px;
  height: 7px;
  background: var(--emerald);
  border-radius: 2px;
  animation: eq 1.2s ease-in-out infinite;
}

.pv-eq i:nth-child(2) { height: 11px; animation-delay: 0.2s; }
.pv-eq i:nth-child(3) { height: 8px; animation-delay: 0.4s; }

.pv-self {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 40px;
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2a2a45, #191926);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.pv-controls {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.pv-controls span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pv-controls span.on { background: rgba(52, 211, 153, 0.6); }
.pv-controls span.off { background: #ef4444; }

/* phone: matching */
.phone-screen.p-match {
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.pm-ring {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

.pm-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.3);
  animation: mmPulse 1.8s ease-out infinite;
}

.pm-ring > span:last-child {
  position: relative;
  font-size: 15px;
}

.pm-text {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.pm-chips {
  display: flex;
  gap: 4px;
}

.pm-chips span {
  font-size: 0.56rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 7px;
}

.browser {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: 0 18px 48px -18px rgba(0, 0, 0, 0.55);
}

.browser-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.traffic {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.t-red { background: #ff5f57; }
.t-amber { background: #febc2e; }
.t-green { background: #28c840; }

.browser-url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 16px;
  white-space: nowrap;
}

.mock {
  min-height: 200px;
}

/* text chat mock */
.mock-text {
  padding: 16px;
}

.mock-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.mock-bubble.in {
  align-self: flex-start;
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.mock-bubble.out {
  align-self: flex-end;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.mock-bubble.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 12px 14px;
}

.mock-bubble.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: typingBlink 1s ease-in-out infinite;
}

.mock-bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.mock-bubble.typing span:nth-child(3) { animation-delay: 0.3s; }

/* video chat mock */
.mock-video {
  position: relative;
  padding: 14px;
  display: grid;
  place-items: center;
}

.mv-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 100%;
  height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mv-stranger {
  background: linear-gradient(135deg, #23233a, #16161f);
}

.mv-self {
  position: absolute;
  right: 18px;
  bottom: 46px;
  width: 88px;
  height: 62px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, #2a2a45, #191926);
}

.mv-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #818cf8, #4f46e5);
  display: grid;
  place-items: center;
}

.mv-avatar::after {
  content: "🙂";
  font-size: 26px;
}

.mv-name {
  position: absolute;
  left: 8px;
  bottom: 6px;
  font-size: 0.6rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 7px;
  border-radius: 999px;
}

.mv-eq {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.mv-eq i {
  width: 3px;
  height: 8px;
  background: var(--emerald);
  border-radius: 2px;
  animation: eq 1.2s ease-in-out infinite;
}

.mv-eq i:nth-child(2) { height: 12px; animation-delay: 0.2s; }
.mv-eq i:nth-child(3) { height: 9px; animation-delay: 0.4s; }

.mv-controls {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.mv-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
}

.mv-btn.hang {
  background: #ef4444;
  border-color: transparent;
}

/* matching mock */
.mock-matching {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
}

.mm-ring {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
}

.mm-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.28);
  animation: mmPulse 1.8s ease-out infinite;
}

@keyframes mmPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.mm-emoji {
  position: relative;
  font-size: 24px;
}

.mm-title {
  font-size: 0.9rem;
  color: #fff;
}

.mm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.mm-chips span {
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}

.mm-live {
  font-size: 0.68rem;
  color: var(--text-faint);
}

/* ----------------------------------------------------------------------------
   Scroll reveal
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.65, 0.3, 1),
    transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.feature-grid .reveal:nth-child(1) { --reveal-delay: 0s; }
.feature-grid .reveal:nth-child(2) { --reveal-delay: 0.06s; }
.feature-grid .reveal:nth-child(3) { --reveal-delay: 0.12s; }
.feature-grid .reveal:nth-child(4) { --reveal-delay: 0.18s; }
.feature-grid .reveal:nth-child(5) { --reveal-delay: 0.24s; }
.feature-grid .reveal:nth-child(6) { --reveal-delay: 0.3s; }
.feature-grid .reveal:nth-child(7) { --reveal-delay: 0.36s; }

.steps .reveal:nth-child(1) { --reveal-delay: 0s; }
.steps .reveal:nth-child(2) { --reveal-delay: 0.08s; }
.steps .reveal:nth-child(3) { --reveal-delay: 0.16s; }

.shots .reveal:nth-child(1) { --reveal-delay: 0s; }
.shots .reveal:nth-child(2) { --reveal-delay: 0.1s; }
.shots .reveal:nth-child(3) { --reveal-delay: 0.2s; }

.interest-grid .reveal:nth-child(1) { --reveal-delay: 0s; }
.interest-grid .reveal:nth-child(2) { --reveal-delay: 0.03s; }
.interest-grid .reveal:nth-child(3) { --reveal-delay: 0.06s; }
.interest-grid .reveal:nth-child(4) { --reveal-delay: 0.09s; }
.interest-grid .reveal:nth-child(5) { --reveal-delay: 0.12s; }
.interest-grid .reveal:nth-child(6) { --reveal-delay: 0.15s; }
.interest-grid .reveal:nth-child(7) { --reveal-delay: 0.18s; }
.interest-grid .reveal:nth-child(8) { --reveal-delay: 0.21s; }
.interest-grid .reveal:nth-child(9) { --reveal-delay: 0.24s; }
.interest-grid .reveal:nth-child(10) { --reveal-delay: 0.27s; }

/* reduced motion for the new effects */
@media (prefers-reduced-motion: reduce) {
  .demo-float,
  .demo-glow,
  .demo-live-badge,
  .hero-actions .btn-primary,
  .mv-eq i,
  .mock-bubble.typing span,
  .mm-pulse,
  .p-bubble.typing i,
  .pv-eq i,
  .pm-pulse {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
