/* ================================================================
   ปลดล็อคหน้าจอ.com — LOKI DARK GREEN
   deep emerald · glossy green glow · antique gold stamp
   Thai-safe typography · WCAG AA contrast
   ================================================================ */

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img,svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
ul,ol { list-style: none; }

:root {
    --bg: #07100B;
    --bg-2: #091510;
    --surface: #0D1B14;
    --surface-2: #112318;
    --line: rgba(120,220,170,0.13);
    --line-2: rgba(140,235,185,0.26);
    --text: #EBF6EF;
    --text-soft: #ACCDBA;           /* ~9.5:1 บน --bg */
    --text-dim: #8CAE9C;            /* ~6.3:1 บน --bg — ผ่าน AA */
    --green: #2ECC7C;
    --green-bright: #5CE39B;
    --green-deep: #11673D;
    --gold: #D9B54A;                /* ทองโลกิ — ใช้เน้นจุดสำคัญ */
    --gold-soft: rgba(217,181,74,0.35);
    --glow: rgba(46,204,124,0.30);
    --glow-soft: rgba(46,204,124,0.14);

    --sans: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, "SFMono-Regular", monospace; /* เลข/ละตินเท่านั้น */

    --container: 1240px;
    --gutter: clamp(20px, 5vw, 64px);
    --ease: cubic-bezier(.2,.6,.2,1);
    --t: 260ms var(--ease);
    --radius: 14px;
}

body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background:
        radial-gradient(900px 600px at 12% -5%, rgba(23,131,80,0.18), transparent 60%),
        radial-gradient(800px 600px at 100% 8%, rgba(46,204,124,0.10), transparent 55%),
        var(--bg);
    background-attachment: fixed;
}
::selection { background: var(--green-deep); color: #fff; }

/* ---- Type — เผื่อสระบน-ล่าง/วรรณยุกต์ไทย ---- */
h1,h2,h3,h4 { font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--text); }
.display {
    font-size: clamp(2.3rem, 6vw, 4.6rem);
    font-weight: 700; line-height: 1.12; letter-spacing: -0.015em;
    background: linear-gradient(180deg, #FFFFFF 0%, #CFEEDC 75%, #9FDFBD 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.display em {
    font-style: normal; display: block;
    font-size: 0.52em; font-weight: 600; line-height: 1.35; margin-top: 14px;
    -webkit-text-fill-color: var(--green-bright);
    color: var(--green-bright);
    text-shadow: 0 0 24px var(--glow-soft);
}
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.35rem); }
p { color: var(--text-soft); }
strong { color: #fff; font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.28rem); line-height: 1.65; }

/* ---- Kicker: เลข mono / ไทย sans ---- */
.kicker {
    font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
    color: var(--green-bright);
    display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.kicker .knum { font-family: var(--mono); font-weight: 500; letter-spacing: 0.1em; }

/* ---- Layout ---- */
.wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(60px, 8vw, 110px) 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .kicker { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.05rem; }

/* ---- NAV ---- */
.nav {
    position: sticky; top: 0; z-index: 60;
    background: rgba(7,16,11,0.78);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-brand { display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: 1.1rem; color: #fff; }
.nav-brand .tag { font-size: 0.8rem; font-weight: 500; color: var(--green-bright); }
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu a { padding: 9px 14px; font-size: 0.95rem; color: var(--text-soft); transition: color var(--t); position: relative; }
.nav-menu a:not(.btn)::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px;
    height: 2px; border-radius: 2px; background: var(--green);
    transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.nav-menu a:not(.btn):hover { color: #fff; }
.nav-menu a:not(.btn):hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-menu a.active { color: #fff; }
.nav-menu .btn { margin-left: 14px; }
.nav-toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,0.03); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 48px; padding: 12px 22px; font-size: 1rem; font-weight: 600;
    border-radius: 12px; border: 1px solid transparent;
    transition: transform var(--t), box-shadow var(--t), filter var(--t), background var(--t), border-color var(--t), color var(--t);
    white-space: nowrap; position: relative; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
    color: #fff;
    /* เขียวมรกตเข้ม — ทุกจุด ≥4.5:1 กับตัวอักษรขาว */
    background: linear-gradient(180deg, #178350 0%, #11673D 55%, #0C4F2E 100%);
    border-color: rgba(150,255,200,0.45);
    box-shadow: 0 8px 26px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,0.30);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 14px 34px -8px var(--glow); }
.btn-outline {
    color: var(--text);
    background: rgba(255,255,255,0.04);
    border-color: var(--line-2);
}
.btn-outline:hover { color: #fff; border-color: var(--green); background: rgba(46,204,124,0.10); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }

/* ---- HERO ---- */
.hero { position: relative; padding: clamp(44px, 6vw, 84px) 0 clamp(52px, 7vw, 96px); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background-image:
        radial-gradient(700px 500px at 8% 10%, rgba(23,131,80,0.26), transparent 60%),
        radial-gradient(600px 500px at 92% 85%, rgba(46,204,124,0.14), transparent 55%),
        linear-gradient(rgba(140,235,185,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140,235,185,0.045) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 34px 34px, 34px 34px;
    mask-image: linear-gradient(to bottom, #000 65%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-kicker { margin-bottom: 22px; }
.hero .display { margin-bottom: 22px; }
.hero-lead { max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-meta {
    display: flex; flex-wrap: wrap;
    border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
}
.hero-meta div { flex: 1; min-width: 130px; padding: 15px 18px; border-right: 1px solid var(--line); }
.hero-meta div:last-child { border-right: 0; }
.hero-meta dt { font-size: 0.8rem; font-weight: 500; color: var(--text-dim); margin-bottom: 4px; }
.hero-meta dd { font-size: 1rem; font-weight: 600; color: #fff; }

/* ---- Hero visual: ใบงานปลดล็อค ---- */
.hero-visual { position: relative; }
.ticket-back {
    position: absolute; inset: 0; border-radius: 16px;
    background: linear-gradient(160deg, rgba(46,204,124,0.10), rgba(46,204,124,0.02));
    border: 1px solid var(--line);
    transform: rotate(-3.5deg) translate(14px, 16px); z-index: 0;
}
.ticket {
    position: relative; z-index: 1; border-radius: 16px;
    background: linear-gradient(165deg, #10231A 0%, #0A1610 100%);
    border: 1px solid var(--line-2);
    box-shadow: 0 40px 80px -30px #000, 0 0 60px -18px var(--glow), inset 0 1px 0 rgba(255,255,255,0.08);
    overflow: hidden;
}
.ticket::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 120px;
    background: linear-gradient(180deg, rgba(92,227,155,0.12), transparent);
    pointer-events: none;
}
.ticket-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px; border-bottom: 1px dashed var(--line-2); }
.ticket-shop { font-weight: 600; font-size: 1.05rem; color: #fff; }
.ticket-no { font-size: 0.78rem; color: var(--text-dim); text-align: right; line-height: 1.5; }
.ticket-no .mono { font-family: var(--mono); letter-spacing: 0.06em; }
.ticket-rows { padding: 6px 22px; }
.ticket-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row .k { font-size: 0.82rem; font-weight: 500; color: var(--text-dim); }
.ticket-row .v { font-size: 0.95rem; font-weight: 500; color: var(--text); text-align: right; }
.ticket-row .v.ok { display: inline-flex; align-items: center; gap: 6px; color: var(--green-bright); }
.ticket-row .v.ok svg { width: 15px; height: 15px; filter: drop-shadow(0 0 6px var(--glow)); }
.ticket-foot {
    display: flex; justify-content: space-between; align-items: center; padding: 17px 22px;
    background: linear-gradient(180deg, #178350, #0C4F2E);
    color: #fff;
}
.ticket-foot .lbl { font-size: 0.82rem; font-weight: 500; opacity: 0.92; }
.ticket-foot .val { font-family: var(--mono); font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; }
.ticket-stamp {
    position: absolute; z-index: 2; right: -12px; bottom: 64px;
    width: 82px; height: 82px; border: 2px solid var(--gold); border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    background: rgba(10,20,14,0.92); transform: rotate(-12deg);
    line-height: 1; color: var(--gold);
    box-shadow: 0 0 24px var(--gold-soft), inset 0 0 16px rgba(217,181,74,0.20);
}
.ticket-stamp b { font-family: var(--mono); font-size: 1.15rem; }
.ticket-stamp span { font-size: 0.68rem; font-weight: 500; color: var(--text-soft); }

/* ---- SERVICES ---- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.svc {
    padding: 36px 30px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    position: relative; transition: background var(--t), box-shadow var(--t);
    background: linear-gradient(160deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
}
.svc:hover { background: linear-gradient(160deg, rgba(46,204,124,0.13), rgba(46,204,124,0.03)); box-shadow: inset 0 0 40px -10px var(--glow-soft); }
.svc-idx { font-family: var(--mono); font-size: 0.78rem; color: var(--green-bright); letter-spacing: 0.1em; margin-bottom: 24px; }
.svc-ico { width: 44px; height: 44px; color: var(--green-bright); margin-bottom: 20px; filter: drop-shadow(0 0 10px var(--glow-soft)); }
.svc-ico svg { width: 100%; height: 100%; stroke-width: 1.4; }
.svc h3 { margin-bottom: 10px; color: #fff; }
.svc p { font-size: 0.98rem; line-height: 1.7; }
.svc-arrow { position: absolute; top: 36px; right: 28px; color: var(--text-dim); opacity: 0; transform: translate(-6px,6px); transition: opacity var(--t), transform var(--t), color var(--t); }
.svc:hover .svc-arrow { opacity: 1; transform: none; color: var(--green-bright); }
.svc-arrow svg { width: 20px; height: 20px; }

.tags { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 32px; }
.tags li { display: flex; align-items: center; gap: 9px; font-size: 0.98rem; font-weight: 500; color: var(--text-soft); }
.tags svg { width: 17px; height: 17px; color: var(--green-bright); stroke-width: 2.4; filter: drop-shadow(0 0 6px var(--glow-soft)); }

/* ---- PROCESS ---- */
.process { background: linear-gradient(180deg, rgba(46,204,124,0.05), rgba(46,204,124,0.01)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: st; }
.step { counter-increment: st; padding: 30px 24px 8px 0; border-top: 2px solid var(--green); margin-right: 22px; position: relative; }
.step::before {
    content: counter(st, decimal-leading-zero);
    font-family: var(--mono); font-size: 0.82rem; font-weight: 500; color: var(--green-bright); letter-spacing: 0.06em;
    position: absolute; top: -2px; left: 0; background: var(--bg-2); padding-right: 12px; transform: translateY(-50%);
    text-shadow: 0 0 10px var(--glow);
}
.step h3 { font-size: 1.05rem; margin: 14px 0 8px; color: #fff; }
.step p { font-size: 0.94rem; line-height: 1.65; }

/* ---- BRANDS — logo wall ---- */
.brands {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
    border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
    background: var(--line-2);
}
.brand {
    aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center;
    padding: 18px; background: var(--surface);
    transition: background var(--t), box-shadow var(--t);
}
.brand:hover { background: rgba(46,204,124,0.10); box-shadow: inset 0 0 36px -10px var(--glow-soft); }
.brand img {
    max-width: 86%; max-height: 24px; width: auto; height: auto; object-fit: contain;
    filter: brightness(0) invert(1); opacity: 0.66;
    transition: opacity var(--t), filter var(--t);
}
.brand:hover img { opacity: 1; filter: brightness(0) invert(1) drop-shadow(0 0 8px var(--glow)); }
.brand span {
    font-family: var(--mono); font-size: 1rem; font-weight: 500;
    color: var(--text-soft); transition: color var(--t), text-shadow var(--t);
}
.brand span.more { font-family: var(--sans); font-size: 0.95rem; color: var(--text-dim); }
.brand:hover span { color: #fff; text-shadow: 0 0 12px var(--glow-soft); }
@media (max-width: 900px) { .brands { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .brands { grid-template-columns: repeat(2, 1fr); } }

/* ---- ABOUT + HOURS ---- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px,5vw,64px); align-items: start; }
.about-copy .kicker { margin-bottom: 18px; }
.about-copy h2 { margin-bottom: 20px; color: #fff; }
.about-copy p { margin-bottom: 16px; max-width: 480px; }
.about-copy .btn { margin-top: 16px; }
.hours {
    border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
    background: var(--surface);
    box-shadow: 0 0 40px -14px var(--glow), inset 0 1px 0 rgba(255,255,255,0.06);
}
.hours-head {
    padding: 17px 22px;
    background: linear-gradient(180deg, #178350, #0C4F2E);
    color: #fff; display: flex; align-items: center; justify-content: space-between;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}
.hours-head .lbl { font-weight: 600; }
.hours-head .dot { font-size: 0.82rem; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; opacity: 0.95; }
.hours-head .dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hours-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border-bottom: 0; }
.hours-row .d { font-size: 0.98rem; color: var(--text); }
.hours-row .h { font-size: 0.95rem; font-weight: 500; color: var(--green-bright); }

/* ---- FAQ ---- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; align-items: baseline; gap: 18px; font-weight: 600; font-size: 1.08rem; color: var(--text); transition: color var(--t); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .qn { font-family: var(--mono); font-size: 0.82rem; color: var(--green-bright); flex-shrink: 0; min-width: 34px; }
.faq-item summary .qt { flex: 1; }
.faq-item summary .sign { flex-shrink: 0; width: 20px; height: 20px; position: relative; align-self: center; }
.faq-item summary .sign::before, .faq-item summary .sign::after { content: ""; position: absolute; background: var(--green-bright); top: 50%; left: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 8px var(--glow-soft); }
.faq-item summary .sign::before { width: 14px; height: 2px; }
.faq-item summary .sign::after { width: 2px; height: 14px; transition: transform var(--t); }
.faq-item[open] summary .sign::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-item[open] summary, .faq-item summary:hover { color: #fff; }
.faq-body { padding: 0 0 24px 52px; color: var(--text-soft); line-height: 1.75; font-size: 1rem; max-width: 720px; }
@media (max-width: 560px) { .faq-body { padding-left: 0; } }

/* ---- FOOTER ---- */
.footer { background: linear-gradient(180deg, var(--bg-2), #040A07); color: var(--text); padding: clamp(52px,7vw,84px) 0 32px; border-top: 1px solid var(--line-2); position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 70%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); box-shadow: 0 0 16px var(--gold-soft); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.footer-brand { font-size: 1.5rem; font-weight: 700; margin-bottom: 14px; color: #fff; }
.footer p { color: var(--text-soft); font-size: 0.96rem; line-height: 1.7; max-width: 340px; }
.footer h4 { font-size: 0.88rem; font-weight: 600; color: var(--green-bright); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col li { font-size: 0.96rem; color: var(--text-soft); }
.footer-col a { transition: color var(--t); }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 11px; color: var(--text); background: rgba(255,255,255,0.03); transition: all var(--t); }
.footer-social a:hover { background: linear-gradient(180deg, #178350, #0C4F2E); color: #fff; border-color: transparent; box-shadow: 0 0 22px -6px var(--glow); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--text-dim); }
.footer-bottom .mono { font-family: var(--mono); letter-spacing: 0.04em; }

/* ---- RESPONSIVE ---- */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 52px; }
    .hero-visual { max-width: 440px; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    /* nav ยุบเป็น hamburger ตั้งแต่ 768px กันเมนูล้นช่วง 561-750px */
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 66px; left: 0; right: 0;
        background: rgba(7,16,11,0.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        flex-direction: column; align-items: stretch; padding: 14px var(--gutter) 22px;
        border-bottom: 1px solid var(--line); gap: 2px;
        transform: translateY(-8px); opacity: 0; pointer-events: none;
        transition: opacity var(--t), transform var(--t);
    }
    .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
    .nav-menu a:not(.btn) { padding: 13px 4px; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
    .nav-menu a:not(.btn)::after { display: none; }
    .nav-menu .btn { margin: 10px 0 0; }
}
@media (max-width: 720px) {
    .svc-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; gap: 8px 24px; }
    .step { margin-right: 0; }
}
@media (max-width: 560px) {
    .steps { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
