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

:root {
  --bg:        #0e0e10;
  --bg2:       #141416;
  --bg3:       #1a1a1e;
  --violet:    #7C3AED;
  --violet-l:  #9d5ff5;
  --amber:     #F59E0B;
  --amber-l:   #fbbf24;
  --text:      #e8e8f0;
  --muted:     #6b6b80;
  --border:    rgba(124,58,237,0.18);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom cursor ── */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--amber);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, opacity 0.3s;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(124,58,237,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.35s ease, width 0.3s, height 0.3s, border-color 0.3s;
  transform: translate(-50%, -50%);
}
body:hover .cursor { opacity: 1; }

/* ── Noise overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

/* ── Grid background ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ── Glow orbs ── */
.glow-orb {
  position: fixed;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: -200px; right: -200px;
  pointer-events: none;
  z-index: 0;
}
.glow-orb2 {
  position: fixed;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.07) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -100px; left: -100px;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 3rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, backdrop-filter 0.4s, background 0.4s;
}
nav.scrolled {
  border-color: var(--border);
  backdrop-filter: blur(20px);
  background: rgba(14,14,16,0.85);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--amber); }

.nav-links {
  display: flex; gap: 2.5rem; list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 0 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-tag {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet-l);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
  display: flex; align-items: center; gap: 0.7rem;
}
.hero-tag::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--violet);
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}
.hero-title .name   { color: var(--text); }
.hero-title .accent { color: var(--violet); }
.hero-title .dot    { color: var(--amber); }

.hero-sub {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}
.hero-sub em {
  color: var(--amber);
  font-style: normal;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.25s ease;
  cursor: none;
}
.btn-primary {
  background: var(--violet);
  color: #fff;
  border: 1px solid var(--violet);
}
.btn-primary:hover {
  background: var(--violet-l);
  border-color: var(--violet-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
}

/* ── Links section ── */
.links-section {
  position: relative; z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 3rem;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.link-card {
  display: flex; flex-direction: column;
  padding: 1.8rem;
  background: var(--bg2);
  text-decoration: none;
  color: var(--text);
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
  cursor: none;
}
.link-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.link-card:hover::before { transform: scaleX(1); }
.link-card:hover { background: var(--bg3); }

.link-card-icon  { font-size: 1.4rem; margin-bottom: 1rem; }
.link-card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.link-card-desc  { font-size: 0.75rem; color: var(--muted); line-height: 1.6; }
.link-card-arrow {
  margin-top: auto;
  padding-top: 1.2rem;
  font-size: 0.72rem;
  color: var(--amber);
  letter-spacing: 0.08em;
}

/* ── Auth welcome & logout ── */
.auth-welcome {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 3px;
}
.auth-link--logout {
  border-color: rgba(239,68,68,0.3);
  color: #f87171;
}
.auth-link--logout:hover {
  border-color: #f87171;
  color: #fca5a5;
}
.nav-logout { color: #f87171 !important; }
.nav-logout:hover { color: #fca5a5 !important; }

/* ── Auth row ── */
.auth-row {
  display: flex; gap: 0.75rem;
  margin-top: 2rem;
}
.auth-link {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: color 0.2s, border-color 0.2s;
  cursor: none;
}
.auth-link:hover { color: var(--text); border-color: var(--violet); }

/* ── Footer ── */
footer {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto;
  padding: 2rem 3rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.7rem; color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--amber); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  nav             { padding: 1.2rem 1.5rem; }
  .nav-links      { gap: 1.5rem; }
  .hero           { padding: 0 1.5rem; }
  .links-section  { padding: 4rem 1.5rem; }
  footer          { padding: 1.5rem; flex-direction: column; gap: 0.5rem; text-align: center; }
}
