/* Global variables */
:root {
  --bg: #050505;
  --bg2: #0a0a0a;
  --text: #f5f5f5;
  --muted: #b3b3b3;

  --glow1: #6cf3ff;
  --glow2: #b67cff;
  --glow3: #ff6bcb;

  --border: rgba(255, 255, 255, 0.12);
  --border2: rgba(255, 255, 255, 0.08);

  --shadow: rgba(0, 0, 0, 0.55);

  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Global body */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Page layout */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  width: 100%;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid var(--border2);
}

/* NEW: Center nav */
.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 50px;
  height: auto;
  opacity: 0.9;
}

/* Center the nav */
.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
}

/* Nav */
.nav-link {
  position: relative;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 13px;
  opacity: 0.85;
  padding: 8px 12px;
  transition: opacity 200ms var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--glow1), var(--glow2), var(--glow3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms var(--ease), opacity 250ms var(--ease);
  opacity: 0;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-link.active {
  opacity: 1;
}

/* Main */
.main {
  width: 100%;
  padding: 70px 48px 120px;
  flex: 1;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 540px;
  text-align: center;
}

.hero-title {
  font-size: 54px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin-top: 18px;
  font-size: 16px;
  color: var(--muted);
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 200ms var(--ease), background 200ms var(--ease);
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(90deg, transparent, rgba(108,243,255,0.45), transparent);
  transform: translateX(-100%);
  transition: transform 400ms var(--ease);
}

.cta-btn:hover::before {
  transform: translateX(100%);
}

.cta-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.cta-btn.ghost {
  background: transparent;
}

/* Hero meta chips */
.hero-meta {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  justify-content: center;
  flex-wrap: wrap;
}

.meta-chip {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

/* Hero art */
.hero-art {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(182, 124, 255, 0.12), transparent 55%),
              radial-gradient(circle at 70% 80%, rgba(255, 107, 203, 0.12), transparent 55%);
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  animation: rotateRing 12s linear infinite;
}

.ring-two {
  border-color: rgba(108,243,255,0.25);
  animation-duration: 16s;
}

.ring-three {
  border-color: rgba(255,107,203,0.20);
  animation-duration: 20s;
}

/* Atom Sphere */
.atom-sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgb(255, 255, 255), rgba(90, 85, 85, 0.781));
  box-shadow: 0 0 24px rgba(255,255,255,0.35);
}

/* Animations */
@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* About preview */
.about-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 240px;
}

.preview-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  transition: transform 250ms var(--ease), background 250ms var(--ease);
}

.preview-card-link {
  text-decoration: none;
  color: inherit;
}

.preview-card-link:hover .preview-card {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.06);
}

.preview-card-link:hover .preview-card::after {
  transform: translateX(100%);
}

.preview-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.preview-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.preview-link {
  margin-top: 14px;
  display: inline-block;
  font-size: 13px;
  color: var(--text);
  opacity: 0.9;
  letter-spacing: 0.02em;
}

/* Footer */
.footer {
  width: 100%;
  padding: 30px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border2);
  background: rgba(0,0,0,0.5);
}

.footer-logo {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}

.footer-tagline {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.footer-right {
  display: flex;
  gap: 18px;
}

.footer-link {
  font-size: 12px;
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 980px) {
  .about-preview {
    grid-template-columns: repeat(2, 1fr);
  }

  .header {
    padding: 18px 24px;
  }

  .main {
    padding: 50px 24px 90px;
  }

  .footer {
    padding: 24px;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 10px;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-title {
    font-size: 42px;
  }

  .cta-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .header {
    padding: 14px 16px;
  }

  .logo-img {
    width: 40px;
  }

  .main {
    padding: 40px 16px 70px;
  }

  .nav {
    gap: 12px;
  }

  .nav-link {
    font-size: 12px;
    padding: 6px 10px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-top: 12px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }

  .cta-btn {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
  }

  .hero-meta {
    flex-wrap: wrap;
    margin-top: 16px;
  }

  .meta-chip {
    font-size: 11px;
    padding: 6px 8px;
  }

  .about-preview {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .preview-card {
    padding: 18px;
  }

  .preview-title {
    font-size: 16px;
  }

  .preview-text {
    font-size: 13px;
  }

  .preview-link {
    font-size: 12px;
  }

  .footer {
    padding: 18px 16px;
    gap: 16px;
  }

  .footer-logo {
    font-size: 12px;
  }

  .footer-tagline {
    font-size: 11px;
  }

  .footer-right {
    gap: 12px;
  }

  .footer-link {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .main {
    padding: 30px 12px 50px;
  }

  .hero-title {
    font-size: 26px;
  }

  .nav-link {
    font-size: 11px;
    padding: 5px 8px;
  }
}

/* Mobile-first animation adjustments */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
