/* ═══════════════════════════════════════════════
   ADAM MARTH — BUD
   Global Design System
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;900&family=Inter:wght@300;400;500&display=swap');

/* ── Tokens ─────────────────────────────────── */
:root {
  --bg:          #080808;
  --surface:     #111111;
  --surface-2:   #1a1a1a;
  --surface-3:   #242424;
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.12);
  --text:        #e8e8e8;
  --muted:       #6a6a6a;
  --accent:      #c9a96e;
  --accent-dim:  rgba(201,169,110,0.15);
  --accent-glow: rgba(201,169,110,0.08);
  --success:     #4a9e7f;
  --error:       #c96e6e;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:    10px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t:    0.22s var(--ease);
  --t-lg: 0.4s  var(--ease);

  --max-w: 520px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Grain overlay ──────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
}

/* ── Typography ─────────────────────────────── */
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; }

.display {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--t);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: #d8ba82;
  border-color: #d8ba82;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.25);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 10px 20px;
}
.btn-ghost:hover { color: var(--text); }

/* ── Inputs ─────────────────────────────────── */
.input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--t);
  outline: none;
}
.input::placeholder { color: var(--muted); }
.input:focus {
  border-color: var(--accent);
  background: rgba(201,169,110,0.05);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ── Glass card ─────────────────────────────── */
.glass {
  background: rgba(12,12,12,0.72);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

/* ── Social icons ───────────────────────────── */
.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: var(--t);
}
.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.social-icon svg { width: 17px; height: 17px; fill: currentColor; }

/* ── Spinner ────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Fade-in animation ──────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.55s var(--ease) both; }
.fade-up-2 { animation: fadeUp 0.55s 0.1s var(--ease) both; }
.fade-up-3 { animation: fadeUp 0.55s 0.2s var(--ease) both; }
.fade-up-4 { animation: fadeUp 0.55s 0.3s var(--ease) both; }

/* ── Page nav ───────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  pointer-events: none;
}
.site-nav > * { pointer-events: auto; }

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.8;
  transition: var(--t);
}
.nav-logo:hover { opacity: 1; color: var(--accent); }

/* ── Footer ─────────────────────────────────── */
.site-footer {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 600px) {
  :root { --radius-xl: 16px; --max-w: 100%; }
  .site-nav { padding: 16px 20px; }
}
