/* QFASS — single-page site. Brand: purple #3F3F99, teal #3BB6A6. */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --purple: #3f3f99;
  --purple-900: #1d1d4a;
  --purple-950: #141433;
  --teal: #3bb6a6;
  --teal-700: #1f7d71;
  --ink: #17172b;
  --ink-2: #4a4a63;
  --line: #e3e3ee;
  --bg: #ffffff;
  --bg-tint: #f5f5fa;
  --radius: 14px;
  --display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); font-weight: 600; max-width: 20ch; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--purple); }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.8em 1.35em; border-radius: 999px;
  background: var(--teal); color: var(--purple-950);
  font: 600 1rem/1 var(--body); text-decoration: none;
  border: 1.5px solid var(--teal);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: #4fcab9; border-color: #4fcab9; }
.btn-sm { padding: 0.6em 1.1em; font-size: 0.92rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
.btn-light { background: #fff; color: var(--purple); border-color: #fff; font-size: 1.15rem; }
.btn-light:hover { background: var(--bg-tint); border-color: var(--bg-tint); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(20, 20, 51, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand {
  color: #fff; text-decoration: none;
  font: 700 1.45rem/1 var(--display); letter-spacing: 0.06em;
  display: inline-flex; align-items: baseline; gap: 0.5em;
}
.brand-sub { font-weight: 400; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: rgba(255,255,255,0.78); text-decoration: none; font-size: 0.92rem; }
.nav a:hover { color: #fff; }
@media (max-width: 860px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* Hero */
.hero {
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(59,182,166,0.16), transparent 60%),
    linear-gradient(160deg, var(--purple-950) 0%, var(--purple-900) 55%, var(--purple) 130%);
  padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 104px);
}
.hero-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); margin-bottom: 1.4em; }
.hero h1 { font-size: clamp(2.9rem, 1.6rem + 5.5vw, 5.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 0.98; }
.accent { color: var(--teal); }
.lead { font-size: 1.15rem; color: rgba(255,255,255,0.78); max-width: 34em; margin-top: 1.6em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }

.hero-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,0.16); }
.hero-index li {
  display: grid; grid-template-columns: 3em 1fr auto; align-items: baseline; gap: 12px;
  padding: 1.15em 0; border-bottom: 1px solid rgba(255,255,255,0.16);
}
.hero-index .n { font: 500 0.85rem/1 var(--mono); color: var(--teal); }
.hero-index .t { font: 600 1.35rem/1.2 var(--display); }
.hero-index .d { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.tint { background: var(--bg-tint); }
.kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 1em; }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 6vw, 80px); align-items: start; }
.prose { color: var(--ink-2); max-width: 40em; }
.prose p:first-child { color: var(--ink); font-size: 1.2rem; line-height: 1.5; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); margin-top: 40px; }
@media (max-width: 820px) { .split, .two { grid-template-columns: 1fr; } }

/* Verticals */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 22px; border-top: 3px solid var(--purple);
}
.card:nth-child(2) { border-top-color: var(--teal); }
.card-n { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.card h3 { margin: 0.35em 0 0.6em; font-size: 1.45rem; }
.card p { color: var(--ink-2); font-size: 0.97rem; }
.card .card-foot { font-size: 0.85rem; color: var(--purple); font-weight: 500; margin-top: auto; padding-top: 0.6em; }
.card-link { font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
@media (max-width: 1040px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } }

/* Q lines */
.lines { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.lines li { padding: 28px 24px 8px 0; border-bottom: 1px solid var(--line); }
.lines li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.lines h3 { color: var(--purple); font-size: 1.5rem; }
.line-cat { font-size: 0.82rem; font-weight: 600; color: var(--teal-700); margin: 0.4em 0 0.9em; }
.lines p:last-child { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 1040px) {
  .lines { grid-template-columns: 1fr 1fr; }
  .lines li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .lines { grid-template-columns: 1fr; }
  .lines li + li { padding-left: 0; border-left: 0; }
}
.note { margin-top: 28px; color: var(--ink-2); max-width: 52em; }
.note strong { color: var(--ink); }

/* B2B */
.sub { font-size: 1.05rem; color: var(--purple); margin-bottom: 0.8em; }
.defs { margin: 0; }
.defs dt { font-weight: 600; padding-top: 1em; border-top: 1px solid var(--line); }
.defs dd { margin: 0.3em 0 1em; color: var(--ink-2); }

/* EV */
.ev { background: var(--purple-950); color: #fff; }
.ev .kicker { color: var(--teal); }
.ev .prose { color: rgba(255,255,255,0.72); }
.ev .prose p:first-child { color: #fff; }
.track { border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius); padding: 28px; background: rgba(255,255,255,0.03); }
.track h3 { color: var(--teal); margin-bottom: 0.6em; }
.track p { color: rgba(255,255,255,0.75); margin: 0; }
.ev .note { color: rgba(255,255,255,0.6); }

/* Mission / vision */
.mv { margin-top: 0; }
.statement { font: 500 clamp(1.25rem, 1rem + 0.9vw, 1.6rem)/1.4 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.mv > div { border-left: 3px solid var(--teal); padding-left: 24px; }
.mv > div:first-child { border-left-color: var(--purple); }

/* Company facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.facts > div { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.5em; }
.facts dd { margin: 0; font-weight: 500; }
.facts address { font-style: normal; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-900) 100%); color: #fff; }
.contact-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.contact .lead { margin-top: 0.8em; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.contact-alt { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.contact-alt:hover { color: #fff; }

/* Footer */
.foot { background: var(--purple-950); color: rgba(255,255,255,0.6); font-size: 0.88rem; padding: 28px 0; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot p { margin: 0; }
.foot a { color: rgba(255,255,255,0.8); }

/* 404 */
.hero-404 { min-height: 100vh; display: flex; align-items: center; }
