/* =============================================
   CodeToFun v2 — Mobile-First Responsive CSS
   Design based on Figma export (Tailwind → CSS)
   ============================================= */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: #1e293b;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* --- Utilities --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-blue {
  color: #2563eb;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.938rem;
  border-radius: 0.5rem;
  padding: 0.625rem 1.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
  line-height: 1.4;
}

a.btn-primary,
button.btn-primary,
.btn-primary {
  background: #2563eb;
  color: #fff;
}

a.btn-primary:hover,
button.btn-primary:hover,
.btn-primary:hover {
  background: #1d4ed8;
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.btn-outline:hover {
  background: #f1f5f9;
}

.btn-white {
  background: #fff;
  color: #2563eb;
}

.btn-white:hover {
  background: #eff6ff;
}

.btn-ghost {
  background: rgba(59, 130, 246, 0.3);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  background: rgba(59, 130, 246, 0.4);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid;
}

.badge-blue {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.badge-orange {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.badge svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* =====================
   HEADER
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  background: #2563eb;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.logo-tagline {
  font-size: 0.75rem;
  color: #64748b;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.desktop-nav a:not(.btn) {
  color: #475569;
  font-weight: 500;
  font-size: 0.938rem;
  transition: color 0.2s;
}

.desktop-nav a:not(.btn):hover {
  color: #2563eb;
}

.desktop-nav .btn-primary,
.mobile-nav .btn-primary {
  background: #2563eb;
  color: #fff;
}

.desktop-nav .btn-primary:hover,
.mobile-nav .btn-primary:hover {
  background: #1d4ed8;
  color: #fff;
}

.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  color: #475569;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a:not(.btn) {
  color: #475569;
  font-weight: 500;
  font-size: 0.938rem;
  transition: color 0.2s;
}

.mobile-nav a:not(.btn):hover {
  color: #2563eb;
}

/* =====================
   HERO
   ===================== */
.hero {
  background: #f8fafc;
  padding: 3rem 0 4rem;
}

.hero-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  margin: 1.5rem 0;
}

.hero-desc {
  font-size: 1.063rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.hero-card {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.hero-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.hero-card-icon.bg-indigo {
  background: #eef2ff;
  color: #4f46e5;
}

.hero-card-icon.bg-blue {
  background: #eff6ff;
  color: #2563eb;
}

.hero-card-icon.bg-cyan {
  background: #ecfeff;
  color: #0891b2;
}

.hero-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.hero-card p {
  font-size: 0.875rem;
  color: #475569;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.875rem;
  font-weight: 700;
  color: #0f172a;
}

.stat span {
  font-size: 0.875rem;
  color: #475569;
}

/* =====================
   SECTION COMMON
   ===================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #0f172a;
  margin: 1rem 0;
}

.section-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 1rem 0;
}

.section-header p {
  font-size: 1.063rem;
  color: #475569;
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.7;
}

.section-footer-cta {
  text-align: center;
  margin-top: 3rem;
}

.section-footer-cta p {
  color: #475569;
  margin-bottom: 1rem;
}

.cta-note {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 0.75rem;
}

.popular-badge-wrap {
  text-align: center;
  margin-bottom: 2rem;
}

/* =====================
   LANGUAGES
   ===================== */
.section-languages {
  padding: 5rem 0;
  background: #fff;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 64rem;
  margin: 0 auto;
}

.lang-card {
  position: relative;
  display: block;
  text-align: center;
  border-radius: 0.75rem;
  padding: 1.5rem 1rem;
  border: 2px solid;
  transition: all 0.2s ease;
  text-decoration: none;
}

.lang-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.popular-tag {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: #f97316;
  color: #fff;
  font-size: 0.688rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.lang-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.lang-card h3 {
  font-size: 1.063rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.lang-cta {
  font-size: 0.75rem;
  color: #64748b;
  transition: color 0.2s;
}

.lang-card:hover .lang-cta {
  color: #334155;
}

/* Language color variants */
.lang-orange { background: #fff7ed; border-color: #fed7aa; }
.lang-orange:hover { border-color: #fb923c; background: #ffedd5; }
.lang-orange h3 { color: #c2410c; }

.lang-blue { background: #eff6ff; border-color: #bfdbfe; }
.lang-blue:hover { border-color: #60a5fa; background: #dbeafe; }
.lang-blue h3 { color: #1d4ed8; }

.lang-yellow { background: #fefce8; border-color: #fef08a; }
.lang-yellow:hover { border-color: #facc15; background: #fef9c3; }
.lang-yellow h3 { color: #a16207; }

.lang-green { background: #f0fdf4; border-color: #bbf7d0; }
.lang-green:hover { border-color: #4ade80; background: #dcfce7; }
.lang-green h3 { color: #15803d; }

.lang-red { background: #fef2f2; border-color: #fecaca; }
.lang-red:hover { border-color: #f87171; background: #fee2e2; }
.lang-red h3 { color: #b91c1c; }

.lang-slate { background: #f8fafc; border-color: #e2e8f0; }
.lang-slate:hover { border-color: #94a3b8; background: #f1f5f9; }
.lang-slate h3 { color: #334155; }

.lang-indigo { background: #eef2ff; border-color: #c7d2fe; }
.lang-indigo:hover { border-color: #818cf8; background: #e0e7ff; }
.lang-indigo h3 { color: #4338ca; }

.lang-purple { background: #faf5ff; border-color: #e9d5ff; }
.lang-purple:hover { border-color: #c084fc; background: #f3e8ff; }
.lang-purple h3 { color: #7e22ce; }

.lang-violet { background: #f5f3ff; border-color: #ddd6fe; }
.lang-violet:hover { border-color: #a78bfa; background: #ede9fe; }
.lang-violet h3 { color: #6d28d9; }

.lang-pink { background: #fdf2f8; border-color: #fbcfe8; }
.lang-pink:hover { border-color: #f472b6; background: #fce7f3; }
.lang-pink h3 { color: #be185d; }

/* =====================
   FEATURES
   ===================== */
.section-features {
  padding: 5rem 0;
  background: #f8fafc;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon.bg-indigo { background: #eef2ff; color: #4f46e5; }
.feature-icon.bg-blue { background: #eff6ff; color: #2563eb; }
.feature-icon.bg-orange { background: #fff7ed; color: #ea580c; }
.feature-icon.bg-purple { background: #faf5ff; color: #9333ea; }
.feature-icon.bg-pink { background: #fdf2f8; color: #db2777; }
.feature-icon.bg-cyan { background: #ecfeff; color: #0891b2; }

.feature-card h3 {
  font-size: 1.063rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: #475569;
  line-height: 1.6;
}

/* Editor Highlight */
.editor-highlight {
  margin-top: 4rem;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.code-mockup {
  background: #0f172a;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: left;
  overflow-x: auto;
}

.code-dots {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.dot-red { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #f87171; }
.dot-yellow { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #facc15; }
.dot-green { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #4ade80; }

.code-mockup pre {
  margin: 0;
}

.code-mockup code {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
  font-size: 0.813rem;
  color: #cbd5e1;
  line-height: 1.7;
  white-space: pre;
}

.editor-checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
}

.check-item svg {
  color: #2563eb;
  flex-shrink: 0;
}

/* =====================
   HOW IT WORKS
   ===================== */
.section-how {
  padding: 5rem 0;
  background: #fff;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto 3rem;
}

.step-card {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-icon {
  background: #f8fafc;
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.step-card p {
  color: #475569;
  line-height: 1.6;
}

.what-you-get {
  background: #f8fafc;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 48rem;
  margin: 0 auto;
  border: 1px solid #e2e8f0;
}

.what-you-get h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
  margin-bottom: 1.5rem;
}

.get-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.get-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.938rem;
  color: #334155;
}

.get-item svg {
  color: #2563eb;
  flex-shrink: 0;
}

/* =====================
   CERTIFICATION
   ===================== */
.section-cert {
  padding: 5rem 0;
  background: linear-gradient(to bottom, #f8fafc, #fff);
}

.cert-icon-wrap {
  display: inline-flex;
  padding: 0.75rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #2563eb, #4338ca);
  color: #fff;
  margin-bottom: 1rem;
}

.section-cert .section-header h2 {
  font-size: 2rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.benefit-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s;
}

.benefit-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
  background: #dbeafe;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: #2563eb;
}

.benefit-card h3 {
  font-size: 0.938rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.813rem;
  color: #475569;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.cert-card {
  position: relative;
  background: #fff;
  border: 2px solid;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.cert-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.cert-popular {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  color: #fff;
  font-size: 0.688rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.cert-emoji {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.875rem;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.cert-card:hover .cert-emoji {
  transform: scale(1.1);
}

.cert-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.cert-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cert-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
}

.level-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  display: inline-block;
}

.level-beginner { background: #22c55e; }
.level-intermediate { background: #eab308; }
.level-advanced { background: #ef4444; }

.cert-btn {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: #fff !important;
  text-align: center;
  transition: all 0.2s;
}

.cert-card:hover .cert-btn {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Cert color variants */
.cert-orange { border-color: #fed7aa; }
.cert-orange .cert-emoji { background: #fff7ed; }
.cert-btn-orange { background: linear-gradient(90deg, #f97316, #ef4444); }

.cert-green { border-color: #bbf7d0; }
.cert-green .cert-emoji { background: #f0fdf4; }
.cert-btn-green { background: linear-gradient(90deg, #22c55e, #14b8a6); }

.cert-cyan { border-color: #a5f3fc; }
.cert-cyan .cert-emoji { background: #ecfeff; }
.cert-btn-cyan { background: linear-gradient(90deg, #06b6d4, #3b82f6); }

.cert-amber { border-color: #fde68a; }
.cert-amber .cert-emoji { background: #fefce8; }
.cert-btn-amber { background: linear-gradient(90deg, #eab308, #f97316); }

.cert-yellow { border-color: #fef08a; }
.cert-yellow .cert-emoji { background: #fefce8; }
.cert-btn-yellow { background: linear-gradient(90deg, #facc15, #f59e0b); }

.cert-blue { border-color: #bfdbfe; }
.cert-blue .cert-emoji { background: #eff6ff; }
.cert-btn-blue { background: linear-gradient(90deg, #60a5fa, #06b6d4); }

.cert-red { border-color: #fecaca; }
.cert-red .cert-emoji { background: #fef2f2; }
.cert-btn-red { background: linear-gradient(90deg, #ef4444, #ea580c); }

.cert-purple-card { border-color: #e9d5ff; }
.cert-purple-card .cert-emoji { background: #faf5ff; }
.cert-btn-purple { background: linear-gradient(90deg, #a855f7, #ec4899); }

.cert-indigo-card { border-color: #c7d2fe; }
.cert-indigo-card .cert-emoji { background: #eef2ff; }
.cert-btn-indigo { background: linear-gradient(90deg, #6366f1, #8b5cf6); }

/* Cert CTA Banner */
.cert-cta-banner {
  margin-top: 4rem;
  background: linear-gradient(135deg, #2563eb, #4338ca);
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: #fff;
}

.cert-cta-icon {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 1rem;
  border-radius: 1rem;
  display: inline-flex;
  margin-bottom: 1.5rem;
}

.cert-cta-banner h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cert-cta-banner p {
  font-size: 1.063rem;
  color: #bfdbfe;
  margin-bottom: 2rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cert-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.cert-note {
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 2rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* =====================
   TESTIMONIALS
   ===================== */
.section-testimonials {
  padding: 5rem 0;
  background: #f8fafc;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

.testimonial-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s;
}

.testimonial-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.quote-icon {
  color: #bfdbfe;
  margin-bottom: 1rem;
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-card blockquote {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.938rem;
  color: #0f172a;
}

.testimonial-author span {
  font-size: 0.813rem;
  color: #64748b;
}

.stats-bar {
  margin-top: 4rem;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.875rem;
  font-weight: 700;
  color: #0f172a;
}

.stat-item span {
  font-size: 0.875rem;
  color: #475569;
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.6;
  margin: 1rem 0 1.5rem;
}

.footer-brand .logo-name {
  color: #fff;
}

.footer-brand .logo-tagline {
  color: #94a3b8;
}

.follow-heading {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.social-links a {
  background: #1e293b;
  padding: 0.625rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  background: #334155;
}

.trusted-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1e293b;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  border: 1px solid #334155;
}

.trusted-badge .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #3b82f6;
}

.footer-links-col h4 {
  color: #fff;
  font-size: 0.938rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-col a {
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links-col a:hover {
  color: #60a5fa;
}

.footer-all-links ul {
  columns: 2;
  column-gap: 1.5rem;
}

.footer-all-links li {
  break-inside: avoid;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.heart-icon {
  vertical-align: middle;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-legal-links a {
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: #60a5fa;
}

/* =====================
   COOKIE NOTICE
   ===================== */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #cbd5e1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  z-index: 200;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-notice p {
  font-size: 0.813rem;
  text-align: center;
  line-height: 1.5;
}

.cookie-notice a:not(.btn) {
  color: #60a5fa;
  text-decoration: underline;
}

.cookie-notice .btn-primary {
  background: #2563eb;
  color: #fff;
}

.cookie-notice .btn-primary:hover {
  background: #1d4ed8;
  color: #fff;
}

/* =====================
   ERROR PAGE
   ===================== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-content h1 {
  font-size: 6rem;
  font-weight: 800;
  color: #2563eb;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 1rem;
}

.error-content p {
  color: #475569;
  margin-bottom: 2rem;
}

.error-content code {
  background: #f1f5f9;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

/* =============================================
   RESPONSIVE — Tablet (640px+)
   ============================================= */
@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }

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

  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }

  .hero-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .lang-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .cert-cta-btns {
    flex-direction: row;
  }

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

  .stats-bar {
    grid-template-columns: repeat(4, 1fr);
  }

  .cookie-notice {
    flex-direction: row;
    justify-content: center;
  }

  .section-cert .section-header h2 {
    font-size: 2.5rem;
  }

  .cert-cta-banner h3 {
    font-size: 1.875rem;
  }
}

/* =============================================
   RESPONSIVE — Desktop (768px+)
   ============================================= */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .desktop-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero {
    padding: 4rem 0 5rem;
  }

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

  .section-header h2 {
    font-size: 2.25rem;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .editor-highlight {
    padding: 3rem;
  }
}

/* =============================================
   RESPONSIVE — Large Desktop (1024px+)
   ============================================= */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem;
  }

  .hero-desc {
    font-size: 1.125rem;
  }

  .lang-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cert-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 2fr 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-all-links ul {
    columns: 3;
  }
}
