/* ===================================================================
   FacaiQQ landing — dark fintech theme (inspired by Debite template kit)
   =================================================================== */
:root {
  --bg:        #00010a;
  --bg-2:      #050b1f;
  --bg-3:      #081333;
  --panel:     #0b1430;
  --panel-2:   #0e1a3d;
  --line:      rgba(255,255,255,.08);
  --text:      #eaf0ff;
  --muted:     #9fb0d6;
  --cyan:      #00d7ff;
  --cyan-2:    #2dc2fd;
  --magenta:   #f45fe4;
  --teal:      #043a41;
  --grad:      linear-gradient(100deg, #2dc2fd 0%, #00d7ff 45%, #f45fe4 110%);
  --grad-soft: linear-gradient(135deg, rgba(45,194,253,.18), rgba(244,95,228,.14));
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 24px 60px -24px rgba(0,0,0,.7);
  --ring:      0 0 0 1px var(--line);
  --maxw:      1180px;
  --ff-head:   "Red Hat Display","Noto Sans Thai",sans-serif;
  --ff-body:   "Poppins","Noto Sans Thai",sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: radial-gradient(1200px 700px at 78% -10%, rgba(45,194,253,.18), transparent 60%),
              radial-gradient(900px 600px at 0% 8%, rgba(244,95,228,.12), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--ff-head); line-height: 1.15; letter-spacing: -.01em; }

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

/* ---------- buttons ---------- */
.btn {
  --pad-y: 13px; --pad-x: 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; font-weight: 600; font-size: 15px;
  font-family: var(--ff-body); cursor: pointer; border: 0;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--grad); color: #00040f; box-shadow: 0 10px 30px -8px rgba(0,215,255,.5); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(0,215,255,.65); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--cyan); color: #fff; transform: translateY(-2px); }
.btn--sm { --pad-y: 9px; --pad-x: 18px; font-size: 14px; }
.btn--lg { --pad-y: 16px; --pad-x: 34px; font-size: 16px; }

.eyebrow {
  display: inline-block; font-family: var(--ff-body); font-weight: 600;
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 34px; height: 34px; flex: none;
  background: url("assets/img/qq_logo_simbo.png") center/contain no-repeat;
  filter: drop-shadow(0 4px 12px rgba(0,215,255,.45));
}
.brand__name { font-family: var(--ff-head); font-weight: 900; font-size: 21px; letter-spacing: -.02em; }
.brand__name span { color: var(--cyan); }

/* ---------- navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s;
}
.nav.is-stuck {
  background: rgba(4,8,24,.82); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 20px 40px -30px #000;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; cursor: pointer; color: var(--muted);
  font-family: var(--ff-body); font-size: 13px; font-weight: 600;
}
.lang-toggle__opt.is-active { color: var(--cyan); }
.lang-toggle__sep { opacity: .4; }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 70px 0 90px; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(620px 420px at 75% 30%, rgba(45,194,253,.22), transparent 70%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
}
.hero__title { font-size: clamp(36px, 5vw, 58px); font-weight: 900; }
.hero__title { background: linear-gradient(180deg,#fff 35%, #b9c8f0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { color: var(--muted); font-size: 18px; max-width: 540px; margin: 20px 0 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 30px; list-style: none; }
.hero__badges li { color: var(--muted); font-size: 14.5px; font-weight: 500; }

.hero__art { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero__phone { width: min(100%, 430px); position: relative; z-index: 2; filter: drop-shadow(0 40px 60px rgba(0,0,0,.5)); animation: float 6s ease-in-out infinite; }
.hero__cards { position: absolute; width: 58%; left: -4%; bottom: 6%; z-index: 3; filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)); animation: float 7s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ---------- trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: rgba(255,255,255,.015); }
.trust__inner { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; padding: 22px 0; }
.trust__label { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.trust__items { display: flex; flex-wrap: wrap; gap: 14px 34px; }
.trust__items span { font-family: var(--ff-head); font-weight: 700; font-size: 19px; color: rgba(255,255,255,.45); transition: color .2s; }
.trust__items span:hover { color: #fff; }

/* ---------- generic section ---------- */
.section { padding: 92px 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(45,194,253,.04)); }
.section__head { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.section__head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.section__head p { color: var(--muted); font-size: 17px; margin-top: 16px; }

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

/* ---------- feature cards ---------- */
.card {
  background: var(--grad-soft), var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .22s ease, border-color .22s ease, box-shadow .22s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(0,215,255,.4); box-shadow: var(--shadow); }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 18px;
  background: rgba(0,215,255,.12); border: 1px solid rgba(0,215,255,.25);
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- stats ---------- */
.stats { padding: 78px 0; position: relative; background: linear-gradient(180deg, rgba(8,19,51,.6), rgba(4,8,24,.6)); }
.stats::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .12;
  background: var(--map) center/contain no-repeat;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.stats .container { position: relative; z-index: 1; }
.stats__grid { margin-top: 10px; }
.stat { text-align: center; padding: 24px 14px; background: rgba(8,16,40,.55); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(4px); }
.stat__num {
  display: block; font-family: var(--ff-head); font-weight: 900;
  font-size: clamp(34px, 4.4vw, 50px);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { display: block; color: var(--muted); font-size: 14.5px; margin-top: 8px; }

/* ---------- services ---------- */
.service {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px 30px; text-align: center;
  transition: transform .22s ease, border-color .22s;
}
.service:hover { transform: translateY(-6px); border-color: rgba(244,95,228,.4); }
.service img { width: 120px; height: 120px; object-fit: contain; margin: 0 auto 20px; }
.service h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15px; }

/* ---------- split sections ---------- */
.split { padding: 92px 0; }
.split__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__art img { width: 100%; max-width: 520px; margin-inline: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.split__copy h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; margin-bottom: 18px; }
.split__copy > p { color: var(--muted); font-size: 17px; margin-bottom: 24px; }
.ticks { list-style: none; margin-bottom: 30px; display: grid; gap: 13px; }
.ticks li { position: relative; padding-left: 34px; color: var(--text); font-size: 15.5px; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #00040f; font-size: 12px; font-weight: 800;
}

/* ---------- code block ---------- */
.codeblock { background: #060e26; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.codeblock__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); }
.codeblock__bar span { width: 12px; height: 12px; border-radius: 50%; background: #2a3658; }
.codeblock__bar span:nth-child(1) { background: #ff5f56; }
.codeblock__bar span:nth-child(2) { background: #ffbd2e; }
.codeblock__bar span:nth-child(3) { background: #27c93f; }
.codeblock__bar em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 13px; }
.codeblock pre { padding: 22px 22px 26px; overflow-x: auto; }
.codeblock code { font-family: "SFMono-Regular",ui-monospace,Menlo,Consolas,monospace; font-size: 13.5px; line-height: 1.75; color: #cdd9f5; white-space: pre; }
.c-c { color: #5f88c7; }
.c-s { color: #7bedc0; }

/* ---------- testimonials ---------- */
.quote { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.quote__text { font-size: 16px; color: var(--text); margin-bottom: 22px; }
.quote__by { display: flex; align-items: center; gap: 14px; }
.quote__by img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: var(--panel-2); border: 1px solid var(--line); }
.quote__by strong { display: block; font-size: 15px; }
.quote__by span { color: var(--muted); font-size: 13.5px; }

/* ---------- CTA ---------- */
.cta { padding: 30px 0 100px; }
.cta__inner {
  text-align: center; border-radius: 28px; padding: 64px 32px;
  background: linear-gradient(135deg, rgba(45,194,253,.16), rgba(244,95,228,.14)), var(--panel-2);
  border: 1px solid rgba(0,215,255,.25);
  position: relative; overflow: hidden;
}
.cta__inner::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(0,215,255,.3), transparent 70%); top: -160px; right: -80px; }
.cta__inner h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; position: relative; }
.cta__inner p { color: var(--muted); font-size: 18px; margin: 16px auto 30px; max-width: 560px; position: relative; }
.cta__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: 60px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 44px; }
.footer__brand p { color: var(--muted); font-size: 14.5px; margin-top: 16px; max-width: 280px; }
.footer__col h4 { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer__col a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 11px; transition: color .2s; }
.footer__col a:hover { color: var(--cyan); }
.footer__bottom { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 13.5px; text-align: center; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .hero__badges { justify-content: center; }
  .hero__art { order: -1; min-height: 300px; }
  .split__inner { grid-template-columns: 1fr; gap: 40px; }
  .split__art { order: -1; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  #developers .split__inner { direction: ltr; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(4,8,24,.97); backdrop-filter: blur(14px);
    padding: 8px 24px 20px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .3s ease; z-index: 40;
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav__burger { display: flex; }
  .nav__actions .btn { display: none; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .section, .split, .stats { padding: 64px 0; }
  .hero { padding: 40px 0 70px; }
}
