/* ============================================================
   BlueRack Hosting — โทนสีฟ้าอ่อน (Light Blue)
   ============================================================ */
:root {
  --bg: #eaf4fd;
  --bg-soft: #f4faff;
  --surface: #ffffff;
  --ink: #0b3560;
  --muted: #5c81a6;
  --line: #cfe4f7;
  --primary: #1673e0;
  --primary-2: #37a6f0;
  --deep: #0a4b91;
  --chip: #dcecfc;
  --ok: #17a673;
  --warn: #e9930c;
  --bad: #e05252;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(22, 115, 224, .10);
  --shadow-lg: 0 22px 55px rgba(10, 75, 145, .16);
  --font: 'Prompt', 'Noto Sans Thai', 'Segoe UI', Tahoma, sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Sans Thai', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(55, 166, 240, .65); outline-offset: 2px;
}
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 600; }
.container { width: min(1160px, 92%); margin-inline: auto; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font); font-weight: 600; font-size: 15.5px; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 10px 24px rgba(22, 115, 224, .35); }
.btn-outline { background: rgba(255, 255, 255, .7); color: var(--deep); border-color: #9cc9ef; }
.btn-outline:hover { background: #fff; border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--deep); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Alert / flash ---------- */
.alert { border-radius: 12px; padding: 14px 18px; margin: 0 0 18px; font-size: 15px; border: 1px solid; }
.alert-success { background: #e7f8f1; border-color: #a9e3cd; color: #0d6b49; }
.alert-error { background: #fdeeee; border-color: #f2c1c1; color: #9c2f2f; }
.alert-info { background: #e8f3fe; border-color: #bcdcf8; color: #175c9e; }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: box-shadow .25s, background .25s; }
.nav-wrap { padding: 14px 0; }
.navbar {
  display: flex; align-items: center; gap: 18px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(207, 228, 247, .9);
  border-radius: 999px; padding: 10px 12px 10px 20px;
  box-shadow: var(--shadow);
}
.site-header.scrolled .navbar { box-shadow: var(--shadow-lg); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--deep); letter-spacing: .2px; }
.brand svg { flex: 0 0 auto; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 1.5px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; }
.nav-links a {
  display: block; padding: 9px 16px; border-radius: 999px; color: var(--ink);
  font-weight: 500; font-size: 15px; transition: background .18s, color .18s;
}
.nav-links a:hover { background: var(--chip); color: var(--deep); }
.nav-links a.active { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(22,115,224,.35); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--deep); margin: 0 auto; position: relative; transition: transform .25s, opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- FOOTER ---------- */
.site-footer { margin-top: 70px; background: linear-gradient(180deg, #ddeefc, #cfe6fa); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding: 48px 0 34px; }
.footer-grid h4 { font-size: 15px; letter-spacing: .5px; color: var(--deep); text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 14.5px; }
.footer-grid a { color: var(--ink); }
.footer-grid a:hover { color: var(--primary); }
.footer-brand { font-size: 20px; font-weight: 700; color: var(--deep); margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(11, 53, 96, .12); padding: 16px 0; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }

/* ---------- หน้ารอง (page head) ---------- */
.page-head { background: linear-gradient(135deg, #d9ecfc, #eaf6ff 55%, #dcedfb); border-bottom: 1px solid var(--line); padding: 54px 0 46px; }
.page-head h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; }
.page-head p { max-width: 720px; color: var(--muted); margin: 0; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }

.section { padding: 64px 0; }
.section-alt { background: linear-gradient(180deg, #fff 0%, #eef7ff 100%); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); }
.section-head .eyebrow { display: inline-block; background: var(--chip); color: var(--deep); font-size: 13px; font-weight: 600; padding: 5px 16px; border-radius: 999px; margin-bottom: 14px; letter-spacing: .5px; }

/* ---------- การ์ดทั่วไป / ฟอร์ม ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label.f-label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; }
label.f-label .req { color: var(--bad); }
.inp {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid #b9d8f2;
  background: #fbfdff; font-family: var(--font); font-size: 15px; color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
}
.inp:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(22, 115, 224, .13); outline: none; }
textarea.inp { min-height: 150px; resize: vertical; }
.help { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ============================================================
   HERO BANNER — Scene ห้องเซิร์ฟเวอร์ / Storage Rack เคลื่อนไหว
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, #bfdff8 0%, transparent 60%),
    linear-gradient(160deg, #e8f5ff 0%, #d3eafc 45%, #c2e0f9 100%);
  min-height: 560px;
  display: flex; align-items: center;
}
.hero::after { /* พื้นเงาสะท้อน */
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(180deg, transparent, rgba(22, 115, 224, .12));
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(22,115,224,.09) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(22,115,224,.09) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: gridDrift 22s linear infinite;
}
@keyframes gridDrift { to { background-position: 44px 44px; } }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding: 70px 0 90px; position: relative; z-index: 2; width: min(1160px, 92%); margin-inline: auto;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.8); border: 1px solid #bcd9f3; color: var(--deep);
  padding: 6px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; margin-bottom: 18px;
}
.hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(23,166,115,.5);} 55% { box-shadow: 0 0 0 6px rgba(23,166,115,0);} }
.hero-slides { position: relative; min-height: 260px; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease; pointer-events: none;
}
.hero-slide.active { opacity: 1; transform: none; pointer-events: auto; }
.hero-slide h1 {
  font-size: clamp(28px, 4.6vw, 44px); font-weight: 700; letter-spacing: -.3px;
  color: #0a2f55; margin: 0 0 14px;
}
.hero-slide h1 em { font-style: normal; color: var(--primary); position: relative; }
.hero-slide h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 9px; z-index: -1;
  background: linear-gradient(90deg, rgba(110,190,255,.75), rgba(160,220,255,.15)); border-radius: 4px;
}
.hero-slide .lede { font-size: 17px; color: #3f6890; max-width: 520px; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { display: flex; gap: 9px; margin-top: 30px; }
.hero-dots button {
  width: 34px; height: 6px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(11,53,96,.18); transition: background .25s, width .25s; padding: 0;
}
.hero-dots button.active { background: var(--primary); width: 52px; }
.hero-stats { display: flex; gap: 34px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats b { font-family: var(--mono); font-size: 24px; color: var(--deep); display: block; }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* ---------- ตัวตู้ Rack ---------- */
.rack-scene { position: relative; height: 430px; perspective: 1200px; }
.rack-scene .floor {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  width: 115%; height: 70px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10,75,145,.25), transparent 75%);
  filter: blur(6px);
}
.cabinet {
  position: absolute; bottom: 26px; width: 170px;
  background: linear-gradient(180deg, #123c66, #0a2c4d);
  border: 2px solid #1d5b93; border-radius: 14px;
  padding: 12px 10px; box-shadow: 14px 24px 44px rgba(8, 45, 80, .35), inset 0 1px 0 rgba(255,255,255,.12);
  animation: cabFloat 7s ease-in-out infinite;
}
.cabinet.c1 { left: 4%;  height: 300px; transform: rotateY(7deg); }
.cabinet.c2 { left: 34%; height: 384px; z-index: 3; animation-delay: -2.4s; }
.cabinet.c3 { right: 4%; height: 264px; transform: rotateY(-7deg); animation-delay: -4.6s; }
@keyframes cabFloat { 50% { margin-bottom: 8px; } }
.cabinet .cab-top {
  height: 18px; border-radius: 6px; margin-bottom: 10px;
  background: repeating-linear-gradient(90deg, #164a7c 0 6px, #0f3a61 6px 12px);
  position: relative; overflow: hidden;
}
.cabinet .cab-top::after { /* มือจับหน้าตู้ */
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 5px; border-radius: 3px; background: #9fd2ff; opacity: .8;
}
.rack-unit {
  position: relative; display: flex; align-items: center; gap: 4px;
  height: 26px; margin-bottom: 7px; padding: 0 8px; border-radius: 5px;
  background: linear-gradient(180deg, #e9f4ff, #c6ddf3);
  box-shadow: inset 0 -2px 0 rgba(10,60,105,.25), 0 2px 4px rgba(0,0,0,.28);
}
.rack-unit.server { animation: tray 9s ease-in-out infinite; }
.rack-unit.server:nth-child(3n)   { animation-delay: -3s; }
.rack-unit.server:nth-child(4n+1) { animation-delay: -6s; }
@keyframes tray { /* แถบเซิร์ฟเวอร์เลื่อนเข้าออกแบบเสียบถาด */
  0%, 62%, 100% { transform: translateX(0); }
  70%, 92% { transform: translateX(9px); }
}
.rack-unit .vents {
  position: absolute; left: 40px; right: 34px; top: 50%; transform: translateY(-50%);
  height: 12px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, rgba(10,75,145,.32) 0 4px, transparent 4px 9px);
}
.rack-unit .tag { margin-left: auto; font: 600 7.5px var(--mono); color: #17538c; letter-spacing: .5px; z-index: 2; }
.led { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 6px currentColor; }
.led.g { color: #35e07a; background: #35e07a; animation: blink .9s steps(1) infinite; }
.led.c { color: #52d9ff; background: #52d9ff; animation: blink 1.3s steps(1) infinite .2s; }
.led.a { color: #ffb454; background: #ffb454; animation: blink 2s steps(1) infinite .4s; }
.led.off { color: #9db8cf; background: #9db8cf; animation: none; box-shadow: none; }
@keyframes blink { 0%,54% { opacity: 1; } 55%,100% { opacity: .18; } }
.fan {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto; z-index: 2;
  background: conic-gradient(#3f79b4 0 25%, #e9f4ff 0 50%, #3f79b4 0 75%, #e9f4ff 0);
  border: 2px solid #2a5d92; animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cabinet .cab-label {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font: 700 10px var(--mono); letter-spacing: 1.5px; color: #bfe3ff;
  background: rgba(8,40,71,.9); border: 1px solid #1d5b93; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
/* สายแลนและแพ็กเก็ตข้อมูลวิ่ง */
.netline { stroke: rgba(130,205,255,.35); stroke-width: 2; fill: none; }
.packet { fill: #6fd6ff; filter: drop-shadow(0 0 4px #6fd6ff); }
.spark-line { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
/* ผ้าใบหลังตู้: โค้ดวิ่งแบบ terminal */
.data-column {
  position: absolute; top: 6%; width: 130px; font: 11px/1.9 var(--mono); color: rgba(23,110,199,.4);
  white-space: pre; animation: rain 9s linear infinite; pointer-events: none; z-index: 0;
}
@keyframes rain { from { transform: translateY(-45%); } to { transform: translateY(45%); } }
/* hero เวอร์ชันย่อสำหรับหน้ารอง */
.hero.hero-sm { min-height: unset; }
.hero-sm .hero-inner { padding: 54px 0 60px; }

@media (prefers-reduced-motion: reduce) {
  .hero-grid, .cabinet, .rack-unit.server, .led, .fan, .data-column { animation: none !important; }
  .hero-slide { transition: opacity .3s; }
}
/* ============================================================
   FEATURE / PLANS / TESTIMONIALS
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #e2f1fe, #c9e5fb); color: var(--primary); margin-bottom: 16px;
}
.feature h3 { font-size: 17.5px; }
.feature p { font-size: 14.5px; color: var(--muted); margin: 0; }
.feature::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), #7cc7ff); opacity: 0; transition: opacity .22s;
}
.feature:hover::before { opacity: 1; }

/* ---------- แพลนบริการ ---------- */
.cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.cat-tab {
  border: 1.5px solid #bcd9f3; background: rgba(255,255,255,.75); color: var(--deep);
  padding: 8px 20px; border-radius: 999px; font: 600 14px var(--font); cursor: pointer; transition: all .2s;
}
.cat-tab:hover { border-color: var(--primary); }
.cat-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(22,115,224,.3); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.plan-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px;
  padding: 30px 26px 26px; box-shadow: var(--shadow); transition: transform .22s, box-shadow .22s, border-color .22s;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #9ccdf4; }
.plan-card.popular { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: linear-gradient(135deg, #ffb454, #ff8f3d); color: #5e2f00;
  font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: 999px; letter-spacing: .4px;
  box-shadow: 0 6px 14px rgba(255,143,61,.4);
}
.plan-cat { font-size: 12px; font-weight: 600; color: var(--primary); letter-spacing: .6px; text-transform: uppercase; margin-bottom: 6px; }
.plan-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.plan-tagline { font-size: 13.5px; color: var(--muted); min-height: 42px; margin-bottom: 16px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; padding: 14px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin-bottom: 18px; }
.plan-price .baht { font-size: 15px; color: var(--deep); font-weight: 600; }
.plan-price .num { font-family: var(--mono); font-size: 40px; font-weight: 700; color: var(--deep); letter-spacing: -1px; line-height: 1; }
.plan-price .per { color: var(--muted); font-size: 14px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan-features li { position: relative; padding: 5px 0 5px 26px; font-size: 14.5px; color: #27527e; }
.plan-features li::before {
  content: "✓"; position: absolute; left: 0; top: 5px; width: 17px; height: 17px; font-size: 11px;
  display: grid; place-items: center; border-radius: 50%; background: #d8f3e7; color: var(--ok); font-weight: 700;
}
.svc-strip { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.85);
  border: 1px solid #bcd9f3; border-radius: 999px; padding: 8px 18px; font-size: 13.5px; font-weight: 600; color: var(--deep);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(23,166,115,.18); }

/* ---------- เกี่ยวกับเรา 2 คอลัมน์ ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.prose p { margin: 0 0 14px; color: #27527e; font-size: 15.5px; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { position: relative; padding: 9px 0 9px 34px; border-bottom: 1px dashed var(--line); font-size: 15px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 20px; height: 20px; border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 3px 8px rgba(22,115,224,.35);
}
.checklist li::after { content: "✓"; position: absolute; left: 4.5px; top: 12.5px; color: #fff; font-size: 12px; font-weight: 700; }

/* ---------- รีวิวลูกค้า ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.quote-card .mark { font-family: Georgia, serif; font-size: 44px; line-height: .6; color: #a8d4f5; margin-bottom: 10px; }
.quote-card p { flex: 1; font-size: 14.5px; color: #2c5780; margin: 0 0 16px; }
.quote-card .who { display: flex; align-items: center; gap: 10px; border-top: 1px dashed var(--line); padding-top: 14px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #63b9f5); color: #fff; font-weight: 700; font-size: 16px;
}
.quote-card .who b { display: block; font-size: 14px; }
.quote-card .who span { font-size: 12.5px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 24px; margin: 10px 0;
  background: linear-gradient(120deg, #0d5aa8, #1673e0 45%, #38a5ef);
  color: #eaf6ff; padding: 46px 48px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
  box-shadow: 0 24px 60px rgba(13, 90, 168, .35);
}
.cta::before {
  content: ""; position: absolute; right: -70px; top: -90px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.22), transparent);
}
.cta h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin: 0 0 6px; }
.cta p { margin: 0; opacity: .85; max-width: 520px; }
.cta .btn-area { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn-white { background: #fff; color: var(--deep); }
.cta .btn-outline-w { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
/* ============================================================
   WHOIS
   ============================================================ */
.whois-box { max-width: 860px; margin: -30px auto 0; position: relative; z-index: 5; }
.whois-form { display: flex; gap: 10px; }
.whois-form .domain-pre {
  display: flex; align-items: center; gap: 6px; padding: 0 6px 0 16px;
  border: 1.5px solid #b9d8f2; border-right: 0; border-radius: 12px 0 0 12px;
  background: #f0f7ff; color: var(--muted); font-family: var(--mono); font-size: 15px;
}
.whois-form input[type=text] {
  flex: 1; border-radius: 0 12px 12px 0; padding: 15px 18px; font-family: var(--mono); font-size: 16px;
  border: 1.5px solid #b9d8f2; background: #fbfdff; color: var(--ink);
}
.tlds { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tlds button {
  border: 1px solid #bcd9f3; background: rgba(255,255,255,.8); border-radius: 8px;
  font: 600 13px var(--mono); color: var(--deep); padding: 4px 12px; cursor: pointer; transition: all .15s;
}
.tlds button:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.whois-result { margin-top: 28px; }
.whois-status { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-radius: 16px; border: 1px solid; margin-bottom: 22px; }
.whois-status .big { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: #fff; flex: 0 0 auto; }
.whois-status.ok { background: #e9f9f1; border-color: #b5e6cf; color: #0d6640; }
.whois-status.ok .big { background: var(--ok); }
.whois-status.bad { background: #fdeeee; border-color: #f3c5c5; color: #8f2b2b; }
.whois-status.bad .big { background: var(--bad); }
.whois-status b { font-size: 18px; display: block; }
.whois-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.whois-table th, .whois-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.whois-table th { width: 210px; color: var(--muted); font-weight: 600; background: #f4faff; }
.whois-table td { font-family: var(--mono); font-size: 13.5px; word-break: break-all; }
.whois-raw { margin-top: 18px; }
.whois-raw summary { cursor: pointer; font-weight: 600; color: var(--primary); font-size: 14px; }
.whois-raw pre {
  margin-top: 10px; background: #0b2d4d; color: #bfe3ff; font-family: var(--mono); font-size: 12.5px;
  padding: 20px; border-radius: 14px; max-height: 340px; overflow: auto; white-space: pre-wrap; word-break: break-all;
}
/* ============================================================
   แจ้งชำระเงิน / ธนาคาร
   ============================================================ */
.pay-layout { display: grid; grid-template-columns: 400px 1fr; gap: 30px; align-items: start; }
.bank-card { border: 1.5px dashed #a8cfef; border-radius: 16px; padding: 20px 22px; background: linear-gradient(150deg, #f2f9ff, #e4f2fd); margin-bottom: 18px; position: relative; }
.bank-card .bank-head { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--deep); margin-bottom: 12px; }
.bank-card .bank-head .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 15px; }
.acct { display: flex; align-items: center; gap: 12px; }
.acct .num { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--deep); letter-spacing: .5px; }
.copy-btn {
  border: 1px solid #a8cfef; background: #fff; color: var(--deep); border-radius: 8px;
  font: 600 12.5px var(--font); padding: 6px 13px; cursor: pointer; transition: all .15s;
}
.copy-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.acct-holder { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.pay-note { background: #fff8e9; border: 1px solid #f0dcae; border-radius: 12px; padding: 14px 16px; font-size: 14px; color: #7a5b17; }
.radio-bank { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-bank label {
  border: 1.5px solid #b9d8f2; background: #fbfdff; border-radius: 12px; padding: 12px 18px;
  cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--ink); transition: all .15s; display: flex; gap: 8px; align-items: center;
}
.radio-bank input { accent-color: var(--primary); }
.radio-bank label:has(input:checked) { border-color: var(--primary); background: var(--chip); color: var(--deep); }
.ref-chip {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 15px; font-weight: 700;
  background: var(--deep); color: #bfe8ff; padding: 9px 16px; border-radius: 10px; letter-spacing: 1px;
}
.success-panel { text-align: center; max-width: 640px; margin: 0 auto; padding: 40px 30px; }
.success-panel .big-check {
  width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #17a673, #4ecfa0); color: #fff; font-size: 40px;
  box-shadow: 0 16px 36px rgba(23,166,115,.4); animation: popIn .45s cubic-bezier(.2,1.6,.5,1);
}
@keyframes popIn { from { transform: scale(.4); opacity: 0; } }
/* ---------- FAQ / empty-state / contact ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 17px 22px; font-weight: 600; color: var(--deep); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--primary); transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .a { padding: 0 22px 18px; color: #33608b; font-size: 14.5px; white-space: pre-line; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 30px; align-items: stretch; }
.contact-grid > *, .form-grid > *, .split > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .icon { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 13px; background: linear-gradient(135deg, #e2f1fe, #c9e5fb); color: var(--primary); display: grid; place-items: center; }
.info-row b { display: block; font-size: 15px; color: var(--deep); }
.info-row p { margin: 3px 0 0; font-size: 14.5px; color: var(--muted); white-space: pre-line; }
.empty-state { text-align: center; color: var(--muted); padding: 60px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); }
.pick-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pick-row label { position: relative; }
.pick-row input { position: absolute; opacity: 0; }
.pick-row span {
  display: inline-block; border: 1.5px solid #b9d8f2; background: #fbfdff; border-radius: 999px;
  padding: 9px 18px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; transition: all .15s;
}
.pick-row label:hover span { border-color: var(--primary); }
.pick-row input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 14px rgba(22,115,224,.3); }
.pick-row input:focus-visible + span { outline: 3px solid rgba(55,166,240,.65); outline-offset: 2px; }
/* ---------- รายละเอียดเพิ่มสำหรับ rack scene ---------- */
.rack-unit .ledrow { display: flex; gap: 3px; }
.drivebank { position: absolute; left: 40px; right: 34px; top: 50%; transform: translateY(-50%); display: flex; gap: 3px; height: 14px; }
.drivebank i {
  flex: 1; border-radius: 2px; background: #b9d5ee; border-top: 2px solid #8fb9dd;
  animation: drive 1.6s ease-in-out infinite;
}
.drivebank i:nth-child(2) { animation-delay: .3s; }
.drivebank i:nth-child(3) { animation-delay: .7s; }
.drivebank i:nth-child(4) { animation-delay: 1.1s; }
.drivebank i:nth-child(5) { animation-delay: 1.4s; }
@keyframes drive { 30% { background: #6fd6ff; box-shadow: 0 0 6px rgba(111,214,255,.8); } 60% { background: #b9d5ee; } }
.rack-unit.portrow { justify-content: flex-start; gap: 5px; padding-left: 10px; }
.netline.dash-move { stroke: rgba(130,205,255,.5); stroke-dasharray: 7 16; animation: dashMove 1.4s linear infinite; }
.netline.dash-move-2 { stroke: rgba(111,214,255,.55); stroke-dasharray: 3 22; animation: dashMove 2s linear infinite reverse; }
@keyframes dashMove { to { stroke-dashoffset: -46; } }
.linkbar { fill: #0f3a61; stroke: #1d5b93; stroke-width: 2; }
.linkbar-leds circle { fill: #35e07a; animation: blink 1.1s steps(1) infinite; }
.linkbar-leds circle.alt { fill: #52d9ff; animation-delay: .5s; }
.hero-shot { display: inline-block; margin-top: 16px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transform: rotate(-1.4deg); box-shadow: var(--shadow-lg); }
.hero-shot img { border-radius: 9px; max-height: 150px; width: auto; }
@media (prefers-reduced-motion: reduce) { .drivebank i, .netline.dash-move, .netline.dash-move-2, .linkbar-leds circle { animation: none; } }

/* ---------- Status board (ตัวอย่างข้อมูล) ---------- */
.status-board { background: #0b2d4d; border-radius: 20px; padding: 26px 28px; color: #cfe8ff; box-shadow: 0 26px 60px rgba(8,45,84,.4); border: 1px solid #1d5b93; }
.status-board .board-head { font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .8px; color: #9fd2ff; display: flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.meter { display: grid; grid-template-columns: 118px 1fr 56px; align-items: center; gap: 12px; margin-bottom: 13px; font-size: 13px; color: #86b7e4; }
.meter .bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.09); overflow: hidden; }
.meter .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #1673e0, #52d9ff); animation: meterMove 6s ease-in-out infinite alternate; }
.meter .fill.c2 { animation-duration: 8s; animation-delay: -2s; }
.meter .fill.c3 { animation-duration: 5s; animation-delay: -3s; }
@keyframes meterMove { from { filter: brightness(.85); } 50% { filter: brightness(1.25); } to { filter: brightness(1); } }
.meter b { font-family: var(--mono); font-size: 12.5px; color: #9fd2ff; text-align: right; }
.board-rows { margin-top: 18px; border-top: 1px dashed rgba(159,210,255,.3); padding-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; font-size: 12.5px; }
.board-rows div { display: flex; align-items: center; gap: 8px; color: #a6cdec; }
.board-rows b { margin-left: auto; font-family: var(--mono); color: #eaf6ff; font-weight: 600; }
.ok-dot { width: 7px; height: 7px; border-radius: 50%; background: #35e07a; box-shadow: 0 0 7px #35e07a; flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) { .meter .fill { animation: none; } }

/* ---------- ขั้นตอน (steps text lines) ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; }

/* ---------- Animation on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .pay-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 54px 0 70px; }
  .rack-scene { display: none; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .navbar { border-radius: 22px; flex-wrap: wrap; padding: 10px 14px; }
  .nav-links {
    flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px;
    max-height: 0; overflow: hidden; transition: max-height .35s ease; margin-left: 0;
  }
  .nav-links.open { max-height: 440px; padding-top: 12px; }
  .nav-links a { padding: 12px 16px; border-radius: 12px; }
  .nav-cta { display: none; }
}
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .plan-grid, .feature-grid, .quote-grid { grid-template-columns: 1fr; }
  .cta { padding: 34px 26px; }
  .cta .btn-area { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .whois-form { flex-wrap: wrap; }
  .whois-form input[type=text] { border-radius: 0 0 12px 12px; min-width: 0; }
  .whois-form .btn { width: 100%; }
  .hero-slide .lede { font-size: 15.5px; }
  .section { padding: 48px 0; }
}
