@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg: #0a0c16;
  --bg-raised: #10131f;
  --surface: #151a29;
  --surface-border: #232a3d;
  --ink: #f3f4f9;
  --ink-dim: #aab0c4;
  --ink-faint: #8992ad;
  --purple: #9565ff;
  --blue: #39bfff;
  --gradient: linear-gradient(90deg, var(--purple), var(--blue));
  --radius-lg: 24px;
  --radius-md: 16px;
  --measure: 70ch;
}

*, *::before, *::after{ box-sizing: border-box; }

::selection{
  background: rgba(149, 101, 255, 0.35);
  color: #ffffff;
}

html{
  scroll-behavior: smooth;
  color-scheme: dark;
}

html, body{
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body{
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before{
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vw 60vw at 85% -10%, rgba(149, 101, 255, 0.16), transparent 60%),
    radial-gradient(50vw 50vw at -10% 20%, rgba(57, 191, 255, 0.10), transparent 60%);
  pointer-events: none;
}

a{ color: var(--blue); text-decoration-color: rgba(57,191,255,0.4); text-underline-offset: 3px; }
a:hover{ text-decoration-color: var(--blue); }
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar{ width: 12px; }
::-webkit-scrollbar-track{ background: var(--bg); }
::-webkit-scrollbar-thumb{
  background: var(--surface-border);
  border-radius: 8px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover{ background: #33395080; }

.wrap{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* ---------- Shared site header ---------- */
header.site-header{
  padding: clamp(20px, 4vw, 30px) 0;
  position: relative;
  z-index: 2;
}
.site-header-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img{
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
}
.brand span{
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.22em;
  color: var(--ink);
}
.site-nav{
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 32px);
}
.site-nav a{
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration-color: transparent;
}
.site-nav a:hover{ color: var(--ink); }
.site-nav a[aria-current="page"]{
  color: var(--ink);
  font-weight: 600;
  position: relative;
}
.site-nav a[aria-current="page"]::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

/* ---------- Footer ---------- */
footer{
  border-top: 1px solid var(--surface-border);
  padding: 28px 0 40px;
  position: relative;
  z-index: 2;
}
footer .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer .fbrand{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-faint);
  font-size: 13.5px;
}
footer .fbrand img{ width: 20px; height: 20px; border-radius: 5px; opacity: 0.85; }
footer nav{ display: flex; gap: 20px; }
footer nav a{
  color: var(--ink-faint);
  font-size: 13.5px;
  text-decoration: none;
}
footer nav a:hover{ color: var(--ink-dim); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}
