/* ===== Design tokens ===== */
:root {
  --bg: #0a0e1a;
  --bg-soft: #0f1525;
  --bg-card: #131a2c;
  --border: #1f2940;
  --text: #e6ebf5;
  --text-dim: #97a3bd;
  --primary: #22d3ee;
  --primary-2: #3b82f6;
  --accent: #34f5c5;
  --danger: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --font-head: "Space Grotesk", "Sarabun", sans-serif;
  --font-body: "Sarabun", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; font-weight: 600; }

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

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #04121f; font-family: var(--font-head); font-weight: 600;
  padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 0.98rem; transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 30px -10px rgba(34, 211, 238, 0.6);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(34, 211, 238, 0.7); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 16px -8px rgba(0, 0, 0, 0.25);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 100px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-logo-img {
  height: 70px; width: auto; display: block;
}
.footer-logo-img { height: 80px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: #1f2a6b; font-weight: 500; font-size: 0.96rem; transition: color .2s; }
.nav-links a:hover { color: #c8202e; }
.nav-links a.btn { color: #04121f; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #1f2a6b; border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 50% -10%, rgba(34, 211, 238, 0.18), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(59, 130, 246, 0.16), transparent 45%),
    linear-gradient(transparent 0 39px, rgba(255,255,255,0.03) 40px),
    linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,0.03) 40px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}
.hero-inner { position: relative; max-width: 820px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -0.02em; margin-bottom: 22px; }
.hero-sub { color: var(--text-dim); font-size: 1.1rem; max-width: 660px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--text); }
.hero-stats span { color: var(--text-dim); font-size: 0.92rem; }

/* ===== Trust bar ===== */
.trustbar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 22px 24px; }
.trust-inner span { color: var(--text-dim); font-family: var(--font-head); font-weight: 500; letter-spacing: 0.04em; font-size: 0.92rem; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 16px; }
.section-lead { color: var(--text-dim); font-size: 1.05rem; }

/* ===== Solution cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card:hover { transform: translateY(-6px); border-color: #2c3a5c; box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(34,211,238,0.16), rgba(59,130,246,0.16));
  color: var(--primary); margin-bottom: 20px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.96rem; margin-bottom: 16px; }
.card-list { list-style: none; display: grid; gap: 8px; }
.card-list li { position: relative; padding-left: 22px; font-size: 0.9rem; color: var(--text-dim); }
.card-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 18px; letter-spacing: -0.02em; }
.about-text p { color: var(--text-dim); margin-bottom: 16px; }
.about-text strong { color: var(--text); }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.about-points div { display: flex; align-items: center; gap: 10px; font-size: 0.94rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 4px rgba(52,245,197,0.15); }

.about-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.ac-row { display: flex; justify-content: space-between; font-size: 0.92rem; margin-bottom: 8px; }
.ac-row span { color: var(--text-dim); }
.ac-row b { font-family: var(--font-head); color: var(--accent); }
.ac-bar { height: 7px; border-radius: 99px; background: #0b1120; overflow: hidden; margin-bottom: 20px; }
.ac-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.ac-foot { display: flex; align-items: center; gap: 8px; color: var(--accent); font-family: var(--font-head); font-size: 0.92rem; margin-top: 6px; }

/* ===== Why ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-item { padding: 28px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); transition: border-color .2s; }
.why-item:hover { border-color: #2c3a5c; }
.why-num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--primary); opacity: .55; margin-bottom: 12px; }
.why-item h3 { font-size: 1.12rem; margin-bottom: 8px; }
.why-item p { color: var(--text-dim); font-size: 0.93rem; }

/* ===== Vendor Partners ===== */
.vendors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.vendor-item {
  display: grid; place-items: center; text-align: center;
  min-height: 110px; padding: 22px 18px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease;
}
.vendor-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vendor-item img {
  max-height: 56px; max-width: 85%; width: auto; object-fit: contain;
  filter: saturate(1.05);
}
.vendor-fallback {
  display: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  letter-spacing: 0.01em; color: #1f2a6b;
}

/* ===== CTA / Contact ===== */
.cta-section { background: var(--bg-soft); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cta-text h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 16px; letter-spacing: -0.02em; }
.cta-text p { color: var(--text-dim); margin-bottom: 28px; }
.contact-list { list-style: none; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; color: var(--text); }
.contact-list svg { color: var(--primary); flex: none; }

.cta-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; color: var(--text-dim); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; background: #0b1120; border: 1px solid var(--border); color: var(--text);
  padding: 12px 14px; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.96rem;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(34,211,238,0.15);
}
.form-note { margin-top: 14px; color: var(--accent); font-size: 0.92rem; text-align: center; }
.form-note.error { color: var(--danger); }

/* ===== Footer ===== */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-desc { color: var(--text-dim); font-size: 0.92rem; margin-top: 14px; max-width: 280px; }
.footer-grid h4 { font-size: 0.95rem; margin-bottom: 14px; color: var(--text); }
.footer-grid a, .footer-grid p { display: block; color: var(--text-dim); font-size: 0.9rem; margin-bottom: 9px; transition: color .2s; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--border); margin-top: 40px; padding-top: 22px;
  color: var(--text-dim); font-size: 0.86rem;
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .vendors-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid, .cta-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links {
    position: fixed; inset: 100px 0 auto 0; flex-direction: column; gap: 0;
    background: #ffffff; border-bottom: 1px solid #e2e8f0;
    padding: 8px 0; transform: translateY(-120%); transition: transform .3s ease; align-items: stretch;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 24px; }
  .nav-links a.btn { margin: 10px 24px; }
  .nav-toggle { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .why-grid, .about-points, .footer-grid { grid-template-columns: 1fr; }
  .vendors-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 28px; }
  .section { padding: 64px 0; }
}
