/* ============================================================
   AUTO RUN IT — Global Design System
   Fonts: Orbitron (headings) + Bai Jamjuree (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Bai+Jamjuree:wght@300;400;500;600;700&display=swap');

/* ---- Variables ---- */
:root {
  --navy:      #060E1E;
  --navy-2:    #0B1527;
  --navy-3:    #0F1C36;
  --navy-4:    #152244;
  --light:     #EBF1FF;
  --light-2:   #F4F7FF;
  --white:     #FFFFFF;
  --blue:      #4B7EF5;
  --cyan:      #00BBF9;
  --blue-dim:  rgba(75,126,245,0.12);
  --blue-glow: rgba(75,126,245,0.25);
  --grad:      linear-gradient(135deg, #4B7EF5 0%, #00BBF9 100%);
  --grad-text: linear-gradient(135deg, #7AAEFF 0%, #40DDFF 100%);
  --text-hi:   #EDF2FF;
  --text-mid:  #8BA4CC;
  --text-dim:  #4E6388;
  --text-on-light: #0A1628;
  --text-on-light-2: #3A5070;
  --border-dk: rgba(75,126,245,0.14);
  --border-dk2:rgba(75,126,245,0.28);
  --border-lt: rgba(10,22,40,0.09);
  --r-sm:   12px;
  --r-md:   20px;
  --r-lg:   32px;
  --r-xl:   52px;
  --shadow-card: 0 4px 28px rgba(0,0,0,0.22);
  --shadow-blue: 0 8px 36px rgba(75,126,245,0.38);
  --max-w: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Bai Jamjuree', sans-serif; background: var(--navy); color: var(--text-hi); -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.65; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ---- Container ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: 'Orbitron', sans-serif; line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 4.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { font-family: 'Bai Jamjuree', sans-serif; }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Badge / Label ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
}
.badge-dk { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(75,126,245,0.26); }
.badge-lt { background: rgba(75,126,245,0.07); color: var(--blue); border: 1px solid rgba(75,126,245,0.18); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 100px;
  font-family: 'Bai Jamjuree', sans-serif;
  font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.02em; transition: all 0.25s ease;
  border: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(75,126,245,0.48); }
.btn-ghost  { background: transparent; color: var(--text-hi); border: 1.5px solid rgba(255,255,255,0.16); }
.btn-ghost:hover  { border-color: var(--blue); color: var(--blue); background: rgba(75,126,245,0.07); }
.btn-outline-dk { background: transparent; color: var(--text-on-light); border: 1.5px solid rgba(10,22,40,0.2); }
.btn-outline-dk:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 16px 36px; font-size: 0.95rem; }
.btn-sm { padding: 9px 20px; font-size: 0.82rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900; padding: 22px 0;
  transition: background 0.4s ease, padding 0.3s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.nav-scrolled {
  background: rgba(6,14,30,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0;
  border-bottom-color: var(--border-dk);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 48px;
  position: relative;
}
.nav-logo { display: flex; align-items: center; flex: 1; }
.site-logo        { height: 80px; width: auto; display: block; }
.site-logo-footer { height: 85px; width: auto; display: block; }
.nav-menu {
  display: flex; gap: 2px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-menu a {
  font-family: 'Bai Jamjuree', sans-serif; font-weight: 500;
  font-size: 0.88rem; color: var(--text-mid);
  padding: 8px 16px; border-radius: 100px; transition: all 0.2s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--text-hi); background: rgba(75,126,245,0.1); }
.nav-right { display: flex; align-items: center; gap: 16px; flex: 1; justify-content: flex-end; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text-hi); border-radius: 2px; transition: all 0.3s; }
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: rgba(6,14,30,0.97); backdrop-filter: blur(20px);
  z-index: 1000; flex-direction: column; align-items: center;
  justify-content: center; gap: 36px; padding: 80px 40px 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Orbitron', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--text-hi); transition: color 0.2s; }
.mobile-menu a:hover { color: var(--blue); }
.mobile-close { position: absolute; top: 24px; right: 40px; background: none; border: none; color: var(--text-mid); font-size: 2rem; cursor: pointer; line-height: 1; }

/* ============================================================
   SECTION PATTERNS
   ============================================================ */
.sec-dark  { background: var(--navy);   padding: 120px 0; }
.sec-dark2 { background: var(--navy-2); padding: 120px 0; }
.sec-light { background: var(--light-2); padding: 120px 0; }
.sec-white { background: var(--white);   padding: 120px 0; }

/* Curved top overlap between sections */
.curved-top {
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  margin-top: calc(-1 * var(--r-xl));
  padding-top: calc(120px + var(--r-xl));
  position: relative;
}
/* Corner caps — suppressed in floating-card system */
.curved-top::before,
.curved-top::after { display: none; }

/* === SECTION STACKING SYSTEM ===
   Dark sections float above (z:2), full rounded corners.
   Light sections slide behind dark sections (z:1), flat top.
*/
.sec-dark.curved-top,
.sec-dark2.curved-top {
  border-radius: var(--r-xl);
  z-index: 2;
}
.sec-light.curved-top,
.sec-white.curved-top {
  border-radius: 0;
  z-index: 1;
}
.sec-cta.curved-top {
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  z-index: 2;
}

/* Section heading block */
.sec-head { margin-bottom: 64px; }
.sec-head h2 { margin-top: 14px; }
.sec-head p { color: var(--text-mid); margin-top: 16px; max-width: 560px; font-size: 1.05rem; }
.sec-head.center { text-align: center; }
.sec-head.center p { margin-left: auto; margin-right: auto; }
.sec-head.on-light h2 { color: var(--text-on-light); }
.sec-head.on-light p  { color: var(--text-on-light-2); }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(75,126,245,0.22) 0%, transparent 65%),
    linear-gradient(rgba(75,126,245,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75,126,245,0.035) 1px, transparent 1px),
    var(--navy);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  z-index: 2;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 460px;
  gap: 60px; align-items: center;
  min-height: 100vh; padding: 140px 0 130px;
}
.hero-content { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero-content h1 { color: var(--text-hi); }
.hero-content p { color: var(--text-mid); font-size: 1.05rem; max-width: 500px; line-height: 1.75; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; align-items: center; gap: 0; margin-top: 8px; }
.hstat { display: flex; flex-direction: column; gap: 2px; padding: 0 28px; }
.hstat:first-child { padding-left: 0; }
.hstat-num { font-family: 'Orbitron', sans-serif; font-size: 1.5rem; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hstat-label { font-size: 0.78rem; color: var(--text-dim); font-weight: 500; letter-spacing: 0.04em; }
.hstat-sep { width: 1px; height: 36px; background: var(--border-dk2); }

/* Hero entrance — handled entirely by Web Animations API in JS (visibility-state safe) */

/* ---- Automation Network Visualization ---- */
.autonet {
  position: relative; width: 420px; height: 420px; flex-shrink: 0;
  margin: 0 auto;
}
.autonet-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.anet-ring-outer { animation: ring-spin 50s linear infinite; transform-origin: 210px 210px; }
.anet-line {
  stroke: rgba(75,126,245,0.22); stroke-width: 1;
  stroke-dasharray: 6 5; stroke-linecap: round;
  animation: dash-flow 2s linear infinite;
}
.anet-line:nth-child(2) { animation-delay: -0.3s; }
.anet-line:nth-child(3) { animation-delay: -0.6s; }
.anet-line:nth-child(4) { animation-delay: -0.9s; }
.anet-line:nth-child(5) { animation-delay: -1.2s; }
.anet-line:nth-child(6) { animation-delay: -1.5s; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes dash-flow { to { stroke-dashoffset: -22; } }

/* Hub */
.anet-hub {
  position: absolute; width: 90px; height: 90px;
  top: 165px; left: 165px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75,126,245,0.25), rgba(75,126,245,0.05));
  border: 2px solid rgba(75,126,245,0.5);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  box-shadow: 0 0 48px rgba(75,126,245,0.3), inset 0 0 20px rgba(75,126,245,0.1);
}
.anet-hub::before {
  content: ''; position: absolute; inset: -14px;
  border-radius: 50%; border: 1px solid rgba(75,126,245,0.2);
  animation: hub-pulse 3s ease-in-out infinite;
}
.anet-hub::after {
  content: ''; position: absolute; inset: -28px;
  border-radius: 50%; border: 1px solid rgba(75,126,245,0.08);
  animation: hub-pulse 3s 0.5s ease-in-out infinite;
}
.hub-label { font-family: 'Orbitron', sans-serif; font-size: 0.5rem; font-weight: 700; color: var(--cyan); letter-spacing: 0.1em; }
@keyframes hub-pulse {
  0%,100% { transform: scale(1); opacity: 0.5; }
  50%      { transform: scale(1.06); opacity: 1; }
}

/* Orbit nodes */
.anet-node {
  position: absolute; width: 58px; height: 58px;
  background: var(--navy-3); border: 1px solid var(--border-dk);
  border-radius: 16px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  transition: border-color 0.3s, transform 0.3s;
}
.anet-node:hover { border-color: var(--border-dk2); transform: scale(1.08); }
.anet-node span { font-size: 0.42rem; color: var(--text-dim); font-family: 'Bai Jamjuree', sans-serif; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
/* node positions: radius=160, center=210,210, node size=58 (offset 29) */
.anet-node:nth-child(3) { top:  21px; left: 181px; } /* 0°   AUTO  */
.anet-node:nth-child(4) { top: 101px; left: 320px; } /* 60°  FLOW  */
.anet-node:nth-child(5) { top: 261px; left: 320px; } /* 120° DATA  */
.anet-node:nth-child(6) { top: 341px; left: 181px; } /* 180° SYS   */
.anet-node:nth-child(7) { top: 261px; left:  42px; } /* 240° DESGN */
.anet-node:nth-child(8) { top: 101px; left:  42px; } /* 300° WRKFL */

/* Floating stat cards */
.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  background: rgba(11,21,39,0.92);
  border: 1px solid var(--border-dk2);
  border-radius: var(--r-md); padding: 12px 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  white-space: nowrap;
}
.float-card .fc-icon { font-size: 1.4rem; }
.float-card .fc-num  { font-family: 'Orbitron', sans-serif; font-size: 1.1rem; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.float-card .fc-lbl  { font-size: 0.72rem; color: var(--text-dim); font-weight: 500; margin-top: 1px; }
.float-card.fc-1 { top: -14px; right: -32px; animation: float 5s ease-in-out infinite; }
.float-card.fc-2 { bottom: -14px; right: -32px; animation: float 5s 2.5s ease-in-out infinite; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ============================================================
   SERVICE PILLAR CARDS
   ============================================================ */
.pillars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pillar-card {
  background: var(--navy-3); border: 1px solid var(--border-dk);
  border-radius: var(--r-lg); padding: 44px 40px;
  transition: all 0.3s ease; position: relative; overflow: hidden;
  cursor: default;
}
.pillar-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(75,126,245,0.07), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.pillar-card:hover { border-color: var(--border-dk2); transform: translateY(-5px); box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 40px rgba(75,126,245,0.08); }
.pillar-card:hover::before { opacity: 1; }
.pillar-icon { width: 56px; height: 56px; background: var(--blue-dim); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.pillar-card h3 { color: var(--text-hi); margin-bottom: 12px; }
.pillar-card p  { color: var(--text-mid); font-size: 0.92rem; line-height: 1.7; }
.pillar-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; font-size: 0.85rem; font-weight: 600; color: var(--blue); transition: gap 0.2s; }
.pillar-link:hover { gap: 10px; }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card {
  background: var(--white); border: 1px solid var(--border-lt);
  border-radius: var(--r-lg); padding: 36px 28px;
  position: relative; transition: all 0.3s ease;
}
.step-card:hover { border-color: rgba(75,126,245,0.25); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(75,126,245,0.08); }
.step-num {
  font-family: 'Orbitron', sans-serif; font-size: 2.8rem;
  font-weight: 900; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  opacity: 0.35; margin-bottom: 20px;
}
.step-icon { width: 44px; height: 44px; background: var(--blue-dim); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step-card h4 { color: var(--text-on-light); margin-bottom: 10px; }
.step-card p  { color: var(--text-on-light-2); font-size: 0.88rem; line-height: 1.65; }

/* ============================================================
   WHY US / VALUE PROPS
   ============================================================ */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.why-list { display: flex; flex-direction: column; gap: 28px; }
.why-item { display: flex; gap: 18px; align-items: flex-start; }
.why-item-icon { width: 48px; height: 48px; flex-shrink: 0; background: var(--blue-dim); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.why-item h4 { color: var(--text-hi); margin-bottom: 6px; }
.why-item p  { color: var(--text-mid); font-size: 0.9rem; }
.why-panel {
  background: var(--navy-3); border: 1px solid var(--border-dk);
  border-radius: var(--r-lg); padding: 48px;
  display: flex; flex-direction: column; gap: 32px;
  box-shadow: var(--shadow-card);
}
.why-stat { border-bottom: 1px solid var(--border-dk); padding-bottom: 28px; }
.why-stat:last-child { border-bottom: none; padding-bottom: 0; }
.why-stat-num { font-family: 'Orbitron', sans-serif; font-size: 2.8rem; font-weight: 900; background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.why-stat-label { color: var(--text-mid); font-size: 0.88rem; margin-top: 4px; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.sec-cta {
  background: linear-gradient(135deg, rgba(75,126,245,0.15) 0%, rgba(0,187,249,0.08) 100%), var(--navy-2);
  padding: 120px 0;
  border-top: 1px solid var(--border-dk);
}
.cta-inner { text-align: center; max-width: 680px; margin: 0 auto; }
.cta-inner h2 { color: var(--text-hi); margin-top: 16px; margin-bottom: 20px; }
.cta-inner p  { color: var(--text-mid); font-size: 1.05rem; margin-bottom: 40px; }
.cta-buttons  { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   ABOUT PAGE — MISSION / VALUES
   ============================================================ */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.mission-text h2 { color: var(--text-on-light); margin-top: 14px; margin-bottom: 20px; }
.mission-text p  { color: var(--text-on-light-2); margin-bottom: 20px; line-height: 1.8; }
.mission-visual {
  background: var(--navy-2); border: 1px solid var(--border-dk);
  border-radius: var(--r-lg); padding: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.m-stat { display: flex; flex-direction: column; gap: 4px; }
.m-stat-num { font-family: 'Orbitron', sans-serif; font-size: 2rem; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.m-stat-label { font-size: 0.82rem; color: var(--text-mid); }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  background: var(--white); border: 1px solid var(--border-lt);
  border-radius: var(--r-lg); padding: 36px 30px;
  transition: all 0.3s;
}
.value-card:hover { box-shadow: 0 12px 40px rgba(75,126,245,0.08); transform: translateY(-4px); }
.value-card .vi { width: 48px; height: 48px; background: rgba(75,126,245,0.08); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.value-card h4 { color: var(--text-on-light); margin-bottom: 10px; }
.value-card p  { color: var(--text-on-light-2); font-size: 0.88rem; line-height: 1.65; }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }
.service-text h2 { margin-top: 14px; margin-bottom: 18px; }
.service-text p  { margin-bottom: 24px; line-height: 1.8; font-size: 1rem; }
.service-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.service-feature { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; }
.sf-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }
.service-visual {
  background: var(--navy-3); border: 1px solid var(--border-dk);
  border-radius: var(--r-lg); aspect-ratio: 1 / 0.8;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; position: relative; overflow: hidden;
}
.service-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(75,126,245,0.12), transparent 60%);
}
/* Light variant */
.sec-light .service-text h2 { color: var(--text-on-light); }
.sec-light .service-text p  { color: var(--text-on-light-2); }
.sec-light .service-feature { color: var(--text-on-light-2); }
.sec-light .service-visual { background: var(--navy-3); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.contact-info h2 { color: var(--text-on-light); margin-top: 14px; margin-bottom: 18px; }
.contact-info > p { color: var(--text-on-light-2); margin-bottom: 40px; line-height: 1.8; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.cd-icon { width: 44px; height: 44px; flex-shrink: 0; background: rgba(75,126,245,0.08); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.cd-label { font-family: 'Orbitron', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.cd-value { color: var(--text-on-light); font-weight: 500; font-size: 0.95rem; }

.contact-form { background: var(--white); border: 1px solid var(--border-lt); border-radius: var(--r-lg); padding: 48px; box-shadow: 0 8px 48px rgba(75,126,245,0.06); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label { font-family: 'Bai Jamjuree', sans-serif; font-size: 0.82rem; font-weight: 600; color: var(--text-on-light); letter-spacing: 0.04em; }
.form-group label .required { color: #e02020; font-weight: 700; }
.field-error { font-size: 0.75rem; color: #e02020; margin-top: 4px; }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 0.92rem; color: var(--text-on-light);
  background: var(--light-2); border: 1.5px solid var(--border-lt);
  border-radius: var(--r-sm); padding: 12px 16px;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(75,126,245,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; padding: 16px; font-size: 0.95rem; justify-content: center; }

/* Page Hero (sub-pages) */
.page-hero {
  min-height: 52vh;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(75,126,245,0.2), transparent 70%),
    var(--navy);
  display: flex; align-items: flex-end; padding-bottom: 80px; padding-top: 140px;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.page-hero h1 { margin-top: 16px; color: var(--text-hi); }
.page-hero p   { color: var(--text-mid); max-width: 520px; margin-top: 16px; font-size: 1.05rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); border-top: 1px solid var(--border-dk); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand > p { color: var(--text-mid); font-size: 0.88rem; margin-top: 16px; max-width: 260px; line-height: 1.7; }
.footer-col h5 { font-family: 'Orbitron', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a  { color: var(--text-mid); font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text-hi); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--border-dk); font-size: 0.82rem; color: var(--text-dim); }
.footer-bottom a { color: var(--text-dim); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--text-mid); }
.social-links { display: flex; gap: 12px; }
.social-link { width: 36px; height: 36px; background: var(--navy-3); border: 1px solid var(--border-dk); border-radius: 10px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.social-link:hover { border-color: var(--border-dk2); background: var(--navy-4); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; padding: 130px 0 70px; }
  .hero-viz-wrap { display: none; }
  .hero-content { align-items: flex-start; }
  .why-grid { grid-template-columns: 1fr; }
  .why-panel { order: -1; }
  .mission-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-block { grid-template-columns: 1fr; gap: 40px; }
  .service-block.reverse { direction: ltr; }
}
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav-wrap { padding: 0 24px; }
  .nav-menu, .nav-right .btn { display: none; }
  .nav-hamburger { display: flex; }
  .steps-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .sec-dark, .sec-dark2, .sec-light, .sec-white { padding: 80px 0; }
  .curved-top { padding-top: calc(80px + var(--r-xl)); }
  .mission-visual { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hstat-sep { display: none; }
  .hstat { padding: 0; }
}
