/* ========================================================
   Crowd Room — Custom Spatial Computing Landing Page
   Design inspired by Museas (https://museas.com)
   ======================================================== */

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

:root {
  color-scheme: dark;
  --bg:          #0e0f12;
  --surface:     rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --border:      rgba(255, 255, 255, 0.1);
  --card-border: rgba(255, 255, 255, 0.08);
  --text:        #ffffff;
  --heading:     #f4f5f6;
  --copy:        #a4adb5;
  --muted:       #7e8892;
  --accent:      #d1d5db;
  --pill-bg:     #ffffff;
  --pill-text:   #0e0f12;
  --nav-bg:      rgba(14, 15, 18, 0.88);
  --footer-bg:   #090a0c;
  --footer-text: #8e98a1;
  --radius:      22px;
  --radius-sm:   14px;
  --radius-pill: 100px;
  --nav-h:       76px;
  --max-w:       1200px;
  --pad:         clamp(20px, 5vw, 64px);
  --font-ui:     -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg:          #ffffff;
  --surface:     #f5f6f8;
  --surface-hover: #ebecef;
  --border:      rgba(15, 23, 42, 0.09);
  --card-border: rgba(15, 23, 42, 0.07);
  --text:        #121316;
  --heading:     #0c0d0f;
  --copy:        #4e5660;
  --muted:       #6b737d;
  --accent:      #4b5563;
  --pill-bg:     #121316;
  --pill-text:   #ffffff;
  --nav-bg:      rgba(255, 255, 255, 0.9);
  --footer-bg:   #f6f7f9;
  --footer-text: #59616a;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg:          #ffffff;
    --surface:     #f5f6f8;
    --surface-hover: #ebecef;
    --border:      rgba(15, 23, 42, 0.09);
    --card-border: rgba(15, 23, 42, 0.07);
    --text:        #121316;
    --heading:     #0c0d0f;
    --copy:        #4e5660;
    --muted:       #6b737d;
    --accent:      #4b5563;
    --pill-bg:     #121316;
    --pill-text:   #ffffff;
    --nav-bg:      rgba(255, 255, 255, 0.9);
    --footer-bg:   #f6f7f9;
    --footer-text: #59616a;
  }
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--copy);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.menu-open {
  overflow: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--heading);
}

/* =====================
   NAVIGATION
   ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  justify-content: center;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--pad);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Pill buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

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

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-back:hover {
  background: var(--surface-hover);
  border-color: var(--text);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.theme-toggle:hover { opacity: 0.7; }
.theme-icon-sun { display: block; }
.theme-icon-moon { display: none; }

:root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: block; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-icon-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-icon-moon { display: block; }
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: var(--surface-hover);
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-burger { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* =====================
   MOBILE MENU DRAWER
   ===================== */
.nav-mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100vh - var(--nav-h));
  height: calc(100dvh - var(--nav-h));
  background: var(--bg);
  padding: 24px var(--pad) calc(40px + env(safe-area-inset-bottom));
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 9999;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.nav-mobile.is-open {
  display: flex !important;
}

.nav-mobile-return {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 10px 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.nav-mobile-return:hover {
  background: var(--surface-hover);
}

.nav-mobile > a:not(.nav-mobile-return):not(.btn-pill) {
  font-size: 19px;
  font-weight: 500;
  color: var(--heading);
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}

.nav-mobile > a:not(.nav-mobile-return):not(.btn-pill):hover {
  color: var(--text);
}

.nav-mobile-cta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-mobile-cta .btn-pill {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 15px;
}

@media (min-width: 861px) {
  .nav-mobile { display: none !important; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .btn-back { display: none; }
  .nav-toggle { display: flex; }
}

/* =====================
   HERO
   ===================== */
.hero {
  padding: clamp(36px, 6vw, 76px) var(--pad) 48px;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(30px, 5.2vw, 58px);
  line-height: 1.12;
  max-width: 960px;
  margin-bottom: 28px;
}

.hero-title .dim {
  color: var(--muted);
  font-weight: 400;
}

/* Hero Showcase */
.showcase {
  margin-top: 28px;
}

.showcase-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: transparent;
  box-shadow: none;
  border: none;
}

.showcase-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.showcase-image.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .showcase-image {
    transition: none;
  }
}

.showcase-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.showcase-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.showcase-prev {
  left: 12px;
}

.showcase-next {
  right: 12px;
}

.showcase-nav:focus-visible,
.showcase-dots button:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: 2px;
}

.showcase-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.showcase-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.35;
  cursor: pointer;
}

.showcase-dots button.is-active {
  opacity: 1;
}

/* Hero Info */
.hero-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-lede {
  flex: 1 1 440px;
  max-width: 680px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
  color: var(--copy);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.hero-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.hero-download-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

/* =====================
   SECTIONS & GRID
   ===================== */
.section {
  padding: clamp(48px, 8vw, 80px) var(--pad);
  border-top: 1px solid var(--border);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 40px;
}

.section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 3.8vw, 40px);
  max-width: 720px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px 28px;
}

.feature-card {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 500;
}

.feature-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Venue Gallery Strip */
.venue-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 16px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .venue-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .venue-strip {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

.venue-card {
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
}

.venue-card-media {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  box-shadow: none;
}

.venue-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.venue-card-body {
  padding: 10px 0 0;
}

.venue-card-body h4 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 4px;
}

.venue-card-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 50px var(--pad) 36px;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--heading);
  font-weight: 600;
  font-size: 17px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--footer-text);
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* =====================
   RECOMMENDATION BAND + COMPACT LAYOUT
   ===================== */
.press-band {
  max-width: calc(var(--max-w) + 2 * var(--pad));
  margin: 0 auto;
  padding: 8px var(--pad) clamp(32px, 5vw, 48px);
}

.press-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 36px;
  padding: 26px 30px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0f6fe0, #0a4fc0);
  color: #fff;
}

.press-rating {
  display: flex;
  align-items: center;
  gap: 14px;
}

.press-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #0a4fc0;
  font-size: 26px;
  font-weight: 700;
}

.press-rating h2 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.1;
}

.press-rating p {
  margin: 4px 0 0;
  color: #fff;
  font-size: 14px;
}

.press-card blockquote {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}

.press-link {
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #0a4fc0;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.press-also {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.section {
  padding: clamp(36px, 5vw, 56px) var(--pad);
}

.section-header {
  margin-bottom: 24px;
}


@media (min-width: 901px) {
  .hero-split {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    margin-top: 28px;
  }

  .hero-split .showcase {
    margin-top: 0;
  }

  .hero-split .hero-info {
    margin-top: 0;
    display: block;
  }

  .hero-split .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 20px;
  }

  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }




}

@media (max-width: 900px) {
  .press-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
  }

  .press-link {
    justify-self: start;
  }
}

/* Video and features share one section */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.watch-split .section-header p:last-child {
  margin-top: 12px;
}

@media (min-width: 901px) {
  .watch-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 36px;
    align-items: center;
  }

  .watch-split .section-header {
    margin-bottom: 0;
  }
}

@media (min-width: 1100px) {
  .cards-grid.features-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
  }

  .features-row .feature-card h3 {
    font-size: 16px;
  }

  .features-row .feature-card p {
    font-size: 14px;
  }
}

/* Closing section */
.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: clamp(40px, 6vw, 72px) var(--pad) clamp(56px, 8vw, 96px);
  background: var(--surface);
  text-align: center;
}

.closing h2 {
  font-size: clamp(32px, 5vw, 56px);
}

.closing p {
  color: var(--copy);
  font-size: clamp(16px, 2vw, 19px);
  margin-bottom: 8px;
}

/* Phones: swipeable slideshows instead of long stacks */
@media (max-width: 640px) {
  .venue-strip,
  .cards-grid.features-row {
    display: flex;
    gap: 14px;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
  }

  .venue-strip::-webkit-scrollbar,
  .cards-grid.features-row::-webkit-scrollbar {
    display: none;
  }

  .venue-strip > .venue-card,
  .features-row > .feature-card {
    flex: 0 0 82%;
    height: auto;
    scroll-snap-align: start;
  }

  .features-row > .feature-card {
    padding: 18px;
    border-radius: var(--radius-sm);
    background: var(--surface);
  }
}

/* Phones: compact, easy to scan */
@media (max-width: 640px) {
  /* The menu already holds a download link; this stops the logo being covered */
  .btn-pill {
    display: none;
  }

  .section {
    padding-block: 32px;
  }

  .section-header {
    margin-bottom: 18px;
  }

  .section-title {
    font-size: 24px;
  }

  .hero-lede {
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-actions,
  .hero-download-btn {
    width: 100%;
  }

  .hero-download-btn {
    justify-content: center;
    text-align: center;
  }

  .press-band {
    padding-bottom: 28px;
  }

  .press-card {
    gap: 12px;
    padding: 18px;
  }

  .press-check {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .press-rating h2 {
    font-size: 22px;
  }

  .press-rating p {
    margin-top: 2px;
    font-size: 13px;
  }

  .press-card blockquote {
    font-size: 15px;
    line-height: 1.45;
  }

  .press-link {
    justify-self: stretch;
    text-align: center;
  }


  .closing {
    padding-block: 40px;
    gap: 12px;
  }

  .closing h2 {
    font-size: 30px;
  }

  .closing .hero-download-btn {
    width: 100%;
  }
}

.closing p {
  max-width: 560px;
}

/* Phones: hero swipes like the venue strip */
@media (max-width: 640px) {
  .showcase-media {
    display: flex;
    gap: 14px;
    aspect-ratio: auto;
    border-radius: 0;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
  }

  .showcase-media::-webkit-scrollbar {
    display: none;
  }

  .showcase-image {
    position: static;
    flex: 0 0 82%;
    width: 82%;
    height: auto;
    aspect-ratio: 16 / 9;
    opacity: 1;
    transition: none;
    scroll-snap-align: start;
  }

  .showcase-nav,
  .showcase-dots {
    display: none;
  }
}
