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

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-alt: #0f0f0f;
  --accent: #84cc16;
  --accent-dark: #65a30d;
  --text: #ffffff;
  --text-secondary: #d1d5db;
  --muted: #6b7280;
  --border: #1e1e1e;
  --radius: 8px;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.hidden {
  display: none !important;
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
}

.nav__logo strong {
  color: var(--accent);
  font-weight: 700;
}

.nav__logo-icon {
  color: var(--accent);
}

.nav__toggle-input {
  display: none;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav__links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}

.hero__content {
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero__body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 48px;
}

.hero__arrow {
  display: inline-block;
  color: var(--muted);
  animation: bounce 2s infinite;
  transition: color 0.2s;
}

.hero__arrow:hover {
  color: var(--accent);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

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

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

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section__intro {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 640px;
}

/* === Credential Cards === */
.cred-group__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.cred-group__title:first-of-type {
  margin-top: 0;
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.cred-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  transition: border-color 0.2s;
}

.cred-card:hover {
  border-color: var(--accent);
}

.cred-card__status {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.cred-card__status--active {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(132, 204, 22, 0.4);
}

.cred-card__status--complete {
  background: var(--muted);
}

.cred-card__name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.cred-card__issuer {
  font-size: 0.8rem;
  color: var(--muted);
}

/* === Articles === */
.article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.article:hover {
  border-color: #2a2a2a;
}

.article__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.article__tag--ai {
  background: rgba(132, 204, 22, 0.12);
  color: var(--accent);
}

.article__tag--arch {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
}

.article__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.article__preview {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.article__toggle {
  display: none;
}

.article__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease;
  opacity: 0;
}

.article__toggle:checked ~ .article__content {
  max-height: 2000px;
  opacity: 1;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 16px;
}

.article__content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.article__content p:last-child {
  margin-bottom: 0;
}

.article__more {
  display: inline-block;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  margin-top: 4px;
}

.article__more:hover {
  color: var(--accent-dark);
}

.article__toggle:checked ~ .article__more::after {
  content: " ↑";
}

.article__toggle:not(:checked) ~ .article__more::after {
  content: " ↓";
}

/* === African Context === */
.context-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.context-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent);
}

.context-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* === Subscribe === */
#subscribe {
  padding: 72px 0;
}

.subscribe {
  text-align: center;
  max-width: 520px;
}

.subscribe .section__intro {
  margin-left: auto;
  margin-right: auto;
}

.subscribe__form {
  margin-top: 8px;
}

.subscribe__row {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.subscribe__input {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
}

.subscribe__input::placeholder {
  color: var(--muted);
}

.subscribe__input:focus {
  border-color: var(--accent);
}

.subscribe__btn {
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.subscribe__btn:hover {
  background: var(--accent-dark);
}

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

.footer__inner {
  text-align: center;
}

.footer__logo {
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer__note {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer__domains {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.footer__copy {
  color: #3f3f46;
  font-size: 0.75rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--border);
  }

  .nav__toggle-input:checked ~ .nav__links {
    max-height: 200px;
    padding: 16px 0;
  }

  .nav__toggle-input:checked ~ .nav__toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle-input:checked ~ .nav__toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle-input:checked ~ .nav__toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav__links li {
    width: 100%;
    text-align: center;
  }

  .nav__links a {
    display: block;
    padding: 12px 24px;
    font-size: 1rem;
  }

  .cred-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .context-grid {
    grid-template-columns: 1fr;
  }

  .article {
    padding: 24px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 100px 24px 60px;
  }
}

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

  .subscribe__row {
    flex-direction: column;
  }

  .subscribe__btn {
    width: 100%;
  }

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

  .article__title {
    font-size: 1.05rem;
  }
}
