/* ==========================================================================
   Foundation
   Tokens, reset, base typography, buttons and the reveal animation for the homepage.
   ========================================================================== */

:root {
  --bg: #f5f6fa;
  --surface: #fff;
  --ink: #0f1324;
  --muted: #5b6279;
  --line: #dfe3ee;
  --a: #2e3bea;
  --on-a: #fff;
  --soft: #e6e9fb;
  --sel: #101323;
  --pop: #f1ff5e;
  --lime: #f1ff5e;
  --cink: #1b1170;
  --cf: #fff;
  --cbg: #2610ad;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .10 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --cline: transparent;
  --r: 26px;
  --dk: var(--surface);
  --dt: var(--ink);
  --dm: var(--muted);
  --da: var(--a);
  --dl: var(--line);
}
[data-theme='dark'] {
  --bg: #04060c;
  --surface: #0b0f18;
  --ink: #eef1f8;
  --muted: #8e97b2;
  --line: #182033;
  --a: #f1ff5e;
  --on-a: #10130a;
  --sel: var(--a);
  --pop: #f1ff5e;
  --lime: #f1ff5e;
  --cink: #10130a;
  --cf: #f4f6ee;
  --cbg: #020305;
  --cline: #1a2112;
  --soft: #101627;
}
* {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  background: var(--bg);
  color: var(--ink);
  font:
    400 1.05rem/1.65 Figtree,
    system-ui,
    sans-serif;
  transition:
    background 0.4s,
    color 0.4s;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  font-family: Outfit, Figtree, sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.04;
  font-weight: 600;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid var(--a);
  outline-offset: 3px;
  border-radius: 10px;
}
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: 96px 0;
}
.pg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--a);
  transform-origin: 0 0;
  transform: scaleX(0);
  z-index: 60;
}
.rv {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rv.in {
  opacity: 1;
  transform: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font:
    600 1rem Figtree,
    system-ui,
    sans-serif;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 0.25s,
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: scale(0.96);
}
.btn.fill {
  background: var(--ink);
  color: var(--bg);
}
.btn.fill:hover {
  background: var(--a);
  border-color: var(--a);
  color: var(--on-a);
}
.ico {
  flex: none;
}
