:root {
  --bg: #0b0b0b;
  --panel: #0f0f0f;
  --muted: #9b9b9b;
  --accent: #26D07A; /* green */
  --white: #fff;
  --glass: rgba(255,255,255,0.04);
  --transition: 400ms cubic-bezier(.2,.9,.2,1);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; margin: 0; background: linear-gradient(180deg, var(--bg) 0%, #050505 100%); color: var(--white); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  pointer-events: auto;
  background: transparent;
  padding: 12px 20px;
  width: 100%;
  transition: backdrop-filter 400ms ease;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 12px;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 120px;
  z-index: 1001;
}

.header-left .icon-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 18px;
  padding: 8px;
  border-radius: 10px;
  background: transparent;
  transition: var(--transition);
}

.header-left .icon-link:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10002;
  pointer-events: auto;
}

.main-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 8px 18px;
  background: linear-gradient(90deg, rgba(213, 204, 204, 0.02), rgba(255,255,255,0.01));
  border-radius: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 30px rgba(0,0,0,0.6);
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 220ms ease, transform 220ms ease;
  position: relative;
  z-index: 10003;
  pointer-events: auto;
}

.main-nav a:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.main-nav a.active {
  color: var(--accent);
  text-shadow: 0 4px 18px rgba(38,208,122,0.12);
}

.logo {
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.6));
}

.site-name {
  text-align: left;
  line-height: 1;
  margin-left: 6px;
}

.site-name .title {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--white);
}

.site-name .byline {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Ensure main content starts below header */
main {
  padding-top: 92px;
}

/* Responsive */
@media (max-width: 992px) {
  .main-nav ul {
    gap: 12px;
    padding: 6px 12px;
  }

  .main-nav a {
    padding: 4px 6px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-left, .header-right {
    min-width: unset;
    justify-content: center;
  }

  .header-left {
    display: none;
  }

  .main-nav {
    position: static;
    transform: none;
    margin: 12px auto 0;
    text-align: center;
    order: 3;
    width: 100%;
  }

  .main-nav ul {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    flex-direction: column;
    gap: 10px;
  }

  .header-left, .header-right {
    order: 1;
    min-width: unset;
  }
  
  .main-nav {
    order: 2;
    margin-top: 0;
  }
  
  .site-name {
    margin-left: 0;
    text-align: center;
  }
}