/* Shared design tokens & base styles */
:root {
  --primary: #0A0B0C;
  --secondary: #1B1F22;
  --secondary-line: #2B3033;
  --accent: #00F5A0;
  --accent-btn-text: #04120C;
  --text-hi: #F3F5F5;
  --text-lo: #94A0A4;
  --nav-bg: rgba(10, 11, 12, 0.85);
  --nav-bg-scrolled: rgba(10, 11, 12, 0.95);
  --shadow-color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
  --primary: #F8FAFC;
  --secondary: #FFFFFF;
  --secondary-line: #E2E8F0;
  --accent: #2563EB;
  --accent-btn-text: #FFFFFF;
  --text-hi: #0F172A;
  --text-lo: #475569;
  --nav-bg: rgba(248, 250, 252, 0.85);
  --nav-bg-scrolled: rgba(248, 250, 252, 0.95);
  --shadow-color: rgba(37, 99, 235, 0.08);
}

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

body {
  background: var(--primary);
  color: var(--text-hi);
  font-family: 'IBM Plex Mono', monospace;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-hi);
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.logo:hover {
  opacity: 0.95;
}

.logo-icon {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  display: block;
  border-radius: 6px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.logo:hover .logo-icon {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 0 12px rgba(0, 245, 160, 0.5));
}
[data-theme="light"] .logo:hover .logo-icon {
  filter: drop-shadow(0 0 12px rgba(37, 99, 235, 0.5));
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.logo-main-line {
  font-family: 'Clash Display', sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.logo-sub-line {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-lo);
  white-space: nowrap;
  margin-top: 3px;
}

.part-white {
  color: #FFFFFF;
}
[data-theme="light"] .part-white {
  color: #0A0B0C;
}

.part-green, .logo span.part-green, .logo-dot {
  color: var(--accent);
}

nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--secondary-line);
  transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
nav.scrolled {
  box-shadow: 0 10px 30px var(--shadow-color);
  background: var(--nav-bg-scrolled);
}

.theme-toggle {
  background: var(--secondary);
  border: 1px solid var(--secondary-line);
  color: var(--text-hi);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, color 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
  position: relative;
  outline: none;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(0, 245, 160, 0.2);
}
[data-theme="light"] .theme-toggle:hover {
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.2);
}
.theme-toggle svg {
  width: 19px;
  height: 19px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Show Sun icon in dark mode, Moon icon in light mode */
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
:root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
:root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px 2px var(--accent);
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px 1px rgba(0, 245, 160, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 16px 4px rgba(0, 245, 160, 0.9); }
}

footer {
  border-top: 1px solid var(--secondary-line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-meta {
  font-size: 13px;
  color: var(--text-lo);
  letter-spacing: 0.02em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .nav-inner { padding: 18px 24px; }
}
