@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #f7f9fc;
  --panel: #ffffff;
  --text: #0c1226;
  --muted: #4a5568;
  --accent: #2563eb;
  --accent-2: #f97316;
  --accent-3: #10b981;
  --accent-4: #7c3aed;
  --glow: 0 20px 60px rgba(37, 99, 235, 0.2);
  --radius-lg: 18px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Manrope', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.08), transparent 35%),
              radial-gradient(circle at 80% 0%, rgba(244, 114, 182, 0.14), transparent 30%),
              radial-gradient(circle at 50% 60%, rgba(16, 185, 129, 0.12), transparent 35%),
              var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(12, 18, 38, 0.05);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--text);
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--glow);
}

.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  background: linear-gradient(145deg, #ffffff, rgba(226, 232, 240, 0.9));
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2.6px;
  background: #0f172a;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger:hover span {
  background: var(--accent);
}

.nav-toggle:checked + .hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle:checked + .hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked + .hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.hero {
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.18), rgba(244, 114, 182, 0.15));
  border-radius: var(--radius-xl);
  padding: 32px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 320px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.hero h1 {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1.1;
}

.hero p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5b21b6);
  color: #fff;
  box-shadow: var(--glow);
}

.btn-secondary {
  background: rgba(12, 18, 38, 0.08);
  color: var(--text);
  border: 1px solid rgba(12, 18, 38, 0.08);
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.grid-cta {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid rgba(12, 18, 38, 0.06);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.section-title {
  font-size: 1.8rem;
  margin: 42px 0 16px;
}

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

.color-card {
  border-radius: 18px;
  padding: 18px;
  color: #0c0a09;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.color-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.color-card p {
  margin: 0;
  color: #111827;
}

.footer {
  margin-top: 60px;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.16), rgba(16, 185, 129, 0.12));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 32px 20px 44px;
  border-top: 1px solid rgba(12, 18, 38, 0.06);
}

.footer .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.footer h4 {
  margin: 0 0 12px;
}

.footer p {
  margin: 0 0 8px;
  color: var(--muted);
}

.footer .keywords {
  color: #0f172a;
  font-weight: 600;
}

.article {
  background: var(--panel);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(12, 18, 38, 0.06);
}

.article h1 {
  margin-top: 0;
  font-size: 2rem;
}

.article h2 {
  margin-top: 28px;
  margin-bottom: 10px;
}

.article h3 {
  margin-top: 20px;
  margin-bottom: 8px;
}

.article p {
  margin: 10px 0;
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(16, 185, 129, 0.16);
}

.aside-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.ad-slot {
  background: rgba(12, 18, 38, 0.02);
  border: 1px dashed rgba(12, 18, 38, 0.15);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
}

.ad-slot p {
  margin: 6px 0 12px;
  color: var(--muted);
}

.ad-slot img {
  margin: 0 auto;
  display: block;
  border-radius: 12px;
}

.ad-728 { max-width: 728px; width: 100%; height: auto; }
.ad-300 { max-width: 300px; width: 100%; height: auto; }
.ad-300x600 { max-width: 300px; width: 100%; height: auto; }

.tagline {
  font-weight: 600;
  color: var(--muted);
}

.table-like {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.table-like div {
  background: rgba(12, 18, 38, 0.03);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(12, 18, 38, 0.05);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .navbar {
    padding: 14px 16px;
  }

  .hamburger {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    right: -100%;
    width: 78%;
    max-width: 360px;
    height: calc(100vh - 68px);
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    gap: 10px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
    border-left: 1px solid rgba(12, 18, 38, 0.05);
    transition: right 0.25s ease;
    overflow-y: auto;
    z-index: 70;
  }

  .nav-toggle:checked + .hamburger + .nav-links {
    right: 10px;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    background: rgba(37, 99, 235, 0.06);
  }

  .hero h1 {
    font-size: 2.1rem;
  }
}

/* Lightweight Tailwind-style helpers */
.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.rounded-2xl { border-radius: 1rem; }
.shadow-xl { box-shadow: 0 24px 64px rgba(15, 23, 42, 0.14); }
.bg-white { background-color: #ffffff; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.font-bold { font-weight: 700; }

/******* Color blocks for homepage ******/
.color-1 { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.color-2 { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.color-3 { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.color-4 { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.color-5 { background: linear-gradient(135deg, #fef9c3, #fef3c7); }
.color-6 { background: linear-gradient(135deg, #cffafe, #a5f3fc); }
.color-7 { background: linear-gradient(135deg, #ffedd5, #fed7aa); }
.color-8 { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
