:root {
  --bg-dark: #050b18;
  --bg-dark-2: #081225;
  --text: #0c1325;
  --muted: #687184;
  --white: #ffffff;
  --line: #e7eaf1;

  --purple: #7c3aed;
  --blue: #1686d9;
  --green: #8fd426;
  --orange: #ff7a00;
  --pink: #cf3be8;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --shadow: 0 20px 60px rgba(16, 24, 40, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

[id] {
  scroll-margin-top: 96px;
}

/* HEADER */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(5, 11, 24, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.brand img {
  width: clamp(28px, 2.7vw, 38px);
  height: clamp(28px, 2.7vw, 38px);
  object-fit: contain;
}

.brand span {
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.1vw, 30px);
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links a {
  transition: color .2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-outline {
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}

.nav-cta {
  border-color: rgba(207,59,232,.75);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 6px 0;
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(112px, 8vw, 138px) 0 clamp(30px, 4vw, 44px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3,7,18,1) 0%, rgba(3,7,18,.96) 35%, rgba(3,7,18,.36) 62%, rgba(3,7,18,.08) 100%),
    radial-gradient(circle at 36% 42%, rgba(122,72,217,.18), transparent 34%),
    #030712 url("assets/quinaxis-hero-cover.png") right 22px / auto 76% no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(58vw, 960px);
  background: linear-gradient(90deg, rgba(3,7,18,1), rgba(3,7,18,.98) 62%, rgba(3,7,18,0));
  pointer-events: none;
}

.hero::after {
  content: none;
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  min-height: clamp(420px, 34vw, 540px);
  gap: clamp(34px, 5vw, 74px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: #b5a1ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

.eyebrow.dark {
  color: #3849b9;
}

.hero h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-shadow: 0 12px 36px rgba(0,0,0,.34);
}

.hero h1 span {
  display: block;
  color: #f7f8ff;
}

.hero-text {
  max-width: 630px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(16px, 1.25vw, 18px);
  text-shadow: 0 8px 24px rgba(0,0,0,.28);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-gradient {
  color: #fff;
  background: linear-gradient(90deg, #a83bf3 0%, #ff4f83 50%, #ff8610 100%);
  box-shadow: 0 14px 32px rgba(238, 86, 108, .22);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.03);
}

.hero-visual {
  min-height: 0;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-copy,
.hero-visual {
  opacity: 1;
  pointer-events: auto;
}

.hero-visual::before,
.hero-visual::after {
  content: none;
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-visual::before {
  width: min(720px, 110%);
  height: 260px;
  bottom: 2%;
  background:
    radial-gradient(ellipse at center, rgba(34,132,255,.20), transparent 64%),
    radial-gradient(ellipse at 82% 58%, rgba(255,117,31,.16), transparent 58%);
  filter: blur(28px);
}

.hero-visual::after {
  width: 76%;
  height: 1px;
  bottom: 16%;
  background: linear-gradient(90deg, transparent, rgba(255,122,0,.65), rgba(53,149,255,.65), transparent);
  box-shadow: 0 0 26px rgba(91,112,255,.55);
}

.principles {
  position: relative;
  z-index: 5;
  margin-top: clamp(0px, 1.6vw, 22px);
  padding: 20px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.97);
  color: var(--text);
  box-shadow: var(--shadow);
}

.principle {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.principle:last-child {
  border-right: 0;
}

.principle h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.principle-icon,
.cap-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.principle-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.principle-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.purple { color: #6f48d9; background: #eee9ff; }
.orange { color: #f06c2b; background: #fff0e9; }
.blue { color: #2878d0; background: #eaf4ff; }
.green { color: #4fa946; background: #eaf8e8; }

/* SECTIONS */
.section {
  padding: clamp(76px, 8vw, 110px) 0;
  background: #fff;
}

.about-layout {
  display: grid;
  grid-template-columns: .9fr 1.35fr;
  gap: clamp(42px, 6vw, 76px);
  align-items: start;
}

.section-copy {
  position: sticky;
  top: 120px;
}

.section-copy h2,
.brand-intro h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(34px, 3.6vw, 55px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.section-copy > p:not(.eyebrow),
.brand-intro > p:not(.eyebrow) {
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: 17px;
}

.btn-dark {
  color: #fff;
  background: #07101f;
}

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

.cap-card {
  padding: 26px;
  min-height: 205px;
  border: 1px solid #edf0f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16,24,40,.06);
}

.cap-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.cap-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lavender { color: #7c3aed; background: #f1eaff; }
.peach { color: #ff6a32; background: #fff0e8; }
.sky { color: #1686d9; background: #eaf7ff; }
.mint { color: #14a47a; background: #e8fbf4; }
.sand { color: #db8a00; background: #fff5d9; }

.cap-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.cap-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* BRANDS */
.brands-section {
  padding: clamp(72px, 7vw, 90px) 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(113,96,255,.09), transparent 45%),
    #f8f9ff;
}

.brands-layout {
  display: grid;
  grid-template-columns: .95fr 1.1fr .85fr;
  gap: 24px;
  align-items: stretch;
}

.brand-intro {
  padding-right: 24px;
}

.brand-card {
  padding: 26px;
  border: 1px solid rgba(82,87,147,.10);
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 20px 45px rgba(71, 77, 127, .07);
}

.loqsy-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 26px;
  align-items: center;
}

.loqsy-logo {
  min-height: 150px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #e8c78a;
  background: #080808;
  font-size: 30px;
  font-weight: 700;
}

.brand-card h3 {
  margin: 0 0 8px;
  font-size: 25px;
}

.brand-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  color: #3344be;
  font-weight: 700;
}

.coming-card {
  display: grid;
  grid-template-columns: minmax(90px, .85fr) 1fr;
  gap: 18px;
  align-items: center;
  min-height: 205px;
  padding: clamp(26px, 3vw, 34px);
  border: 1px dashed rgba(83,92,156,.12);
  background:
    radial-gradient(circle at 22% 45%, rgba(112,88,220,.10), transparent 35%),
    linear-gradient(135deg, rgba(248,249,255,.96), rgba(244,247,255,.86));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 42px rgba(79,86,139,.07);
}

.coming-mark {
  width: clamp(100px, 11vw, 132px);
  height: clamp(100px, 11vw, 132px);
  object-fit: contain;
  opacity: .08;
  filter: grayscale(1) saturate(.6);
  justify-self: center;
}

.coming-card h3 {
  margin: 0;
  color: #111827;
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.35;
}

/* STATS */
.mission {
  border-top: 1px solid #eceef5;
  border-bottom: 1px solid #eceef5;
  background: #fff;
}

.stats {
  min-height: 140px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.stat {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 22px);
  padding: 18px 32px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat-icon {
  flex: 0 0 auto;
  width: clamp(36px, 3.2vw, 50px);
  height: clamp(36px, 3.2vw, 50px);
  color: #173c9f;
}

.stat-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-copy {
  min-width: 0;
}

.stat strong {
  display: block;
  color: #173c9f;
  font: 800 38px/1 "Manrope";
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* FOOTER */
.footer {
  color: #fff;
  background:
    radial-gradient(circle at 92% 25%, rgba(83, 42, 191, .13), transparent 25%),
    #040b18;
}

.footer-grid {
  padding: clamp(54px, 6vw, 70px) 0 clamp(38px, 5vw, 50px);
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 54px;
}

.careers-section {
  padding: clamp(72px, 7vw, 96px) 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(124,58,237,.10), transparent 32%),
    #fff;
}

.careers-card {
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid #edf0f5;
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.92);
}

.careers-card h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.careers-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.footer-about p {
  max-width: 310px;
  color: rgba(255,255,255,.60);
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.82);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.social-links a:hover {
  color: #fff;
  border-color: rgba(255,255,255,.95);
  transform: translateY(-2px);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-brand {
  margin-bottom: 22px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
}

.footer-col h4 {
  margin: 0 0 10px;
  color: #fff;
}

.footer-col a,
.footer-col span {
  color: rgba(255,255,255,.62);
}

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

.footer-button {
  width: fit-content;
  margin-top: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(181,84,255,.65);
  border-radius: 999px;
}

.footer-bottom {
  min-height: 78px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: rgba(255,255,255,.48);
  font-size: 12px;
}

.footer-bottom div {
  display: flex;
  gap: 24px;
}

/* LEGAL PAGES */
.legal-page {
  background: #fff;
  color: var(--text);
}

.legal-hero {
  padding: clamp(118px, 10vw, 150px) 0 clamp(54px, 7vw, 86px);
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(124,58,237,.24), transparent 26%),
    radial-gradient(circle at 22% 72%, rgba(22,134,217,.18), transparent 28%),
    linear-gradient(135deg, #040b18 0%, #071127 52%, #111033 100%);
}

.legal-container,
.legal-card {
  max-width: 980px;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 30px;
  color: rgba(255,255,255,.68);
  font-size: 14px;
  font-weight: 700;
  transition: color .2s ease, transform .2s ease;
}

.legal-back:hover {
  color: #fff;
  transform: translateX(-3px);
}

.legal-hero h1 {
  margin: 0 0 18px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(48px, 7vw, 90px);
  line-height: .96;
  letter-spacing: -.055em;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.legal-meta span {
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.05);
  font-size: 13px;
  font-weight: 700;
}

.legal-intro {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.legal-content-section {
  padding: clamp(46px, 7vw, 86px) 0;
  background:
    linear-gradient(180deg, #fff 0%, #f7f8ff 100%);
}

.legal-card {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 30px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 70px rgba(16, 24, 40, .09);
}

.legal-card h2 {
  margin: 46px 0 14px;
  color: #071225;
  font-family: "Manrope", sans-serif;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.legal-card h2:first-of-type {
  margin-top: 34px;
}

.legal-card h3 {
  margin: 24px 0 10px;
  color: #111827;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.24;
}

.legal-card p,
.legal-card li {
  color: #5f6b7e;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.76;
}

.legal-card p {
  margin: 0 0 16px;
}

.legal-card ul {
  margin: 10px 0 22px;
  padding-left: 24px;
}

.legal-card li + li {
  margin-top: 6px;
}

.legal-card strong {
  color: #172033;
}

.legal-card a {
  color: #173c9f;
  font-weight: 800;
}

.legal-contact-line {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f6f8ff;
  border: 1px solid rgba(23,60,159,.12);
}

.legal-contact-box {
  display: grid;
  gap: 7px;
  margin: 12px 0 18px;
  padding: 20px;
  border: 1px solid rgba(23,60,159,.12);
  border-radius: 20px;
  background: #f6f8ff;
  color: #5f6b7e;
  font-size: clamp(15px, 1.25vw, 18px);
}

.legal-contact-box strong {
  display: block;
  margin-bottom: 4px;
  color: #071225;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links.open {
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 18px;
    background: #091225;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
  }

  .nav-links.open a {
    padding: 14px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 34px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-visual {
    display: none;
  }

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

  .principle:nth-child(2) {
    border-right: 0;
  }

  .principle:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .about-layout,
  .brands-layout {
    grid-template-columns: 1fr;
  }

  .section-copy {
    position: static;
  }

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

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

  .careers-card {
    grid-template-columns: 1fr;
  }

  .careers-card .btn {
    width: fit-content;
  }
}

@media (max-width: 650px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    height: 70px;
  }

  .brand img {
    width: 126px;
  }

  .hero {
    padding-top: 104px;
    background:
      linear-gradient(90deg, rgba(3,7,18,.92), rgba(3,7,18,.78)),
      #030712 url("assets/quinaxis-hero-cover.png") center top / cover no-repeat;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 46px);
    letter-spacing: -.035em;
  }

  .hero-text {
    font-size: 16px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle:last-child {
    border-bottom: 0;
  }

  .section,
  .brands-section {
    padding: 68px 0;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .loqsy-card {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 18px 0;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    padding: 22px 0;
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .section-copy h2,
  .brand-intro h2 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .legal-hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .legal-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: .14em;
  }

  .btn {
    min-height: 46px;
    padding: 0 18px;
  }

  .principles {
    padding: 14px;
  }

  .principle {
    padding: 14px 10px;
  }

  .cap-card,
  .brand-card {
    padding: 22px;
  }
}

@media (min-width: 1500px) {
  .container {
    width: min(1320px, calc(100% - 96px));
  }

  .hero h1 {
    font-size: clamp(74px, 4.6vw, 92px);
  }

  .hero-text {
    max-width: 700px;
  }
}
