:root {
  --ink: #061724;
  --navy: #061b2c;
  --navy-2: #08283d;
  --blue: #19488f;
  --blue-2: #2564b7;
  --teal: #12a3aa;
  --green: #54c780;
  --mint: #83ead3;
  --ice: #eef7fb;
  --soft: #f7fbfd;
  --muted: #607282;
  --line: #d9e8ef;
  --white: #ffffff;
  --max: 1180px;
  --radius: 24px;
  --shadow: 0 28px 80px rgba(6, 23, 36, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: var(--white);
  font-family: Manrope, system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(238, 247, 251, 0.72), transparent 520px),
    var(--white);
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", Manrope, sans-serif;
  letter-spacing: 0;
  line-height: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.top-grain {
  display: none;
}

.site {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(6, 23, 36, 0.96) 0%, rgba(6, 23, 36, 0.78) 38%, rgba(6, 23, 36, 0.08) 74%),
    linear-gradient(180deg, rgba(6, 23, 36, 0) 76%, rgba(6, 23, 36, 0.5) 100%),
    url("assets/qvisc-hero-lab-qvisc-v200.png") center right / cover no-repeat;
}

.site::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, var(--white));
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 5;
  width: min(var(--max), calc(100% - 42px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 330px;
  height: 116px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    brightness(0)
    invert(1)
    drop-shadow(0 10px 26px rgba(0, 0, 0, 0.28));
}

.links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 800;
}

.links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-cta {
  padding: 10px 18px;
  border: 1px solid rgba(131, 234, 211, 0.45);
  border-radius: 999px;
  background: rgba(131, 234, 211, 0.12);
}

.menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.menu i {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero-lab {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 42px));
  min-height: calc(92vh - 90px);
  margin: 0 auto;
  padding: 72px 0 138px;
  display: flex;
  align-items: center;
}

.hero-text {
  width: min(720px, 100%);
}

.label {
  display: block;
  margin-bottom: 18px;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.label.dark {
  color: var(--teal);
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(3.1rem, 6.2vw, 6.3rem);
}

.hero-text p {
  max-width: 600px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
}

.primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--mint), var(--green));
  box-shadow: 0 20px 55px rgba(84, 199, 128, 0.26);
}

.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero-proof {
  width: min(680px, 100%);
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.hero-proof div {
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-proof div:last-child {
  border-right: 0;
}

.hero-proof strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Space Grotesk";
  font-size: 1.55rem;
}

.hero-proof span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 700;
}

.marquee {
  position: relative;
  z-index: 4;
  width: min(var(--max), calc(100% - 42px));
  margin: -64px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.marquee div {
  padding: 30px;
  border-right: 1px solid var(--line);
}

.marquee div:last-child {
  border-right: 0;
}

.marquee strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-family: "Space Grotesk";
  font-size: 1.45rem;
}

.marquee span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 112px 0;
}

.section > * {
  width: min(var(--max), calc(100% - 42px));
  margin-left: auto;
  margin-right: auto;
}

.copy h2,
.section-head h2,
.contact-panel h2 {
  margin-bottom: 22px;
  font-size: clamp(2.3rem, 4.8vw, 5rem);
}

.copy p,
.section-head p {
  max-width: 730px;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-head {
  margin-bottom: 48px;
}

.section-head.center {
  text-align: center;
}

.section-head.center p {
  margin-left: auto;
  margin-right: auto;
}

.qvisc {
  width: min(var(--max), calc(100% - 42px));
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.feature-list {
  margin-top: 34px;
  display: grid;
  gap: 14px;
}

.feature-list article {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(6, 23, 36, 0.06);
}

.feature-list b {
  display: block;
  margin-bottom: 4px;
}

.feature-list span {
  color: var(--muted);
}

.device-showcase {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(25, 72, 143, 0.1);
  border-radius: 36px;
  background: #f5fbfd;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.device-showcase::before {
  content: none;
}

.device-product {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: 43% center;
}

.readout {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  width: min(286px, calc(100% - 48px));
  padding: 24px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(47, 66, 79, 0.96), rgba(27, 44, 57, 0.96));
  box-shadow: 0 22px 44px rgba(6, 23, 36, 0.18);
}

.readout small {
  display: block;
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.readout strong {
  display: block;
  margin: 8px 0 6px;
  font-family: "Space Grotesk";
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
}

.readout span {
  color: rgba(255, 255, 255, 0.74);
}

.demo-video {
  width: min(var(--max), calc(100% - 42px));
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  background:
    radial-gradient(circle at 82% 18%, rgba(131, 234, 211, 0.2), transparent 28%),
    linear-gradient(180deg, var(--white), var(--soft));
}

.demo-copy {
  max-width: 560px;
}

.demo-copy h2 {
  margin: 14px 0 18px;
  color: var(--ink);
  font-size: clamp(2.2rem, 4vw, 4.6rem);
}

.demo-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.demo-copy a {
  display: inline-flex;
  margin-top: 28px;
  padding: 14px 20px;
  color: var(--ink);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), var(--green));
  font-weight: 900;
  box-shadow: 0 20px 55px rgba(84, 199, 128, 0.22);
}

.video-shell {
  justify-self: center;
  width: min(360px, 100%);
  padding: 14px;
  border: 1px solid rgba(25, 72, 143, 0.12);
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 251, 0.96));
  box-shadow: var(--shadow);
}

.video-shell iframe {
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  border: 0;
  border-radius: 28px;
  background: var(--navy);
}

.platform {
  background:
    linear-gradient(180deg, var(--soft), var(--white));
}

.platform-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 20px;
}

.platform-grid article {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(6, 23, 36, 0.06);
}

.platform-grid article:not(.platform-image) {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.platform-image {
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1.08 / 1;
  background: var(--ice);
}

.platform-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
}

.platform-grid span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  margin-bottom: auto;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-family: "Space Grotesk";
  font-weight: 900;
}

.platform-grid h3 {
  margin: 26px 0 12px;
  font-size: 1.9rem;
}

.platform-grid p {
  color: var(--muted);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.industry-grid article {
  min-height: 230px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(25, 72, 143, 0.14);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 247, 251, 0.96)),
    radial-gradient(circle at 20% 20%, rgba(18, 163, 170, 0.18), transparent 42%);
  box-shadow: 0 18px 48px rgba(6, 23, 36, 0.07);
}

.industry-grid img {
  width: 72px;
  height: 72px;
  margin-bottom: 34px;
  object-fit: contain;
}

.industry-grid b {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 1.08rem;
}

.industry-grid p {
  color: var(--muted);
}

.portfolio {
  background: var(--soft);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(6, 23, 36, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.portfolio-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(25, 72, 143, 0.18);
  box-shadow: 0 26px 70px rgba(6, 23, 36, 0.12);
}

.portfolio-grid img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  object-position: center;
  background: #eef7fb;
  border-bottom: 1px solid rgba(25, 72, 143, 0.08);
}

.portfolio-grid article:first-child img {
  object-position: 52% center;
}

.portfolio-grid article span {
  display: inline-flex;
  margin: 24px 26px 0;
  padding: 7px 11px;
  color: var(--navy);
  border: 1px solid rgba(131, 234, 211, 0.55);
  border-radius: 999px;
  background: rgba(131, 234, 211, 0.16);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-grid h3 {
  margin: 14px 26px 8px;
  color: var(--navy);
  font-size: 1.7rem;
}

.portfolio-grid p {
  margin: 0 26px 30px;
  color: var(--muted);
}

.evidence {
  color: var(--white);
  background:
    radial-gradient(circle at 16% 12%, rgba(131, 234, 211, 0.18), transparent 28%),
    linear-gradient(135deg, var(--navy), #08324a 56%, #075864);
}

.evidence .section-head h2,
.evidence .section-head p {
  color: var(--white);
}

.logo-auto-slider {
  position: relative;
  width: min(var(--max), calc(100% - 42px));
  margin: 0 auto;
  padding: 12px 0 26px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 72px, #000 calc(100% - 72px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 72px, #000 calc(100% - 72px), transparent);
}

.logo-auto-slider.is-dragging,
.logo-auto-slider:active {
  cursor: grabbing;
}

.logo-auto-slider::before,
.logo-auto-slider::after {
  display: none;
}

.logo-auto-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  will-change: transform;
}

.logo-item {
  flex: 0 0 230px;
  height: 145px;
  padding: 24px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(6, 23, 36, 0.08);
  user-select: none;
}

.logo-item img {
  max-width: 100%;
  max-height: 105px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.logo-item.dark-logo {
  background: #2d2967;
}

.logo-item.orange-logo {
  background: #ff7f38;
}

.logo-item.reveal {
  opacity: 1;
  transform: none;
}

.press {
  background:
    radial-gradient(circle at 84% 12%, rgba(131, 234, 211, 0.22), transparent 30%),
    linear-gradient(180deg, var(--white), var(--soft));
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.press-grid article {
  min-height: 255px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 253, 0.96));
  box-shadow: 0 18px 50px rgba(6, 23, 36, 0.07);
}

.press-grid article > img {
  width: calc(100% + 48px);
  height: 150px;
  margin: -24px -24px 22px;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid rgba(25, 72, 143, 0.08);
  background:
    radial-gradient(circle at 70% 20%, rgba(131, 234, 211, 0.28), transparent 34%),
    #eef7fb;
}

.press-grid article > img[src$=".svg"] {
  padding: 18px;
  object-fit: contain;
}

.press-grid article:nth-child(13) > img {
  padding: 24px;
  object-fit: contain;
}

.press-grid span {
  width: max-content;
  padding: 8px 12px;
  color: var(--navy);
  border: 1px solid rgba(131, 234, 211, 0.55);
  border-radius: 999px;
  background: rgba(131, 234, 211, 0.16);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.press-grid h3 {
  margin: 22px 0 10px;
  color: var(--navy);
  font-size: 1.32rem;
}

.press-grid p {
  color: var(--muted);
  font-size: 0.96rem;
}

.press-grid a {
  width: max-content;
  margin-top: 22px;
  color: var(--blue);
  font-weight: 900;
}

.contact {
  background:
    linear-gradient(180deg, var(--white), var(--ice));
}

.contact-panel {
  padding: 56px;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 52px;
  color: var(--white);
  border-radius: 36px;
  background:
    radial-gradient(circle at 18% 18%, rgba(131, 234, 211, 0.18), transparent 32%),
    linear-gradient(135deg, var(--navy), #092f4a 58%, #075864);
  box-shadow: var(--shadow);
}

.contact-panel p {
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.contact-panel a {
  color: var(--mint);
  font-weight: 900;
}

.contact-panel form {
  padding: 28px;
  display: grid;
  gap: 14px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
}

.contact-panel label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  padding: 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfe;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  min-height: 54px;
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), var(--green));
  font: inherit;
  font-weight: 900;
}

footer {
  width: min(var(--max), calc(100% - 42px));
  margin: 0 auto;
  padding: 44px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}

footer picture,
footer img {
  width: 190px;
  max-height: 90px;
  object-fit: contain;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .menu {
    display: block;
  }

  .links {
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: rgba(6, 23, 36, 0.98);
  }

  .links.open {
    display: flex;
  }

  .links a {
    padding: 13px;
  }

  .site {
    background:
      linear-gradient(90deg, rgba(6, 23, 36, 0.98), rgba(6, 23, 36, 0.78)),
      url("assets/qvisc-hero-lab-qvisc-v200.png") center right / cover no-repeat;
  }

  .hero-lab {
    min-height: auto;
    padding: 64px 0 130px;
  }

  .hero-proof,
  .marquee,
  .qvisc,
  .demo-video,
  .platform-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .qvisc,
  .demo-video {
    width: min(var(--max), calc(100% - 42px));
  }

  .demo-copy {
    max-width: 720px;
  }

  .hero-proof div,
  .marquee div {
    border-right: 0;
    border-bottom: 1px solid rgba(6, 23, 36, 0.1);
  }

  .hero-proof div {
    border-bottom-color: rgba(255, 255, 255, 0.14);
  }

  .hero-proof div:last-child,
  .marquee div:last-child {
    border-bottom: 0;
  }

  .platform-image {
    grid-row: auto;
    min-height: 390px;
  }

  .industry-grid,
  .portfolio-grid,
  .press-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .nav,
  .hero-lab,
  .section > *,
  .marquee,
  footer {
    width: min(100% - 28px, var(--max));
  }

  .logo-box {
    width: 218px;
    height: 76px;
  }

  .logo-box img {
    height: 100%;
  }

  .qvisc {
    width: min(100% - 28px, var(--max));
  }

  .demo-video {
    width: min(100% - 28px, var(--max));
    gap: 34px;
  }

  .video-shell {
    width: min(330px, 100%);
    padding: 10px;
    border-radius: 30px;
  }

  .video-shell iframe {
    border-radius: 22px;
  }

  h1 {
    font-size: 3.15rem;
  }

  .section {
    padding: 76px 0;
  }

  .marquee {
    margin-top: -48px;
  }

  .device-showcase {
    min-height: 430px;
  }

  .device-product {
    min-height: 430px;
  }

  .readout {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }

  .industry-grid,
  .portfolio-grid,
  .press-grid {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 28px;
  }

  .logo-item {
    flex: 0 0 190px;
    height: 125px;
    padding: 20px;
  }

  .logo-item img {
    max-height: 88px;
  }

  .logo-auto-slider {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 42px, #000 calc(100% - 42px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 42px, #000 calc(100% - 42px), transparent);
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
