/* Knowtify — dark tech theme with neon light accents */
:root {
  --bg-deep: #050608;
  --bg: #0a0c10;
  --bg-elevated: #11151c;
  --bg-panel: #161b24;
  --border: #2a3140;
  --text: #e8ecf4;
  --text-muted: #8b94a8;
  --text-faint: #5c6578;
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.18);
  --amber: #ffb020;
  --amber-dim: rgba(255, 176, 32, 0.16);
  --lime: #39ff8a;
  --red: #ff3b4a;
  --orange: #ff6a1a;
  --violet: #c084fc;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Outfit", sans-serif;
  --radius: 14px;
  --max: 1120px;
  --header-h: 72px;
  --section-rule: 1px solid rgba(42, 49, 64, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #7af3ff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ambient atmosphere */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 229, 255, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(255, 176, 32, 0.05), transparent 50%),
    var(--bg-deep);
}

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

.ambient__orb--cyan {
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  top: -8%;
  left: -6%;
  background: var(--cyan);
  opacity: 0.12;
}

.ambient__orb--amber {
  width: min(40vw, 340px);
  height: min(40vw, 340px);
  right: -4%;
  top: 30%;
  background: var(--amber);
  opacity: 0.1;
  animation-delay: -6s;
}

.ambient__orb--lime {
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  left: -6%;
  bottom: -8%;
  background: var(--lime);
  opacity: 0.1;
  animation-delay: -10s;
}

.ambient__orb--red {
  width: min(28vw, 220px);
  height: min(28vw, 220px);
  right: -3%;
  bottom: 8%;
  background: var(--red);
  opacity: 0.1;
  animation-delay: -14s;
}

.ambient__grid {
  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 70% 60% at 50% 20%, black, transparent);
  opacity: 0.5;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 49, 64, 0.65);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
}

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

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav__cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--cyan-dim);
  border-radius: 999px;
  background: var(--cyan-dim);
  color: var(--cyan) !important;
}

.nav__cta:hover {
  background: rgba(0, 229, 255, 0.28);
  color: var(--cyan) !important;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1.25rem, 4vw, 2.5rem)
    clamp(2rem, 5vw, 3rem);
  overflow: visible;
  border-bottom: var(--section-rule);
}

.hero__glow {
  position: absolute;
  inset: 0 10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(0, 229, 255, 0.16), transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(255, 176, 32, 0.1), transparent 45%);
  filter: blur(20px);
  animation: pulse-glow 6s ease-in-out infinite alternate;
  pointer-events: none;
  overflow: hidden;
}

@keyframes pulse-glow {
  from {
    opacity: 0.55;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

.hero__content {
  position: relative;
  width: min(100%, 960px);
  text-align: center;
  animation: rise-in 0.9s ease-out both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.35rem;
  width: min(520px, 86vw);
  overflow: visible;
}

.hero__logo-frame {
  position: relative;
  width: 100%;
  line-height: 0;
  border: 1px solid rgba(77, 184, 255, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(
    165deg,
    rgba(22, 27, 36, 0.95),
    rgba(10, 12, 16, 0.98)
  );
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.08),
    inset 3px 0 0 var(--cyan);
  overflow: hidden;
}

.hero__logo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  /* Keep the mark solid; only dissolve the outer frame rim */
  -webkit-mask-image: radial-gradient(
    ellipse 92% 88% at 50% 50%,
    #000 0%,
    #000 62%,
    rgba(0, 0, 0, 0.85) 74%,
    rgba(0, 0, 0, 0.45) 84%,
    rgba(0, 0, 0, 0.12) 92%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 92% 88% at 50% 50%,
    #000 0%,
    #000 62%,
    rgba(0, 0, 0, 0.85) 74%,
    rgba(0, 0, 0, 0.45) 84%,
    rgba(0, 0, 0, 0.12) 92%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
}

/* Veil only the outer rim — leave the letterforms untouched */
.hero__logo-veil {
  position: absolute;
  inset: -4%;
  pointer-events: none;
  background: radial-gradient(
    ellipse 78% 74% at 50% 50%,
    transparent 0%,
    transparent 58%,
    rgba(5, 6, 8, 0.2) 72%,
    rgba(5, 6, 8, 0.55) 84%,
    rgba(5, 6, 8, 0.88) 93%,
    var(--bg-deep) 100%
  );
}

.hero__headline {
  margin: 0.35rem 0 0.85rem;
  padding: 0.05em 0 0.28em;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 3.35vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.5;
  color: var(--text);
  white-space: nowrap;
  overflow: visible;
}

.hero__sub {
  margin: 0 auto 1.35rem;
  max-width: 54ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 300;
}

/* Email form */
.email-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  width: min(100%, 520px);
  margin: 0 auto;
  text-align: left;
}

.email-form input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(17, 21, 28, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.email-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

.email-form button {
  padding: 0.95rem 1.35rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), #00b8cc);
  color: #041016;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 28px rgba(0, 229, 255, 0.22);
}

.email-form button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.email-form button:active {
  transform: translateY(0);
}

.email-form__status {
  grid-column: 1 / -1;
  min-height: 1.4em;
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--lime);
}

.email-form__status.is-error {
  color: var(--red);
}

/* Sections */
.section-intro {
  width: min(100%, var(--max));
  margin: 0 auto 2.5rem;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-intro h2 {
  margin: 0;
  padding: 0.05em 0 0.28em;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.5;
  overflow: visible;
}

.section-intro__copy {
  margin: 0.9rem auto 0;
  max-width: 52ch;
  color: var(--text-muted);
}

/* Built For */
.built-for {
  padding: clamp(4rem, 10vw, 7rem) 0;
  border-bottom: var(--section-rule);
}

.built-for__grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.audience-card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(165deg, rgba(22, 27, 36, 0.95), rgba(10, 12, 16, 0.98));
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.audience-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
}

.audience-card--gamer::before {
  background: linear-gradient(180deg, var(--cyan), transparent);
}

.audience-card--access::before {
  background: linear-gradient(180deg, var(--amber), transparent);
}

.audience-card--home::before {
  background: linear-gradient(180deg, var(--lime), transparent);
}

.audience-card--focus::before {
  background: linear-gradient(180deg, var(--orange), transparent);
}

.audience-card--sports::before {
  background: linear-gradient(180deg, var(--red), transparent);
}

.audience-card--parents::before {
  background: linear-gradient(180deg, var(--violet), transparent);
}

.audience-card:hover {
  transform: translateY(-3px);
  border-color: #3a4458;
}

.audience-card__tag {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.audience-card--gamer .audience-card__tag {
  color: var(--cyan);
}

.audience-card--access .audience-card__tag {
  color: var(--amber);
}

.audience-card--home .audience-card__tag {
  color: var(--lime);
}

.audience-card--focus .audience-card__tag {
  color: var(--orange);
}

.audience-card--sports .audience-card__tag {
  color: var(--red);
}

.audience-card--parents .audience-card__tag {
  color: var(--violet);
}

.audience-card h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.75vw, 1.225rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.footnote-mark {
  color: var(--amber);
}

.footnote-mark--amber {
  color: var(--amber);
}

.footnote-mark--orange {
  color: var(--orange);
}

/* Privacy — more prominent than footer legal copy */
.privacy {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-bottom: var(--section-rule);
}

.privacy__body {
  width: min(100%, 42rem);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.privacy__body p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.7;
}

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

.privacy__body p:last-child {
  margin-bottom: 0;
}

.privacy__link-wrap {
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
}

.privacy__link {
  font-weight: 600;
  font-size: 0.98rem;
}

/* Standalone privacy policy page */
.policy-page {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 10vw, 6rem);
}

.policy-page__intro h1 {
  margin: 0;
  padding: 0.05em 0 0.28em;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.5;
}

.policy-content {
  width: min(100%, 42rem);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.policy-section {
  margin-bottom: 2.25rem;
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.policy-section p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.policy-section li {
  margin-bottom: 0.45rem;
}

.policy-section li:last-child {
  margin-bottom: 0;
}

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

.policy-back {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.site-footer__links a {
  font-weight: 600;
}

.site-footer__links a:not(.site-footer__contact) {
  color: var(--text-muted);
}

.site-footer__links a:not(.site-footer__contact):hover {
  color: var(--text);
}

.term-tip {
  position: relative;
  display: inline;
  white-space: normal;
}

.term-tip__trigger {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font: inherit;
  font-weight: 600;
  line-height: inherit;
  text-decoration: underline dotted;
  text-decoration-color: rgba(0, 229, 255, 0.55);
  text-underline-offset: 0.18em;
  cursor: help;
}

.term-tip__trigger:hover,
.term-tip__trigger:focus-visible {
  color: #7af3ff;
  outline: none;
}

.term-tip__popup {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  z-index: 20;
  width: min(18rem, 78vw);
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  pointer-events: none;
}

.term-tip__trigger:hover + .term-tip__popup,
.term-tip__trigger:focus-visible + .term-tip__popup,
.term-tip:focus-within .term-tip__popup {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* Google Play CTA */
.download {
  padding: clamp(3rem, 7vw, 5rem) 0;
  text-align: center;
  border-bottom: var(--section-rule);
}

.download__inner {
  width: min(100%, 42rem);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.download__inner h2 {
  margin: 0;
  padding: 0.05em 0 0.2em;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.download__copy {
  margin: 0.75rem auto 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.download__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1.25rem 0.7rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0e1218;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.store-button:hover {
  color: var(--text);
  border-color: #3d475c;
  background: #151b24;
  transform: translateY(-1px);
}

.store-button--soon {
  opacity: 0.82;
  cursor: default;
}

.store-button--soon:hover {
  transform: none;
  border-color: var(--border);
  background: #0e1218;
}

.store-button__icon {
  display: flex;
}

.store-button--google .store-button__icon {
  color: var(--lime);
}

.store-button--apple .store-button__icon {
  color: var(--text);
}

.store-button--pc .store-button__icon {
  color: var(--cyan);
}

.store-button__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  line-height: 1.15;
  text-align: left;
}

.store-button__text small {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.store-button--soon .store-button__text small {
  color: var(--amber);
}

.store-button__text strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Hardware Compatibility */
.compatibility {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
  border-bottom: var(--section-rule);
}

.compatibility__list {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.compatibility__list-label {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.compat-item {
  position: relative;
  padding: 1.15rem 1.25rem 1.15rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(
    165deg,
    rgba(22, 27, 36, 0.85),
    rgba(10, 12, 16, 0.95)
  );
}

.compat-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}

.compat-item--matter::before {
  background: linear-gradient(180deg, var(--cyan), transparent);
}

.compat-item--lifx::before {
  background: linear-gradient(180deg, #4db8ff, transparent);
}

.compat-item--govee::before {
  background: linear-gradient(180deg, var(--lime), transparent);
}

.compat-item--wiz::before {
  background: linear-gradient(180deg, var(--amber), transparent);
}

.compat-item--google::before {
  background: linear-gradient(180deg, var(--orange), transparent);
}

.compat-item h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.compat-item__badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--cyan-dim);
  background: var(--cyan-dim);
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compat-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Demo */
.demo {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(5rem, 10vw, 8rem);
  border-bottom: var(--section-rule);
}

.photosensitivity-warning {
  display: block;
  width: min(calc(100% - clamp(2.5rem, 8vw, 5rem)), calc(var(--max) - clamp(2.5rem, 8vw, 5rem)));
  margin: 0 auto 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 176, 32, 0.45);
  border-radius: 10px;
  background: var(--amber-dim);
  color: #ffd78a;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
  box-sizing: border-box;
}

.demo__stage {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.5rem;
  /* Don't stretch the media column to the panel height (that caused the black gap) */
  align-items: center;
}

.demo__note {
  width: min(100%, 42rem);
  margin: clamp(2rem, 4vw, 2.75rem) auto 0;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
}

.demo__note p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.65;
}

.demo__note p:last-child {
  margin-bottom: 0;
}

.living-room {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #080a0f;
  overflow: hidden;
  align-self: center;
  height: fit-content;
  max-height: 100%;
}

/* Shared 16:9 stage — base + pulse clips fill this frame only */
.living-room__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 720;
  background: #050608;
  overflow: hidden;
  line-height: 0;
}

.living-room__base,
.living-room__pulse {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  /* Fill the stage, center the subject, crop unused frame edges */
  object-fit: cover;
  object-position: center center;
  background: transparent;
}

.living-room__base {
  z-index: 0;
}

.living-room__pulse {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  /* Black areas in pulse clips become transparent over the base */
  mix-blend-mode: screen;
}

.living-room__pulse.is-active {
  opacity: 1;
}

/* Notification panel */
.notify-panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  overflow: hidden;
}

.notify-panel__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: #12171f;
}

.notify-panel__dots {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow:
    16px 0 0 #ffb020,
    32px 0 0 #39ff8a;
  margin-right: 28px;
}

.notify-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.notify-panel__hint {
  margin: 0;
  padding: 0.75rem 1.1rem 0.25rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.notify-panel__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem 1rem 1rem;
  flex: 1;
}

.notify-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.notify-btn:hover {
  border-color: #3d475c;
  background: #1a2030;
  transform: translateX(2px);
}

.notify-btn.is-active {
  border-color: currentColor;
  box-shadow: 0 0 0 1px currentColor inset;
}

.notify-btn[data-effect="sms"].is-active {
  color: #4db8ff;
}

.notify-btn[data-effect="call"].is-active {
  color: var(--red);
}

.notify-btn[data-effect="email"].is-active {
  color: var(--lime);
}

.notify-btn[data-effect="doorbell"].is-active {
  color: var(--orange);
}

.notify-btn__swatch {
  flex-shrink: 0;
  width: 12px;
  height: 36px;
  border-radius: 999px;
}

.notify-btn__swatch--sms {
  background: linear-gradient(180deg, #4db8ff, #1a6cff);
  box-shadow: 0 0 12px rgba(77, 184, 255, 0.45);
}

.notify-btn__swatch--call {
  background: linear-gradient(180deg, #ff6b76, var(--red));
  box-shadow: 0 0 12px rgba(255, 59, 74, 0.45);
}

.notify-btn__swatch--email {
  background: linear-gradient(180deg, #7dffb0, var(--lime));
  box-shadow: 0 0 12px rgba(57, 255, 138, 0.4);
}

.notify-btn__swatch--doorbell {
  background: linear-gradient(180deg, #ffb06a, var(--orange));
  box-shadow: 0 0 12px rgba(255, 106, 26, 0.45);
}

.notify-btn__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.notify-btn__text strong {
  font-weight: 600;
  font-size: 0.98rem;
}

.notify-btn__text small {
  color: var(--text-faint);
  font-size: 0.8rem;
}

.notify-panel__status {
  margin: 0;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  background: #12171f;
}

/* Footer */
.site-footer {
  border-top: none;
  background: #06080c;
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem) 2rem;
}

.site-footer__top {
  width: min(100%, var(--max));
  margin: 0 auto 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer__contact {
  font-weight: 600;
}

.legal {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(42, 49, 64, 0.7);
}

.legal p {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-faint);
}

.legal p:last-child {
  margin-bottom: 0;
}

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

.legal__asterisk {
  font-style: italic;
}

.legal__asterisk .footnote-mark {
  font-style: normal;
}

/* Responsive */
@media (max-width: 900px) {
  .built-for__grid,
  .demo__stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav a:not(.nav__cta) {
    display: none;
  }

  .email-form {
    grid-template-columns: 1fr;
  }

  .email-form button {
    width: 100%;
  }

  .hero {
    padding-top: 0.75rem;
    padding-bottom: 2rem;
  }

  .hero__brand {
    width: min(100%, 86vw);
  }

  .site-footer__top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ambient__orb,
  .hero__glow,
  .hero__content {
    animation: none !important;
  }

  .living-room__pulse.is-active {
    opacity: 0 !important;
  }

  .audience-card:hover,
  .notify-btn:hover,
  .email-form button:hover {
    transform: none;
  }
}
