/* =========================================================
   UNI-QUEUE — Landing page
   Tokens
   ========================================================= */
:root {
  --maroon:        #660810;
  --maroon-deep:    #270707;
  --cream:          #f1ebeb;
  --tan:            #d6c0b1;
  --gold:           #b6893f;
  --maroon-light:   #8a1420;
  --white:          #fffdfc;
  --ink:            #270707;
  --gray-bg:        #f7f5f3;
  --card-shadow:    0 10px 30px rgba(39,7,7,0.08);
  --card-shadow-hi: 0 16px 40px rgba(39,7,7,0.14);

  --font-display: Helvetica, Arial, sans-serif;
  --font-body:    Helvetica, Arial, sans-serif;

  --nav-h: 80px;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

/* Accessibility: visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 2000;
  background: var(--maroon-deep);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gold);
  z-index: 2000;
  transition: width .1s linear;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--maroon);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--maroon-deep);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin-bottom: 28px;
  max-width: 22ch;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 12px 26px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--maroon);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--maroon-light);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}
.btn--ghost {
  background: transparent;
  color: var(--maroon-deep);
  border-color: rgba(39,7,7,0.3);
}
.btn--ghost:hover {
  border-color: var(--maroon-deep);
  background: rgba(39,7,7,0.05);
  transform: translateY(-2px);
}
.btn--lg { padding: 15px 32px; font-size: 1rem; }

/* Ghost button on dark surfaces (nav, hero) needs light text */
.nav .btn--ghost,
.hero .btn--ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.nav .btn--ghost:hover,
.hero .btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  background: rgba(39, 7, 7, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow .35s var(--ease), height .3s var(--ease);
}
.nav.is-scrolled {
  box-shadow: none;
  height: 68px;
}

.nav__inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.nav__logo-img {
  width: 38px; height: 38px;
  object-fit: contain;
  border-radius: 6px;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.nav__logo-accent { color: var(--tan); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  position: relative;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--white); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

.nav__actions { display: flex; align-items: center; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav__burger span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 32px 96px;
  background:
    radial-gradient(circle at 85% 0%, rgba(182,137,63,0.16), transparent 55%),
    linear-gradient(160deg, var(--maroon-deep) 0%, var(--maroon) 100%);
  overflow: hidden;
}
.hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero__badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tan);
  border: 1px solid rgba(214,192,177,0.4);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  max-width: 14ch;
}
.hero__subtitle {
  font-size: 1.02rem;
  font-weight: 300;
  color: rgba(241,235,235,0.82);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}
.hero__tag {
  font-size: 0.82rem;
  color: rgba(241,235,235,0.55);
  font-weight: 300;
}

.hero__preview-frame {
  background: var(--white);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--card-shadow-hi);
  transform: rotate(1.2deg);
  transition: transform .4s var(--ease);
}
.hero__preview-frame:hover { transform: rotate(0deg); }
.hero__preview-frame img {
  border-radius: 10px;
  width: 100%;
}

/* =========================================================
   Preview carousel
   ========================================================= */
.carousel {
  position: relative;
  height: 100vh;
  min-height: 480px;
  width: 100%;
  overflow: hidden;
  background: var(--maroon-deep);
}

.carousel__track {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .85s var(--ease);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel__slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.carousel__dots {
  position: absolute;
  right: 32px;
  bottom: 36px;
  z-index: 4;
  display: flex;
  gap: 10px;
}
.carousel__dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.carousel__dot.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--maroon-deep);
  transform: scale(1.1);
}

@media (max-width: 760px) {
  .carousel__dots { right: 20px; bottom: 24px; }
  .carousel__dot { width: 34px; height: 34px; font-size: 0.62rem; }

  /* Mobile carousel fix:
     On desktop the carousel is 100vh with object-fit: contain,
     which is why on mobile (very different aspect ratio) you
     see empty maroon background above/below the image.
     On mobile we drop the fixed 100vh and instead let the
     carousel's height be defined by the image itself, so the
     image shows fully, edge to edge, with no gaps. */
  .carousel {
    height: auto;
    min-height: 0;
  }
  .carousel__track {
    position: relative;
    inset: auto;
    height: auto;
    align-items: stretch;
  }
  .carousel__slide {
    height: auto;
    align-items: stretch;
  }
  .carousel__slide img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
  }
  .carousel__dots { bottom: 14px; }
}

/* =========================================================
   About
   ========================================================= */
.about {
  background: var(--cream);
  padding: 110px 32px;
}
.about__inner {
  max-width: 1160px;
  margin: 0 auto;
}

.about__split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}
.about__split-media {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow-hi);
  background: var(--white);
}
.about__split-media img { width: 100%; }
.about__split-media figcaption {
  padding: 16px 20px;
  font-size: 0.85rem;
  color: rgba(39,7,7,0.62);
  font-weight: 300;
}

.about__lede {
  max-width: 56ch;
  font-size: 1.04rem;
  color: rgba(39,7,7,0.78);
  font-weight: 300;
  margin-bottom: 32px;
}


.about__columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
.about__col-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--maroon-deep);
  margin-bottom: 16px;
}
.about__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.94rem;
  color: rgba(39,7,7,0.75);
}
.about__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--gold);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(102,8,16,0.18);
  border-top: 1px solid rgba(20,20,20,0.18);
}
.about__card {
  background: var(--cream);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--maroon);
  line-height: 1;
}
.about__label {
  font-size: 0.86rem;
  color: rgba(39,7,7,0.65);
  font-weight: 400;
}

/* =========================================================
   Workflow
   ========================================================= */
.workflow {
  background: var(--gray-bg);
  padding: 110px 32px;
}
.workflow__inner { max-width: 1200px; margin: 0 auto; }
.workflow__layout {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}
.workflow__media {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow-hi);
  background: var(--white);
}
.workflow__media img { width: 100%; }
.workflow__media figcaption {
  padding: 16px 20px;
  font-size: 0.85rem;
  color: rgba(39,7,7,0.62);
  font-weight: 300;
}
.workflow__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.workflow__step {
  background: var(--white);
  border-radius: 14px;
  padding: 30px 26px;
  box-shadow: var(--card-shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.workflow__step:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hi);
}
.workflow__index {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.workflow__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--maroon-deep);
  margin-bottom: 8px;
}
.workflow__text {
  font-size: 0.9rem;
  color: rgba(39,7,7,0.65);
  font-weight: 300;
}

/* =========================================================
   Modules
   ========================================================= */
.modules {
  background: var(--cream);
  padding: 110px 32px;
}
.modules__inner { max-width: 1200px; margin: 0 auto; }
.modules__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.module-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hi);
}
.module-card__thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top;
}
.module-card__tag,
.module-card__title,
.module-card__list {
  margin-left: 28px;
  margin-right: 28px;
}
.module-card__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  background: rgba(102,8,16,0.08);
  border-radius: 999px;
  padding: 6px 14px;
  margin-top: 24px;
  margin-bottom: 16px;
}
.module-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--maroon-deep);
  margin-bottom: 14px;
}
.module-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 28px;
}
.module-card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: rgba(39,7,7,0.7);
}
.module-card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--maroon);
}

/* =========================================================
   Features
   ========================================================= */
.features {
  background: var(--maroon-deep);
  padding: 110px 32px;
}
.features .section-eyebrow { color: var(--tan); }
.features .section-title { color: var(--white); }

.features__inner { max-width: 1200px; margin: 0 auto; }

.features__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(241,235,235,0.12);
}

.feature {
  background: var(--maroon-deep);
  padding: 34px 30px;
  transition: background .3s var(--ease);
}
.feature:hover { background: #340a0a; }

.feature__tag {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 16px;
}
.feature__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--white);
  margin-bottom: 12px;
}
.feature__text {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(241,235,235,0.7);
}

/* =========================================================
   Screenshots
   ========================================================= */
.screenshots {
  background: var(--gray-bg);
  padding: 110px 32px;
}
.screenshots__inner { max-width: 1200px; margin: 0 auto; }
.screenshots__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.screenshot-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hi);
}
.screenshot-card img { width: 100%; }
.screenshot-card figcaption {
  padding: 16px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--maroon-deep);
}

/* =========================================================
   Benefits
   ========================================================= */
.benefits {
  background: var(--cream);
  padding: 110px 32px;
}
.benefits__inner { max-width: 1160px; margin: 0 auto; }
.benefits__split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.benefits__split-media {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow-hi);
  background: var(--white);
}
.benefits__split-media img { width: 100%; }
.benefits__split-media figcaption {
  padding: 16px 20px;
  font-size: 0.85rem;
  color: rgba(39,7,7,0.62);
  font-weight: 300;
}
.benefits__columns {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.benefits__col-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--maroon-deep);
  margin-bottom: 18px;
}
.benefits__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.benefits__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.94rem;
  color: rgba(39,7,7,0.75);
}
.benefits__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--maroon);
}

/* =========================================================
   Contact
   ========================================================= */
.contact {
  background: var(--gray-bg);
  padding: 110px 32px;
}
.contact__inner { max-width: 1000px; margin: 0 auto; }
.contact__grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact__item {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--maroon);
}
.contact__value {
  font-size: 0.92rem;
  color: rgba(39,7,7,0.8);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--cream);
  padding: 90px 32px 40px;
  text-align: center;
}
.footer__inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__logo { width: 34px; height: 34px; border-radius: 6px; }
.footer__brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--maroon-deep);
}
.footer .nav__logo-accent { color: var(--maroon); }
.footer__tagline {
  font-size: 0.92rem;
  color: rgba(39,7,7,0.65);
  font-weight: 300;
  max-width: 40ch;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 0.85rem;
  color: rgba(39,7,7,0.6);
}
.footer__links a { transition: color .2s var(--ease); }
.footer__links a:hover { color: var(--maroon); }
.footer__copy {
  margin-top: 24px;
  font-size: 0.78rem;
  color: rgba(39,7,7,0.45);
}

/* =========================================================
   Back to top
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--maroon);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s var(--ease);
  z-index: 400;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--maroon-light); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__preview { order: -1; max-width: 480px; margin: 0 auto; }
  .about__grid, .features__grid, .workflow__list, .modules__grid,
  .screenshots__grid, .about__columns, .benefits__columns, .contact__grid,
  .about__split, .workflow__layout, .benefits__split {
    grid-template-columns: 1fr;
  }
  .workflow__media { position: static; order: -1; }
  .benefits__split-media { order: -1; }
}

@media (max-width: 760px) {
  .workflow__list { grid-template-columns: 1fr; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(39,7,7,0.97);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 32px;
    gap: 20px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s var(--ease), opacity .3s var(--ease);
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__actions { display: none; }
  .nav__burger { display: flex; }

  .hero { padding: calc(var(--nav-h) + 40px) 20px 64px; }
  .about, .workflow, .modules, .features, .screenshots, .benefits, .contact {
    padding: 72px 20px;
  }
  .footer { padding: 64px 20px 32px; }
  .back-to-top { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav__link, .workflow__step, .module-card, .screenshot-card, .back-to-top, .hero__preview-frame {
    transition: none !important;
  }
}