/* fonts */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('fonts/jetbrains-mono-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* tokens */
:root {
  --sh-void: #030304;
  --sh-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sh-heading: 'Space Grotesk', 'Inter', sans-serif;
  --sh-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --sh-text: #f1f0f5;
  --sh-text-2: #c9c6cf;
  --sh-muted: #9a95a3;
  --sh-dim: #6f6a78;

  --sh-accent: #c9b4e3;
  --sh-accent-strong: #d8c4ff;
  --sh-accent-glow: rgba(150, 110, 230, 0.16);
  --sh-good: #9bd8c1;
  --sh-warn: #e2c98f;

  --sh-glass: rgba(255, 255, 255, 0.035);
  --sh-glass-strong: rgba(255, 255, 255, 0.06);
  --sh-line: rgba(255, 255, 255, 0.085);
  --sh-line-strong: rgba(255, 255, 255, 0.16);
  --sh-edge: linear-gradient(90deg, #ffffff30 0%, #ffffff0a 35%, transparent 70%);

  --sh-radius: 26px;
  --sh-radius-md: 16px;
  --sh-radius-sm: 10px;
  --sh-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  --sh-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* page base */
.sh-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--sh-text);
  font-family: var(--sh-font);
  background:
    radial-gradient(ellipse 44% 34% at 50% 30%, rgba(91, 62, 157, 0.14), transparent 100%),
    radial-gradient(ellipse 30% 38% at 90% 7%, rgba(67, 46, 119, 0.09), transparent 100%),
    var(--sh-void);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.sh-page ::selection { background: #fff; color: #000; }
.sh-page h1, .sh-page h2, .sh-page h3 { font-family: var(--sh-heading); letter-spacing: -0.02em; }

/* starfield */
.sh-stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.sh-above { position: relative; z-index: 1; }

/* glass card */
.sh-glass {
  position: relative;
  isolation: isolate;
  background: var(--sh-glass);
  backdrop-filter: blur(3px) saturate(115%);
  -webkit-backdrop-filter: blur(3px) saturate(115%);
  border: 1px solid var(--sh-line);
  border-radius: var(--sh-radius);
  box-shadow: var(--sh-shadow);
  transition: border-color 220ms ease, box-shadow 320ms ease;
}
.sh-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: var(--sh-edge);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
a.sh-glass:hover, .sh-glass.is-interactive:hover { border-color: var(--sh-line-strong); }
/* tilt strength */
.apple-glass { --sh-tilt: 1.4; }
a.sh-glass, .sh-glass.is-interactive { --sh-tilt: 1; }
.sh-glass.is-tilting, .apple-glass.is-tilting { box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26); }

/* cursor sheen */
.sh-sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(300px circle at var(--sh-mx, 50%) var(--sh-my, 50%), rgba(214, 196, 255, 0.038), transparent 65%);
  transition: opacity 320ms ease;
}
.is-lit > .sh-sheen { opacity: 1; }

/* labels */
.sh-eyebrow {
  font: 500 13px/1.4 var(--sh-font);
  letter-spacing: 0.01em;
  color: var(--sh-muted);
}
.sh-eyebrow.is-accent { color: var(--sh-accent); }
.sh-mono { font-family: var(--sh-mono); }
.sh-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--sh-line-strong);
  border-radius: 999px;
  font: 500 12px/1.5 var(--sh-font);
  color: var(--sh-text-2);
  background: var(--sh-glass);
}

/* buttons */
.sh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--sh-line-strong);
  border-radius: var(--sh-radius-sm);
  background: var(--sh-glass-strong);
  color: var(--sh-text);
  font: 500 13px/1 var(--sh-font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms var(--sh-ease);
}
.sh-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.26); }
.sh-btn:active { transform: translateY(1px); }
.sh-btn.is-primary { background: #f0edf4; color: #17121d; border-color: transparent; box-shadow: 0 0 22px #ffffff13; }
.sh-btn.is-primary:hover { background: #fff; }
.sh-btn svg, .sh-icon { width: 16px; height: 16px; flex: none; }

/* icon tile */
.sh-icon-tile {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--sh-line-strong);
  border-radius: 12px;
  background: var(--sh-glass-strong);
  color: var(--sh-accent);
}
.sh-icon-tile svg { width: 20px; height: 20px; }

/* header */
.sh-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0;
  font: 500 14px/1 var(--sh-font);
  color: var(--sh-muted);
}
.sh-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.sh-crumbs a { color: var(--sh-muted); text-decoration: none; transition: color 160ms ease; }
.sh-crumbs a:hover { color: var(--sh-text); }
.sh-crumbs [aria-current] { color: var(--sh-text); }
.sh-crumbs .sep { color: var(--sh-dim); }
.sh-header nav { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-header nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--sh-muted);
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}
.sh-header nav a:hover { color: var(--sh-text); background: var(--sh-glass-strong); }
.sh-header nav a[aria-current] { color: var(--sh-text); background: var(--sh-glass-strong); }

/* footer */
.sh-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  padding: 28px 0 34px;
  font: 400 13px/1.6 var(--sh-font);
  color: var(--sh-muted);
}
.sh-footer a { color: var(--sh-muted); text-decoration: none; transition: color 160ms ease; }
.sh-footer a:hover { color: var(--sh-text); }

/* text */
.sh-prose { color: var(--sh-text-2); line-height: 1.8; }
.sh-prose a { color: var(--sh-accent); text-underline-offset: 4px; }
.sh-prose a:hover { color: var(--sh-accent-strong); }
.sh-prose strong { color: var(--sh-text); }
.sh-prose code { font-family: var(--sh-mono); font-size: 0.86em; }

/* table */
.sh-table-wrap { overflow: auto; border: 1px solid var(--sh-line); border-radius: var(--sh-radius-md); background: var(--sh-glass); }
.sh-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.sh-table th, .sh-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--sh-line); }
.sh-table th { font: 600 13px/1.4 var(--sh-font); color: var(--sh-text); }
.sh-table tr:last-child td { border-bottom: 0; }

/* entrance */
.sh-reveal { animation: sh-rise 600ms var(--sh-ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes sh-rise { from { opacity: 0; translate: 0 14px; scale: .985; } to { opacity: 1; translate: none; scale: none; } }

/* focus */
.sh-page :focus-visible { outline: 2px solid var(--sh-accent); outline-offset: 3px; border-radius: 6px; }

/* page transitions */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: sh-page-out 200ms ease both; }
::view-transition-new(root) { animation: sh-page-in 420ms var(--sh-ease) both; }
@keyframes sh-page-out { to { opacity: 0; translate: 0 -6px; filter: blur(3px); } }
@keyframes sh-page-in { from { opacity: 0; translate: 0 10px; filter: blur(4px); } }

@media (prefers-reduced-motion: reduce) {
  .sh-reveal { animation: none; }
  .sh-glass, .sh-btn { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
