:root {
  /* Palette from quadcode.com, accent from the QX7 logo */
  --dark: #161618;
  --dark-2: #1b1c1d;
  --dark-3: #232427;
  --dark-line: #2c2d31;
  --light: #f2f5f7;
  --white: #ffffff;
  --ink: #141414;
  --ink-muted: #7d7d8a;
  --on-dark: #ffffff;
  --on-dark-muted: #99a1af;
  --line-light: #d4d8db;
  --blue: #1a6dff;  /* QX7 logo blue */
  --blue-hover: #0052e0;
  --error: #ff3b3b;
  --green: #2bd47d;
  --radius: 24px;
  --radius-sm: 14px;
  --font: "Inter Tight", "Noto Sans Thai", "Noto Sans Lao", system-ui, "PingFang SC", "Microsoft YaHei", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--on-dark);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; font-weight: 400; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
.h-xl { font-size: clamp(2.1rem, 4.6vw, 4rem); }
.h-md { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.container { width: min(1360px, 100% - 48px); margin-inline: auto; }
.lead { font-size: 1.1rem; max-width: 560px; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--blue);
}

/* Section themes */
.dark { background: var(--dark); color: var(--on-dark); }
.dark .lead { color: var(--on-dark-muted); }
.light { background: var(--light); color: var(--ink); }
.white { background: var(--white); color: var(--ink); }
.light .lead, .white .lead { color: var(--ink-muted); }
.section { padding: 120px 0; }
.dark--tight { padding-top: 40px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit; font-weight: 500; font-size: 1rem;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-hover); }
.btn--line { border-color: rgba(255,255,255,.25); color: #fff; }
.btn--line:hover { border-color: #fff; }
.btn--outline-dark { border-color: var(--line-light); color: var(--ink); }
.btn--outline-dark:hover { border-color: var(--ink); }
.btn--sm { padding: .6rem 1.2rem; font-size: .95rem; }

/* Header — floating dark bar */
.header { position: sticky; top: 0; z-index: 50; padding: 16px 24px 0; pointer-events: none; }
.header__bar {
  pointer-events: auto;
  width: min(1360px, 100%);
  margin-inline: auto;
  display: flex; align-items: center; gap: 2.5rem;
  height: 68px;
  padding: 0 12px 0 20px;
  background: rgba(27, 28, 29, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.logo img { border-radius: 8px; }
.logo__text { font-weight: 600; font-size: 1.3rem; letter-spacing: -.02em; }
.logo__sub { font-size: .7rem; line-height: 1.1; color: var(--on-dark-muted); padding-left: 10px; border-left: 1px solid var(--blue); }
.nav { display: flex; gap: 2rem; margin-right: auto; }
.nav a { color: #fff; font-size: .98rem; opacity: .9; }
.nav a:hover { opacity: 1; color: var(--blue); }
.header__actions { display: flex; align-items: center; gap: .9rem; }

.lang { position: relative; display: flex; align-items: center; color: #fff; }
.lang select {
  appearance: none; -webkit-appearance: none;
  background: transparent; color: inherit; border: 0;
  font: inherit; font-size: .95rem;
  padding: .4rem 1.4rem .4rem .4rem; cursor: pointer;
}
.lang select option { color: var(--ink); }
.lang__chev { position: absolute; right: 0; width: 16px; height: 16px; pointer-events: none; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { padding: 40px 0 0; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 150px;
  grid-template-areas: "visual stats" "copy stats";
  column-gap: 32px;
  position: relative;
}
.hero__visual { grid-area: visual; position: relative; padding: 0 4% 0; }
.hero__stats { grid-area: stats; display: flex; flex-direction: column; justify-content: center; gap: 36px; text-align: right; padding-top: 40px; }
.hero__stats b { display: block; font-size: 2rem; font-weight: 400; line-height: 1; margin-bottom: 6px; }
.hero__stats span { color: var(--on-dark-muted); font-size: .9rem; line-height: 1.3; display: block; }
.hero__copy { grid-area: copy; position: relative; margin-top: -170px; padding-top: 140px; background: linear-gradient(180deg, rgba(22,22,24,0) 0, var(--dark) 130px); }
.hero__copy .lead { max-width: 520px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2rem; }
.hero__perks {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 72px 0 64px;
}
.hero__perks > div { display: flex; align-items: center; gap: 14px; font-size: 1rem; }
.perk-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(26,109,255,.12); color: var(--blue); }
.perk-ic svg { width: 22px; height: 22px; }

/* Hero image */
.hero__img { display: block; width: 100%; max-width: 760px; height: auto; margin: 10px auto 0; }
.trade { display: block; text-align: center; border-radius: 8px; padding: 12px 0; font-weight: 600; font-size: .85rem; color: #fff; }

/* Solutions — "We cover it all" stacked cards */
.cover { display: grid; gap: 16px; margin-top: 3rem; }
.cover__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  position: sticky;
  top: 110px;
  box-shadow: 0 -8px 24px rgba(20,20,20,.04);
}
.cover__title { font-size: clamp(1.8rem, 3.2vw, 2.9rem); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.cover__num { display: block; color: var(--blue); font-size: .9rem; letter-spacing: .05em; margin-bottom: 1rem; }
.cover__col h4 { font-size: 1.05rem; font-weight: 500; letter-spacing: 0; margin-bottom: .9rem; }
.cover__col ul { list-style: none; margin: 0; padding: 0; }
.cover__col li { color: var(--ink-muted); padding: 4px 0; }

/* Platform */
.plat__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 48px; }
.blue-stats { display: flex; gap: 48px; flex: none; }
.blue-stats b { display: block; color: var(--blue); font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 400; line-height: 1; }
.blue-stats span { color: var(--on-dark-muted); font-size: .95rem; }
.plat__stage {
  background: var(--dark-2);
  border-radius: 32px;
  padding: 48px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
  background-image: radial-gradient(ellipse at 70% 40%, rgba(26,109,255,.12), transparent 60%);
}
.devices { display: grid; gap: 12px; }
.device {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center;
  padding: 18px; border-radius: 18px;
  background: var(--dark-3);
  border: 1px solid transparent;
  transition: border-color .2s;
}
.device.is-active, .device:hover { border-color: var(--blue); }
.device__ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #2d2e32; color: #fff; }
.device.is-active .device__ic { background: var(--blue); }
.device__ic svg { width: 22px; height: 22px; }
.device b { font-weight: 500; }
.device small { color: var(--on-dark-muted); font-size: .88rem; }

.plat__img { justify-self: center; align-self: end; margin-bottom: -48px; width: 100%; max-width: 320px; height: auto; }

/* Back office */
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 48px; }
.split-head .lead { margin: 0; max-width: 460px; }
.split-head--cta { align-items: center; }
.bo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bo-card { background: var(--dark-2); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; }
.bo-card__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(26,109,255,.12); color: var(--blue); margin-bottom: 28px; }
.bo-card__ic svg { width: 24px; height: 24px; }
.bo-card h3 { font-size: 1.6rem; }
.bo-card p { color: var(--on-dark-muted); }
.bo-card__img { margin-top: auto; padding-top: 24px; width: 100%; height: auto; border-radius: 16px; }

/* Showcase (kickstart) */
.showcase { position: relative; background: var(--dark-2); border-radius: 32px; padding: 56px 56px 0; margin-bottom: 64px; overflow: hidden; display: flex; justify-content: center; align-items: flex-end; gap: 32px; }
.showcase__desk { width: min(916px, 72%); height: auto; }
.showcase__mob { width: min(270px, 22%); height: auto; }

/* Solution logos */
.cover__logos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.cover__logos span { display: grid; place-items: center; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--light); }
.cover__logos img { height: 22px; width: auto; }

/* Value band */
.value { padding: 100px 0; }
.value__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.value__grid span { display: block; color: var(--ink-muted); margin-bottom: 1rem; }
.value__grid b { display: block; font-size: clamp(2.6rem, 5.5vw, 5rem); font-weight: 400; line-height: 1; letter-spacing: -.03em; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; padding-top: 30px; }
.plan {
  position: relative;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  background: var(--white);
}
.plan--pop { border-color: var(--blue); box-shadow: 0 20px 50px rgba(26,109,255,.12); }
.plan__badge {
  position: absolute; left: -1px; right: -1px; bottom: calc(100% - 1px);
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  text-align: center; font-size: .88rem; padding: 6px 0;
}
.plan--pop { border-top-left-radius: 0; border-top-right-radius: 0; }
.plan h3 { font-size: 2rem; margin-bottom: .2rem; }
.plan__for { color: var(--ink-muted); min-height: 3em; }
.plan__price { font-size: 2rem; letter-spacing: -.02em; margin: 1.2rem 0 1.2rem; }
.plan__price small { font-size: .9rem; color: var(--ink-muted); letter-spacing: 0; }
.plan .btn { align-self: flex-start; margin-bottom: 1.6rem; }
.plan ul { list-style: none; padding: 1.4rem 0 0; margin: 0; border-top: 1px solid var(--line-light); display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.plan li svg { width: 18px; height: 18px; flex: none; }
.plan li.yes svg { color: var(--ink); }
.plan li.no { color: #b6bac2; }
.plan li.no svg { color: #c9ccd2; }

/* Process steps */
#process { margin-bottom: 64px; }
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.steps li { border-top: 1px solid var(--dark-line); padding-top: 20px; position: relative; }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--blue); }
.steps span { color: var(--on-dark-muted); font-size: .9rem; display: block; margin-bottom: 1.6rem; }
.steps h4 { font-size: 1.2rem; font-weight: 500; letter-spacing: 0; }
.steps p { color: var(--on-dark-muted); font-size: .95rem; }

/* Contact */
.contact {
  background: var(--dark-2);
  border-radius: 32px;
  padding: 48px;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start;
}
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.ticks li { display: flex; gap: 14px; align-items: center; font-size: 1.1rem; }
.ticks svg { width: 28px; height: 28px; flex: none; padding: 5px; border-radius: 50%; background: var(--blue); color: #fff; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 8px; font-size: .9rem; color: var(--on-dark-muted); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; color: #fff;
  background: var(--dark-3);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: .85rem 1rem;
  outline: none;
  width: 100%;
}
.form select option { color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); }
.form .invalid { border-color: var(--error); }
.form textarea { resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; }
.form .check input { width: 18px; height: 18px; flex: none; accent-color: var(--blue); margin-top: 2px; padding: 0; }
.form__status { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form__status.ok { color: var(--green); }
.form__status.err { color: var(--error); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.faq-side .btn { margin-top: 1rem; }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 40px 1fr 24px; align-items: center; gap: 8px;
  padding: 22px 0; font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .n { color: var(--ink-muted); font-size: .95rem; }
.faq summary svg { width: 22px; height: 22px; color: var(--blue); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { color: var(--ink-muted); padding: 0 32px 22px 48px; margin: 0; }

/* Footer */
.footer { padding: 72px 0 32px; border-top: 1px solid var(--dark-line); overflow: hidden; }
.footer__top { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.footer__nav { display: flex; gap: 28px; flex-wrap: wrap; margin-right: auto; }
.footer__nav a, .footer__mail { color: var(--on-dark-muted); }
.footer__nav a:hover, .footer__mail:hover { color: #fff; }
.footer__tag { color: var(--on-dark-muted); margin-top: 24px; }
.footer__mark {
  font-size: clamp(6rem, 24vw, 22rem);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.05em;
  color: transparent;
  background: linear-gradient(180deg, #3a3b40 10%, rgba(58,59,64,0) 95%);
  -webkit-background-clip: text; background-clip: text;
  margin: 24px 0 8px;
  user-select: none;
}
.footer__copy { color: var(--on-dark-muted); font-size: .85rem; margin: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .nav { gap: 1.25rem; }
  .cover__card { grid-template-columns: 1fr 1fr; }
  .cover__card .cover__head { grid-column: 1 / -1; }
  .plans { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .plat__stage { grid-template-columns: 1fr; }
  .plat__head, .split-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--dark-2); border-radius: 20px; padding: 8px 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--dark-line); }
  .nav a:last-child { border-bottom: 0; }
  .header__bar { position: relative; gap: 1rem; }
  .header__actions { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "visual" "copy" "stats"; }
  .hero__stats { flex-direction: row; flex-wrap: wrap; text-align: left; gap: 24px; padding-top: 32px; }
  .hero__stats > div { flex: 1 1 40%; }
  .hero__copy { margin-top: -60px; padding-top: 60px; }
  .hero__perks { grid-template-columns: 1fr 1fr; padding: 48px 0; }
  .bo-cards, .value__grid { grid-template-columns: 1fr; }
  .contact, .faq-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .header { padding: 10px 12px 0; }
  .header__bar { padding: 0 8px 0 14px; height: 60px; }
  .logo__sub { display: none; }
  .hide-sm { display: none; }
  .showcase { padding: 24px 24px 0; gap: 12px; border-radius: 24px; }
  .hero__perks { grid-template-columns: 1fr; gap: 16px; }
  .cover__card { grid-template-columns: 1fr; padding: 28px; position: static; }
  .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .blue-stats { gap: 24px; }
  .plat__stage, .contact { padding: 24px; border-radius: 24px; }
  .plat__img { margin-bottom: -24px; }
  .form { grid-template-columns: 1fr; }
  .bo-card { padding: 24px; }
  .faq details p { padding: 0 0 20px 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
