/* ── VIPRMIND — Black & White Design System ────────────────────────────── */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=satoshi@300,400,500,700&display=swap');

/* ── Type Scale ──────────────────────────────────────────────────────────── */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  --font-display: 'Clash Display', 'Helvetica Neue', sans-serif;
  --font-body:    'Satoshi', 'Inter', sans-serif;
}

/* ── Spacing ─────────────────────────────────────────────────────────────── */
:root {
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* ── Color — Pure Black & White ─────────────────────────────────────────── */
:root, [data-theme='dark'] {
  --color-bg:              #000000;
  --color-surface:         #0a0a0a;
  --color-surface-2:       #111111;
  --color-surface-offset:  #161616;
  --color-divider:         #1f1f1f;
  --color-border:          #2a2a2a;

  --color-text:            #ffffff;
  --color-text-muted:      #888888;
  --color-text-faint:      #444444;
  --color-text-inverse:    #000000;

  --color-primary:         #ffffff;
  --color-primary-hover:   #cccccc;
  --color-primary-active:  #aaaaaa;
  --color-primary-dim:     rgba(255,255,255,0.05);
  --color-primary-border:  rgba(255,255,255,0.15);

  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.8);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.8);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.9);

  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;
}

[data-theme='light'] {
  --color-bg:              #ffffff;
  --color-surface:         #f8f8f8;
  --color-surface-2:       #f0f0f0;
  --color-surface-offset:  #ebebeb;
  --color-divider:         #e0e0e0;
  --color-border:          #d0d0d0;

  --color-text:            #000000;
  --color-text-muted:      #555555;
  --color-text-faint:      #aaaaaa;
  --color-text-inverse:    #ffffff;

  --color-primary:         #000000;
  --color-primary-hover:   #333333;
  --color-primary-active:  #555555;
  --color-primary-dim:     rgba(0,0,0,0.05);
  --color-primary-border:  rgba(0,0,0,0.15);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
}

/* ── Base Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.1; font-family: var(--font-display); }
p, li, figcaption { text-wrap: pretty; max-width: 68ch; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }

::selection { background: rgba(255,255,255,0.15); color: var(--color-text); }
[data-theme='light'] ::selection { background: rgba(0,0,0,0.1); }
:focus-visible { outline: 1px solid var(--color-text); outline-offset: 3px; border-radius: var(--radius-sm); }

a, button, [role='button'] {
  transition: color var(--transition-interactive),
              background var(--transition-interactive),
              border-color var(--transition-interactive),
              opacity var(--transition-interactive);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
}
.container--narrow  { max-width: var(--content-narrow); }
.container--default { max-width: var(--content-default); }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) clamp(var(--space-6), 5vw, var(--space-16));
  background: color-mix(in oklab, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.nav__logo span { color: var(--color-text-muted); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}
.nav__links a {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav__links a:hover { color: var(--color-text); }
.nav__links a.active { color: var(--color-text); }

.nav__actions { display: flex; align-items: center; gap: var(--space-4); }

.theme-toggle {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-faint);
  border: 1px solid var(--color-border);
}
.theme-toggle:hover { color: var(--color-text); border-color: var(--color-text-muted); }

.nav__burger {
  display: none; flex-direction: column; gap: 5px; padding: var(--space-2);
}
.nav__burger span {
  display: block; width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__mobile {
  display: none;
  position: fixed; inset: 0; top: 64px;
  background: var(--color-bg);
  z-index: 99;
  flex-direction: column;
  padding: var(--space-8) clamp(var(--space-6), 5vw, var(--space-16));
  gap: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text-faint);
}
.nav__mobile a:hover, .nav__mobile a.active { color: var(--color-text); }

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}

.page-offset { padding-top: 73px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--color-divider);
  padding: var(--space-10) 0;
  margin-top: var(--space-32);
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap;
}
.footer__copy { font-size: var(--text-xs); color: var(--color-text-faint); }
.footer__links { display: flex; gap: var(--space-6); list-style: none; }
.footer__links a {
  font-size: var(--text-xs); color: var(--color-text-faint);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.footer__links a:hover { color: var(--color-text); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500;
  letter-spacing: 0.02em; border-radius: var(--radius-md);
  transition: all var(--transition-interactive);
}
.btn--primary {
  background: var(--color-text);
  color: var(--color-bg);
  border: 1px solid var(--color-text);
}
.btn--primary:hover { background: var(--color-text-muted); border-color: var(--color-text-muted); }
.btn--ghost {
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.btn--ghost:hover { border-color: var(--color-text-muted); color: var(--color-text); }

/* ── Tag ─────────────────────────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
}

/* ── Divider ─────────────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--color-divider); margin-block: var(--space-16); }

/* ── Fade-up ─────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.fade-up.delay-1 { animation-delay: 0.1s; }
.fade-up.delay-2 { animation-delay: 0.2s; }
.fade-up.delay-3 { animation-delay: 0.3s; }
.fade-up.delay-4 { animation-delay: 0.45s; }
.fade-up.delay-5 { animation-delay: 0.6s; }

/* ── Footer Social ───────────────────────────────────────────────────────── */
.footer__social {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}
.footer__social a {
  color: var(--color-text-faint);
  display: flex;
  align-items: center;
  padding: var(--space-1);
}
.footer__social a:hover { color: var(--color-text); }
