*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #6366f1;
  --purple-dark: #4f46e5;
  --violet: #8b5cf6;
  --text: #1e1b4b;
  --text-muted: #6b7280;
  --bg-alt: #f8f7ff;
  --border: #e5e7eb;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
}

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

/* ── Topbar ── */

.topbar {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  padding: 12px 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.15s;
}

.lang-switch:hover {
  background: rgba(255,255,255,0.28);
}

/* ── Hero ── */

.hero {
  background: linear-gradient(180deg, #7c3aed 0%, #6366f1 100%);
  padding: 72px 0 96px;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.88);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-button {
  display: inline-block;
  background: #fff;
  color: var(--purple);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.cta-button:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.cta-button:focus { outline: 2px solid rgba(255,255,255,0.7); outline-offset: 3px; }
.cta-button:active { transform: translateY(0); }

/* ── Sections ── */

.section {
  padding: 72px 0;
}

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

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 16px;
  text-align: center;
}

.section-intro {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Facts ── */

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.fact {
  position: relative;
  background: #fff;
  padding: 40px 36px 36px;
  overflow: hidden;
  transition: background 0.2s;
}

.fact:hover {
  background: #faf9ff;
}

.fact-num {
  position: absolute;
  top: -10px;
  right: 16px;
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--purple);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}

.fact-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.fact-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.fact:nth-child(1) .fact-body h3 { color: #4f46e5; }
.fact:nth-child(2) .fact-body h3 { color: #7c3aed; }
.fact:nth-child(3) .fact-body h3 { color: #0369a1; }
.fact:nth-child(4) .fact-body h3 { color: #059669; }

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

/* ── Author ── */

.author {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.author-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 24px rgba(99,102,241,0.2);
}

.author-content {
  flex: 1;
}

@media (max-width: 600px) {
  .author {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.author-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.author-title {
  color: var(--purple);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.author-bio {
  margin-bottom: 28px;
}

.author-bio p {
  color: var(--text-muted);
  line-height: 1.7;
}

.author-creds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.cred-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
  margin-bottom: 10px;
}

.cred ul {
  list-style: none;
  padding: 0;
}

.cred ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.cred ul li:last-child { border-bottom: none; }

/* ── Bottom CTA ── */

.cta-block {
  text-align: center;
}

.cta-block h2 {
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-block p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.cta-block .cta-button {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 24px rgba(99,102,241,0.35);
}

.cta-block .cta-button:hover { box-shadow: 0 8px 32px rgba(99,102,241,0.45); }

/* ── Responsive ── */

@media (max-width: 600px) {
  .hero { padding: 60px 0 72px; }
  .section { padding: 48px 0; }
  .cards { grid-template-columns: 1fr; }
  .author-creds { grid-template-columns: 1fr; }
}
