* {
  box-sizing: border-box;
}

:root {
  --bar-height: 80px;
  --bar-black: #000;
  --ui-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ui-grey: rgba(255,255,255,0.82);
}

html, body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #fff;
  font-family: var(--ui-font);
  opacity: 0;
  transition: opacity 800ms ease;
  overflow-x: hidden;
}

body.is-ready {
  opacity: 1;
}

a {
  color: #fff;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* =========================
   Fixed top navigation
========================= */

.top-bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--bar-height);
  background: #000;
  z-index: 999;
}

.top-nav-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--bar-height);
  z-index: 1000;
  pointer-events: none;
}

.top-nav-center {
  position: absolute;
  inset: 0 96px 0 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: auto;
}

.top-nav-right {
  position: absolute;
  top: 0;
  right: 20px;
  height: var(--bar-height);
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.contact-button {
  min-height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  font-family: var(--ui-font);
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 0.14em;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, letter-spacing 0.2s ease;
  outline: none;
  text-decoration: none;
  white-space: nowrap;
}

.contact-button:hover {
  opacity: 0.65;
  letter-spacing: 0.25em;
  background: transparent;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.contact-button:active {
  transform: none;
}

.icon-button {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 999px;
  background: rgba(0,0,0,0.82);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: opacity 180ms ease, background 180ms ease;
  outline: none;
  box-shadow: none;
}

.icon-button:hover {
  opacity: 0.75;
}

.icon-button:active {
  transform: none;
}

.icon-button img {
  width: 28px;
  height: 28px;
  opacity: 1;
  filter: none;
  display: block;
}

/* =========================
   Hero sections
========================= */

.hero-header {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.hero-header::before,
.hero-header::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--bar-height);
  background: var(--bar-black);
  z-index: 6;
}

.hero-header::before { top: 0; }
.hero-header::after { bottom: 0; }

.landing-hero {
  height: 100vh;
  min-height: 760px;
}

.footer-demo-hero {
  min-height: 100vh;
}

.bg-video {
  position: absolute;
  top: var(--bar-height);
  left: 0;
  width: 100%;
  height: calc(100% - (var(--bar-height) * 2));
  object-fit: cover;
  object-position: center center;
  z-index: 1;
}

.overlay {
    position: absolute;
    top: var(--bar-height);
    bottom: var(--bar-height);
    left: -8px;
    right: 0;
    background: rgba(0,0,0,0.18);
    z-index: 2;
    opacity: 0;
    transition: opacity 900ms ease;
}

body.is-ready .overlay {
  opacity: 1;
}

.hero-bg {
  position: absolute;
  inset: var(--bar-height) 0 var(--bar-height) 0;
  background-image: url("images/Demo_PG_BG.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
}

.footer-hero-branding {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 120px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.snarl-logo {
  width: clamp(280px, 32vw, 560px);
  height: auto;
  display: block;
}

.footer-snarl-logo {
  margin: 0 auto 12px;
  max-width: 350px;
}

.demo-strapline {
  display: block;
  width: 800px;
  max-width: 78vw;
  height: auto;
}

.footer-demo-strapline {
  margin: 0 auto;
  max-width: 640px;
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: rgba(255,255,255,0.85);
}
.footer-demo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.0) 60%,
    rgba(0,0,0,0.4) 100%
  );
  pointer-events: none;
}

.hero-cta-bar a {
  font-family: var(--ui-font);
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 0.14em;
  font-size: 13px;

  color: rgba(255,255,255,0.9);
  text-decoration: none;

  transition: opacity 0.2s ease, letter-spacing 0.2s ease;
}

.hero-cta-bar a:hover {
  opacity: 0.65;
  letter-spacing: 0.25em;
}



/* =========================
   Main content
========================= */

.demo-page {
  background: #000;
  color: #fff;
  position: relative;
  z-index: 2;
}

.demo-section {
  padding: 96px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  scroll-margin-top: 96px;
  text-align: center;
}

.demo-wrap {
  width: min(1200px, calc(100% - 10vw));
  margin: 0 auto;
}

.demo-section h2 {
  margin: 0 0 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: clamp(26px, 3vw, 36px);
  color: #9E0000;
}

.demo-section h3 {
  margin: 0 0 16px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 16px;
  color: #fff;
}

.video-length {
  font-size: 12px;
  margin-left: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.1em;
}

.demo-section p,
.demo-footer p,
.section-intro,
.download-meta,
.demo-meta-strip,
.notes-col li,
.project-status-line {
  font-family: var(--ui-font);
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0.08em;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
}

.demo-section p,
.demo-footer p {
  margin: 0 auto 20px;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 26px;
}

.demo-section .trailer-quote {
  text-align: center;
  margin: 24px auto 56px;
  padding: 0 20px;
  font-style: italic;
  font-size: clamp(18px, 3.2vw, 24px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-weight: 300;
  color: #ffffff;
  max-width: 640px;
  text-wrap: balance;
}

.demo-section .trailer-quote span {
  display: block;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-style: normal;
}

.demo-section .trailer-quote::before {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  margin: 0 auto 24px;
  background: rgba(255,255,255,0.2);
}

.features-section h2 {
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
}

.feature-list {
  list-style: none;
  margin: 30px auto 0;
  padding: 0;
  max-width: 760px;
}

.feature-list li {
  margin-bottom: 14px;
  font-family: var(--ui-font);
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0.08em;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  text-align: center;
}
.video-grid.single {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
}

.video-card {
  width: 100%;
  max-width: 780px;
}

.video-card,
.download-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  overflow: hidden;
}

.video-card {
  position: relative;
  background: #050505;
  transition: transform 0.25s ease, box-shadow 0.35s ease;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 70px rgba(0,0,0,0.75);
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Download section */

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 380px));
  justify-content: center;
  gap: 28px;
  margin: 34px auto 30px;
  max-width: 788px;
}

.download-card {
  min-height: 148px;
  padding: 24px 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  border-radius: 22px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.025)
  );
  border: 1px solid rgba(255,255,255,0.16);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 16px 36px rgba(0,0,0,0.32);

  transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;

  position: relative;
  overflow: hidden;
}

.download-card:hover,
.download-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 24px 54px rgba(0,0,0,0.46);
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.085),
    rgba(255,255,255,0.035)
  );
  text-decoration: none;
}

.download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.14);
}

.download-platform {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.48);
}

.download-label {
  display: block;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 19px;
  line-height: 1.15;
  margin-bottom: 8px;
}


.download-card::after {
  content: "↗";
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-size: 18px;
  line-height: 1;
  color: rgba(255,255,255,0.38);
  transition: transform .2s ease, color .2s ease, opacity .2s ease;
}

.download-card:hover::after,
.download-card:focus-visible::after {
  transform: translate(3px, -3px);
  color: rgba(255,255,255,0.78);
}




.download-meta {
  display: block;
  color: rgba(255,255,255,0.62);
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .download-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 26px auto;
  }
}



.build-notes {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.two-column-notes {
  max-width: 788px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  text-align: left;
	transform: translateX(20px);
}

.notes-col {
  text-align: left;
}

.notes-col h3 {
  text-align: left;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.notes-col ul {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
  text-align: left;
}

.notes-col li {
  margin-bottom: 10px;
  line-height: 1.5;
  text-align: left;
}

.project-status-line {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.65);
  text-align: center;
}




/* Screenshots */
.screenshot-section {
  padding-top: 30px;
  padding-bottom: 70px;
}

.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.screenshot-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  background: #000;
  transform: scale(1);
  transition: transform 0.45s ease, filter 0.45s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  cursor: zoom-in;
}

.screenshot-strip img:hover {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.footer-enquiries-section .demo-hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.demo-primary-button {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.12s ease, box-shadow 0.25s ease, background 0.25s ease;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
}

.demo-primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
  text-decoration: none;
}

.demo-footer {
  padding: 30px 5vw 50px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #000;
}

.demo-footer p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.56);
}

/* Contact modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1002;
  font-family: var(--ui-font);
}

.modal.open { display: block; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
}

.modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(480px, calc(100% - 40px));
  transform: translate(-50%, -50%);
  background: rgba(15, 15, 15, 0.97);
  color: #fff;
  border-radius: 20px;
  padding: 28px 28px;
	border: 1px solid rgba(255,255,255,0.18);
box-shadow:
  inset 0 1px 0 rgba(255,255,255,0.04),
  0 25px 70px rgba(0,0,0,0.6);}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.modal-panel h2 {
  margin: 6px 0 10px;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modal-sub {
  margin: 0 0 16px;
  font-size: 14px;
  opacity: 0.85;
  font-weight: 300;
  text-align: center;
}

.modal-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.modal-form input {
  flex: 1;
  min-width: 200px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 0 12px;
  outline: none;
  font-family: var(--ui-font);
  font-weight: 300;
}

.modal-send {
  height: 46px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  font-family: var(--ui-font);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 12px;
}

.modal-hint {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.75;
  font-weight: 300;
  text-align: center;
}

.modal-sub a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}

.modal-sub a:hover {
  border-bottom-color: #fff;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1003;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;

  width: 48px;
  height: 48px;

  border-radius: 50%; /* ← THIS makes it round */

  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.8);

  color: #fff;
  font-size: 18px;

  display: none;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 1001;

  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
  background: rgba(197, 58, 47, 0.9);
}

/* Focus */
.icon-button:focus-visible,
.contact-button:focus-visible,
.modal-close:focus-visible,
.modal-send:focus-visible,
.modal-form input:focus-visible,
.demo-primary-button:focus-visible,
#back-to-top:focus-visible {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.22);
}

@media (max-width: 980px) {
  .download-grid,
  .two-column-notes,
  .screenshot-strip {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --bar-height: 64px;
  }

  .top-bar,
  .top-nav-wrap {
    height: var(--bar-height);
  }

  .landing-hero {
    min-height: 72vh;
    height: 72vh;
  }

  .bg-video {
    top: var(--bar-height);
    height: calc(100% - (var(--bar-height) * 2));
    object-position: center center;
  }

  .overlay {
    top: var(--bar-height);
    bottom: var(--bar-height);
  }

  .top-nav-center {
    inset: 0 60px 0 12px;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .top-nav-center::-webkit-scrollbar {
    display: none;
  }

  .contact-button {
    min-height: 40px;
    padding: 0 10px;
    font-size: 10px;
    letter-spacing: 0.08em;
    flex: 0 0 auto;
  }

  .top-nav-right {
    right: 12px;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .icon-button img {
    width: 20px;
    height: 20px;
  }

  .demo-wrap {
    width: calc(100% - 8vw);
  }

  .demo-section {
    padding: 68px 0;
  }

  .snarl-logo,
  .footer-snarl-logo {
    width: min(84vw, 360px);
  }

  .demo-strapline,
  .footer-demo-strapline {
    width: 90vw;
    max-width: 90vw;
  }

  .footer-hero-branding {
    bottom: 36px;
  }

  .modal-panel {
    width: min(92vw, 420px);
    padding: 20px;
  }

  .modal-form {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-send {
    width: 100%;
  }

  .back-to-top {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
  }
}

.hero-cta-bar {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 10;

  width: min(900px, calc(100% - 40px));
  text-align: center;

  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.4;
  letter-spacing: 0.06em;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
}
/*
.hero-cta-bar a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: opacity 0.2s ease;
}*/

.hero-cta-bar a:hover {
  opacity: 0.75;
  letter-spacing: 0.08em;
}

.section-divider-image {
  position: relative;
  width: 100%;
  margin: 40px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.section-divider-image img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center center;
  opacity: 0.82;
  filter: brightness(0.78);
  position: relative;
  z-index: 1;
}

.section-divider-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.85) 10%, transparent 75%);
  pointer-events: none;
  z-index: 2;
}

.section-divider-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.85) 10%, transparent 75%);
  pointer-events: none;
  z-index: 2;
}