/* Unmatched Competitions marketing site: tokens, type, base elements, buttons, links, icons and motion. Dark first, to sit with the logo. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/jakarta-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-var.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plex-mono-latin-500.woff2") format("woff2"); }

:root {
  /* Canvas, from the page to the most raised surface */
  --bg: #050a17; --bg-2: #070e1f; --panel: #0a1328; --panel-2: #0e1931; --panel-3: #13213f;
  --line: rgba(148, 172, 224, .13); --line-2: rgba(148, 172, 224, .22); --line-3: rgba(148, 172, 224, .34);
  /* Text. --text-3 passes AA on every surface above. */
  --text: #f3f6fd; --text-2: #b3bfdb; --text-3: #8d9abb;
  /* Brand, from the logo: cyan through to blue */
  --cyan: #22c8ff; --cyan-hi: #8ae3ff; --blue: #3d8bff; --deep: #1a5fd8;
  --grad: linear-gradient(115deg, #46dcff 0%, #3d9bff 55%, #5b84ff 100%);
  --grad-btn: linear-gradient(180deg, #66deff 0%, #22bdff 100%);
  --mint: #3ee0b4; --amber: #ffbe55; --rose: #ff9aa8;
  /* Type */
  --font-display: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* Layout */
  --maxw: 76rem; --gutter: clamp(16px, 4vw, 32px); --header-h: 72px;
  --r-sm: 10px; --r: 16px; --r-lg: 22px; --r-xl: 30px;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 24px 60px -30px rgba(0, 0, 0, .85);
  --shadow-lg: 0 50px 120px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(148, 172, 224, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0; font: 400 1.0625rem/1.7 var(--font); color: var(--text); background: var(--bg); overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
::selection { background: rgba(34, 200, 255, .32); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); line-height: 1.1; text-wrap: balance; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -.038em; line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); font-weight: 750; letter-spacing: -.032em; line-height: 1.08; }
h3 { font-size: 1.2rem; letter-spacing: -.016em; line-height: 1.3; }
h4 { font-size: 1rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong, b { font-weight: 650; color: var(--text); }
a { color: var(--cyan-hi); text-decoration-color: rgba(138, 227, 255, .4); text-underline-offset: .22em; text-decoration-thickness: 1px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: #fff; text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
code, kbd { font-family: var(--font-mono); font-size: .88em; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--cyan); color: #04122b; padding: 12px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; color: #04122b; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 50rem; }
.narrow-left { max-width: 54rem; }
.wrap.narrow, .wrap.narrow-left { margin-inline: auto; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.center .cta-row { justify-content: center; }
.muted { color: var(--text-3); font-size: .92rem; }

/* Eyebrow: a mono label after a short gradient rule. */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px; font: 500 .78rem/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-hi); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--grad); flex: none; }
.center .eyebrow::after { content: ""; width: 22px; height: 1px; background: var(--grad); flex: none; }
.lede { font-size: clamp(1.07rem, 1.35vw, 1.2rem); line-height: 1.65; color: var(--text-2); max-width: 42rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Buttons */
.btn {
  --btn-h: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--btn-h);
  padding: 0 22px; border-radius: 999px; font: 650 .95rem/1.1 var(--font-display); letter-spacing: -.005em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s, filter .2s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { --btn-h: 40px; padding: 0 16px; font-size: .88rem; }
.btn--lg { --btn-h: 56px; padding: 0 28px; font-size: 1rem; }
.btn--primary { color: #03142e; background: var(--grad-btn); border-color: rgba(178, 238, 255, .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 30px -12px rgba(34, 189, 255, .75); }
.btn--primary:hover { color: #03142e; filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 16px 40px -12px rgba(34, 189, 255, .9); transform: translateY(-1px); }
.btn--ghost, .btn--ghost-dark { color: var(--text); background: rgba(148, 172, 224, .07); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.btn--ghost:hover, .btn--ghost-dark:hover { color: #fff; background: rgba(148, 172, 224, .13); border-color: var(--line-3); }
.btn--arrow::after { content: ""; width: 16px; height: 16px; flex: none; margin-right: -4px; background-color: currentColor; -webkit-mask: url("../img/ui/arrow-right.svg") center / contain no-repeat; mask: url("../img/ui/arrow-right.svg") center / contain no-repeat; transition: transform .2s var(--ease); }
.btn--arrow:hover::after { transform: translateX(3px); }
.btn--block { display: flex; width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }

/* Text links with an arrow; .link-out for links that open the demo store in a new tab. */
.link-arrow { display: inline-flex; align-items: center; gap: 7px; font: 650 .95rem/1.3 var(--font-display); color: var(--cyan-hi); text-decoration: none; margin-right: 26px; }
.link-arrow::after { content: ""; width: 15px; height: 15px; flex: none; background-color: currentColor; -webkit-mask: url("../img/ui/arrow-right.svg") center / contain no-repeat; mask: url("../img/ui/arrow-right.svg") center / contain no-repeat; transition: transform .2s var(--ease); }
.link-arrow:hover { color: #fff; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-out::after { -webkit-mask-image: url("../img/ui/arrow-up-right.svg"); mask-image: url("../img/ui/arrow-up-right.svg"); }
.link-out:hover::after { transform: translate(2px, -2px); }

/* Icons drawn inline (lib/icons.ts), and the tiles that hold them */
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico-tile { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: var(--cyan-hi); background: linear-gradient(160deg, rgba(34, 200, 255, .17), rgba(61, 139, 255, .05)); box-shadow: inset 0 0 0 1px rgba(34, 200, 255, .26), 0 10px 24px -14px rgba(34, 200, 255, .6); flex: none; }
.ico-tile--amber { color: var(--amber); background: linear-gradient(160deg, rgba(255, 190, 85, .16), rgba(255, 190, 85, .04)); box-shadow: inset 0 0 0 1px rgba(255, 190, 85, .3); }
.ico-tile--mint { color: var(--mint); background: linear-gradient(160deg, rgba(62, 224, 180, .16), rgba(62, 224, 180, .04)); box-shadow: inset 0 0 0 1px rgba(62, 224, 180, .3); }

/* Scroll reveal: only while the script runs and motion is allowed; without either, everything is simply shown. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .reveal-d1 { --d: .07s; } .reveal-d2 { --d: .14s; } .reveal-d3 { --d: .21s; } .reveal-d4 { --d: .28s; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
