:root {
  /* Colors */
  --bg-dark: #070F1E;
  --bg-card: rgba(15, 25, 45, 0.6);
  --bg-card-hover: rgba(20, 35, 60, 0.8);
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  
  --gold-primary: #FDB931;
  --gold-light: #FCEABB;
  --gold-dark: #B8860B;
  --gold-gradient: linear-gradient(135deg, #FDB931 0%, #d19a22 100%);
  
  --blue-primary: #1D4ED8;
  --blue-accent: #2563EB;
  --blue-glow: rgba(37, 99, 235, 0.3);
  
  --red-accent: #EF4444;
  --green-accent: #10B981;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(253, 185, 49, 0.2);
  
  /* Fonts */
  --font-ui: 'Inter', sans-serif;
  --font-thai: 'Prompt', sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  /* Sizes & Layout */
  --container-max: 1200px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================== Reset & Base ================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-thai);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 strong, h2 strong, h3 strong, p strong {
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ================== Utility Classes ================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 800px;
}

.section-padding {
  padding: 6rem 0;
}

.text-gold { color: var(--gold-primary); }
.text-blue { color: var(--blue-accent); }
.text-red { color: var(--red-accent); }
.text-green { color: var(--green-accent); }
.text-muted { color: var(--text-muted); }
.text-bold { font-weight: 800; }
.text-center { text-align: center; }

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.font-bold { font-weight: 600; }
.font-mono { font-family: 'Courier New', Courier, monospace; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.overflow-hidden { overflow: hidden; }

/* ================== Components ================== */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  text-align: center;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: 12px;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #070F1E;
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(253, 185, 49, 0.3);
}

.btn-glow {
  position: relative;
}
.btn-glow::after {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: var(--gold-gradient);
  z-index: -1;
  border-radius: inherit;
  filter: blur(10px);
  opacity: 0.5;
  transition: var(--transition-smooth);
}
.btn-glow:hover::after {
  opacity: 0.8;
  filter: blur(15px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  color: var(--text-main);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glass);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
}
.btn-outline:hover {
  background: var(--gold-primary);
  color: #070F1E;
}

/* Glass Panels & Cards */
.glass-panel, .glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
}

.glass-card {
  padding: 2rem;
  transition: transform var(--transition-smooth), background var(--transition-smooth), border-color var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--border-glass);
}

.card-glow {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.glass-card:hover .card-glow {
  opacity: 1;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.badge-accent {
  background: rgba(253, 185, 49, 0.1);
  border-color: rgba(253, 185, 49, 0.3);
  color: var(--gold-primary);
}

/* Icons */
.icon-sm { width: 1.25rem; height: 1.25rem; }
.icon-md { width: 2rem; height: 2rem; }
.icon-xl { width: 3.5rem; height: 3.5rem; }

/* Forms */
.input-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .input-grid { grid-template-columns: 1fr 1fr; }
}

.input-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.input-field label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

input, select, textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  color: var(--text-main);
  font-family: var(--font-thai);
  transition: all var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(253, 185, 49, 0.2);
  background: rgba(0, 0, 0, 0.4);
}

input::placeholder, textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* ================== Layout Sections ================== */

/* Navigation */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(7, 15, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--border-light);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 2rem; height: 2rem;
}

.nav-menu {
  display: none;
}
@media (min-width: 768px) {
  .nav-menu { display: block; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
}
.nav-links a:not(.btn):hover {
  color: var(--gold-primary);
}

.mobile-menu-btn {
  display: block;
  background: none; border: none;
  color: var(--text-main);
  cursor: pointer;
}
@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg .bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.overlay-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 80%),
              linear-gradient(to bottom, rgba(7,15,30,0.2) 0%, var(--bg-dark) 100%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .hero-stats { gap: 3rem; padding: 1.5rem 3rem; }
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.divider {
  width: 1px;
  height: 40px;
  background: var(--border-light);
}

/* Services */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.icon-wrapper {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: rgba(253, 185, 49, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(253, 185, 49, 0.2);
  transition: all var(--transition-fast);
}

.service-card:hover .icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: var(--gold-primary);
  color: var(--bg-dark);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Why Us */
.split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .split-layout { grid-template-columns: 1fr 1fr; gap: 6rem; }
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue-accent);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.feature-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.feature-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tech-mockup {
  padding: 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
}

.mockup-header {
  background: rgba(255,255,255,0.05);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.mockup-title {
  margin-left: auto; margin-right: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
}

.mockup-body {
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #A0AEC0;
}

.cmd { color: var(--gold-primary); font-weight: bold; margin-right: 0.5rem; }

.progress-bar-container {
  width: 100%; height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin: 1rem 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gold-gradient);
  width: 0%;
  animation: progressFill 4s ease-out forwards;
}

.stat-float {
  position: absolute;
  bottom: -2rem; left: -2rem;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: float 6s ease-in-out infinite;
  display: none;
}
@media (min-width: 768px) {
  .stat-float { display: flex; }
}

/* Background Blurs */
.bg-blur-circle {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.pos-right { top: 0; right: -200px; }
.pos-left { bottom: 0; left: -200px; background: radial-gradient(circle, rgba(253, 185, 49, 0.08) 0%, transparent 70%); }

/* Contact / CTA */
.cta-section {
  position: relative;
}

.cta-card {
  padding: 3rem 2rem;
  border-color: rgba(253, 185, 49, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 0 40px rgba(253, 185, 49, 0.05);
}
@media (min-width: 640px) {
  .cta-card { padding: 3rem; }
}

.cta-form { text-align: left; }

/* Footer */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.social-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}
.social-icon:hover {
  background: var(--gold-primary);
  color: var(--bg-dark);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  display: flex; flex-direction: column; gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 5px;
}

/* ================== Animations ================== */

@keyframes progressFill {
  0% { width: 0%; }
  30% { width: 45%; }
  60% { width: 45%; }
  100% { width: 100%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-up {
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; animation-fill-mode: both; }
.delay-2 { animation-delay: 0.2s; animation-fill-mode: both; }
.delay-3 { animation-delay: 0.3s; animation-fill-mode: both; }
.delay-4 { animation-delay: 0.4s; animation-fill-mode: both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
