/* quixusa.com — the Quix family front door. Dark only: every product lockup is
   white QUIX on dark, so the page wears the family ground (#080E14). */

:root {
  --bg: #080e14;
  --bg-lift: #0c141c;
  --panel: #0f1923;
  --panel-hi: #132030;
  --edge: rgba(255, 255, 255, 0.08);
  --edge-hi: rgba(255, 255, 255, 0.16);
  --ink: #f2f5f8;
  --ink-soft: #b7c2ce;
  --ink-faint: #8795a5;

  /* Product accents. Text tints are lifted where the logo colour is too dark to read on --bg. */
  --tix: #e94560;
  --tabs: #f6b23c;
  --chex: #0071bc;
  --chex-text: #3d9be3;
  --sig: #36bc97;

  --radius: 16px;
  --shell: 1180px;
  --sp-y: clamp(64px, 8vw, 112px);
  --sans: "Archivo", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; }
p { margin: 0; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .shell { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--tabs); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------ header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8, 14, 20, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--edge);
}
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark-word { font-weight: 900; font-stretch: 125%; font-size: 24px; letter-spacing: 0.02em; color: #fff; line-height: 1; }
.mark-dots { display: inline-grid; grid-template-columns: repeat(2, 7px); gap: 3px; }
.mark-dots i, .pair i { display: block; width: 7px; height: 7px; border-radius: 2px; }
.d-tix { background: var(--tix); }
.d-tabs { background: var(--tabs); }
.d-chex { background: var(--chex); }
.d-sig { background: var(--sig); }

.nav { display: flex; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 10px;
}
.nav a:hover { color: var(--ink); background: var(--panel); }
@media (max-width: 560px) {
  .nav a { padding: 8px 8px; font-size: 14px; }
  .nav a[href="#fit"] { display: none; }
}

/* ------------------------------------------------------------ shared */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 14px;
}
.lede { color: var(--ink-soft); font-size: clamp(17px, 1.6vw, 20px); max-width: 38em; }
.band { padding: var(--sp-y) 0; }
.band.alt { background: var(--bg-lift); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.section-head { margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--bg); }
.btn-ghost { border: 1px solid var(--edge-hi); color: var(--ink); }
.btn-ghost:hover { background: var(--panel); }

/* ------------------------------------------------------------ hero */
.hero { position: relative; padding: clamp(48px, 9vw, 120px) 0 clamp(8px, 4vw, 56px); overflow: hidden; }
.glow {
  position: absolute; inset: -20% -10% auto -10%; height: 140%; pointer-events: none;
  /* Fade to nothing before the hero's bottom edge, so no line shows where the band starts. */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 72%);
  background:
    radial-gradient(38% 42% at 72% 22%, rgba(233, 69, 96, 0.16), transparent 70%),
    radial-gradient(34% 40% at 92% 58%, rgba(246, 178, 60, 0.12), transparent 70%),
    radial-gradient(36% 42% at 62% 80%, rgba(0, 113, 188, 0.18), transparent 70%),
    radial-gradient(30% 36% at 40% 10%, rgba(54, 188, 151, 0.10), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); font-stretch: 115%; margin-bottom: 22px; text-wrap: balance; }
.hero .lede { margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 20px 22px 18px; border-radius: var(--radius);
  background: rgba(15, 25, 35, 0.78); border: 1px solid var(--edge);
  text-decoration: none; overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.tile img { height: 26px; width: auto; align-self: flex-start; }
.tile span { font-size: 14px; font-weight: 600; color: var(--ink-faint); letter-spacing: 0.02em; }
.tile:hover { transform: translateX(4px); border-color: var(--edge-hi); background: var(--panel-hi); }
.t-tix, .p-tix, .c-tix { --accent: var(--tix); --accent-text: var(--tix); }
.t-tabs, .p-tabs, .c-tabs { --accent: var(--tabs); --accent-text: var(--tabs); }
.t-chex, .p-chex, .c-chex { --accent: var(--chex); --accent-text: var(--chex-text); }
.t-sig, .p-sig, .c-sig { --accent: var(--sig); --accent-text: var(--sig); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero-tiles { grid-template-columns: 1fr; }
  .tile { flex-direction: row; align-items: center; justify-content: space-between; padding: 16px 16px 16px 20px; }
  .tile img { height: 20px; align-self: center; }
  .tile span { font-size: 13px; text-align: right; }
}

/* ------------------------------------------------------------ products */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 28px 24px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--edge);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.product::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--accent);
}
.product:hover { border-color: var(--edge-hi); transform: translateY(-2px); }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.product-logo { height: 30px; width: auto; }
.pill {
  flex: none; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; color: var(--accent-text);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.kind { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.desc { font-size: 18px; color: var(--ink); margin-bottom: 18px; }
.ticks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 24px; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em; width: 10px; height: 6px;
  border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text);
  transform: rotate(-45deg);
}
.go {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; text-decoration: none; color: var(--accent-text);
}
/* The whole card is the link target; the visible link stays the one announced. */
.go::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.go span { transition: transform 0.15s ease; }
.product:hover .go span { transform: translateX(4px); }

@media (max-width: 820px) { .products { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .product { padding: 24px 20px 20px; }
  .product-logo { height: 24px; }
  .product-top { flex-wrap: wrap; }
}

/* ------------------------------------------------------------ together */
.links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.link-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--edge);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
a.link-card:hover { border-color: var(--edge-hi); transform: translateY(-2px); }
.pair { display: flex; gap: 4px; margin-bottom: 4px; }
.pair i { width: 10px; height: 10px; border-radius: 3px; }
.link-card h3 { font-size: 20px; }
.link-card p { color: var(--ink-soft); font-size: 16px; }
.names { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 1000px) { .links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .links { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ fit */
.fits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fit {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  padding: 24px 22px; border-radius: var(--radius);
  border: 1px solid var(--edge); background: linear-gradient(180deg, var(--panel), var(--bg));
}
.fit h3 { font-size: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px;
  font-weight: 700; font-size: 15px; text-decoration: none; color: var(--accent-text);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transition: background 0.15s ease;
}
.chip:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
@media (max-width: 1000px) { .fits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fits { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--edge); padding: 48px 0 32px; background: var(--bg); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.foot-note { margin-top: 12px; color: var(--ink-faint); font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--ink); }
.foot-base { margin-top: 28px; color: var(--ink-faint); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
