:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --panel: #0d0d0d;
  --border: #1f1f1f;
  --border-strong: #2e2e2e;
  --text: #ededed;
  --muted: #8f8f8f;
  --dim: #666;
  --accent: #0070f3;
  --ok: #2ecc71;
  --radius: 12px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }

p { margin: 0; }

.glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.glow-top {
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(60, 110, 255, 0.20), rgba(120, 60, 255, 0.10) 45%, transparent 70%);
  filter: blur(20px);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(0, 0, 0, 0.65);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand-light { color: var(--muted); font-weight: 500; }

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all .15s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: #e5e5e5; transform: translateY(-1px); }

.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

.btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-outline:hover { border-color: #4a4a4a; background: rgba(255, 255, 255, 0.05); }

.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 24px 64px;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color .15s ease, color .15s ease;
}
.pill:hover { border-color: #4a4a4a; color: var(--text); }

.pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
}

.pill-arrow { color: var(--dim); }

.hero h1 {
  margin: 28px 0 0;
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.grad {
  background: linear-gradient(180deg, #fff 30%, #7a7a7a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--dim);
}

/* ---------- Hero card mock ---------- */
.hero-card {
  margin: 64px auto 0;
  max-width: 900px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #0b0b0b, #050505);
  box-shadow: 0 40px 120px -40px rgba(0, 112, 243, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
  text-align: left;
}

.hero-card-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #080808;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.hero-card-url {
  margin-left: 12px;
  font-size: 12px;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.hero-card-body { display: grid; grid-template-columns: 180px 1fr; }

.mock-side {
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  background: #070707;
}

.mock-side-title { font-size: 12px; color: var(--dim); padding: 0 10px 12px; }

.mock-item {
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
}
.mock-item.active { background: rgba(255, 255, 255, 0.06); color: var(--text); }

.mock-main { padding: 18px 20px 20px; }

.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mock-name { font-size: 15px; font-weight: 600; }
.mock-meta { font-size: 12px; color: var(--dim); font-family: ui-monospace, monospace; }

.mock-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 10px;
}

.live {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
  display: inline-block;
}

.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.stat { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: #090909; }
.stat-label { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-size: 13px; margin: 2px 0 8px; font-family: ui-monospace, monospace; }
.bar { height: 4px; border-radius: 2px; background: #1a1a1a; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #0070f3, #7b61ff); }

.mock-console {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #050505;
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.9;
  color: #bdbdbd;
}
.c-dim { color: #5a5a5a; }
.c-ok { color: var(--ok); }
.c-accent { color: #6ea8ff; }
.c-cursor { color: #6ea8ff; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Logos ---------- */
.logos { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #030303; }
.logos-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 26px 24px;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center;
}
.logos-label { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.logos-row { display: flex; gap: 32px; flex-wrap: wrap; font-size: 15px; color: #7d7d7d; font-weight: 500; }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim);
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 12px 0 14px; }
.section-head p { color: var(--muted); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }

.plan {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  background: linear-gradient(180deg, #0a0a0a, #050505);
  display: flex;
  flex-direction: column;
}

.plan-featured {
  border-color: #333;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 30px 80px -50px rgba(0, 112, 243, 0.6);
  background: linear-gradient(180deg, #101010, #060606);
}

.plan-badge {
  position: absolute; top: -11px; left: 24px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  background: #fff; color: #000; padding: 3px 10px; border-radius: 999px;
}

.plan-name { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan-price { margin-top: 10px; display: flex; align-items: baseline; gap: 6px; }
.plan-price span { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; }
.plan-price small { color: var(--dim); font-size: 14px; }
.plan-desc { margin-top: 10px; color: var(--muted); font-size: 14px; min-height: 44px; }

.plan-list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 11px; font-size: 14px; color: #cfcfcf; }
.plan-list li { display: flex; gap: 10px; align-items: center; }
.plan-list li::before {
  content: "✓";
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1;
  color: #6ea8ff;
}

.plan .btn { margin-top: auto; }

.runtime-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
}

.runtime-label { font-size: 12px; color: var(--dim); margin-right: 2px; }

.chip {
  font-size: 12px;
  color: #cfcfcf;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 10px;
  transition: all .15s ease;
}
.chip:hover { border-color: #5a5a5a; background: rgba(255, 255, 255, 0.06); color: #fff; }

.plans-note { text-align: center; margin-top: 26px; font-size: 13px; color: var(--dim); }

/* ---------- Features grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  background: #070707;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.card:hover { border-color: #333; background: #0b0b0b; transform: translateY(-2px); }

.card-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #cfcfcf;
  margin-bottom: 16px;
}
.card-icon svg { width: 18px; height: 18px; }

.card h3 { font-size: 16px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { border-top: 1px solid var(--border-strong); padding-top: 20px; }
.step-num { font-family: ui-monospace, monospace; font-size: 13px; color: var(--dim); }
.step h3 { margin: 10px 0 8px; font-size: 18px; }
.step p { color: var(--muted); font-size: 14px; }

.start-cta {
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: radial-gradient(600px 200px at 20% 0%, rgba(0, 112, 243, 0.14), transparent 70%), #060606;
}
.start-cta h3 { font-size: 20px; }
.start-cta p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 4px; }
.faq summary {
  cursor: pointer; font-weight: 500; font-size: 15px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--dim); font-size: 18px; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: #030303; margin-top: 40px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 32px;
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px;
}
.footer-brand p { color: var(--dim); font-size: 14px; margin-top: 12px; max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 12px; }
.footer-cols a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; transition: color .15s ease; }
.footer-cols a:hover { color: var(--text); }

.footer-bottom {
  max-width: var(--maxw); margin: 0 auto; padding: 20px 24px 40px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--dim);
}
.footer-status { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .plans { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-card-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
}

@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .mock-stats { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .section { padding: 64px 20px; }
  .nav-actions .btn-ghost { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
