/* ============================================================
   AISEOExperts.com.my — Main Stylesheet
   Font: DM Sans (Google Fonts — matches Inspiren parent brand)
   Brand: #FFBF00 Amber · --brand-ink: #0D0B07 (WCAG AA on amber)
   Theme: Dark premium, mobile-first
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

/* ---- CSS CUSTOM PROPERTIES / DESIGN TOKENS ---- */
:root {
  /* Backgrounds */
  --bg-primary:    #0D0B07;
  --bg-secondary:  #141008;
  --bg-card:       rgba(255,191,0,0.03);
  --bg-card-hover: rgba(255,191,0,0.07);

  /* Brand */
  --brand:        #FFBF00;
  --brand-ink:    #0D0B07;   /* WCAG AA dark text ON amber — never use white on amber */
  --brand-alt:    #FF8C00;
  --brand-light:  #FFD54F;
  --brand-dim:    rgba(255,191,0,0.12);
  --brand-deep:   rgba(255,191,0,0.05);
  --brand-glow:   rgba(255,191,0,0.22);

  /* Borders */
  --border:       rgba(255,191,0,0.12);
  --border-soft:  rgba(255,255,255,0.06);
  --border-hover: rgba(255,191,0,0.45);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #FFBF00 0%, #FF8C00 100%);
  --gradient-glow:  linear-gradient(135deg, rgba(255,191,0,0.18) 0%, rgba(255,140,0,0.12) 100%);
  --gradient-hero:  linear-gradient(160deg, #FFBF00 0%, #FFD54F 50%, #FF8C00 100%);

  /* Semantic accent colours for pillar pages */
  --c-geo:  #4ADE80;   /* green — GEO */
  --c-aeo:  #818CF8;   /* violet — AEO */
  --c-ai:   #38BDF8;   /* sky — AI SEO */
  --c-seo:  #FFBF00;   /* amber — SEO */

  /* Text */
  --text-primary:   #FFFFFF;
  --text-secondary: #9CA3AF;
  --text-muted:     #4B5563;

  /* Typography */
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Typographic scale */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.5rem;
  --fs-4xl:  3.25rem;
  --fs-5xl:  4rem;

  /* Radii */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-brand: 0 0 40px rgba(255,191,0,0.18);
  --shadow-sm:    0 4px 20px rgba(0,0,0,0.4);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:    0 24px 64px rgba(0,0,0,0.65);

  /* Transitions */
  --t:        all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --t-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --nav-h:  72px;
  --max-w:  1200px;
}

/* ---- PREFERS-REDUCED-MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) var(--bg-secondary);
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--gradient-brand); border-radius: 999px; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input, textarea, select { font-family: inherit; }

/* ---- SCROLL PROGRESS BAR ---- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-brand);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(13,11,7,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  transition: var(--t);
  overflow: hidden;
}
.navbar.scrolled {
  background: rgba(13,11,7,0.98);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: var(--fs-md);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-brand);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: var(--brand-ink);
}
.nav-logo span { color: var(--brand); }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 7px 14px;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--t);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: var(--brand-dim); }
.nav-cta {
  background: var(--gradient-brand) !important;
  color: var(--brand-ink) !important;
  font-weight: 700;
  padding: 8px 20px;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--t);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 24px) 24px 40px;
  gap: 8px;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu .nav-link {
  padding: 12px 16px;
  font-size: var(--fs-base);
  border-radius: var(--r-md);
  display: block;
  color: var(--text-secondary);
}
.mobile-menu .nav-link:hover { color: var(--brand); background: var(--brand-dim); }
.mobile-menu .nav-cta { margin-top: 8px; text-align: center; border-radius: var(--r-md); }
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-overlay.open { opacity: 1; pointer-events: all; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 60px 0; }
.section-lg { padding: 120px 0; }
.section-alt { background: var(--bg-secondary); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-dim);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--brand);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--brand);
  border-radius: 50%;
}
.section-title {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: var(--fs-md);
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: 48px;
}
.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* Glow divider */
.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.25;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  transition: var(--t-bounce);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-brand);
  color: var(--brand-ink);  /* dark text on amber — WCAG AA */
  box-shadow: 0 4px 24px rgba(255,191,0,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,191,0,0.45); }
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-hover);
}
.btn-outline:hover { background: var(--brand-dim); border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 8px 20px; font-size: var(--fs-xs); }
.btn-lg { padding: 16px 36px; font-size: var(--fs-base); }
.btn-ghost { color: var(--brand); font-weight: 600; gap: 6px; }
.btn-ghost:hover { gap: 10px; }

/* ============================================================
   HERO (Homepage)
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: var(--bg-primary);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,191,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,191,0,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb-1 { width: 600px; height: 600px; top: -200px; right: -150px; background: radial-gradient(circle, rgba(255,191,0,0.12), transparent 70%); }
.orb-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; background: radial-gradient(circle, rgba(255,140,0,0.08), transparent 70%); }

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--brand-dim);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--brand); border-radius: 50%; animation: pulse 2s infinite; }
.hero-title {
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-subtitle {
  color: var(--text-secondary);
  font-size: var(--fs-md);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
}
.hero-stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   3-LAYER SEO/AEO/GEO DIAGRAM
   ============================================================ */
.diagram-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.diagram-rings {
  position: relative;
  width: 380px;
  height: 380px;
  flex-shrink: 0;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--t);
}
.ring-geo {
  inset: 0;
  border-color: rgba(74,222,128,0.4);
  background: rgba(74,222,128,0.04);
  animation: spin-slow 30s linear infinite reverse;
}
.ring-aeo {
  inset: 20%;
  border-color: rgba(129,140,248,0.5);
  background: rgba(129,140,248,0.05);
  animation: spin-slow 20s linear infinite;
}
.ring-seo {
  inset: 38%;
  border-color: rgba(255,191,0,0.7);
  background: rgba(255,191,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring-seo-inner {
  text-align: center;
  font-weight: 800;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  color: var(--brand);
}
.ring-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  top: -5px; left: 50%;
  transform: translateX(-50%);
}
.ring-geo .ring-dot { background: var(--c-geo); box-shadow: 0 0 12px var(--c-geo); }
.ring-aeo .ring-dot { background: var(--c-aeo); box-shadow: 0 0 12px var(--c-aeo); }
.ring-label {
  position: absolute;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.geo-label { top: -32px; left: 50%; transform: translateX(-50%); color: var(--c-geo); }
.aeo-label { bottom: -32px; left: 50%; transform: translateX(-50%); color: var(--c-aeo); }

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
.wa-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}
.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.35);
  animation: wa-ping 2s ease-in-out infinite;
}
@keyframes wa-ping {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.3); opacity: 0;   }
  100% { transform: scale(1.3); opacity: 0;   }
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.85); } }
@keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-12px); } }
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 60px) 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--bg-primary);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,191,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,191,0,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero-orb {
  position: absolute;
  top: -150px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,191,0,0.1), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-title {
  font-size: clamp(var(--fs-2xl), 5vw, var(--fs-4xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  margin-top: 16px;
}
.page-hero-subtitle {
  color: var(--text-secondary);
  font-size: var(--fs-md);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: var(--t); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb-sep { color: var(--text-muted); opacity: 0.4; }
.breadcrumb-current { color: var(--brand); font-weight: 600; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: var(--t);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}
.card-icon.amber { background: rgba(255,191,0,0.12); color: var(--brand); }
.card-icon.green { background: rgba(74,222,128,0.12); color: var(--c-geo); }
.card-icon.violet { background: rgba(129,140,248,0.12); color: var(--c-aeo); }
.card-icon.sky { background: rgba(56,189,248,0.12); color: var(--c-ai); }
.card-icon.orange { background: rgba(255,140,0,0.12); color: var(--brand-alt); }

.card-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.card-text {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.75;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-top: 20px;
  transition: var(--t);
}
.card-link:hover { gap: 10px; }

/* Pillar grid */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* ============================================================
   FEATURE LIST
   ============================================================ */
.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  transition: var(--t);
}
.feature-item:hover { border-color: var(--border); background: var(--bg-card-hover); }
.feature-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-dim);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 1px;
}
.feature-text { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.65; }
.feature-text strong { color: var(--text-primary); font-weight: 600; }

/* ============================================================
   TWO-COLUMN CONTENT LAYOUT
   ============================================================ */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  margin: 32px 0;
}
.compare-table th {
  background: var(--brand-dim);
  color: var(--brand);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.compare-table th:first-child { border-radius: var(--r-sm) 0 0 0; }
.compare-table th:last-child  { border-radius: 0 var(--r-sm) 0 0; }
.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-secondary);
  vertical-align: top;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg-card); }
.compare-table td:first-child { font-weight: 600; color: var(--text-primary); }

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: var(--t);
}
.faq-item.open { border-color: var(--border); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-sm);
  gap: 16px;
  transition: var(--t);
  user-select: none;
  color: var(--brand);
}
.faq-q:hover { color: var(--brand); }
.faq-q .faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--t);
  color: var(--text-secondary);
}
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--brand); color: var(--brand); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-a-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.8;
}
.faq-a-inner p + p { margin-top: 12px; }
.faq-a-inner a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   TESTIMONIALS (Swiper)
   ============================================================ */
.testimonials-section { background: var(--bg-secondary); padding: 80px 0; }
.swiper-testimonials { padding-bottom: 48px !important; }
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  height: 100%;
}
.testimonial-stars { color: var(--brand); font-size: var(--fs-base); margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--fs-sm);
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: var(--fs-sm); }
.author-role { color: var(--text-muted); font-size: var(--fs-xs); margin-top: 2px; }
.swiper-pagination-bullet { background: var(--text-muted); }
.swiper-pagination-bullet-active { background: var(--brand); }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { color: var(--text-secondary); font-size: var(--fs-sm); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--bg-secondary);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,191,0,0.08), transparent 70%);
  pointer-events: none;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--t);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.blog-thumb {
  height: 200px;
  background: var(--bg-secondary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.blog-thumb-placeholder {
  width: 100%; height: 100%;
  background: var(--gradient-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--brand-dim);
}
.blog-content { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.blog-tag {
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  background: var(--brand-dim);
  color: var(--brand);
  border: 1px solid var(--border);
}
.blog-date { font-size: var(--fs-xs); color: var(--text-muted); }
.blog-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 10px;
  transition: var(--t);
}
.blog-card:hover .blog-title { color: var(--brand); }
.blog-excerpt { color: var(--text-secondary); font-size: var(--fs-sm); line-height: 1.75; flex: 1; }
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-top: 20px;
  transition: var(--t);
}
.blog-read-more:hover { gap: 10px; }

/* ============================================================
   ARTICLE (blog post)
   ============================================================ */
.article-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.article-header { margin-bottom: 48px; }
.article-body { font-size: var(--fs-base); line-height: 1.85; }
.article-body h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
  color: var(--text-primary);
}
.article-body h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--text-primary);
}
.article-body p { margin-bottom: 20px; color: var(--text-secondary); }
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
  list-style: disc;
  color: var(--text-secondary);
}
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; line-height: 1.75; }
.article-body strong { color: var(--text-primary); font-weight: 600; }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
  border-left: 3px solid var(--brand);
  padding: 16px 24px;
  background: var(--brand-deep);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-secondary);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: var(--fs-sm);
}
.article-body th {
  background: var(--brand-dim);
  color: var(--brand);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.article-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-secondary);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 8px; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 13px 16px;
  color: var(--text-primary);
  font-size: var(--fs-sm);
  transition: var(--t);
  font-family: var(--font);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-select option { background: var(--bg-secondary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   OFFICE CARD
   ============================================================ */
.office-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.office-name { font-weight: 700; color: var(--brand); margin-bottom: 12px; font-size: var(--fs-sm); }
.office-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}
.office-detail i { color: var(--brand); width: 14px; flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   ABOUT
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
  transition: var(--t);
}
.team-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--fs-lg);
  margin: 0 auto 16px;
}
.team-name { font-weight: 700; margin-bottom: 4px; }
.team-role { color: var(--text-muted); font-size: var(--fs-xs); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-soft);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: var(--fs-md);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.footer-logo .nav-logo-icon { width: 32px; height: 32px; font-size: 12px; }
.footer-desc { color: var(--text-secondary); font-size: var(--fs-sm); line-height: 1.8; margin-bottom: 24px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--t);
}
.social-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-dim); }
.footer-col-title {
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  transition: var(--t);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover { color: var(--brand); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}
.footer-contact-item i { color: var(--brand); width: 14px; flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-text { color: var(--text-muted); font-size: var(--fs-xs); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-muted); font-size: var(--fs-xs); transition: var(--t); }
.footer-bottom-links a:hover { color: var(--brand); }

/* ============================================================
   INLINE CONTENT STYLES
   ============================================================ */
.prose-section {
  max-width: 860px;
  margin: 0 auto;
}
.prose-section p {
  color: var(--text-secondary);
  font-size: var(--fs-md);
  line-height: 1.85;
  margin-bottom: 20px;
}
.prose-section h2 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 48px 0 16px;
}
.prose-section h3 {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin: 36px 0 12px;
}
.prose-section ul {
  padding-left: 24px;
  margin-bottom: 24px;
  list-style: disc;
  color: var(--text-secondary);
  font-size: var(--fs-md);
}
.prose-section li { margin-bottom: 8px; line-height: 1.75; }
.prose-section strong { color: var(--text-primary); }
.prose-section a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* Step list */
.step-list { counter-reset: steps; display: flex; flex-direction: column; gap: 20px; }
.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  counter-increment: steps;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--fs-sm);
  flex-shrink: 0;
}
.step-content h3 { font-size: var(--fs-base); font-weight: 700; margin-bottom: 6px; }
.step-content p { color: var(--text-secondary); font-size: var(--fs-sm); line-height: 1.75; }

/* Keyword badges */
.kw-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.kw-tag {
  padding: 4px 12px;
  background: var(--brand-dim);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--brand);
}

/* Pillar color accents for each page */
.accent-geo  { --accent: var(--c-geo); }
.accent-aeo  { --accent: var(--c-aeo); }
.accent-ai   { --accent: var(--c-ai); }
.accent-seo  { --accent: var(--c-seo); }

/* ============================================================
   RESPONSIVE — TABLET & MOBILE
   ============================================================ */

/* ---- Tablet: 1024px and below ---- */
@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .diagram-wrap { display: none; }
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .content-grid.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pillar-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .blog-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* ---- Mobile: 768px and below ---- */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-container { padding: 0 16px; gap: 12px; }
  .nav-logo img { max-height: 32px; }

  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .section-lg { padding: 72px 0; }
  .container { padding: 0 16px; }

  .page-hero { padding: calc(var(--nav-h) + 36px) 0 52px; }
  .page-hero-title { font-size: clamp(var(--fs-xl), 7vw, var(--fs-3xl)); }
  .page-hero-subtitle { font-size: var(--fs-base); }

  .hero-inner { padding: 48px 16px; }
  .hero-stats { gap: 20px; }

  .pillar-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  .card { padding: 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .footer-desc { max-width: 100%; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-num { font-size: var(--fs-2xl); }

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

  .compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table { font-size: var(--fs-xs); min-width: 480px; }
  .compare-table th, .compare-table td { padding: 8px 10px; }

  .article-wrap { padding: 40px 16px 72px; }

  .section-subtitle { font-size: var(--fs-base); }
  .text-center .section-subtitle { margin-left: auto; margin-right: auto; }

  .cta-section { padding: 60px 0; }
  .cta-actions { flex-direction: column; align-items: center; }

  .wa-float { bottom: 20px; right: 16px; width: 50px; height: 50px; }
  .wa-float svg { width: 26px; height: 26px; }

  /* Prevent grid children from overflowing */
  .pillar-grid > *, .content-grid > *, .blog-grid > * { min-width: 0; }
}

/* ---- Small mobile: 480px and below ---- */
@media (max-width: 480px) {
  .container { padding: 0 14px; }

  .hero-title { font-size: clamp(var(--fs-2xl), 8vw, var(--fs-3xl)); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .section-title { font-size: clamp(var(--fs-xl), 7vw, var(--fs-2xl)); }

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

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-num { font-size: var(--fs-xl); }

  .card { padding: 20px; }

  .faq-q { padding: 16px; font-size: var(--fs-xs); }
  .faq-a-inner { padding: 0 16px 16px; }

  .testimonial-card { padding: 20px; }

  .wa-float { bottom: 16px; right: 12px; width: 46px; height: 46px; }
  .wa-float svg { width: 24px; height: 24px; }

  footer { padding: 48px 0 0; }
}
