/* ========== Design Tokens ========== */
:root {
  --bg: #12141A;
  --bg-soft: #1A1C22;
  --surface: #282B35;
  --border: #353945;
  --text: #FFFFFF;
  --text-body: #B5BAC8;
  --text-muted: #8C92A4;
  --accent: #ED0F24;
  --accent-hover: #d60d20;
  --link: #FF2D3D;
  --link-hover: #FF5060;
  --success: #0FED0F;
  --primary-blue: #3B82F6;
  --font: 'K2D', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Navbar ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(18, 20, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.navbar-brand span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.2s;
}

.navbar-links a:hover { color: var(--text); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(237, 15, 36, 0.3);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #323644;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 4px;
}

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

/* ========== Mobile menu toggle ========== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

.menu-toggle svg { width: 24px; height: 24px; }

/* ========== Footer ========== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

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

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

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand span {
  font-weight: 600;
  font-size: 16px;
}

.footer-copy {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-rss {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-rss svg {
  flex-shrink: 0;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-cta { display: none; }
  .menu-toggle { display: block; }

  .navbar-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 16px;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}
