:root {
  --qo-bg: #000000;
  --qo-text-primary: #ffffff;
  --qo-text-secondary: #a1a1aa;
  --qo-border-color: rgba(255, 255, 255, 0.2);

  /* Branding Colors */
  --qo-brand-blue: #0055ff;
  --qo-brand-red: #ff2a3f;
}

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

body.pitch-black-theme {
  background-color: var(--qo-bg);
  color: var(--qo-text-primary);
  /* Switched to Inter for a cleaner, slimmer look */
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* =========================================
   Navbar Layout (Solid Pitch Black)
========================================= */
.qo-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  background: #000000;
  border-bottom: 1px solid transparent;
  transition:
    padding 0.3s ease,
    border-bottom 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.qo-navbar.scrolled {
  padding: 16px 0;
}

.qo-nav-container {
  width: min(1400px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================================
   Brand / Logo
========================================= */
.qo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--qo-text-primary);
}

.qo-logo-img {
  width: 32px;
  height: auto;
  display: block;
}

.brand-text {
  font-size: 21px;
  font-weight: 500; /* Slimmer weight */
  letter-spacing: -0.5px;
}

/* =========================================
   Primary Navigation & Actions
========================================= */
.qo-main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.qo-main-nav a,
.qo-link-subtle {
  color: var(--qo-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400; /* Slimmer weight */
  transition: color 0.2s ease;
}

.qo-main-nav a:hover,
.qo-link-subtle:hover {
  color: var(--qo-text-primary);
}

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

.qo-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  color: var(--qo-text-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--qo-border-color);
  border-radius: 50px;
  transition: all 0.3s ease;
}

/* Navbar Pill Button Hover */
.qo-btn-pill:hover {
  background: var(--qo-brand-blue);
  border-color: var(--qo-brand-blue);
  box-shadow: 0 4px 15px rgba(0, 85, 255, 0.35);
  color: #ffffff;
}

/* =========================================
   Parallax Background (Grid Only)
========================================= */
.qo-parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120vh;
  z-index: 1;
  pointer-events: none;
  background-color: var(--qo-bg);
}

.qo-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
}

/* =========================================
   Content Layer & Redesigned Split Hero
========================================= */
.qo-content-layer {
  position: relative;
  z-index: 2;
}

.qo-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* Using 18vh pushes the entire block down so the text sits perfectly in the middle */
  padding: 18vh 0 10vh 0;
}

.qo-hero-container {
  width: min(1400px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.qo-hero-content {
  text-align: left;
}

/* Much slimmer, elegant headline */
.qo-headline {
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 300; /* Extra slim weight for the Cockroach Labs vibe */
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: white;
}

.qo-subheadline {
  font-size: 18px;
  font-weight: 300;
  color: var(--qo-text-secondary);
  max-width: 580px;
  margin: 0 0 40px 0;
  line-height: 1.6;
}

.qo-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
}

/* Hero primary button matches the new gradient hover */
.qo-btn-primary {
  display: inline-flex;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Hero Primary Button Hover */
.qo-btn-primary:hover {
  background: var(--qo-brand-blue);
  border-color: var(--qo-brand-blue);
  box-shadow: 0 4px 15px rgba(0, 85, 255, 0.35);
  color: #ffffff;
}

.qo-btn-secondary {
  display: inline-flex;
  padding: 16px 32px;
  background: transparent;
  color: var(--qo-text-secondary);
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.qo-btn-secondary:hover {
  color: var(--qo-text-primary);
}

/* =========================================
   Abstract Art Styling
========================================= */
/* =========================================
   Premium iPhone Mockup Styling
========================================= */
.qo-hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.qo-iphone-mockup {
  position: relative;
  max-width: 320px; /* Perfect scale for desktop hero */
  width: 100%;
  z-index: 5;
  /* Animation removed to keep it perfectly still and anchored */
}

/* Hardware Buttons (Volume & Action Button simulation) */
.qo-iphone-mockup::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 105px;
  width: 3px;
  height: 50px;
  background: #4a4b4e;
  border-radius: 4px 0 0 4px;
  box-shadow: 0 65px 0 0 #4a4b4e; /* Duplicates the button downward */
  z-index: 1;
}

/* Hardware Button (Power simulation) */
.qo-iphone-mockup::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 125px;
  width: 3px;
  height: 70px;
  background: #4a4b4e;
  border-radius: 0 4px 4px 0;
  z-index: 1;
}

/* The device bezel (Dark Titanium / Glass aesthetic) */
.qo-iphone-frame {
  position: relative;
  z-index: 2;
  background-color: #000000;
  border-radius: 46px; /* Refined outer curve */
  padding: 10px; /* Slimmer, sleeker edge-to-edge feel */
  box-shadow:
    inset 0 0 2px 1px rgba(255, 255, 255, 0.2),
    /* Crisp inner glass reflection */ 0 0 0 1px #000000,
    /* Seamless gap */ 0 0 0 3px #3a3b3e,
    /* Sleek Titanium outer edge */ 0 30px 60px -12px rgba(0, 0, 0, 0.9),
    /* Deep grounded shadow */ 0 0 40px rgba(0, 85, 255, 0.15); /* Subtle ambient brand blue bleeding from the frame */
}

/* Glass Glare Overlay for that premium glossy feel */
.qo-iphone-frame::after {
  content: "";
  position: absolute;
  inset: 10px; /* Align exactly with the screen padding */
  border-radius: 36px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 35%
  );
  pointer-events: none;
  z-index: 3;
}

/* The screen image */
.qo-iphone-screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px; /* Inner screen curve */
  object-fit: cover;
  pointer-events: none;
}

/* The branded ambient light behind the phone (Smoothed out) */
.qo-iphone-glow {
  position: absolute;
  top: 20%;
  left: 5%;
  width: 90%;
  height: 60%;
  background: linear-gradient(
    135deg,
    var(--qo-brand-blue),
    var(--qo-brand-red)
  );
  filter: blur(80px); /* Increased blur for a softer, more premium glow */
  opacity: 0.45; /* Lowered opacity for elegance */
  z-index: 1;
  border-radius: 50%;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .qo-iphone-mockup {
    max-width: 280px;
    margin: 0 auto;
  }
}

.qo-abstract-art {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: hue-rotate(330deg) saturate(1.2)
    drop-shadow(0 0 60px rgba(0, 85, 255, 0.2));
  animation: floatImage 6s ease-in-out infinite;
}

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

/* =========================================
   Standard Sections
========================================= */
.qo-section {
  padding: 120px 20px;
  background: var(--qo-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.qo-section h2 {
  font-weight: 400; /* Slim headings for inner sections */
  font-size: 42px;
  margin-bottom: 16px;
}

.qo-container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.qo-spacer {
  height: 400px;
}

/* =========================================
   Mobile Responsiveness
========================================= */
@media (max-width: 1024px) {
  .qo-main-nav {
    display: none;
  }
  .qo-nav-actions .qo-link-subtle {
    display: none;
  }

  .qo-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .qo-hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .qo-hero-actions {
    justify-content: center;
  }

  .qo-hero-visual {
    justify-content: center;
  }
}

.text-blue {
  color: var(--qo-brand-blue);
  font-weight: 400;
}

.text-red {
  color: var(--qo-brand-red);
  font-weight: 400;
}

.qo-headline .text-blue {
  color: var(--qo-brand-blue) !important;
  -webkit-text-fill-color: var(--qo-brand-blue) !important;
}

.qo-headline .text-red {
  color: var(--qo-brand-red) !important;
  -webkit-text-fill-color: var(--qo-brand-red) !important;
}

/* =========================================
   Typewriter Cursor Animation
========================================= */
.qo-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background-color: #ffffff;
  vertical-align: middle;
  margin-left: 4px;
  margin-bottom: 4px;
  animation: blinkCursor 0.8s step-end infinite;
}

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

/* ===================== FOOTER ==================== */

.site-footer {
  width: 100%;
  padding: 18px 18px 20px;
  background: #000;
  box-sizing: border-box;
  overflow: hidden;
}

.site-footer,
.site-footer * {
  box-sizing: border-box;
}

/* FOOTER BOX */

.site-footer-box {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 38px 42px 20px;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
}

/* TOP LAYOUT */

.site-footer-top {
  width: 100%;
  display: grid;
  grid-template-columns:
    minmax(0, 1.65fr)
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(0, 1fr);
  column-gap: 42px;
  align-items: start;
}

/* BRAND */

.site-footer-brand {
  min-width: 0;
}

.site-footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-footer-logo img {
  display: block;
  width: 110px;
  height: auto;
  max-width: 100%;
  border-radius: 0;
}

.site-footer-description {
  width: 100%;
  max-width: 290px;
  margin: 16px 0 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.75;
}

/* SOCIAL LINKS */

.site-footer-socials {
  display: flex;
  align-items: center;
  gap: 9px;
}

.site-footer-socials a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: transparent;
  color: #c5c5c5;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.site-footer-socials svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.site-footer-socials a:nth-child(2) svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.site-footer-socials a:hover {
  background: #181818;
  border-color: #555;
  color: #fff;
  transform: translateY(-2px);
}

/* FOOTER COLUMNS */

.site-footer-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.site-footer-column h4 {
  margin: 2px 0 5px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.site-footer-column h4::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin-top: 7px;
  background: #dd031b;
  border-radius: 2px;
}

.site-footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.site-footer-column a:hover {
  color: #fff;
  transform: translateX(2px);
}

/* DIVIDER */

.site-footer-divider {
  width: 100%;
  height: 1px;
  margin: 32px 0 17px;
  background: rgba(255, 255, 255, 0.12);
}

/* BOTTOM */

.site-footer-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  line-height: 1.6;
}

.site-footer-copyright {
  display: block;
}

.site-footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer-legal a:hover {
  color: #fff;
}

/* MEDIUM DESKTOP / TABLET */

@media (max-width: 1050px) {
  .site-footer-box {
    padding: 34px 30px 19px;
  }

  .site-footer-top {
    grid-template-columns:
      minmax(0, 1.4fr)
      repeat(3, minmax(0, 1fr));
    column-gap: 25px;
  }
}

/* TABLET */

@media (max-width: 800px) {
  .site-footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 30px;
  }

  .site-footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer-description {
    max-width: 340px;
  }

  .site-footer-divider {
    margin-top: 28px;
  }
}

/* MOBILE */

@media (max-width: 560px) {
  .site-footer {
    padding: 12px;
  }

  .site-footer-box {
    padding: 28px 20px 18px;
    border-radius: 14px;
  }

  .site-footer-top {
    column-gap: 18px;
    row-gap: 28px;
  }

  .site-footer-logo img {
    width: 100px;
  }

  .site-footer-description {
    margin: 13px 0 16px;
    font-size: 12px;
  }

  .site-footer-column {
    gap: 11px;
  }

  .site-footer-column h4 {
    font-size: 12px;
  }

  .site-footer-column a {
    font-size: 11px;
  }

  .site-footer-divider {
    margin: 26px 0 17px;
  }

  .site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-footer-legal {
    gap: 18px;
  }
}

/* SMALL PHONES */

@media (max-width: 380px) {
  .site-footer-box {
    padding-right: 15px;
    padding-left: 15px;
  }

  .site-footer-top {
    column-gap: 12px;
    row-gap: 24px;
  }

  .site-footer-column a {
    font-size: 10px;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .site-footer *,
  .site-footer *::before,
  .site-footer *::after {
    transition: none !important;
  }
}
/* Allow the page to grow naturally */
html {
  min-height: 100%;
  height: auto;
  overflow-x: clip;
  overflow-y: auto;
}

body.pitch-black-theme {
  position: relative;
  min-height: 100vh;
  height: auto;
  overflow-x: clip;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Background grid stays behind everything */
.qo-parallax-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Main content stays above the background */
.qo-content-layer {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
}

/* Hero keeps its existing design and spacing */
.qo-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* Footer must remain in normal page flow */
#qoFooter.site-footer {
  position: relative;
  inset: auto;
  z-index: 5;
  flex: 0 0 auto;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin-top: 0;
  clear: both;
  overflow: visible;
  background: #000;
}

/* Keep footer content compact and centered */
#qoFooter .site-footer-box {
  width: 100%;
  max-width: 1440px;
  height: auto;
  margin: 0 auto;
}

/* =========================================
   SOCIAL MEDIA BRAND COLORS
========================================= */

.site-footer-socials a {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;

  text-decoration: none;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.site-footer-socials a svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* LinkedIn — Blue */
#social-icon-linkedin:hover {
  background: #0a66c2;
  color: #ffffff;
}

/* Instagram — Brand gradient */
#social-icon-instagram:hover {
  background: linear-gradient(
    45deg,
    #f58529 0%,
    #dd2a7b 35%,
    #8134af 65%,
    #515bd4 100%
  );
  color: #ffffff;
}

/* WhatsApp — Green */
#social-icon-whatsapp:hover {
  background: #25d366;
  color: #ffffff;
}

/* GitHub — Black */
#social-icon-github:hover {
  background: #181717;
  color: #ffffff;
}

/* Smooth hover movement */
.site-footer-socials a:hover {
  transform: translateY(-2px);
}

/* Instagram outline icon */
#social-icon-instagram svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* Preserve LinkedIn, WhatsApp and GitHub icon fills */
#social-icon-linkedin svg,
#social-icon-whatsapp svg,
#social-icon-github svg {
  fill: currentColor;
  stroke: none;
}

#qoFooter .site-footer-box,
#qoFooter .site-footer-top,
#qoFooter .site-footer-divider,
#qoFooter .site-footer-bottom {
  height: auto;
}

#qoFooter .site-footer-socials {
  display: flex;
  align-items: center;
}

/* Mobile layout */
@media (max-width: 800px) {
  #qoFooter .site-footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #qoFooter .site-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  #qoFooter {
    padding: 12px;
  }

  #qoFooter .site-footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #qoFooter .site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Desktop navbar */
.qo-desktop-login,
.qo-desktop-demo {
    display: inline-flex;
}

.qo-mobile-login {
    display: none;
}

/* Tablet and mobile navbar */
@media (max-width: 1024px) {
    .qo-main-nav {
        display: none !important;
    }

    .qo-nav-actions .qo-desktop-login,
    .qo-nav-actions .qo-desktop-demo {
        display: none !important;
    }

    .qo-nav-actions .qo-mobile-login {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        padding: 9px 16px;
    }

    .qo-nav-actions {
        display: flex;
        align-items: center;
        margin-left: auto;
        flex-shrink: 0;
    }
}