:root {
  --bg: #0f1115;
  --bg-alt: #161922;
  --card: #1b1f2a;
  --text: #e9ebf1;
  --text-dim: #a6acbb;
  --accent: #6c5ce7;
  --accent-2: #00d1b2;
  --border: #262b38;
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 17, 21, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
}

.brand .dot { color: var(--accent); }

.nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--text-dim);
  font-weight: 500;
}

.nav a:hover, .nav a.active {
  color: var(--text);
  text-decoration: none;
}

.hero {
  padding: 90px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
}

.hero p.lead {
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
}

.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.btn:hover { background: #5a4bd6; text-decoration: none; }
.btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

section { padding: 50px 0; }

.section-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-dim);
  margin-bottom: 36px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

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

.card h3 { margin-top: 0; }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.15);
  color: var(--accent-2);
  margin-bottom: 12px;
}

.ad-slot {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 36px 0;
  background: var(--bg-alt);
}

article.post {
  max-width: 720px;
  margin: 0 auto;
}

article.post h1 {
  font-size: 2.1rem;
  margin-bottom: 6px;
}

article.post .meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

article.post p { margin-bottom: 18px; }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: 40px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

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

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
}

form.contact-form input,
form.contact-form textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

form.contact-form textarea { min-height: 140px; resize: vertical; }

@media (max-width: 640px) {
  .nav ul { gap: 14px; }
  .nav ul li a { font-size: 0.9rem; }
}
