:root {
  --navy: #0d1326;
  --navy-2: #111b33;
  --blue: #0084ff;
  --blue-soft: #e8f3ff;
  --violet: #7c3aed;
  --soft: #f7f9fc;
  --muted: #64748b;
  --line: rgba(13, 19, 38, 0.1);
  --white: #ffffff;
  --radius-xl: 42px;
  --radius-lg: 30px;
  --radius-md: 22px;
  --shadow: 0 28px 90px rgba(13, 19, 38, 0.13);
  --soft-shadow: 0 18px 48px rgba(13, 19, 38, 0.08);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--navy);
  background: #f8fbff;
  font-family: "Inter", "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

body.nav-locked {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  color: white;
  background: var(--violet);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, rgba(0, 132, 255, 0.16), transparent 34%), #ffffff;
}

.preloader-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.preloader-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.preloader-card strong {
  display: block;
  font-family: "Comfortaa", "Noto Sans Thai", sans-serif;
  font-size: 1.25rem;
}

.preloader-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.preloader-line {
  position: absolute;
  bottom: 44px;
  left: 50%;
  width: min(360px, calc(100% - 48px));
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(13, 19, 38, 0.08);
  overflow: hidden;
}

.preloader-line span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--blue));
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2500;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--blue));
  box-shadow: 0 0 20px rgba(0, 132, 255, 0.5);
}

.cursor-glow {
  position: fixed;
  z-index: 0;
  width: 360px;
  height: 360px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 132, 255, 0.16), transparent 62%);
  transform: translate(-50%, -50%);
  opacity: 0;
  mix-blend-mode: multiply;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 48%, #edf5ff 100%);
}

.orb {
  position: absolute;
  width: 34vw;
  height: 34vw;
  min-width: 320px;
  min-height: 320px;
  border-radius: 50%;
  filter: blur(58px);
  opacity: 0.24;
}

.orb-a {
  top: -10vw;
  left: -8vw;
  background: var(--violet);
}

.orb-b {
  top: 8vw;
  right: -10vw;
  background: var(--blue);
}

.orb-c {
  bottom: -14vw;
  left: 28vw;
  background: #61b7ff;
}

.grid-layer {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: linear-gradient(rgba(13, 19, 38, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 19, 38, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.noise-layer {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: radial-gradient(rgba(13, 19, 38, 0.09) 0.6px, transparent 0.6px);
  background-size: 7px 7px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 116px 0;
}

.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 1000;
  width: min(1180px, calc(100% - 32px));
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0 18px 0 26px;
  transform: translateX(-50%);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
}

.navbar.scrolled,
.navbar.open {
  height: 68px;
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(13, 19, 38, 0.08);
  box-shadow: 0 16px 44px rgba(13, 19, 38, 0.09);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 190px;
  min-width: 164px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  padding: 11px 14px;
  color: rgba(13, 19, 38, 0.72);
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--navy);
  background: rgba(13, 19, 38, 0.055);
  transform: translateY(-1px);
}

.nav-menu .nav-cta {
  margin-left: 6px;
  color: white;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: 0 12px 24px rgba(0, 132, 255, 0.24);
}

.nav-menu .nav-cta:hover {
  color: white;
  background: linear-gradient(135deg, #6d2ddd, #0079ec);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(13, 19, 38, 0.06);
  cursor: pointer;
  place-items: center;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  margin: 2px 0;
  display: block;
  border-radius: 999px;
  background: var(--navy);
  transition: 0.25s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: 0 0 0 8px rgba(0, 132, 255, 0.08);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.045em;
}

h1,
h2 {
  font-family: "Comfortaa", "Noto Sans Thai", sans-serif;
}

h1 {
  max-width: 760px;
  margin-top: 20px;
  font-size: clamp(3.5rem, 7.4vw, 7.1rem);
  line-height: 0.95;
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(2.15rem, 4.8vw, 4.35rem);
  line-height: 1.06;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.25;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(120deg, var(--violet), var(--blue), #37c7ff);
  background-clip: text;
  -webkit-background-clip: text;
}

/* ==========================================================================
   HERO SECTION — Dark Cinematic Premium
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 150px;
  padding-bottom: 80px;
  overflow: hidden;
  /* Dark cinematic background */
  background:
    radial-gradient(ellipse at 18% 12%, rgba(124,58,237,0.32), transparent 38%),
    radial-gradient(ellipse at 84% 72%, rgba(0,132,255,0.24), transparent 38%),
    linear-gradient(145deg, #050a18 0%, #0d1326 48%, #081027 100%);
  color: #fff;
}

/* Particle canvas */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* SVG line mesh layer */
.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-lines svg {
  width: 100%;
  height: 100%;
}

.hero-flow-line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: heroLineDraw 3.5s ease-out forwards;
}

.hero-flow-line:nth-child(2) { animation-delay: 0.3s; }
.hero-flow-line:nth-child(3) { animation-delay: 0.6s; }

@keyframes heroLineDraw {
  to { stroke-dashoffset: 0; }
}

.hero-streak {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: heroStreakDraw 2s ease-out 0.8s forwards;
}

.hero-streak-2 {
  animation-delay: 1.1s;
}

@keyframes heroStreakDraw {
  to { stroke-dashoffset: 0; }
}

.hero-arc {
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: heroArcDraw 2.5s ease-out 0.4s forwards;
}

@keyframes heroArcDraw {
  to { stroke-dashoffset: 0; }
}

/* Orbit rings */
.hero-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,132,255,0.12);
  pointer-events: none;
  z-index: 1;
  animation: orbitSpin linear infinite;
}

.hero-orbit-a {
  width: 640px;
  height: 640px;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  animation-duration: 40s;
  border-color: rgba(124,58,237,0.14);
}

.hero-orbit-b {
  width: 880px;
  height: 880px;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  animation-duration: 70s;
  animation-direction: reverse;
  border-color: rgba(0,132,255,0.08);
}

@keyframes orbitSpin {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

/* Aura glow in center-right */
.hero-aura {
  position: absolute;
  z-index: 1;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,132,255,0.16) 0%, rgba(124,58,237,0.1) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: auraBreath 6s ease-in-out infinite alternate;
}

@keyframes auraBreath {
  from { opacity: 0.6; transform: translateY(-50%) scale(0.9); }
  to { opacity: 1; transform: translateY(-50%) scale(1.1); }
}

/* Glow rings */
.hero-glow-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-glow-ring-a {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -160px;
  background: radial-gradient(circle, rgba(0,132,255,0.18) 0%, rgba(124,58,237,0.12) 40%, transparent 70%);
  animation: glowRingPulse 8s ease-in-out infinite alternate;
}

.hero-glow-ring-b {
  width: 400px;
  height: 400px;
  bottom: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, rgba(0,132,255,0.08) 40%, transparent 70%);
  animation: glowRingPulse 11s ease-in-out infinite alternate-reverse;
}

@keyframes glowRingPulse {
  from { transform: scale(0.92) rotate(0deg); opacity: 0.7; }
  to { transform: scale(1.08) rotate(8deg); opacity: 1; }
}

/* Hero badge — adapted for dark bg */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 9px 16px 9px 10px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 22px rgba(0,132,255,0.15), inset 0 1px 0 rgba(255,255,255,0.08);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.82);
}

@keyframes badgeFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.22), 0 0 12px rgba(34,197,94,0.5);
  flex-shrink: 0;
  animation: badgeDotPulse 1.8s ease-in-out infinite;
}

@keyframes badgeDotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34,197,94,0.22), 0 0 12px rgba(34,197,94,0.5); }
  50% { box-shadow: 0 0 0 7px rgba(34,197,94,0.28), 0 0 22px rgba(34,197,94,0.6); }
}

.hero-badge-text { display: block; }

.hero-eyebrow-sub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(124,196,255,0.9);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-eyebrow-sub .dot {
  background: linear-gradient(135deg, rgba(124,58,237,0.8), rgba(0,132,255,0.8));
  box-shadow: 0 0 0 5px rgba(0,132,255,0.12);
}

/* Hero background image — very dark overlay */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.1;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,10,24,0.6) 0%, rgba(5,10,24,0.3) 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: 56px;
}

.hero-lead {
  max-width: 680px;
  margin-top: 24px;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
}

.hero-copy h1,
.hero-copy .hero-title {
  color: #fff;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.46), transparent);
  transition: transform 0.58s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:hover::after {
  transform: translateX(110%);
}

.btn-primary,
.btn-form {
  color: white;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: 0 18px 36px rgba(0, 132, 255, 0.25);
}

.btn-secondary {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
}

.btn-light {
  color: white;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

/* Shimmer animated gradient text */
.shimmer-text {
  background: linear-gradient(
    120deg,
    #c084fc 0%,
    #60a5fa 28%,
    #38bdf8 48%,
    #c084fc 68%,
    #60a5fa 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: shimmerMove 4s linear infinite;
}

@keyframes shimmerMove {
  from { background-position: 0% center; }
  to { background-position: 200% center; }
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Stat cards — dark bg version */
.hero-stat-card {
  position: relative;
  min-width: 120px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,132,255,0.3);
}

.hero-stat-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(0,132,255,0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hero-stat-card:hover .hero-stat-glow { opacity: 1; }

.hero-stat-card strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #fff 40%, rgba(124,196,255,0.9));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-stat-card span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 610px;
  transform-style: preserve-3d;
  perspective: 1100px;
}

.visual-halo {
  position: absolute;
  inset: 86px 40px 68px 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,132,255,0.22), rgba(124,58,237,0.1) 42%, transparent 68%);
  filter: blur(20px);
  animation: haloBreath 5s ease-in-out infinite alternate;
}

.visual-halo-b {
  inset: 120px 60px 100px 60px;
  background: radial-gradient(circle, rgba(124,58,237,0.18), rgba(0,132,255,0.08) 42%, transparent 68%);
  filter: blur(30px);
  animation: haloBreath 7s ease-in-out infinite alternate-reverse;
  opacity: 0.7;
}

@keyframes haloBreath {
  from { transform: scale(0.96); opacity: 0.7; }
  to { transform: scale(1.04); opacity: 1; }
}

/* Floating tech chips */
.hero-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(13,19,38,0.09);
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--navy);
  white-space: nowrap;
  user-select: none;
}

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

.chip-react { top: 14px; left: 30px; }
.chip-react .chip-dot { background: #61dafb; box-shadow: 0 0 8px rgba(97,218,251,0.6); }

.chip-next { top: 14px; right: 20px; }
.chip-next .chip-dot { background: #000000; box-shadow: 0 0 8px rgba(0,0,0,0.3); }

.chip-supabase { bottom: 120px; right: 10px; }
.chip-supabase .chip-dot { background: #3ecf8e; box-shadow: 0 0 8px rgba(62,207,142,0.6); }

.chip-node { bottom: 180px; left: 16px; }
.chip-node .chip-dot { background: #68a063; box-shadow: 0 0 8px rgba(104,160,99,0.5); }

/* Glow button */
.btn-glow {
  box-shadow: 0 18px 36px rgba(0,132,255,0.3), 0 0 0 0 rgba(0,132,255,0.4);
  animation: btnGlowPulse 2.8s ease-in-out infinite;
}

@keyframes btnGlowPulse {
  0%, 100% { box-shadow: 0 18px 36px rgba(0,132,255,0.28), 0 0 0 0 rgba(124,58,237,0.2); }
  50% { box-shadow: 0 22px 48px rgba(124,58,237,0.32), 0 0 0 8px rgba(124,58,237,0.04); }
}

.mockup-card,
.node-map {
  position: absolute;
  border: 1px solid rgba(13, 19, 38, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  transform-style: preserve-3d;
}

.main-dashboard {
  top: 70px;
  left: 10px;
  width: min(450px, 88%);
  padding: 20px;
}

.card-topbar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
}

.card-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(13, 19, 38, 0.16);
}

.card-topbar strong {
  margin-left: auto;
  color: var(--navy);
  font-size: 0.88rem;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kpi-card {
  min-height: 84px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f3f7ff);
  border: 1px solid rgba(13, 19, 38, 0.07);
}

.kpi-card small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.kpi-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.35rem;
}

.chart-card {
  height: 160px;
  margin-top: 14px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(0,132,255,0.12));
}

.chart-card div {
  flex: 1;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--blue), var(--violet));
  opacity: 0.88;
  transition: height 0.6s cubic-bezier(0.34,1.56,0.64,1);
}

.chart-bar {
  position: relative;
  overflow: hidden;
}

.chart-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.28), transparent);
}

.dashboard-table {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.dashboard-table span {
  height: 10px;
  border-radius: 999px;
  background: rgba(13, 19, 38, 0.08);
}

.dashboard-table span:nth-child(2) { width: 86%; }
.dashboard-table span:nth-child(3) { width: 68%; }
.dashboard-table span:nth-child(4) { width: 78%; }

.phone-card {
  right: 18px;
  top: 0;
  width: 182px;
  height: 330px;
  padding: 28px 18px 18px;
  border-radius: 40px;
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
}

.phone-notch {
  width: 54px;
  height: 7px;
  border-radius: 999px;
  background: rgba(13, 19, 38, 0.18);
  margin: 0 auto 30px;
}

.phone-chip {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: 0 18px 36px rgba(0, 132, 255, 0.24);
}

.phone-card h3 {
  text-align: center;
  font-family: "Comfortaa", "Noto Sans Thai", sans-serif;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.mini-list span,
.landing-lines span {
  height: 13px;
  border-radius: 999px;
  background: rgba(13, 19, 38, 0.1);
}

.landing-card {
  left: 92px;
  bottom: 38px;
  width: 300px;
  padding: 14px;
}

.landing-image {
  height: 154px;
  border-radius: 20px;
  background-image: linear-gradient(135deg, rgba(13, 19, 38, 0.08), rgba(0, 132, 255, 0.18)),
    url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=900&q=80");
  background-size: cover;
  background-position: center;
}

.landing-lines {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.landing-lines span:last-child {
  width: 68%;
}

.node-map {
  right: 0;
  bottom: 112px;
  width: 248px;
  height: 158px;
  padding: 0;
  overflow: hidden;
}

.node-map svg {
  width: 100%;
  height: 100%;
}

.node-map path,
.node-path {
  fill: none;
  stroke: rgba(0,132,255,0.38);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  stroke-dashoffset: 0;
  animation: nodeDash 3s linear infinite;
}

@keyframes nodeDash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -56; }
}

.node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: 0 0 0 8px rgba(0, 132, 255, 0.08);
}

.n1 { left: 38px; top: 70px; }
.n2 { right: 42px; top: 70px; }
.n3 { left: calc(50% - 8px); top: 22px; }
.n4 { left: calc(50% - 8px); bottom: 22px; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: grid;
  justify-items: center;
  gap: 12px;
  transform: translateX(-50%);
  color: rgba(13,19,38,0.5);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  z-index: 3;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(13,19,38,0.25);
  border-radius: 999px;
  display: grid;
  justify-items: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--violet), var(--blue));
  animation: scrollWheelDrop 1.6s ease-in-out infinite;
}

@keyframes scrollWheelDrop {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.marquee-strip {
  position: relative;
  overflow: hidden;
  padding: 24px 0;
  border-block: 1px solid rgba(13, 19, 38, 0.08);
  background: rgba(255, 255, 255, 0.64);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 22px;
  color: rgba(13, 19, 38, 0.2);
  font-family: "Comfortaa", "Noto Sans Thai", sans-serif;
  font-size: clamp(1.6rem, 4.4vw, 4.8rem);
  font-weight: 700;
  white-space: nowrap;
}

.marquee-track b {
  color: rgba(0, 132, 255, 0.32);
}

.split-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 64px;
  align-items: center;
}

.section-copy p,
.section-header p {
  margin-top: 20px;
  font-size: 1.03rem;
}

.section-header {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-header .eyebrow {
  justify-content: center;
  margin-bottom: 14px;
}

.about-points,
.service-grid,
.portfolio-grid,
.capability-list {
  display: grid;
  gap: 18px;
}

.about-points {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.service-card,
.portfolio-card,
.capability-item,
.faq-item,
.compare-card,
.process-card {
  border: 1px solid rgba(13, 19, 38, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(13, 19, 38, 0.06);
  backdrop-filter: blur(14px);
}

.info-card {
  min-height: 156px;
  padding: 24px;
  border-radius: 26px;
}

.info-card span {
  display: inline-flex;
  color: var(--blue);
  font-size: 31px;
  margin-bottom: 24px;
}

.wide-card {
  grid-column: span 2;
}

.services-section,
.capabilities-section,
.process-section {
  background: linear-gradient(180deg, rgba(247, 249, 252, 0.88), rgba(255, 255, 255, 0.72));
}

.service-stage {
  display: grid;
  grid-template-columns: 0.34fr 0.66fr;
  gap: 28px;
  align-items: start;
}

.service-intro {
  position: sticky;
  top: 110px;
  min-height: 480px;
  padding: 36px;
  border-radius: var(--radius-xl);
  color: white;
  background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.24), transparent 28%), linear-gradient(135deg, var(--navy), #152043 58%, #1f4da6);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service-intro::after {
  content: "";
  position: absolute;
  inset: auto -34% -36% auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(0, 132, 255, 0.35);
  filter: blur(44px);
}

.big-index {
  display: block;
  margin-bottom: 90px;
  color: rgba(255, 255, 255, 0.18);
  font-size: 7rem;
  font-weight: 900;
  line-height: 0.8;
}

.service-intro h3 {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

.service-intro p {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
}

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

.service-card {
  position: relative;
  min-height: 295px;
  padding: 30px;
  border-radius: var(--radius-lg);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  overflow: hidden;
}

.service-card::before,
.portfolio-card::before,
.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(0, 132, 255, 0.18), transparent 34%);
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.service-card:hover::before,
.portfolio-card:hover::before,
.info-card:hover::before {
  opacity: 1;
}

.service-number {
  position: absolute;
  top: 24px;
  right: 24px;
  color: rgba(13, 19, 38, 0.12);
  font-size: 2.5rem;
  font-weight: 900;
}

.service-card:hover,
.portfolio-card:hover,
.info-card:hover,
.compare-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 132, 255, 0.28);
  box-shadow: 0 28px 70px rgba(13, 19, 38, 0.11);
}

.icon-wrap {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: 0 14px 28px rgba(0, 132, 255, 0.24);
  font-size: 29px;
  margin-bottom: 24px;
}

.service-card p {
  margin-top: 14px;
}

.portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  perspective: 1200px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  transform-style: preserve-3d;
}

.portfolio-preview {
  position: relative;
  height: 214px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.portfolio-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 19, 38, 0.05), rgba(13, 19, 38, 0.72));
  transition: 0.35s ease;
}

.portfolio-card:hover .portfolio-preview::before {
  background: linear-gradient(180deg, rgba(0, 132, 255, 0.14), rgba(13, 19, 38, 0.76));
}

.portfolio-preview span {
  position: relative;
  color: white;
  font-family: "Comfortaa", "Noto Sans Thai", sans-serif;
  font-weight: 700;
  font-size: 1.38rem;
}

.qbad { background-image: url("https://images.unsplash.com/photo-1626224583764-f87db24ac4ea?auto=format&fit=crop&w=1100&q=80"); }
.pharmacy { background-image: url("https://images.unsplash.com/photo-1587854692152-cbe660dbde88?auto=format&fit=crop&w=1100&q=80"); }
.stock { background-image: url("https://images.unsplash.com/photo-1642790551116-18e150f248e5?auto=format&fit=crop&w=1100&q=80"); }
.gym { background-image: url("https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=1100&q=80"); }
.inspect { background-image: url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1100&q=80"); }
.bi { background-image: url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1100&q=80"); }

.portfolio-body {
  position: relative;
  padding: 24px;
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(0, 132, 255, 0.09);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.portfolio-body p {
  margin-top: 12px;
}

.portfolio-body a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--navy);
  font-weight: 900;
}

.portfolio-body a span {
  font-size: 18px;
  color: var(--blue);
}

.preview-section {
  padding-bottom: 0;
  overflow: hidden;
}

.preview-head {
  margin-bottom: 38px;
}

.preview-pin {
  overflow: hidden;
}

.preview-track {
  display: flex;
  width: max-content;
}

.preview-slide {
  width: 100vw;
  min-height: 82vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(430px, 1.1fr);
  gap: 52px;
  align-items: center;
  padding: 46px max(40px, calc((100vw - var(--container)) / 2));
}

.preview-copy {
  max-width: 520px;
}

.slide-count {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.preview-copy h3 {
  font-family: "Comfortaa", "Noto Sans Thai", sans-serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.preview-copy p {
  margin-top: 18px;
  font-size: 1.04rem;
}

.preview-copy ul,
.compare-card ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.preview-copy li,
.compare-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(13, 19, 38, 0.75);
  font-weight: 700;
}

.preview-copy li::before,
.compare-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--blue));
}

.preview-ui {
  position: relative;
  min-height: 470px;
  border: 1px solid rgba(13, 19, 38, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.preview-ui::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(13, 19, 38, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 19, 38, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
}

.ui-label {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 1;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(13, 19, 38, 0.08);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.flow-node,
.flow-row span,
.kanban-col,
.device,
.launch-metric {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(13, 19, 38, 0.08);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 44px rgba(13, 19, 38, 0.08);
}

.workflow-ui {
  display: grid;
  place-items: center;
}

.flow-node.large {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 44px;
  color: white;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  font-weight: 900;
  box-shadow: 0 24px 68px rgba(0, 132, 255, 0.25);
}

.flow-row {
  position: absolute;
  bottom: 70px;
  left: 50%;
  z-index: 1;
  display: flex;
  gap: 14px;
  transform: translateX(-50%);
}

.flow-row span {
  padding: 14px 18px;
  border-radius: 20px;
  font-weight: 800;
}

.flow-line {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 2px;
  height: 250px;
  background: linear-gradient(var(--blue), transparent);
}

.board-ui {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 96px 28px 28px;
}

.kanban-col {
  min-height: 320px;
  padding: 18px;
  border-radius: 28px;
}

.kanban-col b {
  display: block;
  margin-bottom: 18px;
}

.kanban-col span {
  display: block;
  height: 46px;
  margin-top: 12px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(0, 132, 255, 0.12), rgba(124, 58, 237, 0.09));
}

.design-ui {
  display: grid;
  place-items: center;
}

.device {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 30px;
}

.device span {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: rgba(13, 19, 38, 0.11);
}

.device.desktop {
  width: 440px;
  height: 250px;
}

.device.mobile {
  position: absolute;
  right: 72px;
  bottom: 62px;
  width: 150px;
  height: 255px;
  background: linear-gradient(180deg, #ffffff, #eef6ff);
}

.launch-ui {
  display: grid;
  place-items: center;
}

.launch-metric {
  width: 230px;
  height: 230px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #edf6ff);
}

.launch-metric strong {
  font-size: 4.4rem;
  line-height: 1;
}

.launch-metric small {
  color: var(--muted);
  font-weight: 900;
}

.pulse-ring {
  position: absolute;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  border: 2px solid rgba(0, 132, 255, 0.2);
}

.process-section {
  overflow: hidden;
}

.process-pin {
  position: relative;
  overflow: hidden;
  padding: 24px 0 84px;
}

.process-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0 max(40px, calc((100vw - var(--container)) / 2));
}

.process-card {
  width: min(430px, calc(100vw - 56px));
  min-height: 330px;
  padding: 34px;
  border-radius: var(--radius-xl);
}

.process-card span {
  display: block;
  margin-bottom: 86px;
  color: rgba(13, 19, 38, 0.14);
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 0.8;
}

.process-card h3 {
  font-family: "Comfortaa", "Noto Sans Thai", sans-serif;
  font-size: 1.55rem;
}

.process-card p {
  margin-top: 14px;
}

.process-progress {
  width: min(var(--container), calc(100% - 40px));
  height: 5px;
  margin: 38px auto 0;
  border-radius: 999px;
  background: rgba(13, 19, 38, 0.08);
  overflow: hidden;
}

.process-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--blue));
}

.comparison-grid {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 36px;
  align-items: center;
}

.comparison-copy p {
  margin-top: 20px;
}

.comparison-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.compare-card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compare-card span {
  display: inline-flex;
  margin-bottom: 90px;
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 900;
}

.compare-card.old span {
  color: #8a3b1f;
  background: #fff0e6;
}

.compare-card.new {
  color: white;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 34%), linear-gradient(135deg, var(--navy), #0d2e72 64%, var(--blue));
}

.compare-card.new p,
.compare-card.new li {
  color: rgba(255, 255, 255, 0.78);
}

.compare-card.new li::before {
  background: white;
}

.compare-card.new span {
  color: white;
  background: rgba(255, 255, 255, 0.14);
}

.industries-panel {
  position: relative;
  padding: 64px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(0, 132, 255, 0.2), transparent 40%), linear-gradient(135deg, #ffffff, #eef6ff);
  box-shadow: var(--soft-shadow);
}

.industries-panel h2 {
  max-width: 780px;
  margin-top: 14px;
}

.industry-chips,
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.industry-chips {
  margin-top: 30px;
}

.industry-chips span,
.tech-stack span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(13, 19, 38, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(13, 19, 38, 0.72);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(13, 19, 38, 0.045);
}

.industry-chips span {
  padding: 13px 16px;
}

.tech-stack {
  margin-top: 28px;
}

.tech-stack span {
  padding: 11px 13px;
  font-size: 0.88rem;
}

.capability-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.capability-item {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  color: rgba(13, 19, 38, 0.78);
  font-weight: 800;
}

.capability-item span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  font-size: 23px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: 44px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: 24px;
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  font-weight: 900;
}

.faq-item button span {
  color: var(--blue);
}

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

.faq-answer p {
  padding: 0 24px 24px;
}

.faq-item.active .faq-answer {
  max-height: 220px;
}

.contact-section {
  padding-bottom: 84px;
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 42px;
  align-items: center;
  padding: 64px;
  border-radius: 46px;
  color: white;
  background: radial-gradient(circle at 14% 14%, rgba(255, 255, 255, 0.18), transparent 28%), linear-gradient(135deg, var(--navy), #152043 58%, #1f4da6);
  box-shadow: 0 34px 100px rgba(13, 19, 38, 0.24);
  overflow: hidden;
}

.contact-panel .eyebrow,
.contact-panel p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-copy {
  position: relative;
  z-index: 1;
}

.contact-copy h2 {
  margin-top: 14px;
}

.contact-copy p {
  margin-top: 18px;
}

.contact-orb {
  position: absolute;
  right: -150px;
  top: -150px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(0, 132, 255, 0.35);
  filter: blur(30px);
}

.contact-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 14px 15px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-form select option {
  color: var(--navy);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.16);
}

.full-field,
.btn-form,
.form-note {
  grid-column: 1 / -1;
}

.btn-form {
  border: 0;
  cursor: pointer;
}

.form-note {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
}

.footer {
  padding: 64px 0 34px;
  background: white;
  border-top: 1px solid rgba(13, 19, 38, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 42px;
  align-items: start;
}

.footer-logo {
  width: 185px;
  margin-bottom: 18px;
}

.footer p {
  max-width: 460px;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-contact strong {
  color: var(--navy);
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(13, 19, 38, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
}

.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: 0 18px 42px rgba(0, 132, 255, 0.34);
}

.reveal,
.stagger-item,
.service-feature,
.portfolio-card,
.process-card,
.preview-slide,
.hero-badge,
.hero-eyebrow-sub,
.hero-word,
.hero-lead,
.hero-actions,
.hero-stats,
.hero-visual,
.hero-chip,
.scroll-cue {
  opacity: 0;
  transform: translateY(36px);
}

.hero-badge {
  transform: translateY(20px);
}

.hero-chip {
  transform: translateY(24px) scale(0.88);
}

.hero-lines svg {
  opacity: 0;
}

.hero-glow-ring {
  opacity: 0;
}

/* Hero dark section h1 color */
.hero-section h1,
.hero-section .hero-title {
  color: #fff !important;
}

@media (max-width: 1080px) {
  .section {
    padding: 88px 0;
  }

  .hero-grid,
  .split-grid,
  .service-stage,
  .comparison-grid,
  .faq-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 110px;
    padding-bottom: 60px;
  }

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

  /* On mobile, prevent horizontal pin from creating overflow */
  .preview-pin,
  .process-pin {
    overflow: visible;
  }

  .service-intro {
    position: relative;
    top: auto;
    min-height: 260px;
  }

  .big-index {
    margin-bottom: 40px;
  }

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

  .preview-track,
  .process-track {
    display: block;
    width: 100%;
    padding: 0;
    overflow: visible;
  }

  .preview-slide {
    position: relative;
    width: 100%;
    min-height: auto;
    max-width: 100%;
    grid-template-columns: 1fr;
    padding: 32px 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }

  .process-progress {
    display: none;
  }

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

@media (max-width: 820px) {
  .navbar {
    width: calc(100% - 24px);
    top: 12px;
    padding: 0 12px 0 18px;
  }

  .brand {
    width: 166px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(13, 19, 38, 0.08);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 56px rgba(13, 19, 38, 0.13);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 0.25s ease;
  }

  .nav-menu.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    width: 100%;
    padding: 14px 16px;
  }

  .nav-menu .nav-cta {
    margin-left: 0;
    justify-content: center;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  h1 {
    font-size: clamp(3.05rem, 15vw, 4.8rem);
  }

  .hero-section {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 60px;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

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

  /* Hide overflow elements on mobile */
  .hero-visual {
    min-height: 460px;
  }

  .hero-orbit,
  .hero-aura {
    display: none;
  }

  .hero-lines {
    opacity: 0.5;
  }

  .main-dashboard {
    left: 0;
    width: 78%;
  }

  .phone-card {
    width: 150px;
    height: 286px;
    right: 0;
  }

  .landing-card {
    left: 24px;
    width: 250px;
  }

  .node-map {
    width: 200px;
    right: 0;
    bottom: 90px;
  }

  .hero-chip {
    display: none;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 7px 12px 7px 8px;
  }

  .hero-glow-ring-a {
    width: 280px;
    height: 280px;
    top: -80px;
    right: -80px;
  }

  .hero-glow-ring-b {
    width: 200px;
    height: 200px;
    bottom: -60px;
    left: -60px;
  }

  .scroll-cue {
    display: none;
  }

  .about-points,
  .service-grid,
  .portfolio-grid,
  .capability-list,
  .comparison-cards,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .wide-card,
  .full-field,
  .btn-form,
  .form-note {
    grid-column: auto;
  }

  .industries-panel,
  .contact-panel {
    padding: 34px 22px;
    border-radius: 34px;
  }

  .preview-ui {
    min-height: 390px;
  }

  .board-ui {
    grid-template-columns: 1fr;
    padding-top: 82px;
  }

  .device.desktop {
    width: min(320px, 92%);
  }

  .device.mobile {
    right: 24px;
    width: 120px;
    height: 210px;
  }

  .flow-row {
    flex-wrap: wrap;
    justify-content: center;
    width: 88%;
  }

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

@media (max-width: 520px) {
  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .hero-stat-card {
    min-width: 0;
    padding: 12px;
  }

  .hero-stat-card strong {
    font-size: 1.3rem;
  }

  .hero-stat-card span {
    font-size: 0.68rem;
  }

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

  .main-dashboard {
    width: 92%;
  }

  .phone-card {
    top: 220px;
    right: 0;
    width: 130px;
    height: 240px;
  }

  .landing-card {
    bottom: 0;
    left: 0;
    width: 200px;
  }

  .node-map {
    display: none;
  }

  .floating-contact {
    width: 54px;
    height: 54px;
  }

  /* Process track: single column, no overflow */
  .process-track {
    display: grid;
    gap: 20px;
    padding: 0 4px;
  }

  .process-card {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 24px;
  }
}

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

  .reveal,
  .stagger-item,
  .service-feature,
  .portfolio-card,
  .process-card,
  .preview-slide,
  .hero-badge,
  .hero-eyebrow-sub,
  .hero-title span,
  .hero-lead,
  .hero-actions,
  .hero-stats,
  .hero-visual,
  .hero-chip,
  .scroll-cue {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-glow-ring {
    opacity: 1 !important;
  }

  .preloader {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Cinematic animated backgrounds / Section tone system
   -------------------------------------------------------------------------- */
.section {
  isolation: isolate;
  overflow: hidden;
}

.section > .container,
.preview-head,
.preview-pin,
.process-pin {
  position: relative;
  z-index: 2;
}

.section::before,
.section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.section::before {
  opacity: 0.65;
  background-image:
    linear-gradient(rgba(0, 132, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 16% 18%, rgba(124, 58, 237, 0.16), transparent 24%),
    radial-gradient(circle at 86% 72%, rgba(0, 132, 255, 0.14), transparent 28%);
  background-size: 58px 58px, 58px 58px, 100% 100%, 100% 100%;
  transform: translate3d(0, var(--section-parallax, 0px), 0);
  animation: watermarkGridDrift 18s ease-in-out infinite alternate;
}

.section::after {
  background-image: var(--section-image, none);
  background-size: cover;
  background-position: center;
  opacity: var(--section-image-opacity, 0.08);
  filter: saturate(0.8) contrast(1.05);
  mix-blend-mode: luminosity;
  transform: scale(1.08) translate3d(0, calc(var(--section-parallax, 0px) * -0.28), 0);
  animation: sectionImageBreathe 22s ease-in-out infinite alternate;
}

.hero-section {
  --section-image-opacity: 0.11;
}

.about-section {
  --section-image: url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1900&q=80");
  --section-image-opacity: 0.08;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(238, 246, 255, 0.9));
}

.services-section {
  --section-image: url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1900&q=80");
  --section-image-opacity: 0.12;
  color: white;
  background:
    radial-gradient(circle at 18% 12%, rgba(124, 58, 237, 0.28), transparent 32%),
    radial-gradient(circle at 86% 76%, rgba(0, 132, 255, 0.24), transparent 34%),
    linear-gradient(135deg, #070d1f, #0d1326 48%, #102352);
}

.work-section {
  --section-image: url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1900&q=80");
  --section-image-opacity: 0.07;
  background: linear-gradient(180deg, #ffffff, #f3f8ff);
}

.preview-section {
  --section-image: url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1900&q=80");
  --section-image-opacity: 0.13;
  color: white;
  background:
    radial-gradient(circle at 76% 18%, rgba(0, 132, 255, 0.25), transparent 34%),
    radial-gradient(circle at 12% 84%, rgba(124, 58, 237, 0.28), transparent 38%),
    linear-gradient(145deg, #081027, #111b33 62%, #071020);
}

.process-section {
  --section-image: url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1900&q=80");
  --section-image-opacity: 0.075;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.comparison-section {
  --section-image: url("https://images.unsplash.com/photo-1553877522-43269d4ea984?auto=format&fit=crop&w=1900&q=80");
  --section-image-opacity: 0.12;
  color: white;
  background:
    radial-gradient(circle at 12% 12%, rgba(124, 58, 237, 0.28), transparent 32%),
    radial-gradient(circle at 86% 70%, rgba(0, 132, 255, 0.23), transparent 34%),
    linear-gradient(135deg, #0d1326, #101b36 54%, #071020);
}

.industries-section {
  --section-image: url("https://images.unsplash.com/photo-1559136555-9303baea8ebd?auto=format&fit=crop&w=1900&q=80");
  --section-image-opacity: 0.08;
  background: linear-gradient(180deg, #ffffff, #eef6ff);
}

.capabilities-section {
  --section-image: url("https://images.unsplash.com/photo-1531482615713-2afd69097998?auto=format&fit=crop&w=1900&q=80");
  --section-image-opacity: 0.12;
  color: white;
  background:
    radial-gradient(circle at 10% 22%, rgba(0, 132, 255, 0.22), transparent 30%),
    radial-gradient(circle at 92% 72%, rgba(124, 58, 237, 0.25), transparent 32%),
    linear-gradient(145deg, #071020, #0d1326 58%, #101d44);
}

.faq-section {
  --section-image: url("https://images.unsplash.com/photo-1553877522-43269d4ea984?auto=format&fit=crop&w=1900&q=80");
  --section-image-opacity: 0.06;
  background: linear-gradient(180deg, #f7f9fc, #ffffff);
}

.contact-section {
  --section-image: url("https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1900&q=80");
  --section-image-opacity: 0.08;
}

.services-section h2,
.services-section .section-header h2,
.preview-section h2,
.preview-section h3,
.comparison-section h2,
.comparison-section h3,
.capabilities-section h2,
.capabilities-section h3 {
  color: white;
}

.services-section p,
.services-section .section-header p,
.preview-section p,
.preview-copy li,
.comparison-section p,
.comparison-section li,
.capabilities-section p {
  color: rgba(255, 255, 255, 0.74);
}

.services-section .eyebrow,
.preview-section .eyebrow,
.comparison-section .eyebrow,
.capabilities-section .eyebrow {
  color: #7cc5ff;
}

.services-section .service-card,
.capabilities-section .capability-item {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.18);
}

.services-section .service-card h3,
.services-section .service-card p,
.capabilities-section .capability-item,
.capabilities-section .tech-stack span {
  color: rgba(255, 255, 255, 0.86);
}

.services-section .service-number {
  color: rgba(255, 255, 255, 0.12);
}

.capabilities-section .tech-stack span {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.preview-section .slide-count {
  color: #7cc5ff;
}

.preview-section .preview-ui {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.22);
}

.preview-section .preview-ui::before {
  background-image: linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
}

.preview-section .ui-label {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.comparison-section .compare-card.old {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
}

.comparison-section .compare-card.old li {
  color: rgba(13, 19, 38, 0.72);
}

.industries-panel {
  border: 1px solid rgba(13, 19, 38, 0.08);
  background:
    radial-gradient(circle at top right, rgba(0, 132, 255, 0.22), transparent 40%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(238, 246, 255, 0.72));
  backdrop-filter: blur(20px);
}

.hero-polygons {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-poly {
  position: absolute;
  display: block;
  width: var(--size, 90px);
  height: var(--size, 90px);
  border: 1px solid rgba(0, 132, 255, 0.22);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(0, 132, 255, 0.1));
  box-shadow: 0 18px 60px rgba(0, 132, 255, 0.1);
  backdrop-filter: blur(6px);
  opacity: 0.72;
}

.poly-a { --size: 104px; left: 7%; top: 18%; clip-path: polygon(50% 0%, 100% 34%, 82% 100%, 18% 100%, 0% 34%); }
.poly-b { --size: 72px; right: 12%; top: 16%; border-radius: 18px; transform: rotate(24deg); }
.poly-c { --size: 130px; right: 39%; bottom: 16%; clip-path: polygon(25% 5%, 82% 15%, 100% 65%, 55% 100%, 0 72%); }
.poly-d { --size: 58px; left: 46%; top: 11%; border-radius: 50%; }
.poly-e { --size: 84px; left: 16%; bottom: 13%; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.poly-f { --size: 116px; right: 4%; bottom: 25%; clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%); }

.section-watermark {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.wm-shape {
  position: absolute;
  width: var(--shape-size, 90px);
  height: var(--shape-size, 90px);
  left: var(--x, 50%);
  top: var(--y, 50%);
  opacity: var(--shape-opacity, 0.42);
  border: 1px solid rgba(0, 132, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.09), rgba(0, 132, 255, 0.08)),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28), transparent 36%);
  filter: blur(var(--shape-blur, 0px));
  transform-origin: center;
  box-shadow: 0 20px 60px rgba(0, 132, 255, 0.08);
}

.wm-dot {
  border-radius: 999px;
}

.wm-diamond {
  border-radius: 22px;
  transform: rotate(45deg);
}

.wm-polygon {
  clip-path: polygon(50% 0%, 96% 26%, 88% 80%, 50% 100%, 12% 80%, 4% 26%);
}

.wm-ring {
  border-width: 16px;
  border-color: rgba(124, 58, 237, 0.14);
  border-radius: 999px;
  background: transparent;
}

.services-section .wm-shape,
.preview-section .wm-shape,
.comparison-section .wm-shape,
.capabilities-section .wm-shape,
.contact-section .wm-shape {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 132, 255, 0.12));
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.14);
}

@keyframes watermarkGridDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 34px 54px, -42px 28px, 0 0, 0 0; }
}

@keyframes sectionImageBreathe {
  from { transform: scale(1.08) translate3d(0, calc(var(--section-parallax, 0px) * -0.2), 0); }
  to { transform: scale(1.14) translate3d(0, calc(var(--section-parallax, 0px) * -0.42), 0); }
}

@media (max-width: 1080px) {
  /* QBadPro-style showcase: no sticky, no overflow, vertical stacking */
  .preview-track,
  .process-track {
    perspective: none;
  }

  .preview-slide,
  .process-card {
    position: relative;
    top: auto;
    will-change: auto;
  }

  .preview-slide {
    margin-bottom: 0;
    border-radius: 0;
    overflow: visible;
  }

  .preview-section {
    padding-bottom: 60px;
  }
}

@media (max-width: 820px) {
  .section::after {
    opacity: calc(var(--section-image-opacity, 0.08) + 0.025);
  }

  .wm-shape {
    opacity: 0.28;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section::before,
  .section::after,
  .wm-shape {
    animation: none !important;
    transform: none !important;
  }

  .preview-slide {
    position: relative !important;
    top: auto !important;
    margin-bottom: 20px !important;
  }

  .reveal,
  .stagger-item,
  .service-feature,
  .portfolio-card,
  .process-card,
  .preview-slide,
  .hero-badge,
  .hero-eyebrow-sub,
  .hero-word,
  .hero-lead,
  .hero-actions,
  .hero-stats,
  .hero-visual,
  .hero-chip,
  .scroll-cue,
  .hero-glow-ring,
  .hero-lines svg {
    opacity: 1 !important;
    transform: none !important;
  }

  .preloader {
    display: none;
  }
}
