/* ==========================================================================
   SEONuxt Homepage Design System & Dual-Theme (Light / Dark) CI
   Aligned with .note/UI ดีไซต์.md, about.css, and laksana.css
   Tokens: --color-one (#00dc82), --color-two (#80eec0), --color-thee (#032a36)
   Alternating: Light (Clean White / Transparent), Dark (#021916)
   Radii: 1rem (Hero/CTA), 0.75rem (Cards/Matrix), 0.5rem (Buttons/Chips), 0.325rem (Badges)
   Rules: Anti-Box-Fatigue, Semantic Dual Theme, Fluid Typography clamp()
   ========================================================================== */

/* ==========================================================================
   1. DUAL THEME TOKENS (LIGHT & DARK)
   ========================================================================== */
:root,
html[data-bs-theme="light"],
html[data-theme="light"] {
  --home-surface: #ffffff;
  --home-surface-subtle: #f8fafc;
  --home-section-alt: #f7fffa;
  --home-border: rgba(3, 42, 54, 0.08);
  --home-border-subtle: rgba(3, 42, 54, 0.05);
  
  --home-text-primary: #032a36;
  --home-text-secondary: #2c424a;
  --home-text-muted: #4b636a;
  
  --home-accent: var(--color-one, #00dc82);
  --home-accent-hover: #00b86c;
  --home-accent-badge-bg: rgba(0, 220, 130, 0.12);
  --home-accent-subtle: rgba(0, 220, 130, 0.06);
  
  --home-card-bg: #ffffff;
  --home-card-border: rgba(3, 42, 54, 0.08);
  --home-card-shadow: 0 2px 10px rgba(3, 42, 54, 0.04);
  --home-card-hover-shadow: 0 12px 28px rgba(0, 220, 130, 0.12);
  --home-card-hover-border: rgba(0, 220, 130, 0.45);
  
  --home-code-header: #fcfcfc;
  --home-code-bg: #ffffff;
  --home-code-border: rgba(3, 42, 54, 0.1);
  --home-code-text: #032a36;
  
  --home-hero-bg:
    radial-gradient(circle at 88% 18%, rgba(0, 220, 130, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 12% 82%, rgba(0, 157, 235, 0.06) 0%, transparent 40%),
    radial-gradient(rgba(3, 42, 54, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, #eaf7f0 100%);
  --home-hero-border: rgba(0, 220, 130, 0.25);

  --home-cta-bg:
    radial-gradient(circle at 88% 18%, rgba(0, 220, 130, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 12% 82%, rgba(0, 157, 235, 0.06) 0%, transparent 40%),
    radial-gradient(rgba(3, 42, 54, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, #eaf7f0 100%);
  --home-cta-border: rgba(0, 220, 130, 0.28);
  --home-cta-title: #032a36;
  --home-cta-desc: #4b636a;
  --home-cta-pill-bg: #ffffff;
  --home-cta-pill-border: rgba(3, 42, 54, 0.12);
  --home-cta-pill-text: #032a36;

  --home-chip-bg: #ffffff;
  --home-chip-border: rgba(3, 42, 54, 0.1);

  /* Syntax Token Colors (Light) */
  --tok-key: #006b3f;
  --tok-attr: #6f42c1;
  --tok-str: #0369a1;
  --tok-kw: #64748b;
  --tok-comment: #5d7880;
}

html[data-bs-theme="dark"],
html[data-theme="dark"],
body.dark-mode {
  --bs-body-color: #ffffff;
  --bs-body-color-rgb: 255, 255, 255;
  --home-surface: #041d25;
  --home-surface-subtle: #032a36;
  --home-section-alt: #011319;
  --home-border: rgba(128, 238, 192, 0.16);
  --home-border-subtle: rgba(128, 238, 192, 0.08);
  
  --home-text-primary: #eefaf4;
  --home-text-secondary: #cbdcd5;
  --home-text-muted: #bcbcbc;
  
  --home-accent: var(--color-one, #00dc82);
  --home-accent-hover: var(--color-two, #80eec0);
  --home-accent-badge-bg: rgba(0, 220, 130, 0.14);
  --home-accent-subtle: rgba(0, 220, 130, 0.08);
  
  --home-card-bg: #041d25;
  --home-card-border: rgba(128, 238, 192, 0.15);
  --home-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --home-card-hover-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  --home-card-hover-border: rgba(128, 238, 192, 0.5);
  
  --home-code-bg: #021319;
  --home-code-header: #031c24;
  --home-code-border: rgba(128, 238, 192, 0.2);
  --home-code-text: #eefaf4;
  
  --home-hero-bg:
    radial-gradient(circle at 88% 18%, rgba(0, 220, 130, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 12% 82%, rgba(0, 157, 235, 0.14) 0%, transparent 40%),
    radial-gradient(rgba(128, 238, 192, 0.1) 1px, transparent 1px),
    linear-gradient(135deg, #021f28 0%, #032a36 55%, #043747 100%);
  --home-hero-border: rgba(0, 220, 130, 0.35);

  --home-cta-bg:
    radial-gradient(circle at 88% 18%, rgba(0, 220, 130, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 12% 82%, rgba(0, 157, 235, 0.14) 0%, transparent 40%),
    radial-gradient(rgba(128, 238, 192, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, #021f28 0%, #032a36 55%, #043747 100%);
  --home-cta-border: rgba(0, 220, 130, 0.35);
  --home-cta-title: #eefaf4;
  --home-cta-desc: #cbdcd5;
  --home-cta-pill-bg: rgba(255, 255, 255, 0.06);
  --home-cta-pill-border: rgba(128, 238, 192, 0.22);
  --home-cta-pill-text: #eefaf4;

  --home-chip-bg: rgba(255, 255, 255, 0.05);
  --home-chip-border: rgba(128, 238, 192, 0.22);

  /* Syntax Token Colors (Dark) */
  --tok-key: #80eec0;
  --tok-attr: #ffd942;
  --tok-str: #a5f3fc;
  --tok-kw: #00dc82;
  --tok-comment: #7ea399;
}

/* ==========================================================================
   2. SECTION & TYPOGRAPHY STANDARDS
   ========================================================================== */

/* Alternating Section Background */
.home-section-alt {
  background-color: var(--home-section-alt);
}

/* ==========================================================================
   LINEAR STUDIO BANNER SECTION BACKGROUND (90deg Gradient CI Standard)
   - Light: linear-gradient(90deg, rgba(0, 220, 130, 0.06) 0%, rgba(3, 42, 54, 0.02) 100%)
   - Dark: linear-gradient(90deg, rgba(0, 220, 130, 0.08) 0%, rgba(3, 42, 54, 0.4) 100%)
   ========================================================================== */
.home-section-linear-studio {
  background: linear-gradient(90deg, rgba(0, 220, 130, 0.06) 0%, rgba(3, 42, 54, 0.02) 100%) !important;
  /* border-top: 1px solid rgba(0, 220, 130, 0.15); */
  /* border-bottom: 1px solid rgba(0, 220, 130, 0.15); */
  padding: 78px 0px !important;
  margin: 38px 0px;
  position: relative;
}

html[data-bs-theme="dark"] .home-section-linear-studio,
html[data-theme="dark"] .home-section-linear-studio,
body.dark-mode .home-section-linear-studio {
  background: linear-gradient(90deg, rgba(0, 220, 130, 0.08) 0%, rgba(3, 42, 54, 0.4) 100%) !important;
  /* border-top: 1px solid rgba(0, 220, 130, 0.22); */
  /* border-bottom: 1px solid rgba(0, 220, 130, 0.22); */
}

/* Section Header Wrapper */
.home-sec-head {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.75rem;
}

/* Eyebrow Badge (Pill Badge) */
.home-sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--home-accent);
  background: var(--home-accent-badge-bg);
  border: 1px solid rgba(0, 220, 130, 0.3);
  letter-spacing: 0.3px;
  margin-bottom: 0.85rem;
}

.home-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--home-accent);
  box-shadow: 0 0 0 2px rgba(0, 220, 130, 0.3);
  display: inline-block;
}

/* Section Title (Strict H2 Clamp Formula) */
.home-sec-title {
  font-size: clamp(1.32rem, 1.15rem + 0.65vw, 1.72rem) !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  color: var(--home-text-primary) !important;
  margin-bottom: 0.65rem !important;
  letter-spacing: -0.01em;
}

/* Section Description (Strict Specs: 0.925rem, line-height 1.65, #bcbcbc in dark) */
.home-sec-desc {
  font-size: 0.925rem !important;
  line-height: 1.65 !important;
  color: var(--home-text-muted) !important;
  /* max-width: 580px; */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  font-weight: 400;
}

/* ==========================================================================
   3. CARD SYSTEM (CI Radius: 0.75rem / 12px)
   ========================================================================== */
.home-card {
  border-radius: 0.75rem !important;
  background-color: var(--home-card-bg) !important;
  border: 1px solid var(--home-card-border) !important;
  box-shadow: var(--home-card-shadow);
  color: var(--home-text-primary);
  position: relative;
}

.home-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--home-text-primary);
  margin-bottom: 0.45rem;
  line-height: 1.4;
}

.home-card-desc {
  font-size: 13px !important;
  color: var(--home-text-muted);
  line-height: 1.5 !important;
  margin-bottom: 1rem;
}

html[data-bs-theme="dark"] .home-card-desc,
html[data-theme="dark"] .home-card-desc,
body.dark-mode .home-card-desc {
  color: #ffffff !important;
}

/* Feature Cards (Clean Flat SaaS - No Hover Distraction) */
.home-feat-card {
  border-radius: 0.75rem !important;
  background-color: var(--home-card-bg) !important;
  border: 1px solid var(--home-card-border) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  color: var(--home-text-primary);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  height: 100%;
}

.home-card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  background: var(--home-accent-badge-bg);
  border: 1px solid rgba(0, 220, 130, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--home-accent);
  flex-shrink: 0;
}

.home-feat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  color: var(--home-text-secondary);
  line-height: 1.3;
}

.home-feat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--home-accent);
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(0, 220, 130, 0.25);
}

.home-feat-footer {
  padding-top: 0.85rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--home-border);
}

.home-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--home-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
}

/* Editorial Accent Bar (3px Left Border on 46 Laksana Card) */
.home-editorial-card {
  border-left: 3px solid var(--home-accent) !important;
}

/* ==========================================================================
   4. HOW IT WORKS / PIPELINE STEPS
   ========================================================================== */
/* ==========================================================================
   4. STEP WORKFLOW PIPELINE (Connected Developer Flow & Anti-Box-Fatigue)
   ========================================================================== */
.home-pipeline-wrap {
  position: relative;
}

.home-pipeline-col {
  position: relative;
}

/* Floating Flow Arrow Connector between steps (Desktop >= 992px) */
@media (min-width: 992px) {
  .home-pipeline-arrow {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    color: var(--home-accent);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    pointer-events: none;
  }
}

.home-pipeline-card {
  position: relative;
  z-index: 1;
  background: var(--home-card-bg);
  border: 1px solid var(--home-card-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Stage Header with Step Number & Status Pill */
.home-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--home-border);
}

.home-stage-num {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--home-accent-badge-bg);
  color: var(--home-accent);
  border: 1px solid rgba(0, 220, 130, 0.35);
  flex-shrink: 0;
}

.home-stage-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
  color: var(--home-accent);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.home-stage-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--home-text-primary);
  line-height: 1.2;
}

.home-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--home-surface-subtle);
  color: var(--home-text-muted);
  border: 1px solid var(--home-border);
}

.home-stage-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-accent);
}

.home-pipeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--home-text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.home-pipeline-desc {
  font-size: 13px !important;
  line-height: 1.55 !important;
  margin-bottom: 1.25rem;
}

html[data-bs-theme="dark"] .home-pipeline-desc,
html[data-theme="dark"] .home-pipeline-desc,
body.dark-mode .home-pipeline-desc {
  color: #ffffff !important;
}

:root:not([data-bs-theme="dark"]):not([data-theme="dark"]) .home-pipeline-desc,
html[data-bs-theme="light"] .home-pipeline-desc,
html[data-theme="light"] .home-pipeline-desc {
  color: var(--home-text-muted) !important;
}

/* Simulation Windows (HTML, Console, Audit) */
.home-pipeline-window {
  background: var(--home-code-bg);
  border: 1px solid var(--home-code-border);
  border-radius: 0.5rem;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.home-pipeline-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.42rem 0.75rem;
  background: var(--home-code-header);
  border-bottom: 1px solid var(--home-code-border);
  font-size: 0.7rem;
  color: var(--home-text-muted);
}

.home-pipeline-window-dots {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.home-pipeline-window-dots .dot-red {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5f56;
}

.home-pipeline-window-dots .dot-yellow {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffbd2e;
}

.home-pipeline-window-dots .dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #27c93f;
}

.home-pipeline-window-body {
  padding: 0.75rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--home-code-text);
  min-height: 98px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-code-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-code-num {
  display: inline-block;
  width: 1.15rem;
  color: var(--home-text-muted);
  opacity: 0.55;
  user-select: none;
}

/* ==========================================================================
   Hero Code Snippet Syntax Highlighting (JS Realistic Colors)
   ========================================================================== */
.home-hero-code {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--home-code-text, #032a36);
}

.home-hero-code code {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  background: transparent !important;
  padding: 0 !important;
}

.home-hero-code .hl-cursor {
  display: inline-block;
  color: var(--home-accent, #00dc82);
  font-weight: 300;
  animation: homeCursorBlink 0.7s infinite;
  margin-left: 2px;
}

@keyframes homeCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.home-hero-code .hl-keyword {
  color: #cf222e;
  font-weight: 600;
}
html[data-bs-theme="dark"] .home-hero-code .hl-keyword,
html[data-theme="dark"] .home-hero-code .hl-keyword,
body.dark-mode .home-hero-code .hl-keyword {
  color: #ff7b72;
}

.home-hero-code .hl-var {
  color: #0550ae;
}
html[data-bs-theme="dark"] .home-hero-code .hl-var,
html[data-theme="dark"] .home-hero-code .hl-var,
body.dark-mode .home-hero-code .hl-var {
  color: #79c0ff;
}

.home-hero-code .hl-prop {
  color: #6f42c1;
}
html[data-bs-theme="dark"] .home-hero-code .hl-prop,
html[data-theme="dark"] .home-hero-code .hl-prop,
body.dark-mode .home-hero-code .hl-prop {
  color: #d2a8ff;
}

.home-hero-code .hl-func {
  color: #00824b;
  font-weight: 600;
}
html[data-bs-theme="dark"] .home-hero-code .hl-func,
html[data-theme="dark"] .home-hero-code .hl-func,
body.dark-mode .home-hero-code .hl-func {
  color: var(--home-accent, #00dc82);
}

.home-hero-code .hl-bool {
  color: #953800;
  font-weight: 600;
}
html[data-bs-theme="dark"] .home-hero-code .hl-bool,
html[data-theme="dark"] .home-hero-code .hl-bool,
body.dark-mode .home-hero-code .hl-bool {
  color: #ffa657;
}

.home-hero-code .hl-str {
  color: #0a3069;
}
html[data-bs-theme="dark"] .home-hero-code .hl-str,
html[data-theme="dark"] .home-hero-code .hl-str,
body.dark-mode .home-hero-code .hl-str {
  color: #a5d6ff;
}

.home-hero-code .hl-op {
  color: #57606a;
}
html[data-bs-theme="dark"] .home-hero-code .hl-op,
html[data-theme="dark"] .home-hero-code .hl-op,
body.dark-mode .home-hero-code .hl-op {
  color: #8b949e;
}

.home-audit-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.22rem 0;
  font-size: 0.75rem;
}

.home-audit-score {
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.12rem 0.45rem;
  border-radius: 0.25rem;
  background: rgba(0, 220, 130, 0.14);
  color: var(--home-accent);
  border: 1px solid rgba(0, 220, 130, 0.28);
}

/* ==========================================================================
   5. FRAMEWORKS HORIZONTAL SCROLL RAIL (Single Row with Controls)
   ========================================================================== */
.home-frameworks-wrap {
  position: relative;
  width: 100%;
}

.home-frameworks-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0.25rem 0.75rem;
  cursor: grab;
}

.home-frameworks-rail:active {
  cursor: grabbing;
}

.home-frameworks-rail::-webkit-scrollbar {
  display: none;
}

.home-framework-item {
  flex: 0 0 200px;
  width: 200px;
  scroll-snap-align: start;
}

@media (min-width: 992px) {
  .home-framework-item {
    flex: 0 0 220px;
    width: 220px;
  }
}

.home-framework-card {
  border-radius: 0.5rem !important;
  background-color: var(--home-card-bg) !important;
  border: 1px solid var(--home-card-border) !important;
  color: var(--home-text-primary) !important;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  width: 100%;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.home-framework-more-card {
  border: 1px dashed var(--home-accent) !important;
  background: var(--home-accent-subtle) !important;
}

/* Frameworks Headline & Meta Badges */
.home-fw-headline-wrap {
  position: relative;
}

.home-fw-pill-badge {
  color: var(--home-accent);
}

.home-fw-meta-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.home-fw-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.24rem 0.7rem;
  border-radius: 9999px;
  background: var(--home-card-bg);
  border: 1px solid var(--home-border);
  color: var(--home-text-muted);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.home-fw-chip i {
  color: var(--home-accent);
  font-size: 0.85rem;
}

html[data-bs-theme="dark"] .home-fw-chip,
html[data-theme="dark"] .home-fw-chip,
body.dark-mode .home-fw-chip {
  color: #e0e6ed;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(128, 238, 192, 0.18);
}

.home-scroll-ctrls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-scroll-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  color: var(--home-text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  user-select: none;
}

.home-scroll-btn:hover {
  background: var(--home-accent);
  border-color: var(--home-accent);
  color: #032a36;
}

.home-scroll-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.home-framework-logo {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-framework-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-framework-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--home-text-primary);
  line-height: 1.3;
}

.home-framework-tag {
  font-size: 0.72rem;
  color: var(--home-text-muted);
  line-height: 1.2;
}

/* ==========================================================================
   6. DUAL PILLAR SAAS COMPARISON (Side-by-Side Clarity)
   ========================================================================== */
.home-pillar-card {
  border-radius: 0.75rem;
  padding: 2rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--home-card-border);
  background: var(--home-card-bg);
}

/* Left Pillar: Traditional SEO */
.home-pillar-card.is-traditional {
  background: var(--home-surface);
  border: 1px solid var(--home-border);
}

/* Right Pillar: SEONuxt AI Engine (Hero Highlight) */
.home-pillar-card.is-seon {
  border: 1.5px solid rgba(0, 220, 130, 0.45);
  background: linear-gradient(180deg, rgba(0, 220, 130, 0.04) 0%, rgba(0, 220, 130, 0.01) 100%), var(--home-card-bg);
  box-shadow: 0 4px 20px rgba(0, 220, 130, 0.06);
}

html[data-bs-theme="dark"] .home-pillar-card.is-seon,
html[data-theme="dark"] .home-pillar-card.is-seon,
body.dark-mode .home-pillar-card.is-seon {
  border-color: rgba(0, 220, 130, 0.4);
  background: linear-gradient(180deg, rgba(0, 220, 130, 0.08) 0%, rgba(3, 42, 54, 0.2) 100%), var(--home-card-bg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.home-pillar-header {
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--home-border);
}

.home-pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.home-pillar-badge.is-traditional {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.22);
}

.home-pillar-badge.is-seon {
  background: var(--home-accent-badge-bg);
  color: var(--home-accent);
  border: 1px solid rgba(0, 220, 130, 0.35);
}

.home-pillar-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--home-text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.home-pillar-subtitle {
  font-size: 0.875rem;
  color: var(--home-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Feature List */
.home-pillar-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.home-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.home-pillar-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.home-pillar-icon.is-danger {
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
}

.home-pillar-icon.is-success {
  background: var(--home-accent-badge-bg);
  color: var(--home-accent);
}

.home-pillar-item-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--home-text-primary);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.home-pillar-item-desc {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: var(--home-text-muted) !important;
  margin-bottom: 0;
}

.home-pillar-card.is-seon .home-pillar-item-desc {
  font-size: 13px !important;
  line-height: 1.5 !important;
}

html[data-bs-theme="dark"] .home-pillar-card.is-seon .home-pillar-item-desc,
html[data-theme="dark"] .home-pillar-card.is-seon .home-pillar-item-desc,
body.dark-mode .home-pillar-card.is-seon .home-pillar-item-desc {
  color: #ffffff !important;
}

:root:not([data-bs-theme="dark"]):not([data-theme="dark"]) .home-pillar-card.is-seon .home-pillar-item-desc,
html[data-bs-theme="light"] .home-pillar-card.is-seon .home-pillar-item-desc,
html[data-theme="light"] .home-pillar-card.is-seon .home-pillar-item-desc {
  color: var(--home-text-primary) !important;
}

.home-pillar-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--home-border);
}

/* ==========================================================================
   7. TESTIMONIALS SECTION
   ========================================================================== */
.home-testimonial-card {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-testimonial-quote {
  font-size: 0.88rem;
  line-height: 1.62;
  color: var(--home-text-muted);
  margin-bottom: 1.25rem;
}

.home-testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--home-border);
  object-fit: cover;
  flex-shrink: 0;
}

.home-testimonial-name {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--home-text-primary);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.home-testimonial-role {
  font-size: 0.78rem;
  color: var(--home-accent);
  font-weight: 600;
  margin-bottom: 0;
}

.home-h5-title {
  font-size: 1.25rem !important;
  font-weight: 700;
  line-height: 1.3;
}

.home-h6-title {
  font-size: 0.9375rem !important;
  font-weight: 700;
  line-height: 1.3;
}

/* ==========================================================================
   8. HERO & CTA BOXES
   ========================================================================== */
.home-hero-wrap {
  background: var(--home-hero-bg);
  background-size: auto, auto, 22px 22px, auto;
  border-bottom: 1px solid var(--home-hero-border);
}

.home-cta-section {
  background: var(--home-cta-bg);
  background-size: auto, auto, auto;
  border-top: 1px solid rgba(0, 220, 130, 0.25);
  border-bottom: 1px solid rgba(0, 220, 130, 0.25);
  color: var(--home-cta-text);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.home-cta-wrap {
  position: relative;
  background: var(--home-cta-bg);
  background-size: auto, auto, 22px 22px, auto;
  border: 1px solid var(--home-cta-border);
  border-radius: var(--bs-border-radius-xl, 1rem);
  padding: 3rem 2.5rem;
  margin-bottom: 3.5rem;
  box-shadow: none;
  overflow: hidden;
}

.home-cta-title {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 2rem);
  font-weight: 800;
  color: var(--home-cta-title) !important;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.home-cta-desc {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--home-cta-desc) !important;
  max-width: 620px;
  margin: 0 auto 1.5rem;
}

.home-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: var(--home-cta-pill-bg);
  border: 1px solid var(--home-cta-pill-border);
  color: var(--home-cta-pill-text);
  font-size: 0.825rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(3, 42, 54, 0.04);
}

/* ==========================================================================
   9. BUTTON STANDARDS (Radius: 0.5rem / 8px)
   ========================================================================== */
.home-btn-primary {
  background-color: var(--color-one, #00dc82) !important;
  border-color: var(--color-one, #00dc82) !important;
  color: #032a36 !important;
  font-weight: 700 !important;
  border-radius: 0.5rem !important;
  padding: 0.65rem 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 220, 130, 0.25);
  transition: all 0.2s ease;
}

.home-btn-primary:hover,
.home-btn-primary:focus {
  background-color: var(--color-two, #80eec0) !important;
  border-color: var(--color-two, #80eec0) !important;
  color: #032a36 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 220, 130, 0.35);
}

.home-btn-outline {
  border: 1px solid var(--home-border) !important;
  background: var(--home-surface) !important;
  color: var(--home-text-primary) !important;
  font-weight: 600 !important;
  border-radius: 0.5rem !important;
  padding: 0.65rem 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.home-btn-outline:hover,
.home-btn-outline:focus {
  border-color: var(--home-accent) !important;
  color: var(--home-accent) !important;
  transform: translateY(-2px);
}

.home-btn-line {
  background-color: #06c755 !important;
  border-color: #06c755 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 0.5rem !important;
  padding: 0.65rem 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.home-btn-line:hover,
.home-btn-line:focus {
  background-color: #05b34c !important;
  border-color: #05b34c !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   10. CHIPS, BADGES & UTILITIES
   ========================================================================== */
.home-chip {
  background: var(--home-chip-bg);
  border: 1px solid var(--home-chip-border);
  color: var(--home-text-primary);
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Dark mode adjustments for original theme elements */
[data-bs-theme="dark"] .fill-body-nl,
[data-theme="dark"] .fill-body-nl {
  fill: #232528 !important;
}

[data-bs-theme="dark"] section.bg-light,
[data-theme="dark"] section.bg-light {
  background-color: var(--home-section-alt) !important;
  border-top: 1px solid var(--home-border-subtle);
  border-bottom: 1px solid var(--home-border-subtle);
}

[data-bs-theme="dark"] .bg-body,
[data-theme="dark"] .bg-body,
html[data-bs-theme="dark"] .bg-body,
html[data-theme="dark"] .bg-body,
body.dark-mode .bg-body {
  background-color: #041d25 !important;
}

[data-bs-theme="dark"] section.bg-light .bg-body,
[data-theme="dark"] section.bg-light .bg-body {
  background-color: var(--home-card-bg) !important;
  border: 1px solid var(--home-card-border);
  color: var(--home-text-primary);
}

.bg-warning {
  --bs-bg-opacity: 1;
  background-color: rgb(0 220 130) !important;
}

[data-bs-theme="dark"] .text-dark,
[data-theme="dark"] .text-dark,
html[data-bs-theme="dark"] .text-dark,
html[data-theme="dark"] .text-dark,
body.dark-mode .text-dark {
  color: #fff !important;
}
