:root {
  --bg: #0b0e13;
  --card: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.12);
  --white: #f5f8ff;

  --text: #abb7c9;
  --text-strong: #dfe6f6;

  --brand-1: #7c5cff; /* ม่วง */
  --brand-2: #2ee4a6; /* เขียวมิ้นต์ */
  --brand-3: #2f6dff; /* น้ำเงินสด */

  --glass: rgba(255, 255, 255, 0.06);
  --blur: 16px;

  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Kanit",
    sans-serif;
}

/* กัน navbar ล่าง */
body {
  padding-bottom: 110px;
}

/* === พื้นหลังหน้า Home (ใช้กับ <body class="home-body">) === */
.home-body {
  background: radial-gradient(
    1200px 600px at 50% -10%,
    #0f1622 0%,
    #0b1017 50%,
    #0a0f15 100%
  );
  color: #e5e7eb;
  padding-bottom: 231px;
}

/* Container กลางจอ (ใช้ร่วมกับหน้าอื่นได้ ไม่เสี่ยงชน) */
.container {
  width: min(830px, 92vw);
  margin-inline: auto;
}

/* === Orbs (เลือกระบบ ::after ตัวเดียว เพื่อลดชน) === */
.bg-orb {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.orb-a::after,
.orb-b::after,
.orb-c::after {
  content: "";
  position: absolute;
  filter: blur(80px);
  opacity: 0.28;
  mix-blend-mode: screen;
}
.orb-a::after {
  width: 480px;
  height: 480px;
  left: -120px;
  top: -80px;
  background: radial-gradient(circle, #5b7cfa, transparent 60%);
}
.orb-b::after {
  width: 540px;
  height: 540px;
  right: -160px;
  top: 100px;
  background: radial-gradient(circle, #a272ff, transparent 60%);
}
.orb-c::after {
  width: 420px;
  height: 420px;
  left: 40%;
  bottom: -140px;
  background: radial-gradient(circle, #35e0b0, transparent 60%);
}

/* === HERO === */
.hero {
  text-align: center;
  padding: 48px 0 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo-wrap {
  display: grid;
  place-items: center;
  background: #0e1420;
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.title {
  font-size: clamp(28px, 4.2vw, 40px);
  letter-spacing: 0.4px;
  margin: 0;
  background: linear-gradient(90deg, #8ab4ff, #caa9ff, #9af0d1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title span {
  font-weight: 800;
}
.subtitle {
  margin: 12px auto 18px;
  color: #b9c4d0;
  font-size: 15.5px;
}
.subtitle b {
  color: #fff;
}
.sparkle {
  color: #a78bfa;
  margin-left: 6px;
}

/* === CTA Buttons (พร้อมเอฟเฟกต์ mouse highlight) === */
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 14px 0 10px;
}

.cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  color: #e8ecf3;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;

  /* [แก้ไข] นำสไตล์สี Gradient มาใส่ที่นี่ */
  background: linear-gradient(180deg, #3a66ff 0%, #304adf 100%);
  border: 1px solid rgba(100, 140, 255, 0.45);
}

.cta .icon {
  display: grid;
  place-items: center;
}

/* คลาส .primary และ .ghost ยังคงอยู่เผื่อใช้งานในอนาคต */
.cta.primary {
  background: linear-gradient(180deg, #3a66ff 0%, #304adf 100%);
  border-color: rgba(100, 140, 255, 0.45);
}

.cta.ghost {
background: linear-gradient(180deg, #3a66ff 0%, #304adf 100%);
  border-color: rgba(100, 140, 255, 0.45);
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(40, 87, 255, 0.15);
}

.cta::after {
  content: "";
  position: absolute;
  left: var(--mx);
  top: var(--my);
  width: 160px;
  height: 160px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.35),
    transparent 55%
  );
  opacity: 0.15;
  pointer-events: none;
  transition: left 0.05s linear, top 0.05s linear;
}

/* Badges ใต้ CTA */
.mini-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}
.badge {
  font-size: 12px;
  color: #cbd5e1;
  background: #0c121a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 10px;
  border-radius: 999px;
}

/* === FEATURES (ใช้ .features + .feature-card + .f-icon) === */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 26px auto 8px;
}
@media (max-width: 880px) {
  .features {
    grid-template-columns: 1fr;
  }
}
.feature-card {
  background: linear-gradient(180deg, #0e141d 0%, #0b1118 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px 16px 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}
.f-icon {
  font-size: 20px;
}
.feature-card h3 {
  margin: 8px 0 6px;
  font-size: 16px;
  color: #eaf2ff;
}
.feature-card p {
  margin: 0;
  color: #aab6c3;
  font-size: 14px;
}

/* === HOW (ขั้นตอน) === */
.how {
  padding: 18px 0 90px;
}
.how h2 {
  text-align: center;
  font-size: clamp(18px, 3.4vw, 22px);
  margin: 4px 0 12px;
  background: linear-gradient(90deg, #8ab4ff, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0f1622;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
  color: #d6dee8;
}
.steps li span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(180deg, #3b82f6, #7c3aed);
  color: #fff;
  box-shadow: 0 8px 18px rgba(60, 100, 255, 0.25);
}

/* === Tilt effect (ใช้ร่วมกับ .tilt) === */
.tilt {
  will-change: transform;
  transition: transform 0.15s ease;
  transform-style: preserve-3d;
}
