:root {
  --bg: #070b18;
  --bg-soft: #0c1226;
  --surface: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f8ff;
  --muted: #a4aec8;
  --blue: #4d8dff;
  --cyan: #45d7e8;
  --violet: #9b7dff;
  --font: "Inter", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.page-glow {
  position: absolute;
  inset: 0 0 auto;
  height: 900px;
  z-index: -1;
  background:
    radial-gradient(ellipse 45% 45% at 78% 12%, rgba(77, 141, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 40% 40% at 12% 8%, rgba(155, 125, 255, 0.14), transparent 70%);
  pointer-events: none;
}

.site-header {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 6px 24px rgba(77, 141, 255, 0.35);
  font-weight: 800;
}

.brand-mark svg { width: 26px; height: 26px; }

.brand-mark.small { width: 26px; height: 26px; border-radius: 7px; font-size: 16px; }

.brand-name { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }

.brand-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--border);
  padding-left: 10px;
}

.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.site-nav a { transition: color 0.2s ease; }
.site-nav a:hover { color: var(--text); }

.nav-cta {
  padding: 9px 18px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.nav-cta:hover { border-color: rgba(77, 141, 255, 0.6); background: rgba(77, 141, 255, 0.12); }

.hero {
  width: min(1180px, calc(100% - 48px));
  margin: 64px auto 0;
  min-height: 540px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow {
  padding: 7px 14px;
  border: 1px solid rgba(69, 215, 232, 0.28);
  border-radius: 999px;
  background: rgba(69, 215, 232, 0.07);
}

.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

h1 {
  margin: 22px 0 20px;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(100deg, #79b3ff 10%, #a78bfa 55%, #6de3ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead { max-width: 590px; font-size: 17px; color: var(--muted); margin: 0; }
.hero-lead strong { color: var(--text); font-weight: 600; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #081022;
  background: linear-gradient(100deg, #7db7ff, #a78bfa);
  box-shadow: 0 12px 34px rgba(98, 141, 255, 0.3);
}

.btn-primary:hover { box-shadow: 0 16px 40px rgba(98, 141, 255, 0.45); }

.btn-ghost { border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn-large { padding: 17px 30px; font-size: 16px; }

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.hero-metrics > div { display: flex; flex-direction: column; gap: 2px; }
.metric { font-weight: 700; font-size: 15px; }
.metric-sub { color: var(--muted); font-size: 12px; }

.hero-visual { display: grid; place-items: center; min-height: 500px; }

.box-scene { position: relative; width: min(100%, 470px); aspect-ratio: 1; display: grid; place-items: center; }

.orbit { position: absolute; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 50%; }
.orbit-one { inset: 6%; animation: spin 40s linear infinite; }
.orbit-two { inset: 22%; border-style: dashed; border-color: rgba(125, 183, 255, 0.22); animation: spin 28s linear infinite reverse; }

.core {
  position: relative;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(77, 141, 255, 0.95), rgba(120, 96, 240, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 30px 80px rgba(77, 141, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: float 6s ease-in-out infinite;
}

.core-label { font-size: clamp(38px, 5vw, 58px); font-weight: 800; letter-spacing: -0.05em; }
.core-caption { font-size: 11px; letter-spacing: 0.32em; opacity: 0.85; }

.satellite {
  position: absolute;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(13, 20, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.sat-erp { top: 7%; left: 42%; animation: float 5.5s ease-in-out infinite; }
.sat-hrm { bottom: 19%; right: 1%; animation: float 6.5s ease-in-out infinite 0.8s; }
.sat-wms { bottom: 19%; left: 1%; animation: float 7s ease-in-out infinite 1.4s; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(16, 24, 48, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.float-card strong { color: var(--text); }
.card-insight { top: 21%; right: -3%; animation: float 6.2s ease-in-out infinite 0.3s; }
.card-icon { color: var(--cyan); font-size: 20px; }
.card-flow { bottom: -2%; left: 24%; animation: float 6.8s ease-in-out infinite 1s; }
.flow-line { width: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 110px 0 10px; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { margin: 14px 0 14px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.25; letter-spacing: -0.03em; }
.section-head p { color: var(--muted); margin: 0; font-size: 16px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature-card {
  padding: 32px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.feature-card:hover { transform: translateY(-6px); border-color: rgba(125, 183, 255, 0.45); background: linear-gradient(160deg, rgba(77, 141, 255, 0.12), rgba(255, 255, 255, 0.02)); }

.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 22px; }
.feature-icon svg { width: 26px; height: 26px; }
.icon-blue { color: #8fbcff; background: rgba(77, 141, 255, 0.15); }
.icon-violet { color: #bba6ff; background: rgba(155, 125, 255, 0.15); }
.icon-cyan { color: #79e6ef; background: rgba(69, 215, 232, 0.13); }

.feature-card h3 { margin: 0 0 8px; font-size: 22px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

.benefit-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 980px; margin: 0 auto; }

.benefit-item {
  display: flex;
  gap: 20px;
  padding: 26px 30px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.benefit-number { font-size: 14px; font-weight: 700; color: var(--blue); letter-spacing: 0.06em; padding-top: 3px; }
.benefit-item h3 { margin: 0 0 6px; font-size: 17px; }
.benefit-item p { margin: 0; color: var(--muted); font-size: 14px; }

.cta { width: min(1180px, calc(100% - 48px)); margin: 110px auto 0; }
.cta-inner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px 28px;
  border-radius: 28px;
  border: 1px solid rgba(125, 183, 255, 0.25);
  background:
    radial-gradient(ellipse 55% 120% at 50% 120%, rgba(77, 141, 255, 0.3), transparent 70%),
    linear-gradient(140deg, rgba(77, 141, 255, 0.12), rgba(155, 125, 255, 0.09));
}
.cta-inner h2 { margin: 14px 0 12px; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.03em; }
.cta-inner p { color: var(--muted); margin: 0 0 30px; }

.site-footer { width: min(1180px, calc(100% - 48px)); margin: 90px auto 0; padding: 28px 0 42px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 15px; }
.footer-sep { color: var(--muted); font-weight: 400; }
.site-footer p { margin: 8px 0 0; }
.site-footer .copyright { margin-top: 18px; font-size: 12px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; margin-top: 40px; gap: 32px; }
  .hero-visual { min-height: 420px; }
  .box-scene { width: min(100%, 400px); }
  .card-grid { grid-template-columns: 1fr; }
  .benefit-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header, .hero, .section, .cta, .site-footer { width: min(100% - 32px, 1180px); }
  .site-nav { gap: 14px; font-size: 13px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .brand-tag { display: none; }
  .hero { margin-top: 30px; }
  .hero-metrics { gap: 18px; }
  .hero-visual { min-height: 340px; }
  .card-insight { right: -6%; }
  .sat-hrm { right: -2%; }
  .section { padding-top: 80px; }
  .benefit-item { padding: 22px; }
  .cta-inner { padding: 56px 20px; }
}

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