*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0a0c0b;
  --bg2: #0f1210;
  --card: #131816;
  --card2: #161c1a;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #f0f2f0;
  --muted: #7a8a82;
  --muted2: #4a5a52;
  --accent: #3eff8b;
  --accent2: #2bcc6e;
  --accent-dim: rgba(62,255,139,0.08);
  --accent-glow: rgba(62,255,139,0.15);
  --syne: 'Syne', sans-serif;
  --inter: 'Inter', sans-serif;
}
html { scroll-behavior: smooth; }
body { min-height: 100vh; font-family: var(--inter); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; overflow-x: hidden; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a3a32; border-radius: 3px; }

nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 58px;
  background: rgba(10,12,11,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; text-decoration: none; flex-shrink: 0;
}
.nav-logo-img {
  height: 38px; display: block; mix-blend-mode: screen;
}
.nav-links { display: flex; gap: 2rem; flex: 1; justify-content: center; overflow-x: auto; }

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-search-wrap { position: relative; }
.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 0 10px 0 11px;
  height: 34px;
  cursor: text;
  transition: border-color 0.2s, background 0.2s;
  min-width: 210px;
}
.nav-search:focus-within {
  border-color: rgba(62,255,139,0.3);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(62,255,139,0.06);
}
.nav-search-icon { color: var(--muted); flex-shrink: 0; display: flex; align-items: center; }
.nav-search-input {
  background: none; border: none; outline: none;
  font-family: var(--inter); font-size: 13px; color: var(--text);
  flex: 1; min-width: 0;
}
.nav-search-input::placeholder { color: var(--muted); }
.nav-search-kbd {
  font-family: var(--inter); font-size: 10px; font-weight: 500;
  color: var(--muted2); background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 2px 6px; letter-spacing: 0.04em;
  flex-shrink: 0; white-space: nowrap;
  transition: color 0.2s;
}

.nav-search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  min-width: 300px;
  background: #0f1410;
  border: 1px solid var(--border2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(62,255,139,0.06);
  z-index: 999;
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.nav-search-dropdown.open {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.search-group-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted2);
  padding: 10px 14px 4px;
}
.search-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; cursor: pointer;
  transition: background 0.12s;
  text-decoration: none;
}
.search-item:hover, .search-item.active {
  background: rgba(62,255,139,0.07);
}
.search-item.active { outline: none; }
.search-item-icon {
  width: 26px; height: 26px; border-radius: 6px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
}
.search-item-text { flex: 1; min-width: 0; }
.search-item-label {
  font-size: 13px; color: var(--text); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.search-item-label mark {
  background: none; color: var(--accent); font-weight: 600;
}
.search-item-category {
  font-size: 11px; color: var(--muted2); margin-top: 1px;
}
.search-item-arrow {
  font-size: 11px; color: var(--muted2); flex-shrink: 0; opacity: 0;
  transition: opacity 0.12s;
}
.search-item:hover .search-item-arrow,
.search-item.active .search-item-arrow { opacity: 1; }
.search-empty {
  padding: 18px 14px; text-align: center;
  font-size: 13px; color: var(--muted2);
}
.search-footer {
  border-top: 1px solid var(--border);
  padding: 7px 14px;
  display: flex; gap: 14px;
  font-size: 10px; color: var(--muted2);
}
.search-footer-key {
  display: inline-flex; align-items: center; gap: 5px;
}
.search-footer-kbd {
  font-size: 9px; color: var(--muted2); background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: 3px;
  padding: 1px 5px;
}
.nav-links a { font-size: 13px; font-weight: 400; color: var(--muted); text-decoration: none; letter-spacing: 0.02em; white-space: nowrap; transition: color 0.2s, text-shadow 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-shadow: 0 0 14px rgba(62,255,139,0.25); }
.nav-cta {
  font-family: var(--syne); font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  background: var(--accent); color: #050f08; padding: 8px 18px; border-radius: 6px;
  text-decoration: none; transition: opacity 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { opacity: 0.88; box-shadow: 0 0 20px var(--accent-glow); }

.page { max-width: 900px; margin: 0 auto; padding: 7rem 2rem; }
.label { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
h1 { font-family: var(--syne); font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1; margin-bottom: 1.5rem; }
p { max-width: 650px; color: #9aa8a1; font-size: 1.05rem; }

@media (max-width: 720px) {
  .nav-search-wrap { display: none; }
  nav { padding: 0 1rem; gap: 1rem; }
  .nav-links { justify-content: flex-start; gap: 1rem; }
  .nav-cta { display: none; }
  .nav-logo-img { height: 30px; }
  .page { padding: 5rem 1.25rem; }
}
