:root {
  --bg: #0e0e12;
  --bg-alt: #15151b;
  --surface: #1c1c24;
  --border: #2a2a34;
  --text: #f0f0f5;
  --text-muted: #a0a0ad;
  --accent: #9147ff;
  --accent-hover: #a970ff;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.6;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(14, 14, 18, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}

.main-nav a {
  color: var(--text-muted);
  margin-left: 28px;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--text);
}

@media (max-width: 768px) {
  .header-inner { padding: 0 12px; height: 56px; }
  .logo { font-size: 1.05rem; }
  .main-nav a { margin-left: 14px; font-size: 0.85rem; }
}

@media (max-width: 420px) {
  .main-nav a { margin-left: 10px; font-size: 0.78rem; }
}

/* Auth */
.auth-container {
  display: flex;
  align-items: center;
}

.btn-twitch {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-twitch img {
  width: 16px;
  height: 16px;
}

.btn-twitch:hover {
  background: var(--accent-hover);
}

.profile-menu {
  position: relative;
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.profile-button:hover {
  background: var(--surface);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.profile-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 20;
}

.profile-dropdown.show {
  display: block;
}

.profile-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  padding: 12px 16px;
  font-size: 0.9rem;
  cursor: pointer;
}

.profile-dropdown button:hover {
  background: var(--accent);
  color: #fff;
}

/* Hero */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(145, 71, 255, 0.18), transparent 60%);
}

.hero-eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin: 0;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 16px 0 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

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

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

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 1.75rem;
  margin: 0 0 28px;
  font-weight: 700;
}

.about-text {
  color: var(--text-muted);
  max-width: 720px;
  font-size: 1.05rem;
}

.about-text strong {
  color: var(--text);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.card-meta {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 14px;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.social-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}
