/* ── Landing page ── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

* {
  -webkit-tap-highlight-color: transparent;
}

*::selection {
  background-color: rgba(0, 133, 254, 0.2);
  color: #23272f;
}

:root {
  --blue: #0085fe;
  --cyan: #0df7fe;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3f9;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: #d4d7de;
  --text: #23272f;
  --text-muted: #5f7d95;
  --gradient: linear-gradient(135deg, #0085fe 0%, #0df7fe 100%);
  --font-heading: "Poppins", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;
  --font-brand: "Comfortaa", system-ui, sans-serif;
  --font-display: "Tilt Warp", system-ui, sans-serif;
  --font-accent: "Baloo 2", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: default;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
}

a,
button,
.btn-glow,
.btn-ghost {
  cursor: pointer;
}

button,
.btn-glow,
.btn-ghost {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  touch-action: manipulation;
}

button.btn-glow,
button.btn-ghost {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  line-height: inherit;
  text-align: center;
}

.seo-nav-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Ambient background */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 133, 254, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 133, 254, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.ambient-orb--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -100px;
  background: rgba(0, 133, 254, 0.12);
  animation: orbDrift1 18s ease-in-out infinite;
}

.ambient-orb--2 {
  width: 500px;
  height: 500px;
  top: 10%;
  right: -150px;
  background: rgba(13, 247, 254, 0.1);
  animation: orbDrift2 22s ease-in-out infinite;
}

.ambient-orb--3 {
  width: 400px;
  height: 400px;
  bottom: 20%;
  left: 30%;
  background: rgba(0, 133, 254, 0.08);
  animation: orbDrift3 26s ease-in-out infinite;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(244, 247, 251, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-strong);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 28px;
}

.site-brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease;
}

.site-nav-link:hover {
  color: var(--text);
  background: rgba(0, 133, 254, 0.08);
}

.site-nav-link:active {
  color: var(--text);
  background: rgba(0, 133, 254, 0.08);
  transform: scale(0.97);
}

/* Buttons */

.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient);
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 133, 254, 0.3);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.hero-actions .btn-glow {
  font-family: var(--font-ui);
  letter-spacing: 0.02em;
}

.site-nav .btn-glow {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 4px 16px rgba(0, 133, 254, 0.08);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  filter: none;
}

.site-header.is-scrolled .site-nav .btn-glow {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.62);
}

.site-nav .btn-glow:hover {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(0, 133, 254, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 6px 20px rgba(0, 133, 254, 0.12);
  filter: none;
  transform: translateY(-1px);
}

.site-nav .btn-glow:active {
  color: var(--blue);
  background: rgba(240, 247, 255, 0.62);
  border-color: rgba(0, 133, 254, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 8px rgba(0, 133, 254, 0.1);
  filter: none;
  transform: translateY(0) scale(0.99);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 133, 254, 0.42);
  filter: brightness(1.06);
}

.btn-glow:active {
  transform: translateY(-1px) scale(0.995);
  box-shadow: 0 4px 18px rgba(0, 133, 254, 0.28);
  filter: brightness(0.98);
  transition-duration: 0.15s;
}

.btn-glow--lg {
  padding: 14px 28px;
  font-size: 0.95rem;
  border-radius: 12px;
}

.btn-glow--light {
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 12px;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(0, 133, 254, 0.08);
  transform: translateY(-1px);
}

.btn-ghost:active {
  color: var(--text);
  background: rgba(0, 133, 254, 0.14);
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

/* Hero */

.hero {
  padding: 120px 28px 80px;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 24px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(0, 133, 254, 0.08);
  border: 1px solid rgba(0, 133, 254, 0.18);
  border-radius: 100px;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.hero-badge:hover {
  transform: translateY(-1px);
  background: rgba(0, 133, 254, 0.12);
  border-color: rgba(0, 133, 254, 0.28);
  box-shadow: 0 4px 14px rgba(0, 133, 254, 0.12);
}

.hero-badge:active {
  transform: translateY(0) scale(0.98);
  background: rgba(0, 133, 254, 0.15);
  border-color: rgba(0, 133, 254, 0.35);
  box-shadow: 0 1px 4px rgba(0, 133, 254, 0.1);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: livePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-copy h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.hero-stat span {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-strong);
}

/* Hero stage */

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.hero-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(0, 133, 254, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  box-shadow: 0 8px 24px rgba(0, 133, 254, 0.12);
  white-space: nowrap;
}

.float-chip svg {
  color: var(--blue);
  flex-shrink: 0;
}

.float-chip--1 {
  top: 8%;
  right: -4%;
  animation: floatA 5s ease-in-out infinite;
}

.float-chip--2 {
  bottom: 28%;
  left: -8%;
  animation: floatB 6s ease-in-out infinite;
}

.float-chip--3 {
  bottom: 6%;
  right: 8%;
  animation: floatA 7s ease-in-out infinite reverse;
}

.room-demo {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 133, 254, 0.06),
    0 20px 48px rgba(0, 133, 254, 0.12);
}

.room-demo-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border-strong);
}

.room-demo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.room-demo-dot:nth-child(1) { background: #ff5f57; }
.room-demo-dot:nth-child(2) { background: #febc2e; }
.room-demo-dot:nth-child(3) { background: #28c840; }

.room-demo-id {
  margin-left: 8px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.room-demo-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.room-demo-live span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: livePulse 2s ease-in-out infinite;
}

.room-demo-body {
  padding: 16px;
  min-height: 260px;
  max-height: 260px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.demo-msg-row--in {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  align-self: flex-start;
  max-width: 92%;
  opacity: 0;
  transform: translateY(8px) scale(0.94);
  transform-origin: left bottom;
  animation: msgPop 0.45s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

.demo-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
}

.demo-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.45;
}

.demo-msg-row--in .demo-msg--in {
  max-width: none;
  flex: 1;
  min-width: 0;
  opacity: 1;
  transform: none;
  animation: none;
}

.demo-msg--in {
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-bottom-left-radius: 4px;
  color: var(--text);
}

.demo-msg--out,
.demo-msg--file {
  align-self: flex-end;
  opacity: 0;
  transform: translateY(8px) scale(0.94);
  transform-origin: right bottom;
  animation: msgPop 0.45s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

.demo-msg--out {
  background: rgba(0, 133, 254, 0.1);
  border: 1px solid rgba(0, 133, 254, 0.2);
  border-bottom-right-radius: 4px;
  color: var(--blue);
}

.demo-msg--file {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 247, 254, 0.1);
  border: 1px solid rgba(13, 247, 254, 0.25);
  border-bottom-right-radius: 4px;
  color: #0099b8;
  font-weight: 500;
}

.demo-msg-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.room-demo-input {
  padding: 12px 16px;
  border-top: 1px solid var(--border-strong);
  background: var(--surface-alt);
}

.room-demo-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--blue);
  border-radius: 1px;
  animation: cursorBlink 1s step-end infinite;
}

/* Marquee */

.marquee-section {
  padding: 0 0 48px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 28s linear infinite;
  user-select: none;
  -webkit-user-select: none;
}

.marquee-track span {
  flex-shrink: 0;
  padding: 8px 20px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Features bento */

.features {
  padding: 80px 28px;
  max-width: 1140px;
  margin: 0 auto;
  scroll-margin-top: 88px;
}

.section-head {
  margin-bottom: 48px;
}

.section-label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.bento-card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.bento-card:hover {
  border-color: rgba(0, 133, 254, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 133, 254, 0.1);
}

.bento-card--wide {
  grid-column: span 2;
}

.bento-card--tall {
  display: flex;
  flex-direction: column;
}

.bento-card--accent {
  background: linear-gradient(145deg, rgba(0, 133, 254, 0.1) 0%, rgba(13, 247, 254, 0.06) 100%);
  border-color: rgba(0, 133, 254, 0.2);
}

.bento-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: rgba(0, 133, 254, 0.1);
  color: var(--blue);
}

.bento-icon--light {
  background: rgba(0, 133, 254, 0.15);
  color: var(--blue);
}

.bento-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bento-card p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.65;
}

.bento-visual--pulse {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.bento-visual--pulse span {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 133, 254, 0.12);
  animation: barPulse 1.8s ease-in-out infinite;
}

.bento-visual--pulse span:nth-child(2) { animation-delay: 0.3s; }
.bento-visual--pulse span:nth-child(3) { animation-delay: 0.6s; }

.bento-lock {
  margin-top: 32px;
  margin-bottom: auto;
  padding: 20px 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bento-lock-ring {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(0, 133, 254, 0.2);
  animation: ringExpand 3s ease-in-out infinite;
}

.bento-lock svg {
  color: var(--blue);
  opacity: 0.7;
}

/* Chat Lottie showcase */

.chat-showcase {
  padding: 0 28px 80px;
  max-width: 1140px;
  margin: 0 auto;
}

.chat-showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(0, 133, 254, 0.05),
    0 16px 48px rgba(0, 133, 254, 0.08);
  overflow: hidden;
}

.chat-showcase-copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.chat-showcase-copy p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 28px;
}

.chat-showcase-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-showcase-lottie {
  width: min(100%, 440px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(0, 133, 254, 0.06) 0%, rgba(13, 247, 254, 0.04) 100%);
  border: 1px solid rgba(0, 133, 254, 0.1);
}

.chat-showcase-lottie dotlottie-player {
  width: 100%;
  height: 100%;
}

/* CTA band */

.cta-band {
  padding: 0 28px 100px;
}

.cta-band-inner {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 64px 48px;
  text-align: center;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 48px rgba(0, 133, 254, 0.1);
  overflow: hidden;
}

.cta-band-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 133, 254, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-band-logo {
  width: 56px;
  height: auto;
  margin-bottom: 20px;
  opacity: 0.9;
}

.cta-band-inner h2 {
  position: relative;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.cta-band-inner p {
  position: relative;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 28px;
}

.cta-band-inner .btn-glow {
  position: relative;
}

/* Scroll reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal="down"] {
  transform: translateY(-16px);
}

[data-reveal].is-visible,
[data-reveal="down"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */

@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 30px); }
}

@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 40px); }
}

@keyframes orbDrift3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes msgPop {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.94);
  }
  65% {
    opacity: 1;
    transform: translateY(-1px) scale(1.015);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes barPulse {
  0%, 100% { background: rgba(0, 133, 254, 0.15); }
  50% { background: rgba(13, 247, 254, 0.5); }
}

@keyframes ringExpand {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.2; }
}

/* Landing responsive */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .hero-stage,
  .room-demo,
  .room-demo-body,
  .demo-msg-row--in,
  .demo-msg {
    text-align: left;
  }

  .float-chip--1 { right: 0; }
  .float-chip--2 { left: 0; }

  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .bento-card--wide { grid-column: span 2; }

  .chat-showcase-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .chat-showcase-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .ambient {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafd 48%, #f4f8fc 100%);
  }

  .ambient-orb--1 { background: rgba(0, 133, 254, 0.09); }
  .ambient-orb--2 { background: rgba(13, 247, 254, 0.07); }
  .ambient-orb--3 { background: rgba(0, 133, 254, 0.06); }
}

@media (max-width: 640px) {
  :root {
    --bg: #f8fafd;
  }

  .ambient {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 50%, #f6f9fc 100%);
  }

  .ambient-orb--1 { background: rgba(0, 133, 254, 0.06); }
  .ambient-orb--2 { background: rgba(13, 247, 254, 0.045); }
  .ambient-orb--3 { background: rgba(0, 133, 254, 0.035); }

  .ambient-grid {
    background-image:
      linear-gradient(rgba(0, 133, 254, 0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 133, 254, 0.025) 1px, transparent 1px);
  }

  .hero-glow {
    background: radial-gradient(circle, rgba(0, 133, 254, 0.07) 0%, transparent 70%);
  }

  .site-header-inner { padding: 12px 24px; }
  .site-brand-logo { height: 34px; }
  .site-nav-link { display: none; }

  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    padding: 88px 36px 32px;
    box-sizing: border-box;
    overflow: visible;
  }

  .hero-stage {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    padding: 16px 0 8px;
    overflow: visible;
  }
  .hero-copy h1 { font-size: 2rem; }
  .hero-desc {
    font-size: 0.95rem;
    max-width: 400px;
    margin-inline: auto;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .btn-glow--lg,
  .btn-ghost {
    width: 100%;
    max-width: 400px;
    justify-content: center;
  }

  .hero-stats { gap: 12px; }
  .hero-stat-divider { display: none; }

  .float-chip {
    font-size: 0.68rem;
    padding: 6px 11px;
    gap: 5px;
  }

  .float-chip--1 {
    top: 2%;
    right: 0;
  }

  .float-chip--2 {
    bottom: 34%;
    left: 0;
  }

  .float-chip--3 {
    bottom: 2%;
    right: 0;
  }

  .room-demo {
    max-width: 100%;
    margin-inline: auto;
  }

  .marquee-section {
    padding: 0 24px 48px;
  }

  .marquee {
    max-width: 400px;
    margin-inline: auto;
  }

  .section-head {
    max-width: 400px;
    margin-inline: auto;
  }

  .features { padding: 60px 24px; }

  .bento {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .bento-card--wide { grid-column: span 1; }

  .chat-showcase { padding: 0 24px 60px; }

  .chat-showcase-inner {
    padding: 28px 20px;
    gap: 28px;
    max-width: 400px;
    margin-inline: auto;
  }

  .cta-band { padding: 0 24px 72px; }

  .cta-band-inner {
    padding: 48px 24px;
    border-radius: 16px;
    max-width: 400px;
    margin-inline: auto;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 87.5%;
  }

  .site-header-inner {
    padding: 10px 18px;
  }

  .site-brand-logo {
    height: 30px;
  }

  .hero {
    padding: 88px 32px 48px;
  }

  .hero-stage {
    max-width: 320px;
  }

  .hero-copy h1 {
    font-size: 1.75rem;
  }

  .hero-desc,
  .btn-glow--lg,
  .btn-ghost,
  .room-demo,
  .marquee,
  .section-head,
  .bento,
  .chat-showcase-inner,
  .cta-band-inner {
    max-width: 340px;
  }

  .features {
    padding: 48px 18px;
  }

  .marquee-section {
    padding: 0 18px 48px;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .bento-card {
    padding: 22px;
  }

  .chat-showcase {
    padding: 0 18px 48px;
  }

  .chat-showcase-inner {
    padding: 24px 16px;
    gap: 22px;
  }

  .chat-showcase-lottie {
    border-radius: 16px;
  }

  .cta-band {
    padding: 0 18px 60px;
  }

  .cta-band-inner {
    padding: 36px 18px;
    border-radius: 14px;
  }
}

/* Short viewports — compact hero so section 1 fits on phone screens */

@media (min-width: 641px) and (max-width: 960px) and (max-height: 900px) {
  .hero {
    min-height: auto;
    padding: 80px 24px 36px;
  }

  .hero-inner {
    gap: 28px;
  }

  .hero-badge {
    margin-bottom: 16px;
    padding: 5px 12px 5px 9px;
    font-size: 0.72rem;
  }

  .hero-copy h1 {
    font-size: 1.85rem;
    margin-bottom: 14px;
    line-height: 1.12;
  }

  .hero-desc {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .hero-actions {
    margin-bottom: 22px;
    gap: 6px;
  }

  .btn-glow--lg {
    padding: 11px 22px;
    font-size: 0.88rem;
  }

  .btn-ghost {
    padding: 11px 18px;
    font-size: 0.86rem;
  }

  .hero-stats {
    gap: 10px;
  }

  .hero-stat strong {
    font-size: 0.9rem;
  }

  .hero-stat span {
    font-size: 0.72rem;
  }

  .room-demo-body {
    min-height: 210px;
    max-height: 210px;
    padding: 12px;
    gap: 8px;
  }

  .room-demo-bar,
  .room-demo-input {
    padding: 10px 14px;
  }

  .demo-msg {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .demo-msg-avatar {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 640px) and (max-height: 820px) {
  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    padding: 72px 36px 24px;
  }

  .hero-inner {
    gap: 20px;
  }

  .hero-badge {
    margin-bottom: 12px;
  }

  .hero-copy h1 {
    font-size: 1.65rem;
    margin-bottom: 10px;
  }

  .hero-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .hero-actions {
    margin-bottom: 16px;
  }

  .btn-glow--lg,
  .btn-ghost {
    padding: 10px 20px;
    font-size: 0.84rem;
  }

  .room-demo-body {
    min-height: 175px;
    max-height: 175px;
    padding: 10px;
    gap: 6px;
  }

  .demo-msg {
    padding: 7px 10px;
    font-size: 0.74rem;
  }
}

@media (max-width: 640px) and (max-height: 700px) {
  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    padding: 64px 36px 20px;
  }

  .hero-inner {
    gap: 16px;
  }

  .hero-copy h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .hero-desc {
    font-size: 0.82rem;
    margin-bottom: 12px;
  }

  .hero-actions {
    margin-bottom: 12px;
  }

  .hero-stats {
    display: none;
  }

  .room-demo-body {
    min-height: 150px;
    max-height: 150px;
  }

  .room-demo-bar {
    padding: 8px 12px;
  }

  .room-demo-input {
    padding: 8px 12px;
  }

  .room-demo-cursor {
    height: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-orb,
  .float-chip,
  .marquee-track,
  .hero-badge-dot,
  .room-demo-live span,
  .bento-visual--pulse span,
  .bento-lock-ring,
  .room-demo-cursor,
  .demo-msg-row--in,
  .demo-msg--out,
  .demo-msg--file {
    animation: none;
  }

  .demo-msg-row--in,
  .demo-msg--out,
  .demo-msg--file {
    opacity: 1;
    transform: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Footer (from Display Manager) ── */

.footer {
  background: #ffffff;
  border-top: 1px solid #e7e7e7;
  padding: 64px 24px;
  width: 100%;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-main-section {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 120px;
  width: 100%;
}

.footer-brand-column {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  height: auto;
  width: auto;
  user-select: none;
  -webkit-user-select: none;
}

.footer-dm-brand {
  display: flex;
  align-items: center;
}

.wordmark-logo {
  height: 44px;
  width: auto;
  max-width: 210px;
}

.footer-by-section {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.footer-by-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 100px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  width: fit-content;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.footer-by-brand:hover {
  background-color: #0088ff09;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.footer-by-brand-text {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.01em;
  line-height: 1;
}

.alledo-logo {
  max-height: 16px;
}

.footer-by-text {
  color: #7b7e89;
  font-size: 11px;
  font-weight: 400;
}

.footer-tagline {
  font-family: var(--font-brand);
  color: #7b7e89;
  font-size: 14px;
  line-height: 1.5;
  margin: 20px 0 0;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-link {
  color: #7b7e89;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  color: #667eea;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-top: 32px;
  width: fit-content;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
  transition: background 0.2s ease;
}

.footer-status-badge:hover {
  background-color: #0088ff09;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: statusPulse 2.2s ease-in-out infinite;
}

.status-text {
  font-family: var(--font-body);
  color: #374151;
  font-size: 14px;
  line-height: 1;
}

.footer-nav-columns {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 40px 80px;
  margin: 32px 28px 0 auto;
  justify-items: start;
}

.footer-nav-column {
  display: flex;
  flex-direction: column;
}

.footer-nav-heading {
  color: #22242d;
  font-size: 16px;
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  cursor: default;
}

.footer-nav-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-link {
  font-family: var(--font-body);
  color: #7b7e89;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  line-height: 1.6;
  white-space: nowrap;
}

.footer-nav-link:hover {
  color: #667eea;
}

.live-badge {
  display: inline-block;
  font-family: var(--font-ui);
  background: #dbeafe;
  color: #2563eb;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px 10px 10px 5px;
  margin-left: 3px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.footer-bottom-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 40px;
  margin-top: 48px;
  border-top: 1px solid #e7e7e7;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-copyright {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-copyright p {
  font-family: var(--font-body);
  color: #7b7e89;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}

.footer-copyright p a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-copyright p a:hover {
  color: #764ba2;
}

.footer-subtext {
  line-height: 1.8;
  margin: 0;
  padding-top: 5px;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-legal-links a {
  font-family: var(--font-accent);
  color: #7b7e89;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #667eea;
}

.heart {
  width: 15px;
  height: 15px;
  margin: 0 4px;
  vertical-align: middle;
  display: inline-block;
  user-select: none;
  -webkit-user-select: none;
  animation: heartBeat 1.8s ease-in-out infinite;
  transform-origin: center;
}

.flag {
  width: 20px;
  margin: 0 0 0 4px;
  vertical-align: middle;
  display: inline-block;
  user-select: none;
  -webkit-user-select: none;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.18); }
  28% { transform: scale(1); }
  42% { transform: scale(1.12); }
  56% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot,
  .heart {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .footer { padding: 56px 20px; }
  .footer-main-section { gap: 60px; }
  .footer-brand-column { flex: 0 0 240px; }
  .footer-tagline { max-width: 240px; }
  .footer-nav-columns { gap: 32px 60px; margin: 12px 0 0; }
}

@media (max-width: 768px) {
  .footer { padding: 48px 20px; }
  .footer-main-section { flex-direction: column; gap: 36px; align-items: flex-start; }
  .footer-brand-column { flex: 1; max-width: 100%; }
  .footer-tagline { max-width: 100%; }
  .footer-social { margin-top: 16px; gap: 12px; }
  .footer-status-badge { margin-top: 20px; }
  .footer-nav-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 40px;
    width: 100%;
    margin: 20px 0 0;
  }
  .footer-nav-heading { font-size: 15px; margin: 0 0 10px; }
  .footer-nav-link { font-size: 13px; white-space: normal; }
  .footer-bottom-section {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 28px;
    margin-top: 36px;
    gap: 32px;
  }
  .footer-copyright p { font-size: 13px; }
  .footer-legal-links { flex-wrap: wrap; gap: 16px; }
  .footer-legal-links a { font-size: 13px; }
}

@media (max-width: 600px) {
  .footer { padding: 36px 24px; }
  .footer-content { gap: 28px; }
  .footer-main-section { gap: 28px; }
  .wordmark-logo { height: 34px; max-width: 175px; }
  .footer-by-section { flex-wrap: wrap; margin-top: 10px; }
  .footer-by-brand { padding: 5px 10px 5px 8px; gap: 6px; }
  .footer-by-brand-text { font-size: 11px; }
  .alledo-logo { max-height: 14px; }
  .footer-tagline { font-size: 13px; margin-top: 16px; }
  .social-link svg { width: 18px; height: 18px; }
  .status-text { font-size: 12px; }
  .footer-status-badge { margin-top: 16px; padding: 5px 8px; }
  .footer-nav-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }
  .footer-nav-heading { font-size: 14px; }
  .footer-nav-link { font-size: 12px; }
  .footer-bottom-section { padding-top: 24px; margin-top: 28px; gap: 24px; }
  .footer-copyright p { font-size: 12px; }
  .footer-legal-links a { font-size: 12px; }
  .heart { width: 13px; height: 13px; }
  .flag { width: 17px; }
}

@media (max-width: 450px) {
  .footer { padding: 32px 18px; }
}

@media (max-width: 400px) {
  .footer-by-brand-text { font-size: 10px; }
  .wordmark-logo { height: 28px; max-width: 155px; }
}

@media (max-width: 340px) {
  .footer-nav-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
