/* ============================================================
   ChatMGM — Landing Page
   ใช้ design tokens ร่วมกับ app.css
   ============================================================ */

body.lp { background: #fff; }

/* ---------------- Nav ---------------- */
.lp-nav {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.lp-nav-inner {
    max-width: 1160px; margin: 0 auto;
    display: flex; align-items: center; gap: 26px;
    padding: 14px 24px;
}
.lp-logo {
    display: flex; align-items: center; gap: 11px;
    font-weight: 800; font-size: 18px; color: var(--text);
    letter-spacing: -.02em;
}
.lp-logo .brand-logo { width: 38px; height: 38px; border-radius: 12px; }
.lp-links { display: flex; gap: 26px; flex: 1; }
.lp-links a { color: var(--text-2); font-weight: 600; font-size: 14px; transition: color .15s; }
.lp-links a:hover { color: var(--brand-600); }
.lp-nav-cta { display: flex; gap: 10px; }
.lp-burger { display: none; background: transparent; border: none; color: var(--text); cursor: pointer; padding: 8px; border-radius: 10px; }
.lp-burger:hover { background: var(--bg); }
.lp-mobile { display: none; flex-direction: column; gap: 4px; padding: 8px 24px 20px; border-top: 1px solid var(--border); }
.lp-mobile a { padding: 11px 4px; font-weight: 700; color: var(--text-2); border-bottom: 1px solid var(--border); }
.lp-mobile-cta { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
body.lp-nav-open .lp-mobile { display: flex; }

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    background:
        radial-gradient(circle at 12% 8%, rgba(124, 58, 237, .5), transparent 42%),
        radial-gradient(circle at 88% 92%, rgba(37, 99, 235, .45), transparent 42%),
        linear-gradient(150deg, #171334, #241f5c 48%, #172554);
    color: #fff;
    overflow: hidden;
    padding: 76px 24px 96px;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none; }
.hero-glow-a { width: 420px; height: 420px; background: #7c3aed; top: -140px; left: -80px; }
.hero-glow-b { width: 380px; height: 380px; background: #2563eb; bottom: -160px; right: -60px; }
.hero-inner {
    position: relative; z-index: 1;
    max-width: 1160px; margin: 0 auto;
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: 56px; align-items: center;
}
.hero-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 7px 15px; border-radius: 999px;
    font-size: 12.5px; font-weight: 700; color: #e0e7ff;
    margin-bottom: 22px;
}
.hero h1 { font-size: 54px; line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.grad-text {
    background: linear-gradient(120deg, #a5b4fc, #c4b5fd 45%, #7dd3fc);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub { font-size: 16.5px; color: #cbd5f5; margin: 22px 0 30px; max-width: 520px; line-height: 1.7; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .2); }
.hero-cta .btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.hero-points { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; margin: 28px 0 0; padding: 0; }
.hero-points li { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: #c7d2fe; font-weight: 600; }
.hero-points svg { width: 16px; height: 16px; color: #6ee7b7; }

/* ---------------- Mock ---------------- */
.hero-visual { position: relative; }
.mock {
    background: #fff; border-radius: 20px;
    box-shadow: 0 40px 80px rgba(2, 6, 23, .5), 0 0 0 1px rgba(255, 255, 255, .1);
    overflow: hidden;
    transform: perspective(1600px) rotateY(-7deg) rotateX(2deg);
    transition: transform .5s;
}
.hero-visual:hover .mock { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg); }
.mock-bar { display: flex; gap: 7px; padding: 13px 16px; background: #f8f9fc; border-bottom: 1px solid var(--border); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #e2e6f0; }
.mock-bar span:first-child { background: #fed7d7; }
.mock-bar span:nth-child(2) { background: #fef3c7; }
.mock-bar span:nth-child(3) { background: #d1fae5; }
.mock-body { display: flex; height: 330px; }
.mock-side { width: 52px; background: var(--grad-dark); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.mock-logo { width: 28px; height: 28px; border-radius: 9px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; }
.mock-nav { display: flex; flex-direction: column; gap: 11px; align-items: center; }
.mock-nav i { width: 20px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
.mock-nav i.on { background: #a5b4fc; width: 24px; height: 7px; }
.mock-list { width: 148px; border-right: 1px solid var(--border); background: #fff; padding: 10px; }
.mock-search { height: 22px; border-radius: 8px; background: #f1f3f9; margin-bottom: 10px; }
.mock-conv { display: flex; gap: 8px; padding: 8px; border-radius: 10px; margin-bottom: 4px; align-items: center; }
.mock-conv.on { background: #eef2ff; }
.mock-conv > div { flex: 1; }
.mock-conv b { display: block; height: 8px; width: 70%; background: #e2e6f0; border-radius: 4px; margin-bottom: 6px; }
.mock-conv i { display: block; height: 7px; width: 90%; background: #eef0f7; border-radius: 4px; }
.mk-av { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.mk-av.a1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.mk-av.a2 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.mk-av.a3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.mk-av.a4 { background: linear-gradient(135deg, #10b981, #14b8a6); }
.mock-thread { flex: 1; display: flex; flex-direction: column; background: #fafbfe; }
.mock-th-head { display: flex; gap: 9px; align-items: center; padding: 11px 13px; border-bottom: 1px solid var(--border); background: #fff; }
.mock-th-head > div { flex: 1; }
.mock-th-head b { display: block; height: 8px; width: 40%; background: #e2e6f0; border-radius: 4px; margin-bottom: 5px; }
.mock-th-head i { display: block; height: 6px; width: 26%; background: #dbe6ff; border-radius: 4px; }
.mock-msgs { flex: 1; padding: 13px; display: flex; flex-direction: column; gap: 9px; }
.mk-msg { width: 72%; }
.mk-msg span { display: block; height: 26px; border-radius: 12px 12px 12px 5px; background: #fff; border: 1px solid var(--border); }
.mk-msg.me { align-self: flex-end; }
.mk-msg.me span { background: var(--grad); border: none; border-radius: 12px 12px 5px 12px; }
.mock-compose { display: flex; gap: 8px; padding: 11px 13px; border-top: 1px solid var(--border); align-items: center; background: #fff; }
.mock-compose span { flex: 1; height: 26px; border-radius: 13px; background: #f1f3f9; }
.mock-compose i { width: 30px; height: 30px; border-radius: 10px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; }
.mock-badge { position: absolute; }
.mock-badge.b1 { top: 26px; left: -26px; }
.mock-badge.b2 { bottom: 34px; right: -22px; }
.mock-badge .badge { box-shadow: var(--shadow-lg); padding: 8px 14px; font-size: 12px; }
.mock-badge.b1 .badge { background: #fff; color: #047857; }
.mock-badge.b2 .badge { background: #fff; color: var(--brand-700); }

/* ---------------- Stats strip ---------------- */
.stats-strip { background: #fff; border-bottom: 1px solid var(--border); }
.stats-inner {
    max-width: 1160px; margin: 0 auto; padding: 34px 24px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat { text-align: center; }
.stat .n { font-size: 30px; font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .l { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 2px; }

/* ---------------- Sections ---------------- */
.section { max-width: 1160px; margin: 0 auto; padding: 84px 24px; }
.section-alt { max-width: none; background: linear-gradient(180deg, #fafbff, #f5f6fb); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-alt > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.eyebrow {
    display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; color: var(--brand-600);
    background: var(--brand-50); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-head h2 { font-size: 34px; letter-spacing: -.03em; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* ---------------- Features ---------------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 26px; box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.feat-ico { width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 17px; }
.feat-ico svg { width: 24px; height: 24px; }
.feat-ico.blue { background: var(--brand-50); color: var(--brand-600); }
.feat-ico.indigo { background: #eef2ff; color: #4338ca; }
.feat-ico.cyan { background: var(--cyan-soft); color: #0e7490; }
.feat-ico.amber { background: var(--amber-soft); color: #b45309; }
.feat-ico.violet { background: #f5f3ff; color: #6d28d9; }
.feat-ico.green { background: var(--green-soft); color: #047857; }
.feat h3 { font-size: 16.5px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* ---------------- Steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative; }
.step-n {
    width: 44px; height: 44px; border-radius: 14px;
    background: var(--grad); color: #fff; font-weight: 800; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px; box-shadow: var(--shadow-brand);
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* ---------------- Pricing ---------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 7px; }

/* ---------------- FAQ ---------------- */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: #fff; border: 1px solid var(--border); border-radius: 15px;
    padding: 4px 20px; box-shadow: var(--shadow-xs);
    transition: border-color .18s, box-shadow .18s;
}
.faq-item[open] { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.faq-item summary {
    cursor: pointer; list-style: none; padding: 16px 0;
    font-weight: 700; font-size: 15px; color: var(--text);
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; font-size: 22px; color: var(--brand-600); font-weight: 400; line-height: 1;
    transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-2); font-size: 14px; line-height: 1.8; padding: 0 0 18px; margin: 0; }

/* ---------------- CTA band ---------------- */
.cta-band { max-width: 1160px; margin: 0 auto 84px; padding: 0 24px; }
.cta-inner {
    background: var(--grad);
    border-radius: 26px; padding: 52px 48px;
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
    color: #fff; box-shadow: var(--shadow-brand);
    position: relative; overflow: hidden;
}
.cta-inner::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .12); top: -120px; right: -60px; }
.cta-inner h2 { font-size: 30px; margin-bottom: 8px; letter-spacing: -.02em; }
.cta-inner p { opacity: .92; font-size: 15px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-actions .btn { background: #fff; color: var(--brand-700); box-shadow: none; }
.cta-actions .btn-outline { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); }

/* ---------------- Footer ---------------- */
.lp-footer { background: #101425; color: #9aa3bd; padding: 56px 24px 26px; }
.lp-footer-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; }
.lp-footer-brand .lp-logo { color: #fff; margin-bottom: 14px; }
.lp-footer-brand p { font-size: 13.5px; line-height: 1.75; max-width: 360px; }
.footer-demo { margin-top: 16px; display: inline-block; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 11px; padding: 10px 14px; font-size: 12.5px; color: #c7cbe0; }
.lp-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; }
.lp-footer-cols h4 { color: #fff; font-size: 13.5px; margin-bottom: 14px; }
.lp-footer-cols a { display: block; color: #9aa3bd; font-size: 13.5px; padding: 5px 0; transition: color .15s; }
.lp-footer-cols a:hover { color: #fff; }
.lp-footer-bottom {
    max-width: 1160px; margin: 40px auto 0; padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    font-size: 12.5px; color: #6f7899;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1000px) {
    .hero-inner { grid-template-columns: 1fr; gap: 50px; }
    .hero h1 { font-size: 42px; }
    .hero-visual { max-width: 560px; }
    .mock { transform: none; }
    .feat-grid, .steps, .price-grid { grid-template-columns: 1fr; }
    .price-grid { max-width: 460px; margin: 0 auto; }
    .section { padding: 64px 22px; }
    .lp-footer-inner { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 820px) {
    .lp-links, .lp-nav-cta { display: none; }
    .lp-burger { display: flex; }
    .hero { padding: 56px 22px 72px; }
    .hero h1 { font-size: 36px; }
    .hero-sub { font-size: 15px; }
    .stats-inner { grid-template-columns: 1fr 1fr; gap: 26px; }
    .section-head h2 { font-size: 27px; }
    .cta-inner { flex-direction: column; text-align: center; padding: 40px 26px; }
    .cta-inner h2 { font-size: 24px; }
    .mock-badge { display: none; }
}
