@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

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

:root {
  --bg-void:      #0A0612;
  --bg-deep:      #150B2A;
  --surface-1:    #1E1240;
  --surface-2:    #2A1A5C;
  --surface-3:    #3A2580;
  --violet:       #7C3AFF;
  --violet-hi:    #A66BFF;
  --violet-lo:    #4B1FA5;
  --violet-ink:   #2C0F66;
  --magenta:      #FF3DD8;
  --magenta-lo:   #B81F95;
  --cyan:         #5DE6FF;
  --eye-amber:    #F5A03A;
  --eye-blue:     #2C7BD9;
  --fg:           #F2EAFF;
  --fg-dim:       #B7A6E0;
  --fg-mute:      #6E5E96;
  --hairline:     rgba(166, 107, 255, 0.18);
  --hairline-strong: rgba(166, 107, 255, 0.35);
  --font-display: 'Orbitron', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
  --glow-sm: 0 0 12px rgba(124, 58, 255, 0.35);
  --glow-md: 0 0 24px rgba(124, 58, 255, 0.45);
  --glow-lg: 0 0 48px rgba(255, 61, 216, 0.35);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-base: 200ms;
  --t-panel: 320ms;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  scrollbar-width: thin;
  scrollbar-color: var(--violet-lo) var(--bg-void);
}

html {
  background-color: var(--bg-void);
  background-image: url('assets/hero/hero_bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
body {
  background: transparent;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background: rgba(10, 6, 18, 0.55);
  pointer-events: none;
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,6,18,0.7) 0%, transparent 30%, transparent 70%, rgba(10,6,18,0.7) 100%),
    linear-gradient(180deg, rgba(10,6,18,0.5) 0%, rgba(10,6,18,0.55) 50%, rgba(10,6,18,0.75) 100%);
}

::selection { background: var(--magenta); color: var(--bg-void); }

a { color: var(--violet-hi); text-decoration: none; transition: color var(--t-base) var(--ease-out); }
a:hover { color: var(--magenta); }

.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  background: transparent;
  transition: background var(--t-panel) var(--ease-out), backdrop-filter var(--t-panel);
  will-change: background, backdrop-filter;
}
.site-nav.scrolled {
  background: rgba(10, 6, 18, 0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--hairline);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 20px;
  color: var(--fg); text-transform: uppercase;
  letter-spacing: 0.04em; text-decoration: none;
}
.nav-logo span { color: var(--violet-hi); }
.nav-links {
  display: flex; gap: 32px; align-items: center; list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-weight: 600; font-size: 14px;
  color: var(--fg-dim); text-transform: uppercase;
  letter-spacing: 0.06em; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--violet); transition: width var(--t-base) var(--ease-out);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--violet-hi); }
.nav-links a.active::after { width: 100%; background: var(--violet-hi); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle svg { width: 24px; height: 24px; color: var(--fg); }

@media (max-width: 768px) {
  .site-nav { padding: 12px 20px; }
  .nav-toggle { display: block; min-width: 44px; min-height: 44px; }
  .nav-links {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100vh; height: 100dvh;
    flex-direction: column; gap: 0; padding: 80px 24px 32px;
    background: rgba(10, 6, 18, 0.96); backdrop-filter: blur(24px);
    border-left: 1px solid var(--hairline);
    transition: right var(--t-panel) var(--ease-out);
    z-index: 115;
  }
  .nav-links.open { right: 0; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; width: 100%;
    padding: 18px 8px; font-size: 17px;
    border-bottom: 1px solid var(--hairline);
    min-height: 56px;
  }
  .nav-links a::after { display: none; }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 105;
    background: rgba(0,0,0,0.5);
    opacity: 0; pointer-events: none;
    transition: opacity var(--t-panel) var(--ease-out);
  }
  .nav-backdrop.active { opacity: 1; pointer-events: all; }
}

@media (hover: none) and (pointer: coarse) {
  .social-icon { min-width: 44px; min-height: 44px; }
}

.social-row {
  display: flex; gap: 16px; align-items: center;
}
.social-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  color: var(--fg-dim);
  transition: all var(--t-base) var(--ease-out);
}
.social-icon:hover {
  color: var(--violet-hi); border-color: var(--violet);
  box-shadow: var(--glow-sm); transform: translateY(-2px);
}
.social-icon svg { width: 18px; height: 18px; }

.section-label {
  font-family: var(--font-display);
  font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--violet-hi); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  text-transform: uppercase; letter-spacing: -0.01em;
  line-height: 1.1; color: var(--fg);
}
.section-desc {
  color: var(--fg-dim); font-size: 16px;
  line-height: 1.65; max-width: 560px;
}

.site-footer {
  padding: 48px 40px 32px;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.site-footer .footer-brand { justify-self: start; }
.site-footer .social-row { justify-self: center; }
.site-footer .footer-copy { justify-self: end; }
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 14px;
  color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.04em;
}
.footer-copy { font-size: 13px; color: var(--fg-mute); }

@media (max-width: 768px) {
  .site-footer {
    padding: 32px 20px 24px;
    grid-template-columns: 1fr;
    text-align: center;
  }
  .site-footer .footer-brand,
  .site-footer .footer-copy { justify-self: center; }
}

.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.fade-in.visible { opacity: 1; transform: translateY(0); will-change: auto; }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

.page-transition {
  opacity: 0;
  animation: pageEnter 0.45s var(--ease-out) forwards;
}
@keyframes pageEnter {
  to { opacity: 1; }
}
.page-exit {
  animation: pageExit 0.2s var(--ease-out) forwards;
}
@keyframes pageExit {
  to { opacity: 0; }
}
