/* ── Variables ── */
:root {
  --bg:          #000000;
  --surface:     #0a0a0a;
  --surface-2:   #111111;
  --border:      rgba(212,175,55,0.15);
  --border-2:    rgba(212,175,55,0.30);
  --text:        #ffffff;
  --text-2:      #888888;
  --accent:      #D4AF37;
  --accent-dim:  rgba(212,175,55,0.15);
  --accent-dim-2:  rgba(212,175,55,0.25);
  --accent-glow: rgba(212,175,55,0.25);
  --accent-2:    var(--accent);
  --max:         1100px;
  --nav-h:       64px;
}

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

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Animations ── */
@keyframes wipe-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
@keyframes pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  cursor: none;
  animation: pageEnter 0.5s ease forwards;
}

@media (hover: none) {
  body { cursor: auto; }
}

/* ── Custom Cursor ── */
#cursor-dot, #cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
  mix-blend-mode: difference;
}
#cursor-dot {
  width: 10px; height: 10px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
#cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: all 0.15s ease;
}
body.cursor-hover #cursor-dot  { width: 18px; height: 18px; }
body.cursor-hover #cursor-ring { width: 50px; height: 50px; }

/* ── Grid container ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, auto);  /* rows size to tallest card in the row */
  gap: 1.5rem;
  padding: 1.5rem 0;
}

/* ── Card shell ── */
.card {
  display: flex;           /* lets card-inner stretch to full row height */
  min-height: 0;           /* prevents grid blowout */
}

/* ── Inner card — stretches to match sibling, never clips content ── */
.card-inner {
  display: flex;
  flex-direction: column;
  flex: 1;                 /* fill the .card flex container */
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card-title {
  margin: 0 0 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.card-body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #4a5568;
}

/* ── Mobile: single column ── */
@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) {
  #cursor-dot, #cursor-ring { display: none; }
}

/* ── Progress Bar ── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg,var(--accent),var(--accent-2));
  box-shadow: 0 0 8px var(--accent);
  z-index: 10000;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Canvas ── */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* ── Theme Swatches ── */
.nav-left { display: flex; align-items: center; gap: 14px; }
.theme-swatches { display: flex; align-items: center; gap: 7px; }
.swatch {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid transparent; cursor: none; background: var(--c);
  padding: 0; flex-shrink: 0; box-sizing: border-box;
  transition: transform .2s, box-shadow .2s, background .15s, border-color .15s;
}
.swatch:hover { transform: scale(1.3); }
.swatch.active {
  background: transparent;
  border-color: var(--c);
  box-shadow: 0 0 8px var(--c);
  transform: none;
}
.swatch[data-theme="aurora"] { background: linear-gradient(135deg, #E0318A, #4527A0); }
.swatch[data-theme="aurora"].active { background: transparent; }
.swatch[data-theme="neon"] { background: linear-gradient(135deg, #4361EE, #F9C74F); }
.swatch[data-theme="neon"].active { background: transparent; }

/* ── Mobile Nav Pill ── */
.nav-pill-wrap { display: none; position: relative; }
.nav-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--accent-dim);
  border: 1px solid var(--border-2);
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 12px; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.nav-pill:hover { background: var(--accent-dim); border-color: var(--accent); }
.nav-chevron { font-size: 10px; transition: transform 0.2s; }
.nav-pill[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-2);
  min-width: 140px;
  z-index: 1001;
}
.nav-dropdown.open { display: block; }
.nav-dropdown a {
  display: block; padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-2); text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { color: var(--accent); background: var(--accent-dim); }

@media (max-width: 600px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-pill-wrap { display: block; }
}

/* ── Layout ── */
main { position: relative; z-index: 1; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
}

/* ── Section Helpers ── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Buttons ── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: none;
  transition: opacity 0.2s, transform 0.2s;
  border-radius: 4px;
}
.btn-gold:hover { opacity: 0.85; transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border-2);
  cursor: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  border-radius: 4px;
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* ── Fade In Observer ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── Footer ── */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--text-2);
  text-decoration: none;
}
.footer-logo span { color: var(--accent); }
.footer-copy { font-size: 13px; color: var(--text-2); }
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 12px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
