/* ═══════════════════════════════════════════════════════════════════════
   Archtrix — Web Portal Styles (compiled from scss/main.scss)
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --primary: #1e3a5f;
  --primary-2: #2d5986;
  --primary-3: #1a4a7a;
  --accent: #38bdf8;
  --accent-2: #fbbf24;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --bg-soft: #f8fafc;
  --bg-soft-2: #f1f5f9;
  --border-soft: #e2e8f0;
  --nav-h: 72px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.15);
  --font-thai: 'Prompt', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-thai);
  color: var(--text-body);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-top: 72px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
}

a { text-decoration: none; transition: color .2s; }

/* ── Navbar ───────────────────────────────────────────────────────── */
.navbar-fixed-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1040;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  height: 72px;
  border-bottom: 1px solid var(--border-soft);
  transition: all .3s;
}
.navbar-fixed-top.scrolled { box-shadow: var(--shadow-md); }

.navbar-fixed-top .brand-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5986 60%, #1a4a7a 100%);
  color: #fff;
  font-weight: 800; font-size: 16px; letter-spacing: .5px;
  margin-right: 10px;
  box-shadow: 0 6px 14px rgba(30,58,95,.25);
}
.navbar-fixed-top .brand-text {
  display: inline-flex; flex-direction: column; line-height: 1.1;
}
.navbar-fixed-top .brand-title { font-weight: 700; color: var(--text-dark); font-size: 16px; }
.navbar-fixed-top .brand-sub   { font-size: 11px; color: var(--text-muted); font-weight: 500; letter-spacing: .3px; }

.navbar-fixed-top .nav-link {
  color: var(--text-body) !important;
  font-weight: 500; font-size: 15px;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: all .2s;
}
.navbar-fixed-top .nav-link:hover,
.navbar-fixed-top .nav-link.active {
  color: var(--primary) !important;
  background: rgba(30,58,95,.06);
}

.navbar-fixed-top .btn-demo {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5986 100%);
  color: #fff !important;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(30,58,95,.28);
  transition: all .25s;
}
.navbar-fixed-top .btn-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(30,58,95,.35);
}

/* Language toggle */
.navbar-fixed-top .btn-lang {
  background: transparent;
  border: 1.5px solid var(--border-soft);
  color: var(--text-body);
  font-weight: 600;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
  cursor: pointer;
}
.navbar-fixed-top .btn-lang i { font-size: 15px; color: var(--primary); }
.navbar-fixed-top .btn-lang .lang-current {
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--primary);
}
.navbar-fixed-top .btn-lang:hover {
  border-color: var(--primary);
  background: rgba(30,58,95,.04);
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  margin-top: -72px;
  padding-top: 72px;
}
.hero .min-vh-hero { min-height: calc(100vh - 72px - 70px); padding: 80px 0 100px; }

.hero .hero-slide { position: relative; overflow: hidden; }
.hero .slide-1 { background: linear-gradient(135deg, #1e3a5f 0%, #2d5986 55%, #1a4a7a 100%); }
.hero .slide-2 { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0c4a6e 100%); }
.hero .slide-3 { background: linear-gradient(135deg, #312e81 0%, #1e40af 50%, #1e3a5f 100%); }
.hero .slide-4 { background: linear-gradient(135deg, #0c4a6e 0%, #0e7490 50%, #0f766e 100%); }

.hero .hero-overlay {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(56,189,248,.15) 0%, transparent 45%);
  pointer-events: none;
}

.hero .hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 20px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero .hero-title {
  color: #fff;
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.hero .hero-title .accent {
  background: linear-gradient(90deg, #38bdf8 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .hero-lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(255,255,255,.85);
  max-width: 580px;
  margin-bottom: 32px;
}

.hero .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .hero-cta .btn-primary-hero,
.hero .hero-cta .btn-ghost-hero {
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
}
.hero .hero-cta .btn-primary-hero {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.hero .hero-cta .btn-primary-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}
.hero .hero-cta .btn-ghost-hero {
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.5);
  color: #fff;
}
.hero .hero-cta .btn-ghost-hero:hover {
  background: rgba(255,255,255,.2);
  border-color: #fff;
}

/* Hero visual — floating cards */
.hero .hero-visual {
  position: relative;
  width: 420px; height: 420px;
  margin: 0 auto;
}
.hero .hero-visual .visual-core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.8) 100%);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
  z-index: 2;
}
.hero .hero-visual .visual-card {
  position: absolute;
  background: rgba(255,255,255,.96);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}
.hero .hero-visual .visual-card i { font-size: 22px; }
.hero .hero-visual .vc-1 { top: 8%; left: 8%; animation-delay: 0s; }
.hero .hero-visual .vc-2 { top: 4%; right: 12%; animation-delay: 1s; }
.hero .hero-visual .vc-3 { bottom: 34%; left: -2%; animation-delay: 2s; }
.hero .hero-visual .vc-4 { bottom: 34%; right: -2%; animation-delay: 3s; }
.hero .hero-visual .vc-5 { bottom: 4%; left: 50%; transform: translateX(-50%); animation-delay: 4s; }

/* Mock chart */
.hero .mock-chart {
  background: rgba(255,255,255,.96);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
  max-width: 420px;
  margin: 0 auto;
}
.hero .mock-chart .mc-header {
  display: flex; gap: 6px; margin-bottom: 18px;
}
.hero .mock-chart .mc-header span {
  width: 12px; height: 12px; border-radius: 50%; background: #cbd5e1;
}
.hero .mock-chart .mc-body {
  display: flex; align-items: flex-end; gap: 10px;
  height: 220px;
}
.hero .mock-chart .mc-bar {
  flex: 1;
  background: linear-gradient(180deg, #38bdf8 0%, #1e3a5f 100%);
  border-radius: 8px 8px 0 0;
  animation: rise 1s ease-out backwards;
}
.hero .mock-chart .mc-bar:nth-child(1) { animation-delay: .05s; }
.hero .mock-chart .mc-bar:nth-child(2) { animation-delay: .15s; }
.hero .mock-chart .mc-bar:nth-child(3) { animation-delay: .25s; }
.hero .mock-chart .mc-bar:nth-child(4) { animation-delay: .35s; }
.hero .mock-chart .mc-bar:nth-child(5) { animation-delay: .45s; }
.hero .mock-chart .mc-bar:nth-child(6) { animation-delay: .55s; }

/* Mock radar */
.hero .mock-radar { position: relative; width: 360px; height: 360px; margin: 0 auto; }
.hero .mock-radar .radar-ring {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%;
}
.hero .mock-radar .r1 { width: 100%; height: 100%; }
.hero .mock-radar .r2 { width: 66%; height: 66%; }
.hero .mock-radar .r3 { width: 33%; height: 33%; }
.hero .mock-radar .radar-poly {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 78%; height: 78%;
  background:
    conic-gradient(from -90deg,
      rgba(56,189,248,.5) 0deg 72deg,
      rgba(56,189,248,.35) 72deg 144deg,
      rgba(56,189,248,.55) 144deg 216deg,
      rgba(56,189,248,.3) 216deg 288deg,
      rgba(56,189,248,.5) 288deg 360deg);
  clip-path: polygon(50% 0%, 98% 38%, 80% 95%, 20% 95%, 2% 38%);
  filter: drop-shadow(0 0 20px rgba(56,189,248,.5));
}
.hero .mock-radar .radar-label { position: absolute; color: #fff; font-size: 12px; font-weight: 600; }
.hero .mock-radar .rl-1 { top: -14px; left: 50%; transform: translateX(-50%); }
.hero .mock-radar .rl-2 { top: 32%; right: -20px; }
.hero .mock-radar .rl-3 { bottom: 4%; right: 2%; }
.hero .mock-radar .rl-4 { bottom: 4%; left: 2%; }
.hero .mock-radar .rl-5 { top: 32%; left: -20px; }

/* Mock matrix */
.hero .mock-matrix {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  width: 320px; max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.16);
}
.hero .mock-matrix .mm-cell {
  aspect-ratio: 1;
  background: rgba(255,255,255,.14);
  border-radius: var(--radius-sm);
}
.hero .mock-matrix .mm-cell.on {
  background: var(--accent);
  box-shadow: 0 0 20px rgba(56,189,248,.6);
}

/* Carousel controls */
.hero .carousel-indicators { bottom: 90px; z-index: 10; }
.hero .carousel-indicators [data-bs-target] {
  width: 40px; height: 4px; border-radius: 999px;
  background: rgba(255,255,255,.4);
  border: 0; margin: 0 4px;
}
.hero .carousel-indicators .active { background: #fff; }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 5%; }
.hero .carousel-control-prev-icon,
.hero .carousel-control-next-icon {
  background-size: 24px;
  background-color: rgba(255,255,255,.1);
  border-radius: 50%;
  padding: 18px;
}

/* Stats strip */
.hero .stats-strip {
  background: #fff;
  border-bottom: 1px solid var(--border-soft);
  padding: 30px 0;
}
.hero .stats-strip .stat-cell {
  padding: 10px;
  border-right: 1px solid var(--border-soft);
}
.hero .stats-strip .stat-cell:last-child { border-right: 0; }
.hero .stats-strip .stat-num {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .stats-strip .stat-label { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* ── Section common ───────────────────────────────────────────────── */
.section { padding: 90px 0; position: relative; }
.section-features     { background: #fff; }
.section-modules      { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }
.section-architecture { background: var(--bg-soft); }
.section-diagrams     { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.section-reports      { background: #fff; }
.section-demo         { background: linear-gradient(135deg, #1e3a5f 0%, #2d5986 60%, #1a4a7a 100%); color: #fff; }
.section-contact      { background: var(--bg-soft); }

.section-head { max-width: 740px; margin: 0 auto 20px; }
.section-head .section-chip {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(30,58,95,.08);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 16px;
}
.section-head .section-chip.light { background: rgba(255,255,255,.18); color: #fff; }
.section-head .section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}
.section-head .section-sub { color: var(--text-muted); font-size: 16px; }

/* ── Features ─────────────────────────────────────────────────────── */
.feature-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  height: 100%;
  transition: all .3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-card .fc-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 26px;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(0,0,0,.1);
}
.bg-gradient-blue   { background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%); }
.bg-gradient-green  { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.bg-gradient-purple { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.bg-gradient-orange { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.bg-gradient-red    { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }
.bg-gradient-teal   { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }
.bg-gradient-pink   { background: linear-gradient(135deg, #ec4899 0%, #be185d 100%); }
.bg-gradient-indigo { background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%); }
.bg-gradient-dark   { background: linear-gradient(135deg, #334155 0%, #0f172a 100%); }

.feature-card h5 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ── Modules ──────────────────────────────────────────────────────── */
.module-pill {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex; align-items: center; gap: 12px;
  font-weight: 500;
  color: var(--text-dark);
  transition: all .25s;
  height: 100%;
}
.module-pill i {
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
}
.module-pill span { font-size: 14px; }
.module-pill:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  background: linear-gradient(135deg, #fff 0%, rgba(56,189,248,.04) 100%);
}

/* ── Architecture Layers ──────────────────────────────────────────── */
.layer-stack {
  max-width: 880px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 16px;
}
.layer-stack .layer {
  display: grid;
  grid-template-columns: 72px 1fr 100px;
  align-items: center; gap: 22px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  transition: all .3s;
}
.layer-stack .layer .layer-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 28px;
}
.layer-stack .layer .layer-body h5 { font-size: 1.1rem; margin-bottom: 4px; }
.layer-stack .layer .layer-body p  { color: var(--text-muted); font-size: 14px; margin: 0; }
.layer-stack .layer .layer-level {
  font-size: 12px; font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-align: right;
}
.layer-stack .layer:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.layer-business   .layer-icon { background: linear-gradient(135deg, #3b82f6, #1e40af); }
.layer-application .layer-icon { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.layer-data       .layer-icon { background: linear-gradient(135deg, #10b981, #047857); }
.layer-technology .layer-icon { background: linear-gradient(135deg, #f59e0b, #b45309); }
.layer-security   .layer-icon { background: linear-gradient(135deg, #ef4444, #991b1b); }

/* ── Diagrams & Modeling ──────────────────────────────────────────── */
.layer-relation-wrap {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.layer-relation-wrap .lr-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.layer-relation-wrap .lr-title {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--text-dark); font-size: 16px;
}
.layer-relation-wrap .lr-title i { color: var(--primary); font-size: 22px; }
.layer-relation-wrap .lr-legend {
  display: inline-flex; flex-wrap: wrap; gap: 14px;
  font-size: 13px; color: var(--text-muted);
  align-items: center;
}
.layer-relation-wrap .lr-legend .lr-dot {
  display: inline-block;
  width: 10px; height: 10px; border-radius: 50%;
  margin-right: 4px;
}
.lr-dot.d-biz  { background: #3b82f6; }
.lr-dot.d-app  { background: #8b5cf6; }
.lr-dot.d-data { background: #10b981; }
.lr-dot.d-tech { background: #f59e0b; }
.lr-dot.d-sec  { background: #ef4444; }

.layer-relation-wrap .lr-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 2.5 / 1;
  min-height: 300px;
  background:
    radial-gradient(circle at 50% 50%, rgba(30,58,95,.04) 0%, transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.layer-relation-wrap .lr-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.layer-relation-wrap .lr-node {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  min-width: 130px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 6px 18px rgba(15,23,42,.08);
  border: 2px solid transparent;
  font-weight: 600; color: var(--text-dark); font-size: 13px;
  transition: all .25s;
  z-index: 2;
}
.layer-relation-wrap .lr-node i { font-size: 20px; }
.layer-relation-wrap .lr-node:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(15,23,42,.15); }
.layer-relation-wrap .n-biz  { top: 14%; left: 10%;  border-color: #3b82f6; }
.layer-relation-wrap .n-biz  i { color: #3b82f6; }
.layer-relation-wrap .n-app  { top: 14%; left: 45%;  border-color: #8b5cf6; transform: translateX(-50%); }
.layer-relation-wrap .n-app  i { color: #8b5cf6; }
.layer-relation-wrap .n-data { top: 14%; right: 10%; border-color: #10b981; }
.layer-relation-wrap .n-data i { color: #10b981; }
.layer-relation-wrap .n-tech { bottom: 14%; left: 15%; border-color: #f59e0b; }
.layer-relation-wrap .n-tech i { color: #f59e0b; }
.layer-relation-wrap .n-sec  { bottom: 14%; right: 15%; border-color: #ef4444; }
.layer-relation-wrap .n-sec  i { color: #ef4444; }

.layer-relation-wrap .lr-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 60%, var(--primary-3) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-weight: 800; font-size: 14px;
  box-shadow: 0 14px 36px rgba(30,58,95,.35);
  z-index: 3;
}

.layer-relation-wrap .lr-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 14px;
}

.diagram-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: all .3s;
}
.diagram-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%);
}
.diagram-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.diagram-card .dc-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 24px;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.diagram-card h5 { font-size: 1.05rem; margin-bottom: 10px; font-weight: 700; }
.diagram-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 16px;
  min-height: 66px;
}
.diagram-card .dc-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  transition: gap .2s;
}
.diagram-card .dc-link:hover { gap: 10px; }

/* diagram card tones */
.diagram-card.tone-indigo::before { background: linear-gradient(90deg, #6366f1, #4338ca); }
.diagram-card.tone-indigo .dc-icon { background: linear-gradient(135deg, #6366f1, #4338ca); }
.diagram-card.tone-blue::before   { background: linear-gradient(90deg, #3b82f6, #1e40af); }
.diagram-card.tone-blue   .dc-icon { background: linear-gradient(135deg, #3b82f6, #1e40af); }
.diagram-card.tone-purple::before { background: linear-gradient(90deg, #8b5cf6, #6d28d9); }
.diagram-card.tone-purple .dc-icon { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.diagram-card.tone-amber::before  { background: linear-gradient(90deg, #f59e0b, #b45309); }
.diagram-card.tone-amber  .dc-icon { background: linear-gradient(135deg, #f59e0b, #b45309); }
.diagram-card.tone-green::before  { background: linear-gradient(90deg, #10b981, #047857); }
.diagram-card.tone-green  .dc-icon { background: linear-gradient(135deg, #10b981, #047857); }
.diagram-card.tone-red::before    { background: linear-gradient(90deg, #ef4444, #991b1b); }
.diagram-card.tone-red    .dc-icon { background: linear-gradient(135deg, #ef4444, #991b1b); }
.diagram-card.tone-teal::before   { background: linear-gradient(90deg, #14b8a6, #0d9488); }
.diagram-card.tone-teal   .dc-icon { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.diagram-card.tone-pink::before   { background: linear-gradient(90deg, #ec4899, #be185d); }
.diagram-card.tone-pink   .dc-icon { background: linear-gradient(135deg, #ec4899, #be185d); }
.diagram-card.tone-dark::before   { background: linear-gradient(90deg, #334155, #0f172a); }
.diagram-card.tone-dark   .dc-icon { background: linear-gradient(135deg, #334155, #0f172a); }

/* ── Reports ──────────────────────────────────────────────────────── */
.report-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--border-soft);
  transition: all .3s;
}
.report-card .rc-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 28px;
}
.report-card.pdf  .rc-icon { background: linear-gradient(135deg, #ef4444, #991b1b); }
.report-card.word .rc-icon { background: linear-gradient(135deg, #2563eb, #1e3a8a); }
.report-card.csv  .rc-icon { background: linear-gradient(135deg, #10b981, #047857); }
.report-card.json .rc-icon { background: linear-gradient(135deg, #f59e0b, #b45309); }
.report-card h6 { font-weight: 700; margin-bottom: 8px; }
.report-card p { color: var(--text-muted); font-size: 13px; margin: 0; }
.report-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.report-list {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.report-list .rl-item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 14px;
  border: 1px solid var(--border-soft);
  transition: all .2s;
}
.report-list .rl-item i { color: var(--primary); font-size: 18px; }
.report-list .rl-item:hover {
  border-color: var(--primary);
  background: linear-gradient(90deg, rgba(30,58,95,.04), #fff);
  transform: translateX(4px);
}
.report-list .rl-item.rl-warn {
  background: linear-gradient(90deg, rgba(239,68,68,.06), #fff);
  border-color: rgba(239,68,68,.3);
}
.report-list .rl-item.rl-warn i { color: #ef4444; }
.report-list .rl-item.rl-warn:hover {
  border-color: #ef4444;
  background: linear-gradient(90deg, rgba(239,68,68,.1), #fff);
}

/* ── Demo ─────────────────────────────────────────────────────────── */
.section-demo { position: relative; overflow: hidden; }
.section-demo::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(56,189,248,.22) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(251,191,36,.18) 0%, transparent 45%);
  pointer-events: none;
}
.section-demo .demo-card {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 50px 40px;
  background: rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.14);
}
.section-demo .demo-title {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 16px 0 12px;
}
.section-demo .demo-sub {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  margin-bottom: 30px;
}
.section-demo .demo-actions {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.section-demo .demo-actions .btn-demo-primary,
.section-demo .demo-actions .btn-demo-ghost {
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex; align-items: center;
  transition: all .25s;
}
.section-demo .demo-actions .btn-demo-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.section-demo .demo-actions .btn-demo-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.section-demo .demo-actions .btn-demo-ghost {
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.5);
  color: #fff;
}
.section-demo .demo-actions .btn-demo-ghost:hover { background: rgba(255,255,255,.22); }

.section-demo .demo-creds {
  display: inline-flex; flex-wrap: wrap; gap: 16px; justify-content: center;
  margin-top: 30px;
}
.section-demo .cred-box {
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 12px 22px;
  text-align: left;
}
.section-demo .cred-label {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.section-demo .cred-value code {
  color: #fff;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
}

/* ── Contact ──────────────────────────────────────────────────────── */
.contact-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  text-align: center;
  height: 100%;
  transition: all .3s;
}
.contact-card .cc-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
}
.contact-card h6 { font-weight: 700; margin-bottom: 10px; }
.contact-card a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 15px;
}
.contact-card a:hover { color: var(--primary); }
.contact-card .cc-note { color: var(--text-muted); font-size: 13px; margin: 10px 0 0; }
.contact-card.social.line .cc-icon { background: linear-gradient(135deg, #06c755, #00b900); }
.contact-card.social.fb   .cc-icon { background: linear-gradient(135deg, #1877f2, #0c5fc4); }
.contact-card.social.yt   .cc-icon { background: linear-gradient(135deg, #ff0000, #cc0000); }
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.inquiry-wrap {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.inquiry-wrap .inquiry-side {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  padding: 44px 36px;
}
.inquiry-wrap .inquiry-side h4 { color: #fff; margin-bottom: 14px; font-size: 1.5rem; }
.inquiry-wrap .inquiry-side p  { color: rgba(255,255,255,.85); }
.inquiry-wrap .inquiry-list {
  list-style: none; padding: 20px 0 0; margin: 0;
}
.inquiry-wrap .inquiry-list li {
  padding: 8px 0;
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.95);
}
.inquiry-wrap .inquiry-list li i { color: #4ade80; font-size: 18px; }
.inquiry-wrap .inquiry-form-col { padding: 44px 36px; }
.inquiry-wrap .inquiry-form .form-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.inquiry-wrap .inquiry-form .form-control {
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font-thai);
}
.inquiry-wrap .inquiry-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,58,95,.1);
}
.inquiry-wrap .inquiry-form .btn-submit {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 999px;
  border: 0;
  transition: all .25s;
}
.inquiry-wrap .inquiry-form .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30,58,95,.3);
}

/* ── Footer ───────────────────────────────────────────────────────── */
.footer {
  background: #0f172a;
  color: rgba(255,255,255,.7);
  padding: 70px 0 0;
  position: relative;
}
.footer .footer-title {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: .3px;
}
.footer .footer-about { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.7; }
.footer .footer-links, .footer .footer-contact {
  list-style: none; padding: 0; margin: 0;
}
.footer .footer-links li, .footer .footer-contact li { padding: 5px 0; font-size: 14px; }
.footer .footer-links a, .footer .footer-contact a {
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.footer .footer-links a:hover, .footer .footer-contact a:hover { color: var(--accent); }
.footer .footer-contact i { margin-right: 8px; color: var(--accent); }
.footer .footer-social { margin-top: 20px; }
.footer .footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 8px;
  transition: all .25s;
  font-size: 16px;
}
.footer .footer-social a:hover {
  background: var(--primary-2);
  transform: translateY(-2px);
}
.footer .brand-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 60%, var(--primary-3) 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: .5px;
}
.footer .brand-text {
  display: inline-flex; flex-direction: column; line-height: 1.1;
}
.footer .brand-text .brand-title { font-weight: 700; font-size: 15px; color: #fff; }
.footer .brand-text .brand-sub   { font-size: 11px; color: rgba(255,255,255,.6); }
.footer .footer-bottom {
  margin-top: 50px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}
.footer .footer-bottom a { color: rgba(255,255,255,.7); }
.footer .footer-bottom a:hover { color: var(--accent); }

/* ── Back to top ──────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(30,58,95,.3);
  z-index: 1030;
  font-size: 18px;
  transition: all .25s;
}
.back-to-top.show { display: inline-flex; }
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(30,58,95,.4);
}

/* ── Animations ───────────────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes rise {
  from { height: 0 !important; opacity: .3; }
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .navbar-fixed-top .navbar-collapse {
    background: #fff;
    padding: 14px;
    margin-top: 10px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }
  .navbar-fixed-top .btn-demo { margin-top: 8px; display: inline-block; }

  .hero .min-vh-hero { padding: 60px 0 90px; }
  .hero .carousel-indicators { bottom: 30px; }

  .layer-stack .layer {
    grid-template-columns: 56px 1fr;
  }
  .layer-stack .layer .layer-level {
    grid-column: 2;
    text-align: left;
    padding-top: 4px;
  }
  .layer-stack .layer .layer-icon { width: 48px; height: 48px; font-size: 22px; }

  .section { padding: 64px 0; }
}

@media (max-width: 767.98px) {
  .layer-relation-wrap { padding: 18px; }
  .layer-relation-wrap .lr-canvas { aspect-ratio: 1.2 / 1; min-height: 360px; }
  .layer-relation-wrap .lr-node { min-width: 100px; font-size: 12px; padding: 8px 12px; }
  .layer-relation-wrap .lr-node i { font-size: 16px; }
  .layer-relation-wrap .lr-core { width: 76px; height: 76px; font-size: 12px; }
  .layer-relation-wrap .lr-head { flex-direction: column; align-items: flex-start; }
  .diagram-card p { min-height: auto; }
}

@media (max-width: 575.98px) {
  .hero .hero-title { font-size: 2rem; }
  .hero .hero-cta { flex-direction: column; align-items: stretch; }
  .hero .hero-cta .btn-primary-hero,
  .hero .hero-cta .btn-ghost-hero { justify-content: center; }

  .section { padding: 50px 0; }
  .section-head .section-title { font-size: 1.6rem; }

  .section-demo .demo-card { padding: 30px 20px; }
  .section-demo .demo-actions { flex-direction: column; }
  .section-demo .demo-actions .btn-demo-primary,
  .section-demo .demo-actions .btn-demo-ghost { justify-content: center; }

  .hero .hero-visual { width: 100%; height: 380px; }
}

/* ── Integrations ────────────────────────────────────────────── */
.section-integrations { background: linear-gradient(180deg, #f3f6fb 0%, #ffffff 100%); }

.integ-tools {
  background: #ffffff;
  border: 1px solid #e5ebf2;
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.integ-tools .it-head { text-align: center; }
.integ-tools .it-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1e3a5f;
}
.integ-tools .it-title i { color: #2e7ad6; }
.integ-tools .it-sub {
  color: #6b7a90;
  font-size: 14px;
  margin-top: 4px;
}
.integ-tools .it-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(30, 58, 95, 0.04);
  border-left: 3px solid #2e7ad6;
  border-radius: 8px;
  padding: 10px 14px;
  color: #6b7a90;
  font-size: 13px;
}
.integ-tools .it-note i {
  color: #2e7ad6;
  margin-top: 2px;
}
