/* ============================================================
   BC考 · CNCoding Exam — Official Website Stylesheet
   Structure: Variables → Reset → Layout → Components → Sections → Responsive
   ============================================================ */

/* ==============================
   1. Design Tokens (CSS Variables)
============================== */
:root {
  --c-primary: #1e40af;
  /* deep blue */
  --c-primary-dark: #1e3a8a;
  --c-primary-light: #3b82f6;
  --c-accent: #0ea5e9;
  /* sky blue for highlights */
  --c-text: #1f2937;
  --c-text-muted: #6b7280;
  --c-text-light: #9ca3af;
  --c-bg: #ffffff;
  --c-bg-alt: #f8fafc;
  --c-bg-dark: #0f172a;
  --c-border: #e5e7eb;
  --c-border-light: #f3f4f6;
  --c-success: #10b981;
  --c-warning: #f59e0b;
  --c-error: #ef4444;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .07), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow: 0 4px 14px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .05);
  --shadow-lg: 0 10px 32px rgba(0, 0, 0, .10), 0 4px 12px rgba(0, 0, 0, .06);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, .14);

  --nav-h: 68px;
  --container-max: 1200px;
  --container-pad: 24px;
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

.logo-img {
  width: 2.75rem;
  height: 2.75rem;
}

button {
  font-family: var(--font-sans);
}

/* ==============================
   3. Layout Utilities
============================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: 88px 0;
}

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

/* Offset fixed nav when jumping to anchor */
section[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-header h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--c-text);
  line-height: 1.25;
  letter-spacing: -.03em;
}

.section-sub {
  font-size: .95rem;
  color: var(--c-text-muted);
  max-width: 600px;
  margin: 14px auto 0;
  line-height: 1.75;
}

.section-eyebrow {
  text-align: center;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-primary-light);
  font-weight: 700;
  margin-bottom: 12px;
}


/* ==============================
   4. Buttons
============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--r);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 1rem;
  border-radius: var(--r-lg);
}

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}

.btn-primary:hover {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(30, 64, 175, .35);
}

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}

.btn-outline:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: var(--c-primary);
  border-color: #fff;
}

.btn-white:hover {
  background: var(--c-bg-alt);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  transform: translateY(-1px);
}


/* ==============================
   4b. Icon Wrappers
============================== */
.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  background: rgba(37, 99, 235, 0.08);
  flex-shrink: 0;
  margin-bottom: 14px;
}

.icon-wrap svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.8;
}

.icon-wrap-sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  background: rgba(37, 99, 235, 0.08);
  flex-shrink: 0;
  margin-bottom: 12px;
}

.icon-wrap-sm svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}


/* ==============================
   5. Navigation
============================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow .3s;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-h);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-main {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -.025em;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-sub {
  color: var(--c-text-muted);
  font-weight: 500;
  line-height: 1.3;
}

.logo-sub-top {
  font-size: .85rem;
}

.logo-sub-btm {
  font-size: .72rem;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-links a {
  padding: 6px 11px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  color: var(--c-text-muted);
  font-weight: 500;
  transition: all .18s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--c-primary);
  background: rgba(30, 64, 175, .07);
}

.nav-cta {
  flex-shrink: 0;
  margin-left: auto;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .28s ease, opacity .2s;
}

/* Animate hamburger → X */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ==============================
   6. Hero Section
============================== */
.hero {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 88px;
  background: linear-gradient(155deg, #eef2ff 0%, #ffffff 45%, #f0f9ff 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative radial glow */
.hero::before {
  content: '';
  position: absolute;
  top: -160px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(59, 130, 246, .09) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, .06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(30, 64, 175, .08);
  color: var(--c-primary);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 22px;
  border: 1px solid rgba(30, 64, 175, .15);
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 900;
  line-height: 1.18;
  color: var(--c-text);
  margin-bottom: 22px;
  letter-spacing: -.04em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: .875rem;
  color: var(--c-text-light);
  line-height: 1.75;
  margin-bottom: 36px;
  padding: 12px 16px;
  background: rgba(30, 64, 175, .04);
  border-radius: var(--r);
  border-left: 3px solid var(--c-primary-light);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}


/* ==============================
   7. Hero Screenshot Frame
============================== */
.hero-mockup {
  position: relative;
}

.screenshot-frame {
  background: #14192b;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, .06);
}

/* Title bar — shared with mockup */
.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: #0d1120;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red {
  background: #ff5f57;
}

.dot-yellow {
  background: #ffbd2e;
}

.dot-green {
  background: #28c840;
}

.mockup-title {
  font-size: .7rem;
  color: rgba(255, 255, 255, .3);
  margin-left: 6px;
  font-family: var(--font-mono);
}

/* Screenshot body + Slider */
.screenshot-body {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  min-height: 220px;
  overflow: hidden;
}

/* ---- Slides ---- */
.hero-slider {
  position: absolute;
  inset: 0;
  cursor: zoom-in;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .65s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

/* Per-slide fallback (shown when image fails to load) */
.slide-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  z-index: 0;
}

.screenshot-ph-icon {
  font-size: 2.2rem;
  opacity: .28;
}

.screenshot-ph-text {
  font-size: .7rem;
  color: rgba(255, 255, 255, .22);
  text-align: center;
  line-height: 1.7;
  font-family: var(--font-mono);
  max-width: 220px;
}

.screenshot-ph-text span {
  opacity: .6;
  font-size: .62rem;
}

/* ---- Slider arrows ---- */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(0, 0, 0, .32);
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s, background .2s;
  padding: 0;
}

.screenshot-body:hover .slide-arrow {
  opacity: 1;
}

.slide-arrow:hover {
  background: rgba(0, 0, 0, .55);
}

.slide-prev {
  left: 8px;
}

.slide-next {
  right: 8px;
}

/* ---- Dots ---- */
.slide-dots {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 20;
}

.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s, transform .25s;
}

.slide-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ---- Zoom hint ---- */
.slide-zoom-hint {
  position: absolute;
  bottom: 9px;
  right: 10px;
  font-size: .56rem;
  color: rgba(255, 255, 255, .3);
  z-index: 20;
  pointer-events: none;
  font-family: var(--font-mono);
  opacity: 0;
  transition: opacity .2s;
}

.screenshot-body:hover .slide-zoom-hint {
  opacity: 1;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lb-in .22s ease;
}

.lightbox[hidden] {
  display: none;
}

@keyframes lb-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: min(1280px, 94vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(92vh - 60px);
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .55);
  display: block;
}

.lightbox-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lightbox-caption {
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
}

.lightbox-counter {
  font-size: .75rem;
  color: rgba(255, 255, 255, .28);
  font-family: var(--font-mono);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 2;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, .2);
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 2;
  padding: 0;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, .22);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}


/* ==============================
   8. Trust / Stats Bar
============================== */
.trust-section {
  padding: 52px 0;
  background: #fff;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.trust-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.trust-card {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  background: var(--c-bg-alt);
  transition: all .25s;
}

.trust-card:hover {
  border-color: rgba(30, 64, 175, .3);
  box-shadow: var(--shadow);
}

.trust-num {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--c-primary);
  letter-spacing: -.04em;
  margin-bottom: 6px;
}

.trust-num-lang {
  font-size: 1rem;
  letter-spacing: -.01em;
  line-height: 1.5;
}

.trust-label {
  font-size: .83rem;
  color: var(--c-text-muted);
  line-height: 1.45;
}

.trust-footnote {
  text-align: center;
  font-size: .75rem;
  color: var(--c-text-light);
  margin-top: 20px;
}


/* ==============================
   9. Pain Points
============================== */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.pain-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px 22px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: all .28s ease;
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 64, 175, .22);
}

.pain-icon {
  font-size: 1.75rem;
  margin-bottom: 14px;
}

.pain-card h3 {
  font-size: .97rem;
  font-weight: 700;
  margin-bottom: 9px;
  color: var(--c-text);
}

.pain-card p {
  font-size: .858rem;
  color: var(--c-text-muted);
  line-height: 1.65;
}

.pain-cta {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 24px 32px;
  border: 1px solid rgba(30, 64, 175, .15);
  border-left: 4px solid var(--c-primary);
  box-shadow: var(--shadow-sm);
  max-width: 780px;
  margin: 0 auto;
}

.pain-cta p {
  font-size: .93rem;
  color: var(--c-text-muted);
  line-height: 1.75;
}


/* ==============================
   10. Audience Cards
============================== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.audience-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px 22px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: all .28s ease;
}

.audience-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 64, 175, .25);
}

.audience-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.audience-card h3 {
  font-size: .97rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--c-text);
}

.audience-card p {
  font-size: .858rem;
  color: var(--c-text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  background: rgba(30, 64, 175, .07);
  color: var(--c-primary);
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  border: 1px solid rgba(30, 64, 175, .13);
}


/* ==============================
   11. Scenarios
============================== */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.scenario-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px 22px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: all .28s ease;
}

.scenario-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(30, 64, 175, .22);
}

.scenario-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.scenario-card h3 {
  font-size: .97rem;
  font-weight: 700;
  margin-bottom: 9px;
}

.scenario-card p {
  font-size: .858rem;
  color: var(--c-text-muted);
  line-height: 1.65;
}


/* ==============================
   12. Resources Section
============================== */
.resources-section {
  background: linear-gradient(160deg, #f0f4ff 0%, #f8fafc 55%, #eef2ff 100%);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.resource-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 30px 24px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: all .28s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 64, 175, .25);
}

.resource-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.resource-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.resource-dir {
  font-size: .7rem;
  font-weight: 700;
  color: var(--c-primary);
  background: rgba(30, 64, 175, .08);
  border: 1px solid rgba(30, 64, 175, .14);
  border-radius: 100px;
  padding: 3px 11px;
  letter-spacing: .04em;
  white-space: nowrap;
}

.resource-card h3 {
  font-size: .97rem;
  font-weight: 700;
  color: var(--c-text);
}

.resource-card p {
  font-size: .858rem;
  color: var(--c-text-muted);
  line-height: 1.65;
  flex: 1;
}

.resource-highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(30, 64, 175, .05);
  border: 1px solid rgba(30, 64, 175, .14);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--r-lg);
  padding: 20px 26px;
  max-width: 820px;
  margin: 0 auto;
}

.resource-highlight-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.resource-highlight p {
  font-size: .93rem;
  color: var(--c-text-muted);
  line-height: 1.75;
  font-weight: 500;
}

.resource-note {
  text-align: center;
  font-size: .75rem;
  color: var(--c-text-light);
  margin-top: 16px;
  line-height: 1.65;
}


/* ==============================
   13. Capabilities
============================== */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.capability-card {
  padding: 28px 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: all .28s ease;
  position: relative;
  overflow: hidden;
}

/* Top accent bar on hover */
.capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.capability-card:hover::before {
  transform: scaleX(1);
}

.capability-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cap-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.capability-card h3 {
  font-size: .93rem;
  font-weight: 700;
  margin-bottom: 9px;
  color: var(--c-text);
}

.capability-card p {
  font-size: .835rem;
  color: var(--c-text-muted);
  line-height: 1.65;
}


/* ==============================
   13. Workflow Steps
============================== */
.workflow-steps {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.step-num {
  font-size: .62rem;
  color: var(--c-primary-light);
  font-weight: 700;
  letter-spacing: .06em;
  font-family: var(--font-mono);
}

.step-content {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 13px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  min-width: 88px;
  transition: all .22s;
}

.step-content:hover {
  border-color: var(--c-primary-light);
  box-shadow: 0 4px 14px rgba(30, 64, 175, .12);
  transform: translateY(-2px);
}

.step-icon {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.step-name {
  font-size: .73rem;
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
}

.workflow-arrow {
  color: var(--c-primary-light);
  font-size: 1.1rem;
  flex-shrink: 0;
  opacity: .45;
  margin-top: 28px;
}


/* ==============================
   14. Language Table
============================== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
}

.lang-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: .9rem;
}

.lang-table th {
  background: var(--c-primary);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
}

.lang-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-border-light);
  vertical-align: middle;
  color: var(--c-text-muted);
  font-size: .875rem;
}

.lang-table tr:last-child td {
  border-bottom: none;
}

.lang-table tr:hover td {
  background: var(--c-bg-alt);
}

.lang-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
}

.lang-scratch {
  background: rgba(251, 146, 60, .14);
  color: #c2410c;
  border: 1px solid rgba(251, 146, 60, .25);
}

.lang-python {
  background: rgba(59, 130, 246, .12);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, .2);
}

.lang-cpp {
  background: rgba(139, 92, 246, .12);
  color: #6d28d9;
  border: 1px solid rgba(139, 92, 246, .2);
}

.lang-mc {
  background: rgba(16, 185, 129, .12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, .2);
}

.lang-sub {
  background: rgba(245, 158, 11, .12);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, .2);
}

.lang-mix {
  background: rgba(30, 64, 175, .09);
  color: #1e40af;
  border: 1px solid rgba(30, 64, 175, .18);
}


/* ==============================
   15. Why Section
============================== */
.why-grid {
  grid-template-columns: repeat(6, 1fr);
  display: grid;
  gap: 20px;
}

.why-card {
  grid-column: span 2;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px 22px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: all .28s ease;
}

/* Center last 2 items in 5-card, 6-col grid */
.why-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.why-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 64, 175, .22);
}

.why-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.why-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--c-text);
}

.why-card p {
  font-size: .858rem;
  color: var(--c-text-muted);
  line-height: 1.65;
}


/* ==============================
   16. Case Study
============================== */
.case-card-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.case-card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 36px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
}

.case-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(30, 64, 175, .07);
  color: var(--c-primary);
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid rgba(30, 64, 175, .14);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.case-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--c-text);
  line-height: 1.4;
}

.case-desc {
  color: var(--c-text-muted);
  font-size: .885rem;
  line-height: 1.72;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-border-light);
}

.case-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.case-meta-item {
  display: flex;
  gap: 12px;
  font-size: .875rem;
  line-height: 1.55;
}

.case-label {
  color: var(--c-text-light);
  flex-shrink: 0;
  min-width: 68px;
  font-size: .82rem;
}

.case-value {
  color: var(--c-text);
  font-weight: 500;
}

.case-highlights {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border-light);
}

.case-highlight {
  font-size: .875rem;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.case-highlight::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary-light);
  flex-shrink: 0;
}

/* Sticky mockup card */
.case-placeholder {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.case-mockup {
  background: linear-gradient(145deg, #1e3a8a 0%, #1e40af 100%);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  color: #fff;
  box-shadow: var(--shadow-xl);
}

.case-mockup-header {
  font-size: .78rem;
  font-weight: 700;
  opacity: .6;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 24px;
}

/* Service flow diagram */
.case-flow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}

.case-flow-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .1);
  border-radius: var(--r-sm);
  padding: 11px 14px;
}

.case-flow-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.case-flow-text {
  font-size: .82rem;
  font-weight: 500;
  opacity: .9;
  line-height: 1.4;
}

.case-flow-arrow {
  text-align: center;
  font-size: .8rem;
  opacity: .35;
  line-height: 1;
  padding: 2px 0;
}

.case-stats-row {
  display: flex;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 22px;
}

.case-stat-item {
  flex: 1;
  text-align: center;
}

.case-stat-num {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -.02em;
}

.case-stat-label {
  font-size: .68rem;
  opacity: .55;
}


/* ==============================
   Cases Grid (multi-region)
============================== */
.case-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.case-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.case-summary-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary-light);
  flex-shrink: 0;
}

.case-summary-pill-featured {
  border-color: rgba(16, 185, 129, .25);
  color: #047857;
}

.case-summary-pill-featured::before {
  background: #10b981;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.case-mini-card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 28px 28px 24px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all .28s ease;
}

.case-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 64, 175, .22);
}

.case-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid rgba(30, 64, 175, .14);
  background: rgba(30, 64, 175, .07);
  color: var(--c-primary);
  align-self: flex-start;
}

.case-tag-region {
  background: rgba(16, 185, 129, .08);
  color: #047857;
  border-color: rgba(16, 185, 129, .2);
}

.case-tag-train {
  background: rgba(245, 158, 11, .09);
  color: #92400e;
  border-color: rgba(245, 158, 11, .22);
}

.case-tag-exam {
  background: rgba(139, 92, 246, .09);
  color: #5b21b6;
  border-color: rgba(139, 92, 246, .2);
}

.case-mini-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.4;
}

.case-fields {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.case-field-item {
  display: flex;
  gap: 10px;
  line-height: 1.55;
}

.case-field-item dt {
  color: var(--c-text-light);
  flex-shrink: 0;
  min-width: 64px;
  font-size: .79rem;
  padding-top: 1px;
}

.case-field-item dd {
  color: var(--c-text-muted);
  font-size: .858rem;
}

.case-highlight-text {
  font-size: .82rem;
  color: var(--c-primary);
  background: rgba(30, 64, 175, .05);
  border-left: 3px solid var(--c-primary-light);
  padding: 9px 13px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  line-height: 1.55;
}

.case-highlight-region {
  color: #047857;
  background: rgba(16, 185, 129, .05);
  border-left-color: #10b981;
}

.case-highlight-train {
  color: #92400e;
  background: rgba(245, 158, 11, .05);
  border-left-color: #f59e0b;
}

.case-highlight-exam {
  color: #5b21b6;
  background: rgba(139, 92, 246, .05);
  border-left-color: #8b5cf6;
}

/* Service flow strip */
.case-service-flow {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  color: #fff;
}

.csf-header {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: 20px;
  text-align: center;
}

.csf-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.csf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .1);
  border-radius: var(--r);
  padding: 13px 16px;
  min-width: 116px;
  text-align: center;
}

.csf-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.csf-label {
  font-size: .74rem;
  font-weight: 500;
  opacity: .9;
  line-height: 1.4;
}

.csf-arrow {
  color: rgba(255, 255, 255, .35);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.case-note {
  text-align: center;
  font-size: .75rem;
  color: var(--c-text-light);
  margin-top: 20px;
  line-height: 1.65;
}


/* ==============================
   17. Pricing
============================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px 22px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all .28s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pricing-featured {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 2px rgba(30, 64, 175, .12), var(--shadow);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-icon {
  font-size: 1.75rem;
}

.pricing-card h3 {
  font-size: .97rem;
  font-weight: 700;
  color: var(--c-text);
}

.pricing-fit {
  font-size: .79rem;
  color: var(--c-text-light);
  padding: 9px 12px;
  background: var(--c-bg-alt);
  border-radius: var(--r-sm);
  line-height: 1.55;
}

.pricing-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-list li {
  font-size: .862rem;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-list li::before {
  content: '✓';
  color: var(--c-success);
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}


/* ==============================
   18. FAQ Accordion
============================== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: #fff;
  border-radius: var(--r);
  border: 1px solid var(--c-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s;
}

.faq-item.open {
  border-color: rgba(30, 64, 175, .3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: .93rem;
  font-weight: 600;
  color: var(--c-text);
  text-align: left;
  transition: background .18s;
  gap: 12px;
}

.faq-question:hover {
  background: var(--c-bg-alt);
}

.faq-arrow {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--c-primary);
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  transition: transform .3s ease;
  line-height: 1;
}

.faq-item.open .faq-arrow {
  transform: rotate(45deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
}

.faq-answer[hidden] {
  display: block;
}

.faq-answer p {
  padding: 0 22px 20px;
  font-size: .888rem;
  color: var(--c-text-muted);
  line-height: 1.75;
}


/* ==============================
   19. CTA / Contact Section
============================== */
.cta-section {
  background: linear-gradient(140deg, #1e3a8a 0%, #1d4ed8 55%, #2563eb 100%);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, .06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

/* Split two-column layout */
.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  text-align: left;
}

.cta-inner h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -.03em;
}

.cta-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, .72);
  line-height: 1.75;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.contact-reach {
  font-size: .78rem;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 12px;
  margin-top: 20px;
}

.contact-info {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-label {
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
  font-weight: 500;
}

.contact-value {
  font-size: .9rem;
  color: rgba(255, 255, 255, .9);
  font-weight: 700;
  font-family: var(--font-mono);
}

.copy-msg {
  display: inline-block;
  margin-top: 10px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  padding: 7px 16px;
  border-radius: var(--r-sm);
}

.copy-msg[hidden] {
  display: none;
}

/* WeChat QR block */
.wechat-qr-block {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg);
  transition: background .2s;
}

.wechat-qr-block:hover {
  background: rgba(255, 255, 255, .12);
}

/* QR code image frame */
.qr-frame {
  position: relative;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
  padding: 6px;
}

.qr-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  border-radius: calc(var(--r) - 2px);
  padding: 5px;
}

/* Placeholder shown when image is missing */
.qr-ph {
  position: absolute;
  inset: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 0;
  border: 1.5px dashed #d1d5db;
  border-radius: 4px;
}

/* Tiny CSS grid to evoke a QR pattern */
.qr-ph-dots {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  grid-template-rows: repeat(3, 8px);
  gap: 3px;
}

.qr-ph-dots span {
  border-radius: 1px;
  background: #d1d5db;
}

/* Corner markers darker, centre lighter */
.qr-ph-dots span:nth-child(1),
.qr-ph-dots span:nth-child(3),
.qr-ph-dots span:nth-child(7),
.qr-ph-dots span:nth-child(9) {
  background: #9ca3af;
}

.qr-ph-dots span:nth-child(5) {
  background: #e5e7eb;
}

.qr-ph-text {
  font-size: .56rem;
  color: #9ca3af;
  text-align: center;
  line-height: 1.5;
  font-family: var(--font-sans);
}

/* QR metadata (right of image) */
.qr-meta {
  flex: 1;
  min-width: 0;
}

.qr-scan {
  font-size: .78rem;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 4px;
}

.qr-id {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
  letter-spacing: .03em;
  margin-bottom: 8px;
}

.qr-links {
  font-size: .7rem;
  color: rgba(255, 255, 255, .3);
  font-family: var(--font-mono);
  line-height: 1.5;
}


/* ==============================
   20. Contact Form
============================== */
.cta-form-wrap {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 36px 32px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, .22), 0 8px 24px rgba(0, 0, 0, .12);
}

.form-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 6px;
}

.form-eyebrow {
  font-size: .78rem;
  color: var(--c-text-light);
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.contact-form label {
  display: block;
  font-size: .79rem;
  color: var(--c-text-muted);
  margin-bottom: 7px;
  font-weight: 600;
  letter-spacing: .01em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--c-bg-alt);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  padding: 11px 14px;
  color: var(--c-text);
  font-size: .9rem;
  font-family: var(--font-sans);
  transition: border-color .18s, box-shadow .18s, background .18s;
  outline: none;
  -webkit-appearance: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--c-text-light);
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: #c7d2fe;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--c-primary-light);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .14);
}

.contact-form textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.6;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  font-size: .95rem;
  padding: 13px 28px;
}

.form-note {
  margin-top: 14px;
  font-size: .83rem;
  color: #065f46;
  text-align: center;
  padding: 11px 16px;
  border-radius: var(--r);
  background: rgba(16, 185, 129, .08);
  border: 1px solid rgba(16, 185, 129, .22);
  line-height: 1.65;
}

.form-note-error {
  color: #991b1b;
  background: rgba(239, 68, 68, .07);
  border-color: rgba(239, 68, 68, .22);
}

.form-email-row {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}


/* ==============================
   21. Footer
============================== */
.footer {
  background: var(--c-bg-dark);
  padding: 44px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.footer .logo-main {
  color: #fff;
}

.footer .logo-sub {
  color: rgba(255, 255, 255, .35);
}

.footer-desc {
  font-size: .83rem;
  color: rgba(255, 255, 255, .38);
  max-width: 460px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: .83rem;
  color: rgba(255, 255, 255, .4);
  transition: color .2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, .78);
}

.footer-copy {
  font-size: .75rem;
  color: rgba(255, 255, 255, .2);
  margin-top: 4px;
}


/* ==============================
   22. Scroll-in Animation
============================== */
.js-fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}

.js-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.js-fade-d1 {
  transition-delay: .07s;
}

.js-fade-d2 {
  transition-delay: .14s;
}

.js-fade-d3 {
  transition-delay: .21s;
}

.js-fade-d4 {
  transition-delay: .28s;
}

.js-fade-d5 {
  transition-delay: .35s;
}

.js-fade-d6 {
  transition-delay: .42s;
}

.js-fade-d7 {
  transition-delay: .49s;
}

.js-fade-d8 {
  transition-delay: .56s;
}


/* ==============================
   23. Responsive — Tablet (≤1024px)
============================== */
@media (max-width: 1024px) {

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

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

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

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

  .why-card {
    grid-column: span 1;
  }

  .why-card:nth-child(4) {
    grid-column: span 1;
  }

  .why-card:nth-child(5) {
    grid-column: span 1;
  }

  .cta-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}


/* ==============================
   24. Responsive — Mobile (≤768px)
============================== */
@media (max-width: 768px) {
  :root {
    --container-pad: 16px;
  }

  .section {
    padding: 64px 0;
  }

  /* --- Nav --- */
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    padding: 10px 16px 16px;
    display: none;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

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

  .nav-links a {
    padding: 11px 14px;
    font-size: .93rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  /* --- Hero --- */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-mockup {
    order: -1;
  }

  .screenshot-body {
    min-height: 0;
  }

  /* --- Grids --- */
  .audience-grid,
  .scenarios-grid,
  .resources-grid,
  .capabilities-grid,
  .cases-grid,
  .pricing-grid,
  .trust-cards,
  .pain-grid {
    grid-template-columns: 1fr;
  }

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

  .why-card {
    grid-column: span 1;
  }

  .why-card:nth-child(4) {
    grid-column: span 1;
  }

  .why-card:nth-child(5) {
    grid-column: span 1;
  }

  /* --- Cases --- */
  .case-card-wrapper {
    grid-template-columns: 1fr;
  }

  .case-placeholder {
    position: static;
  }

  /* --- Workflow --- */
  .workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .workflow-arrow {
    display: none;
  }

  .step-content {
    min-width: auto;
    padding: 10px 8px;
  }

  /* --- CTA --- */
  .cta-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-info {
    flex-direction: column;
    gap: 10px;
  }
}


/* ==============================
   25. Responsive — Small mobile (≤480px)
============================== */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

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

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

  .case-card {
    padding: 24px 20px;
  }

  .cta-form-wrap {
    padding: 24px 18px;
  }
}