/* DatacenterThailand.net - Hostyim-inspired Clean Light Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  --font-main: 'Prompt', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Prompt', 'Inter', sans-serif;
  
  --bg-dark: #f8fafc;
  --bg-main: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.9);
  
  --accent-blue: #0284c7;
  --accent-blue-hover: #0369a1;
  --accent-cyan: #06b6d4;
  --accent-navy: #0f172a;
  --accent-emerald: #16a34a;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 30px -4px rgba(2, 132, 199, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: #f8fafc;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.gradient-accent {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout Container */
.container-custom {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Glassmorphism Navigation */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(2, 132, 199, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

.btn-outline-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #f0f9ff;
  color: var(--accent-blue);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  border: 1px solid rgba(2, 132, 199, 0.3);
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-outline-blue:hover {
  background: var(--accent-blue);
  color: #ffffff;
}

/* Trust Badges */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: #0284c7;
  font-weight: 600;
}

/* Pricing Card Popular */
.pricing-card-popular {
  border: 2px solid var(--accent-blue) !important;
  background: #ffffff !important;
  position: relative;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.15) !important;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  right: 1.5rem;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

/* Interactive Calculator Box */
.calculator-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-blue);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.4);
  transition: transform 0.15s ease;
}
.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Accordion FAQ */
.faq-item {
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.faq-item:hover {
  border-color: rgba(2, 132, 199, 0.4);
}
.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-icon {
  transition: transform 0.3s ease;
  color: var(--accent-blue);
  flex-shrink: 0;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.7;
}
.faq-item.active .faq-content {
  padding-bottom: 1.25rem;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal-box {
  transform: scale(1);
}

/* Pulse indicator animation */
@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}
.pulse-indicator {
  width: 10px;
  height: 10px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-glow 2s infinite ease-in-out;
}

/* Mobile Navigation Drawer */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(-150%);
  transition: transform 0.3s ease-in-out;
  z-index: 45;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.mobile-menu.open {
  transform: translateY(0);
}

/* Terminal theme: compact, readable and intentionally low-noise */
:root {
  --font-main: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-heading: var(--font-main);
  --bg-dark: #070a0e;
  --bg-main: #0b0f14;
  --bg-card: #0f151d;
  --bg-card-hover: #121a24;
  --accent-blue: #58a6ff;
  --accent-blue-hover: #79b8ff;
  --accent-emerald: #7ee787;
  --text-primary: #e6edf3;
  --text-secondary: #b7c0ca;
  --text-muted: #8b949e;
  --text-dim: #6e7681;
  --border-subtle: #27313d;
  --border-strong: #3a4654;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
}

html, body, .terminal-site {
  font-family: var(--font-main) !important;
  background: var(--bg-main) !important;
  color: var(--text-primary) !important;
}
body {
  background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px) !important;
  background-size: 100% 4px !important;
}
::-webkit-scrollbar-track { background: #070a0e; }
::-webkit-scrollbar-thumb { background: #34404d; border-radius: 0; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading) !important;
  color: var(--text-primary) !important;
  letter-spacing: -.035em;
}
a { text-underline-offset: 3px; }
.container-custom { max-width: 1120px; }

.glass-nav {
  background: rgba(7, 10, 14, .96) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  box-shadow: none !important;
  backdrop-filter: blur(8px);
}
.glass-nav .container-custom { height: 64px !important; }
.glass-nav nav a { color: var(--text-secondary) !important; font-size: .78rem; }
.glass-nav nav a::before { content: "./"; color: var(--accent-emerald); }
.glass-nav nav a:hover { color: var(--accent-emerald) !important; }
.glass-nav nav {
  flex: 1 1 auto;
  justify-content: center;
  max-width: 560px;
}

/* Identical header geometry for every localized one-page site. */
@media (min-width: 1280px) {
  .onepage-home .glass-nav .container-custom {
    display: grid !important;
    grid-template-columns: 220px minmax(500px, 1fr) 360px;
    gap: 1rem;
    max-width: 1400px;
  }
  .onepage-home .glass-nav nav {
    width: 100%;
    max-width: none;
  }
  .onepage-home .glass-nav .container-custom > div.hidden {
    justify-self: end;
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .onepage-home .glass-nav nav,
  .onepage-home .glass-nav .container-custom > div.hidden {
    display: none !important;
  }
  .onepage-home #mobile-menu-toggle { display: inline-flex !important; }
}
.site-wordmark {
  color: var(--accent-emerald) !important;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.site-wordmark::before { content: "root@"; color: var(--text-muted); font-weight: 400; }
.site-wordmark::after { content: ":~$"; color: var(--text-muted); font-weight: 400; }

#hero {
  padding-top: 7.5rem !important;
  padding-bottom: 4.5rem !important;
  background: #0b0f14 !important;
  border-bottom: 1px solid var(--border-subtle) !important;
}
#hero .container-custom {
  max-width: 960px;
  padding: 0;
  border: 1px solid var(--border-strong);
  background: #090d12;
  text-align: left;
}
.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 38px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: #111821;
  color: var(--text-muted);
  font-size: .7rem;
}
.terminal-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.terminal-dot-red { background: #ff7b72; }
.terminal-dot-yellow { background: #d29922; }
.terminal-dot-green { background: #3fb950; }
.terminal-path { margin-left: .35rem; }
#hero .container-custom > :not(.terminal-titlebar) { margin-left: 3rem; margin-right: 3rem; }
#hero .trust-badge { margin-top: 2.5rem; }
.trust-badge {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: var(--accent-emerald) !important;
  font-size: .78rem;
}
.trust-badge::before { content: "$ systemctl status colocation  "; color: var(--text-muted); }
#hero h1 {
  max-width: 780px !important;
  margin: 1.6rem 3rem 1.5rem !important;
  font-size: clamp(2rem, 5vw, 3.4rem) !important;
  line-height: 1.18 !important;
}
.gradient-accent {
  background: none !important;
  -webkit-text-fill-color: var(--accent-blue) !important;
  color: var(--accent-blue) !important;
}
#hero p { color: var(--text-secondary) !important; max-width: 760px !important; margin-left: 3rem !important; margin-right: 3rem !important; }
#hero .grid { margin: 2.5rem 3rem 3rem !important; padding-top: 1.4rem !important; border-top-color: var(--border-subtle) !important; }
#hero .grid > div {
  padding: .75rem !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 2px solid var(--border-strong) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
#hero .grid > div > div:first-child { color: var(--accent-emerald) !important; font-size: 1.15rem !important; }

.btn-primary, .btn-secondary, .btn-outline-blue {
  min-height: 42px;
  padding: .65rem 1rem !important;
  border-radius: 3px !important;
  box-shadow: none !important;
  transform: none !important;
  font-size: .82rem;
}
.btn-primary {
  background: var(--accent-emerald) !important;
  border: 1px solid var(--accent-emerald) !important;
  color: #07110a !important;
}
.btn-primary:hover { background: #a5f3ad !important; }
.btn-secondary, .btn-outline-blue {
  background: transparent !important;
  border: 1px solid var(--border-strong) !important;
  color: var(--text-primary) !important;
}
.btn-secondary:hover, .btn-outline-blue:hover { border-color: var(--accent-emerald) !important; color: var(--accent-emerald) !important; }

section:not(#hero) {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
  background: var(--bg-main) !important;
  border-color: var(--border-subtle) !important;
}
section:not(#hero):nth-of-type(odd) { background: #090d12 !important; }
section h2 { font-size: clamp(1.6rem, 3vw, 2.15rem) !important; }
section h2::before { content: "$ "; color: var(--accent-emerald); font-weight: 400; }
section .uppercase { color: var(--accent-blue) !important; letter-spacing: .08em !important; }
section p, .text-slate-600, .text-slate-500, .text-slate-400 { color: var(--text-secondary) !important; }
.text-slate-900, .text-slate-800, .text-slate-700 { color: var(--text-primary) !important; }
.text-sky-600, .text-sky-500, .text-sky-400 { color: var(--accent-blue) !important; }
.text-emerald-600, .text-emerald-500 { color: var(--accent-emerald) !important; }
.terminal-site .bg-white,
.terminal-site .bg-slate-50,
.terminal-site .bg-slate-100,
.terminal-site .bg-sky-50,
.terminal-site .bg-sky-100,
.terminal-site .bg-blue-50,
.terminal-site .bg-indigo-50 { background-color: #111821 !important; }
.terminal-site .border-slate-100,
.terminal-site .border-slate-200,
.terminal-site .border-slate-300,
.terminal-site .border-sky-200,
.terminal-site .border-blue-200,
.terminal-site .border-indigo-200 { border-color: var(--border-subtle) !important; }
.glass-nav > .container-custom > a > div,
footer .container-custom > div > div > div {
  background: #111821 !important;
  border-color: var(--border-strong) !important;
  border-radius: 3px !important;
}

.glass-card, .calculator-box, .faq-item, #datacenter .grid > div, #contact .glass-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  transform: none !important;
}
.glass-card:hover, #datacenter .grid > div:hover { border-color: var(--accent-blue) !important; }
.glass-card [class*="rounded-2xl"], #datacenter [class*="rounded-xl"], #contact [class*="rounded-2xl"] {
  background: #111a23 !important;
  border-color: var(--border-strong) !important;
  border-radius: 3px !important;
}
.pricing-card-popular { border-color: var(--accent-emerald) !important; background: var(--bg-card) !important; }
.pricing-badge { top: -12px; background: var(--accent-emerald) !important; color: #07110a !important; border-radius: 2px !important; box-shadow: none !important; }
.calculator-box select, .calculator-box input {
  background: #080c11 !important;
  color: var(--text-primary) !important;
  border-color: var(--border-strong) !important;
  border-radius: 3px !important;
  box-shadow: none !important;
}
.calc-slider { background: #263241 !important; }
.calc-slider::-webkit-slider-thumb { background: var(--accent-emerald) !important; box-shadow: none !important; }
.calculator-box .bg-slate-50 { background: #080c11 !important; border-color: var(--border-subtle) !important; border-radius: 3px !important; }
.faq-trigger { color: var(--text-primary) !important; font-size: .9rem; padding: 1rem 1.2rem; }
.faq-trigger span::before { content: "> "; color: var(--accent-emerald); }
.faq-content { color: var(--text-secondary) !important; font-size: .85rem; }
.faq-icon { color: var(--accent-blue) !important; }

.mobile-menu {
  top: 64px;
  background: #090d12 !important;
  border-color: var(--border-subtle) !important;
  box-shadow: none !important;
}
.mobile-menu a { color: var(--text-secondary) !important; }
.mobile-menu a::before { content: "./"; color: var(--accent-emerald); }
footer {
  background: #070a0e !important;
  color: var(--text-secondary) !important;
  border-color: var(--border-subtle) !important;
}
footer * { border-color: var(--border-subtle) !important; }

/* Legal pages share the same terminal frame as the Thai master page. */
.legal-page main {
  margin-top: 7rem;
  margin-bottom: 4rem;
  padding: 0 0 2rem !important;
  border: 1px solid var(--border-strong);
  background: #090d12;
}
.legal-page main > .terminal-titlebar { margin-bottom: 0; }
.legal-page main > .mb-8 {
  margin: 0 !important;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.legal-page main > .space-y-6 { padding: 1.5rem 2rem; }
.legal-page main > .mt-8 { margin: 0 !important; padding: 0 2rem; }
.legal-page main h1 {
  font-size: clamp(1.65rem, 4vw, 2.25rem) !important;
  color: var(--text-primary) !important;
}
.legal-page main h1::before { content: "$ cat "; color: var(--accent-emerald); font-weight: 400; }
.legal-page main h2 { font-size: 1rem !important; color: var(--accent-blue) !important; }
.legal-page main h2::before { content: "> "; color: var(--accent-emerald); }
.legal-page main p { color: var(--text-secondary) !important; }
.legal-page main .glass-card { padding: 1.25rem !important; }

@media (max-width: 767px) {
  #hero { padding-top: 5.5rem !important; padding-left: .85rem; padding-right: .85rem; }
  #hero .container-custom > :not(.terminal-titlebar), #hero h1, #hero p { margin-left: 1.25rem !important; margin-right: 1.25rem !important; }
  #hero .grid { margin: 2rem 1.25rem 1.5rem !important; }
  #hero h1 { font-size: clamp(1.65rem, 8vw, 2.25rem) !important; }
  .terminal-path { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  section:not(#hero) { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
  .glass-card, .calculator-box { padding: 1.35rem !important; }
  .legal-page main { margin: 5.5rem .85rem 2rem; }
  .legal-page main > .mb-8,
  .legal-page main > .space-y-6 { padding-left: 1.25rem; padding-right: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
