/* CSS Variables */
:root {
  /* Colors */
  --primary: #007bff;
  --primary-dark: #0056b3;
  --secondary: #28a745;
  --accent: #ffc107;
  --danger: #dc3545;

  /* Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-muted: #6e7681;
  --border: #dee2e6;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-lg: rgba(0, 0, 0, 0.15);
  --font-primary: 'Sarabun', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'Sarabun', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head: 'Space Grotesk', 'Kanit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --border-radius-sm: 8px;
  --border-radius: 12px;
  --container-max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* Dark Theme */
body.dark {
  --bg-primary: #0b1120;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #6e7681;
  --border: #30363d;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition);
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-primary) 76%, transparent);
}

body:not(.dark) .site-header {
  background: color-mix(in srgb, var(--bg-primary) 86%, transparent);
}

body.dark .site-header .nav-links a {
  color: var(--text-secondary) !important;
}

body.dark .site-header .nav-links a:hover,
body.dark .site-header .nav-links a[aria-current="page"],
body.dark .site-header .nav-links a.active {
  color: var(--text-primary) !important;
}

body:not(.dark) .site-header .nav-links a {
  color: var(--text-secondary) !important;
}

body:not(.dark) .site-header .nav-links a:hover,
body:not(.dark) .site-header .nav-links a[aria-current="page"],
body:not(.dark) .site-header .nav-links a.active {
  color: #0b4ca1 !important;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.brand-main {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(66, 213, 255, 0.35));
}

.brand-text {
  font-size: 1.02rem;
}

.brand small {
  display: block;
  font-size: 0.72rem;
  line-height: 1.2;
  color: #42d5ff;
}

body:not(.dark) .brand small {
  color: var(--primary);
}

.site-header .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  list-style: none;
}

.site-header .nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0;
}

.site-header .nav-links a:hover,
.site-header .nav-links a[aria-current="page"] {
  color: var(--text-primary);
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  transform: translateY(-1px);
  background: rgba(66, 213, 255, 0.10);
  outline: none;
}

body:not(.dark) .btn-ghost:hover,
body:not(.dark) .btn-ghost:focus-visible {
  background: rgba(0, 123, 255, 0.10);
}

.site-header .controls .btn-ghost + .btn-ghost {
  margin-left: 0;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-primary) 86%, transparent);
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
  position: relative;
  box-shadow: 0 6px 16px rgba(2, 8, 23, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--bg-primary) 78%, transparent);
  box-shadow: 0 10px 20px rgba(2, 8, 23, 0.2);
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: currentColor;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease, width 0.25s ease;
}

.mobile-menu-btn span:nth-child(1) {
  top: 12px;
}

.mobile-menu-btn span:nth-child(2) {
  top: 18px;
  width: 14px;
}

.mobile-menu-btn span:nth-child(3) {
  top: 24px;
}

.mobile-menu-btn.active span:nth-child(1) {
  top: 18px;
  transform: translateX(-50%) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
}

.mobile-menu-btn.active span:nth-child(3) {
  top: 18px;
  transform: translateX(-50%) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(4, 10, 23, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  z-index: 45;
}

.nav-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding-top: clamp(2rem, 4.2vw, 3.1rem);
  padding-bottom: clamp(2rem, 4.2vw, 3.1rem);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  z-index: -2;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 80%, var(--primary) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--secondary) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, var(--accent) 0%, transparent 50%);
  opacity: 0.1;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(1deg); }
  66% { transform: translateY(-10px) rotate(-1deg); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-text {
  text-align: center;
}

@media (min-width: 768px) {
  .hero-text {
    text-align: left;
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
  color: var(--text-secondary);
  animation: slideInUp 1s ease-out 0.2s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  animation: slideInUp 1s ease-out 0.4s both;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  animation: slideInUp 1s ease-out 0.6s both;
}

@media (min-width: 480px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  @media (min-width: 768px) {
    .hero-buttons {
      justify-content: flex-start;
    }
  }
}

/* CTA Buttons */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cta.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.cta.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.cta.secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta.secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: slideInRight 1s ease-out 0.8s both;
}

.system-viz {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.system-viz::before {
  content: none;
}

.system-viz-stage {
  position: relative;
  min-height: 420px;
}

.system-viz.is-mesh .orbit-svg,
.system-viz.is-orbit .mesh-svg,
.system-viz[data-viz-mode="mesh"] .orbit-svg,
.system-viz[data-viz-mode="orbit"] .mesh-svg {
  display: none;
}

.viz-switch {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 3;
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(2, 8, 20, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.viz-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(233, 244, 255, 0.74);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.viz-btn:hover,
.viz-btn:focus-visible,
.viz-btn.is-active {
  color: #f8fafc;
  background: linear-gradient(95deg, rgba(31, 124, 255, 0.68), rgba(66, 213, 255, 0.28));
  transform: translateY(-1px);
  outline: none;
}

.mesh-svg,
.orbit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.system-viz-core-panel {
  position: relative;
  z-index: 2;
  width: min(460px, 100%);
  margin: 0.75rem auto 0;
  text-align: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.system-viz-kicker {
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.65);
}

.system-viz-title {
  margin-bottom: 0.45rem;
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  color: #f8fafc;
}

.system-viz-desc {
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.76);
}

.system-viz-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f8fafc;
  font-weight: 700;
  text-decoration: none;
}

.system-viz-link:hover,
.system-viz-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.mesh-orbit {
  fill: none;
  stroke: rgba(148, 163, 184, 0.16);
  stroke-width: 1.1;
  stroke-dasharray: 3 6;
}

.mesh-orbit-alt {
  stroke: rgba(66, 213, 255, 0.16);
  stroke-dasharray: 5 8;
}

.mesh-core-glow {
  fill: url(#coreGlow);
  opacity: 0.86;
  filter: drop-shadow(0 0 18px rgba(66, 213, 255, 0.36));
}

.mesh-core {
  fill: rgba(11, 26, 51, 0.92);
  stroke: rgba(155, 232, 255, 0.5);
  stroke-width: 1;
  filter: drop-shadow(0 0 10px rgba(66, 213, 255, 0.35));
}

.mesh-core-text {
  fill: #f8fafc;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mesh-links {
  opacity: 0.9;
}

.mesh-link {
  stroke: rgba(147, 197, 253, 0.18);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 3 7;
}

.mesh-runners {
  opacity: 0.95;
}

.mesh-runner {
  fill: rgba(155, 232, 255, 0.98);
  filter: drop-shadow(0 0 7px rgba(155, 232, 255, 0.9));
}

.mesh-node {
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mesh-node-dot {
  fill: rgba(31, 124, 255, 0.5);
  stroke: rgba(155, 232, 255, 0.38);
  stroke-width: 1;
  transition: fill 0.2s ease, stroke 0.2s ease, transform 0.2s ease;
}

.mesh-label {
  fill: #eef6ff;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(2, 8, 32, 0.9);
}

.mesh-node:hover,
.mesh-node:focus-visible,
.mesh-node.is-active {
  outline: none;
}

.mesh-node:hover .mesh-node-dot,
.mesh-node:focus-visible .mesh-node-dot,
.mesh-node.is-active .mesh-node-dot {
  fill: rgba(245, 158, 11, 0.96);
  stroke: rgba(255, 228, 147, 0.9);
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(1.08);
}

.mesh-node:hover .mesh-label,
.mesh-node:focus-visible .mesh-label,
.mesh-node.is-active .mesh-label {
  fill: #fffdf8;
}

.mesh-node:focus-visible {
  outline: 0;
}

.mesh-svg .mesh-node,
.orbit-svg .mesh-node {
  transform-box: fill-box;
  transform-origin: center;
}

.mesh-svg .mesh-node.is-active,
.orbit-svg .mesh-node.is-active {
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.16));
}

@keyframes nodeFloat {
  0%, 100% {
    transform: translateY(0);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-4px);
    filter: brightness(1.06);
  }
}

@keyframes linePulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.8; }
}

@keyframes corePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes vizGlowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border: 2px solid var(--primary);
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* Section Styles */
section {
  padding: 4.2rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

@media (max-width: 767px) {
  section {
    padding: 3.1rem 0;
  }

  .section-header {
    margin-bottom: 2.1rem;
  }
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Section */
.services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-lg);
}

.service-link {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.service-link:hover {
  color: var(--primary-dark);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.service-icon svg {
  width: 40px;
  height: 40px;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card p {
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  text-align: left;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

/* Why Choose Section */
.why-choose {
  background: var(--bg-primary);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.why-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--shadow-lg);
}

.why-card h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.why-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.about-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.about-features {
  display: grid;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  width: 30px;
  height: 30px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
}

.about-visual {
  position: relative;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow-lg);
}

.image-placeholder {
  width: 100%;
  height: 300px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder svg {
  width: 100%;
  height: 100%;
}

/* Clients Section */
.clients {
  background: var(--bg-secondary);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.875rem;
  margin-bottom: 3rem;
}

.client-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1rem;
  height: 96px;
  overflow: hidden;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.client-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
  border-color: var(--primary);
}

.client-logo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  /* object-fit: contain inside a fixed-height card — uniform across all aspect ratios */
  max-width: 100%;
  max-height: 62px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.client-item:hover .client-logo img {
  opacity: 0.55;
}

/* Testimonials */
.testimonials {
  margin-top: 4rem;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
}

.testimonial-content p {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.testimonial-author strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.testimonial-author span {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Integrated Solutions Section */
.solutions {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.6rem;
}

.solution-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  display: block;
  transition: var(--transition);
}

.solution-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.solution-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.solution-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px var(--shadow);
}

.solutions-cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.solutions-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  font-weight: 600;
}

.solutions-cta:hover {
  background: var(--primary-dark);
  color: #fff;
}

.solutions-cta.ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.solutions-cta.ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 123, 255, 0.06);
}

.journey {
  background: var(--bg-secondary);
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.journey-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1.25rem;
}

.journey-badge {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 123, 255, 0.1);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

.journey-card h3 {
  margin-bottom: 0.5rem;
}

.journey-card p {
  margin-bottom: 0.85rem;
}

.journey-link {
  font-weight: 600;
}

.journey-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

@media (min-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info,
.contact-form-wrapper {
  min-width: 0;
}

.contact-form-wrapper {
  display: flex;
}

.contact-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-text h4 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-text p {
  margin: 0;
  color: var(--text-secondary);
}

#contact-full-address {
  white-space: pre-line;
}

/* Contact Form */
.contact-form {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  display: block;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--border-radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition);
  pointer-events: none;
  background: var(--bg-primary);
  padding: 0 0.25rem;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  left: 0.75rem;
  font-size: 0.875rem;
  color: var(--primary);
}

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: none;
}

.submit-btn.loading .btn-text {
  display: none;
}

.submit-btn.loading .btn-loading {
  display: block;
}

/* Form Validation Styles */
.form-group input.error,
.form-group textarea.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.field-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
  animation: fadeInError 0.3s ease;
}

@keyframes fadeInError {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* .form-group input:valid {
  border-color: #28a745;
}

.form-group textarea:valid {
  border-color: #28a745;
} */

/* Form Notice Styles */
.form-notice {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Security Features */
.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Phone Input Specific Styles */
/* #form-phone {
  letter-spacing: 1px;
} */

#form-phone:focus {
  background-color: rgba(0, 123, 255, 0.05);
}

/* Visual feedback for numeric-only input */
#form-phone::placeholder {
  content: "เฉพาะตัวเลข 0-9";
}

/* Add number indicator */
#form-phone + label::after {
  content: " ";
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Loading Animation Enhancement */
.submit-btn.loading {
  pointer-events: none;
}

.submit-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-logo span {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.footer-desc {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-section ul li a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.25rem;
}

.social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Responsive Utilities */
@media (max-width: 767px) {
  .hide-mobile { display: none; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none; }
}

/* AOS Animation Overrides */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* ===================================================
   HERO — MODERN DARK NAVY BACKGROUND
   =================================================== */

.hero-background {
  background: linear-gradient(155deg, #0a1628 0%, #0f2557 40%, #1a3a8a 100%);
}

body.dark .hero-background {
  background: linear-gradient(155deg, #020810 0%, #060f28 40%, #0a1d52 100%);
}

body.dark .system-viz {
  background: transparent;
}

body.dark .system-viz-detail {
  color: inherit;
}

.hero .hero-title {
  background: linear-gradient(135deg, #ffffff 20%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: pre-line;
  word-break: keep-all; /* prevent mid-word breaks in Thai */
}

.hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.82);
}

body:not(.dark) .hero {
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 123, 255, 0.10), transparent 42%),
    radial-gradient(circle at 90% 8%, rgba(40, 167, 69, 0.08), transparent 44%),
    linear-gradient(150deg, #f4f9ff 0%, #f9fcff 58%, #eef6ff 100%);
}

body:not(.dark) .hero .hero-title {
  background: linear-gradient(135deg, #0b4ca1 0%, #0570d1 55%, #1f9f6e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body:not(.dark) .hero .hero-subtitle {
  color: rgba(24, 39, 68, 0.82);
}

body:not(.dark) .site-header {
  box-shadow: 0 8px 28px rgba(15, 43, 78, 0.08);
}

body:not(.dark) .site-header .nav-links a[aria-current="page"] {
  color: #0b4ca1;
}

body:not(.dark) .solutions {
  background:
    radial-gradient(circle at 8% 18%, rgba(31, 124, 255, 0.1), transparent 40%),
    radial-gradient(circle at 92% 10%, rgba(66, 213, 255, 0.12), transparent 42%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

body:not(.dark) .solution-card {
  border-color: rgba(16, 87, 170, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.92));
  box-shadow: 0 8px 20px rgba(16, 67, 127, 0.08);
}

body:not(.dark) .solution-card:hover {
  border-color: rgba(11, 76, 161, 0.42);
  box-shadow: 0 16px 32px rgba(11, 76, 161, 0.16);
}

body:not(.dark) .system-viz {
  background: rgba(255, 255, 255, 0.52);
  border-radius: var(--border-radius);
}

body:not(.dark) .system-viz-core-panel {
  color: #0f2b4e;
}

body:not(.dark) .system-viz-kicker {
  color: rgba(15, 43, 78, 0.68);
}

body:not(.dark) .system-viz-title {
  color: #0f2b4e;
}

body:not(.dark) .system-viz-desc {
  color: rgba(15, 43, 78, 0.78);
}

body:not(.dark) .system-viz-link {
  color: #0b4ca1;
}

body:not(.dark) .mesh-label {
  fill: #0f2b4e;
  text-shadow: none;
}

.hero .stat-item {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.hero .stat-number {
  color: #f59e0b;
}

.hero .stat-label {
  color: rgba(255, 255, 255, 0.72);
}

.hero .cta.primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.hero .cta.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.52);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.hero .cta.secondary {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
}

.hero .cta.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.7);
}

body:not(.dark) .hero .stat-item {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(0, 86, 179, 0.16);
  box-shadow: 0 14px 30px rgba(10, 71, 145, 0.08);
}

body:not(.dark) .hero .stat-number {
  color: #0b4ca1;
}

body:not(.dark) .hero .stat-label {
  color: rgba(21, 52, 95, 0.84);
}

body:not(.dark) .hero .cta.primary {
  background: linear-gradient(135deg, #0b5bc2, #1f7cff);
  box-shadow: 0 10px 26px rgba(19, 84, 161, 0.24);
}

body:not(.dark) .hero .cta.primary:hover {
  background: linear-gradient(135deg, #0a4da7, #1269db);
}

body:not(.dark) .hero .cta.secondary {
  color: #0b4ca1;
  border-color: rgba(11, 76, 161, 0.36);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(18, 69, 133, 0.12);
}

body:not(.dark) .hero .cta.secondary:hover {
  background: #0b4ca1;
  color: #ffffff;
  border-color: #0b4ca1;
}

.scroll-arrow {
  border-color: rgba(255, 255, 255, 0.45);
}

/* ===================================================
   SERVICE CARDS — ACCENT TOP BORDER ON HOVER
   =================================================== */

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

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

/* 3-column grid on large screens for 6 service cards */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================================================
   INDUSTRIES SECTION
   =================================================== */

.industries {
  background: var(--bg-primary);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 540px) {
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .industries-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }
}

.industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.75rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  cursor: default;
}

.industry-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px var(--shadow);
  background: var(--bg-primary);
}

.industry-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.industry-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

.industry-card small {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ===================================================
   GROWTH BAND SECTION
   =================================================== */

.growth-band {
  background: linear-gradient(135deg, #0f2557 0%, #1a3a8a 50%, #1d4ed8 100%);
  color: white;
  padding: 4rem 0;
}

.growth-band .section-header {
  margin-bottom: 2rem;
}

.growth-band .section-title {
  color: white;
}

.growth-band .section-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.growth-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .growth-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .growth-stats {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

.growth-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.growth-stat:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.growth-stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 0.3rem;
  letter-spacing: -0.5px;
}

.growth-stat-year {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.3rem;
}

.growth-stat-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: #86efac;
  font-weight: 500;
}

/* ===================================================
   PROCESS SECTION
   =================================================== */

.process {
  background: var(--bg-secondary);
}

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

@media (min-width: 640px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
  }

  .process-steps::before {
    content: '';
    position: absolute;
    top: 44px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.22;
    z-index: 0;
  }
}

.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px var(--shadow);
  border-color: var(--primary);
}

.process-number {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.process-emoji {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.process-step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* ===================================================
   WHY-CARD — SUBTLE BACKGROUND NUMBER
   =================================================== */

.why-card {
  position: relative;
  overflow: hidden;
}

.why-card::after {
  content: attr(data-index);
  position: absolute;
  bottom: -12px;
  right: 8px;
  font-size: 5.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  font-family: var(--font-secondary);
  transition: opacity 0.3s ease;
}

.why-card:hover::after {
  opacity: 0.09;
}

/* ===================================================
   ABOUT SECTION — ENHANCED FEATURE LIST
   =================================================== */

.about-features .feature-item {
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition-fast);
}

.about-features .feature-item:hover {
  border-color: var(--primary);
  background: var(--bg-primary);
}

/* ===================================================
   MOBILE — HERO PADDING FIX
   (title too close to fixed header on small screens)
   =================================================== */

@media (max-width: 767px) {
  .hero {
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
  }

  .hero-content {
    gap: 1.65rem;
  }

  .hero-text {
    margin-top: 0;
    padding-top: 0;
  }

  .hero-title {
    margin-top: 0;
  }

  .hero-visual {
    min-height: 500px;
  }

  .system-viz-stage {
    min-height: 440px;
  }

  .system-viz {
    min-height: auto;
  }

  .viz-switch {
    left: 0.75rem;
    top: 0.75rem;
  }

  .viz-btn {
    font-size: 0.68rem;
    padding: 0.45rem 0.72rem;
  }

  .system-viz-core-panel {
    width: 100%;
    margin-top: 0.85rem;
  }

  .system-viz-title {
    font-size: 1.15rem;
  }

  .system-viz-desc {
    font-size: 0.84rem;
  }

  .mesh-label {
    font-size: 10px;
  }

  .mesh-core-text {
    font-size: 13px;
  }
}

@media (max-width: 980px) {
  body.nav-open {
    overflow: hidden;
  }

  .site-header .nav-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "brand controls menu"
      "nav nav nav";
    align-items: center;
    row-gap: 0.7rem;
  }

  .site-header .brand {
    grid-area: brand;
  }

  .site-header .controls {
    grid-area: controls;
    margin-left: auto;
  }

  .mobile-menu-btn {
    display: inline-flex;
    grid-area: menu;
  }

  .site-header .nav-links {
    grid-area: nav;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--border);
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  }

  .site-header.menu-open .nav-links {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 30px rgba(2, 8, 23, 0.16);
    padding-bottom: 0.35rem;
  }

  .site-header .nav-links a {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    width: min(100%, 17rem);
    margin: 0 auto;
    padding: 0.72rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-primary) 88%, transparent);
    text-align: center;
  }

  .site-header .nav-links a::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 1.3rem;
    padding-bottom: 1.3rem;
  }

  .hero-content {
    gap: 1.25rem;
  }

  .site-header .brand small {
    display: none;
  }

  .site-header .controls .btn-ghost {
    padding: 0.45rem 0.72rem;
    font-size: 0.75rem;
  }

  .site-header .nav-links a {
    width: 100%;
  }
}

/* ===================================================
   LEAFLET MAP — ABOUT SECTION
   =================================================== */

.nksl-map {
  height: 340px;
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 1;
  position: relative;
  background: var(--bg-secondary);
}

/* On desktop: map stretches to match left-column height */
@media (min-width: 768px) {
  .about-visual {
    display: flex;
    flex-direction: column;
  }

  .about-visual .nksl-map {
    flex: 1 1 0;
    height: auto;
    min-height: 220px;
  }
}

.map-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
  font-size: 1rem;
  gap: 0.5rem;
}

.map-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid white;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.12);
}

.legend-dot--hq     { background: #1d4ed8; }
.legend-dot--branch { background: #16a34a; }
.legend-dot--fleet  { background: #d97706; }

/* Leaflet custom tooltip */
.nksl-tooltip.leaflet-tooltip {
  background: rgba(15, 23, 42, 0.88) !important;
  border: none !important;
  border-radius: 6px !important;
  color: white !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  font-family: var(--font-primary) !important;
  padding: 4px 10px !important;
  white-space: nowrap !important;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.nksl-tooltip.leaflet-tooltip-top::before {
  border-top-color: rgba(15, 23, 42, 0.88) !important;
}

/* Leaflet popup font */
.leaflet-popup-content-wrapper,
.leaflet-popup-content {
  font-family: var(--font-primary) !important;
  font-size: 0.85rem !important;
  line-height: 1.5 !important;
}

/* ===================================================
   FEATURED SERVICE CARD — CUSTOMS CLEARANCE
   =================================================== */

.service-card--featured {
  border: 2px solid var(--primary);
  background: linear-gradient(
    160deg,
    var(--bg-primary) 0%,
    color-mix(in srgb, var(--primary) 5%, var(--bg-primary)) 100%
  );
  position: relative;
}

/* Fallback for browsers without color-mix */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .service-card--featured {
    background: var(--bg-primary);
  }
}

.service-card--featured::before {
  transform: scaleX(1) !important; /* Always show top accent */
}

.service-card--featured .service-icon {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

/* "ผู้เชี่ยวชาญ" badge */
.service-card--featured::after {
  content: '\2605 ผู้เชี่ยวชาญ';
  position: absolute;
  top: -1px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.4px;
  z-index: 1;
}

/* ===================================================
   FLEET SECTION
   =================================================== */

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

.fleet-areas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .fleet-areas {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fleet-area-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: var(--transition);
}

.fleet-area-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 28px var(--shadow);
}

.fleet-area-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.fleet-area-badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.fleet-area-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.fleet-area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
}

@media (min-width: 480px) {
  .fleet-area-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fleet-area-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.5rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border);
  gap: 0.2rem;
}

.fas-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.fas-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
}

.fas-detail {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.fleet-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.04), rgba(40, 167, 69, 0.04));
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
}

.fleet-cap-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  text-align: center;
  background: var(--bg-primary);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  line-height: 1.4;
  flex: 1 1 140px;
  max-width: 160px;
}

.fleet-cap-item:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.fleet-cap-icon {
  font-size: 1.5rem;
}

/* ===================================================
   WHY-CARD — ICONS + 3-COLUMN GRID FOR 6 CARDS
   =================================================== */

.why-card-icon {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
  transition: transform 0.25s ease;
}

.why-card:hover .why-card-icon {
  transform: scale(1.12);
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================================================
   FLEET SECTION — DARK NAVY (matches growth-band)
   =================================================== */

.fleet-section {
  background: linear-gradient(135deg, #0f2557 0%, #1a3a8a 50%, #1d4ed8 100%);
  color: white;
}

.fleet-section .section-title {
  color: white;
}

.fleet-section .section-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.fleet-section .fleet-area-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.fleet-section .fleet-area-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.fleet-section .fleet-area-header h3 {
  color: white;
}

.fleet-section .fleet-area-stat {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}

.fleet-section .fas-number {
  color: #fbbf24;
}

.fleet-section .fas-label {
  color: rgba(255, 255, 255, 0.9);
}

.fleet-section .fas-detail {
  color: rgba(255, 255, 255, 0.55);
}

.fleet-section .fleet-capabilities {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.fleet-section .fleet-cap-item {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
}

.fleet-section .fleet-cap-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  transform: translateY(-2px);
}

/* ===================================================
   VISUAL QUALITY — MINOR POLISH
   =================================================== */

/* Better section title underline accent */
.section-title {
  position: relative;
  display: inline-block;
}

/* Smooth gradient on service icon ring animation — reduce motion */
@media (prefers-reduced-motion: reduce) {
  .service-icon::before,
  .hero-particles,
  #truck,
  .loading-spinner {
    animation: none;
  }
}

/* Improve contact icon fill on hover */
.contact-icon {
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* Footer social links cleaner */
.social-links a {
  text-decoration: none;
  color: var(--text-secondary);
}

/* Testimonial quote styling */
.testimonial-content p {
  position: relative;
}

.testimonial-content p::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  line-height: 1;
  font-family: Georgia, serif;
}