/* ================================================================
   WebshopMC — Minecraft Overworld Theme
   สว่าง · โลกบล็อก · พาเนลกระดาษ GUI · ปุ่มหญ้า · ไอคอนพิกเซล
   ================================================================ */
:root {
    --font:      'Kanit', system-ui, 'Segoe UI', sans-serif;

    --paper:     #efe6d0;   /* พื้นหน้าเว็บ (กระดาษ/หิน) */
    --panel:     #fbf7ec;   /* การ์ด */
    --panel-2:   #f2ead6;
    --edge:      #cdb98d;   /* ขอบพาเนล */
    --edge-d:    #a88f60;
    --edge-sh:   #d8c8a0;   /* เงาบล็อกแข็ง */

    --ink:       #3a2e1b;   /* หัวข้อ */
    --ink-soft:  #6b5a3e;   /* เนื้อความ */

    --grass:     #6cbf45;
    --grass-d:   #4e9531;
    --grass-dd:  #3c7a24;
    --dirt:      #a97143;
    --dirt-d:    #8f5d34;
    --wood:      #7d5836;
    --wood-d:    #5a3f26;
    --gold:      #f2a72e;
    --sky:       #8fcdf3;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink);
    background-color: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.ic { image-rendering: pixelated; width: 28px; height: 28px; display: inline-block; vertical-align: middle; }
.ic--sm { width: 18px; height: 18px; }

/* ================= HERO ================= */
.hero {
    position: relative;
    min-height: 540px;
    display: flex; flex-direction: column;
    background: url("../img/hero.png") center bottom / cover no-repeat, var(--sky);
    /* เงาด้านบนให้ nav/ตัวอักษรอ่านชัด */
    box-shadow: inset 0 90px 120px -60px rgba(10, 40, 70, 0.45);
}
.hero__nav {
    position: relative; z-index: 2;
    width: min(1140px, 92%); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 0;
}
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__block {
    display: grid; place-items: center;
    width: 42px; height: 42px; border-radius: 9px;
    background: rgba(255,255,255,0.9);
    border: 2px solid rgba(255,255,255,0.7);
    box-shadow: 0 3px 0 rgba(0,0,0,0.2);
}
.logo__block .ic { width: 28px; height: 28px; }
.logo__name {
    font-weight: 800; font-size: 1.15rem; letter-spacing: 1px; color: #fff;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.35);
}
.hero__tag {
    display: inline-flex; align-items: center; gap: 7px;
    font-weight: 600; font-size: 0.9rem; color: #fff;
    padding: 8px 15px; border-radius: 999px;
    background: rgba(30, 60, 90, 0.35);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(3px);
    text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}
.hero__body {
    position: relative; z-index: 2;
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: 30px 20px 150px;   /* ดันหัวข้อขึ้นเหนือพื้นดิน */
}
.hero__title {
    font-weight: 800; color: #fff;
    font-size: clamp(2.1rem, 6vw, 3.7rem); line-height: 1.12;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.28), 0 2px 14px rgba(0,0,0,0.2);
}
.hero__mc {
    display: inline-block;
    color: #fff5cf;
    background: linear-gradient(180deg, var(--grass), var(--grass-d));
    padding: 2px 16px; margin-top: 8px; border-radius: 10px;
    border-bottom: 5px solid var(--grass-dd);
    box-shadow: 0 5px 0 rgba(0,0,0,0.18), inset 0 2px 0 rgba(255,255,255,0.35);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}
.hero__lead {
    margin-top: 22px; max-width: 580px;
    color: #fff; font-size: 1.1rem; font-weight: 500;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.35);
    background: rgba(20, 45, 70, 0.28);
    padding: 10px 20px; border-radius: 12px;
    backdrop-filter: blur(2px);
}

/* ================= Layout ================= */
.wrap { width: min(1140px, 92%); margin: 0 auto; padding: 60px 0 40px; }
.section { margin-bottom: 60px; }
.sec-title {
    display: flex; align-items: center; gap: 12px;
    font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--ink);
}
.sec-title__ic { display: grid; place-items: center; width: 40px; height: 40px;
    background: var(--panel); border: 2px solid var(--edge); border-radius: 9px;
    box-shadow: 0 3px 0 var(--edge-sh); }
.sec-title__ic .ic { width: 26px; height: 26px; }
.sec-sub { color: var(--ink-soft); margin: 8px 0 28px; font-size: 1.02rem; }

/* ปุ่มหญ้า Minecraft */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font); font-weight: 700; font-size: 0.98rem;
    padding: 11px 20px; border-radius: 9px; cursor: pointer;
    transition: transform 0.08s, filter 0.15s;
}
.btn--grass {
    background: linear-gradient(180deg, var(--grass), var(--grass-d));
    color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,0.25);
    border-bottom: 4px solid var(--grass-dd);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.4);
}
.btn__arrow { transition: transform 0.2s; }

/* ================= Demo cards ================= */
.demos {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.card {
    display: flex; flex-direction: column;
    background: var(--panel);
    border: 2px solid var(--edge);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 0 var(--edge-sh), 0 16px 26px -16px rgba(60, 40, 10, 0.4);
    transition: transform 0.18s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 0 var(--edge-sh), 0 26px 40px -18px rgba(60, 40, 10, 0.45);
}
.card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 2px solid var(--edge);
    background: linear-gradient(160deg, #dfeaf2, #c7d6e2);
}
.card__img, .card__ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__ph { background: linear-gradient(160deg, var(--accent), #2b3550); }
.card:hover .card__img { transform: scale(1.05); transition: transform 0.5s cubic-bezier(.2,.8,.2,1); }
/* แถบสีธีมบางๆ ด้านบนภาพ */
.card__media::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; z-index: 3;
    background: var(--accent);
}
.numtag {
    position: absolute; top: 12px; left: 12px; z-index: 4;
    font-weight: 800; font-size: 0.9rem; color: #ffedc2;
    padding: 4px 11px; border-radius: 7px;
    background: var(--wood); border: 2px solid var(--wood-d);
    box-shadow: 0 3px 0 rgba(0,0,0,0.25);
    text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}
.blockico {
    position: absolute; bottom: 12px; right: 12px; z-index: 4;
    display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: 11px;
    background: rgba(255,255,255,0.94);
    border: 2px solid var(--edge);
    box-shadow: 0 3px 0 rgba(0,0,0,0.18);
}
.blockico .ic { width: 28px; height: 28px; }
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__name { font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.card__desc { color: var(--ink-soft); font-size: 0.94rem; flex: 1; }
.card:hover .btn__arrow { transform: translateX(5px); }
.card .btn { align-self: flex-start; margin-top: 6px; }

/* ================= Server cards ================= */
.servers {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px;
}
.scard {
    display: flex; flex-direction: column;
    background: var(--panel);
    border: 2px solid var(--edge);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 0 var(--edge-sh), 0 16px 26px -16px rgba(60, 40, 10, 0.4);
    transition: transform 0.18s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s;
}
.scard:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 0 var(--edge-sh), 0 26px 40px -18px rgba(60, 40, 10, 0.45);
}
.scard.is-off { opacity: 0.72; }
.scard__media {
    position: relative; aspect-ratio: 16 / 10; overflow: hidden;
    border-bottom: 2px solid var(--edge);
    background: linear-gradient(160deg, #dfeaf2, #c7d6e2);
    display: grid; place-items: center;
}
.scard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scard:hover .scard__img { transform: scale(1.05); transition: transform 0.5s cubic-bezier(.2,.8,.2,1); }
.scard__ph .ic { width: 64px; height: 64px; image-rendering: pixelated; }
.status {
    position: absolute; top: 10px; right: 10px; z-index: 3;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.3px;
    padding: 4px 11px; border-radius: 7px;
    border: 2px solid rgba(0,0,0,0.15);
    box-shadow: 0 2px 0 rgba(0,0,0,0.15);
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}
.status--on  { background: #5fbb3a; color: #fff; }
.status--off { background: #9aa0a6; color: #fff; }
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.status--on .status__dot { box-shadow: 0 0 7px #d6ffb8; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.scard__foot { display: flex; align-items: center; gap: 12px; padding: 14px 16px 16px; }
.scard__ico {
    display: grid; place-items: center; flex-shrink: 0;
    width: 46px; height: 46px; border-radius: 11px;
    background: var(--panel-2); border: 2px solid var(--edge);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.6);
}
.scard__ico .ic { width: 28px; height: 28px; }
.scard__txt { display: flex; flex-direction: column; min-width: 0; }
.scard__name { font-weight: 800; font-size: 1.08rem; color: var(--ink); }
.scard__type { color: var(--ink-soft); font-size: 0.86rem; }

/* ================= Footer ================= */
.foot { position: relative; margin-top: 30px; }
.foot__grass { height: 10px; background: linear-gradient(180deg, var(--grass) 0 6px, var(--grass-dd) 6px); }
.foot__in {
    background: url("../img/dirt.png") repeat; background-size: 90px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
    padding: 26px max(4vw, calc((100% - 1140px) / 2));
    box-shadow: inset 0 40px 60px -40px rgba(0,0,0,0.5);
}
.logo--foot .logo__name { font-size: 1rem; }
.foot__copy { color: #ffe9c9; font-size: 0.85rem; text-shadow: 1px 1px 0 rgba(0,0,0,0.5); }

/* ================= Button variants ================= */
.btn .ic { width: 18px; height: 18px; }
.btn--sm { padding: 8px 15px; font-size: 0.9rem; }
.btn--lg { padding: 14px 26px; font-size: 1.05rem; }
.btn--gold {
    background: linear-gradient(180deg, #f7bd4a, #e0951e); color: #4a2f06;
    border-bottom: 4px solid #b4740f; box-shadow: inset 0 2px 0 rgba(255,255,255,.5);
}
.btn--gold:hover { filter: brightness(1.05); }
.btn--gold:active { transform: translateY(2px); border-bottom-width: 1px; }
.btn--ghost {
    background: rgba(255,255,255,.16); color: #fff;
    border: 2px solid rgba(255,255,255,.6); backdrop-filter: blur(3px);
    text-shadow: 1px 1px 0 rgba(0,0,0,.3);
}
.btn--ghost:hover { background: rgba(255,255,255,.26); }

/* ================= Hero additions ================= */
.hero__navr { display: flex; align-items: center; gap: 20px; }
.hero__navlink { color: #fff; font-weight: 600; text-shadow: 1px 1px 0 rgba(0,0,0,.35); }
.hero__navlink:hover { text-decoration: underline; }
.hero__body { padding-bottom: 120px; }
.hero__price-badge {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
    background: var(--wood); color: #ffedc2; font-weight: 700;
    padding: 7px 16px; border-radius: 999px; border: 2px solid var(--wood-d);
    box-shadow: 0 3px 0 rgba(0,0,0,.25); text-shadow: 1px 1px 0 rgba(0,0,0,.3);
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ================= Demo card price ================= */
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.card__foot .btn { align-self: auto; margin-top: 0; }
.card__price { line-height: 1.1; }
.card__price b { color: var(--grass-d); font-size: 1.25rem; font-weight: 800; }
.card__price span { color: var(--ink-soft); font-size: 0.85rem; }

/* ================= Pricing & Rent ================= */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.pricing__left, .pricing__right {
    background: var(--panel); border: 2px solid var(--edge); border-radius: 16px;
    box-shadow: 0 6px 0 var(--edge-sh), 0 16px 26px -16px rgba(60,40,10,.35);
    padding: 30px;
}
.pricing__price { display: flex; align-items: baseline; gap: 8px; }
.pricing__num { font-size: 3.2rem; font-weight: 800; color: var(--grass-d); line-height: 1; }
.pricing__per { color: var(--ink-soft); font-weight: 600; font-size: 1.15rem; }
.pricing__ribbon {
    display: inline-block; margin-top: 12px; font-size: 0.85rem; font-weight: 700;
    background: var(--gold); color: #4a2f06; padding: 4px 13px; border-radius: 7px;
    border: 2px solid #b4740f; box-shadow: 0 2px 0 rgba(0,0,0,.2);
}
.pricing__list { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.pricing__list li { display: flex; align-items: center; gap: 11px; color: var(--ink-soft); font-weight: 500; }
.tick {
    display: grid; place-items: center; flex-shrink: 0;
    width: 23px; height: 23px; border-radius: 6px;
    background: var(--grass); color: #fff; font-weight: 800; font-size: 0.8rem;
    box-shadow: 0 2px 0 var(--grass-dd);
}
.pricing__h { color: var(--ink); font-size: 1.25rem; font-weight: 800; margin-bottom: 18px; }
.rentbtn {
    display: flex; align-items: center; gap: 14px; padding: 15px 16px;
    border-radius: 13px; margin-bottom: 14px; border: 2px solid;
    transition: transform 0.12s, filter 0.15s;
}
.rentbtn:hover { transform: translateY(-3px); filter: brightness(1.03); }
.rentbtn:active { transform: translateY(1px); }
.rentbtn--web { background: linear-gradient(180deg, #6cbf45, #4e9531); border-color: #3c7a24; color: #fff; box-shadow: 0 5px 0 #3c7a24; text-shadow: 1px 1px 0 rgba(0,0,0,.22); }
.rentbtn--adm { background: linear-gradient(180deg, #fbf7ec, #f0e6d0); border-color: var(--edge); color: var(--ink); box-shadow: 0 5px 0 var(--edge-sh); }
.rentbtn__ic {
    display: grid; place-items: center; flex-shrink: 0;
    width: 48px; height: 48px; border-radius: 11px;
    background: rgba(255,255,255,.92); border: 2px solid rgba(0,0,0,.1);
    box-shadow: inset 0 2px 0 rgba(255,255,255,.6);
}
.rentbtn__ic .ic { width: 30px; height: 30px; }
.rentbtn__txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rentbtn__txt b { font-size: 1.12rem; }
.rentbtn__txt small { font-size: 0.82rem; opacity: 0.9; }
.rentbtn--web .rentbtn__txt small { color: rgba(255,255,255,.9); }
.rentbtn__go { font-size: 1.4rem; font-weight: 800; flex-shrink: 0; }
.pricing__hint { color: var(--ink-soft); font-size: 0.85rem; text-align: center; margin-top: 4px; }

/* ================= Features ================= */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
    background: var(--panel); border: 2px solid var(--edge); border-radius: 14px;
    box-shadow: 0 6px 0 var(--edge-sh); padding: 24px;
    transition: transform 0.18s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s;
}
.feat:hover { transform: translateY(-5px); box-shadow: 0 11px 0 var(--edge-sh); }
.feat__ic {
    display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px;
    border-radius: 13px; background: var(--panel-2); border: 2px solid var(--edge);
    box-shadow: inset 0 2px 0 rgba(255,255,255,.6);
}
.feat__ic .ic { width: 34px; height: 34px; }
.feat__title { font-size: 1.16rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.feat__desc { color: var(--ink-soft); font-size: 0.92rem; }

/* ================= Steps ================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
    background: var(--panel); border: 2px solid var(--edge); border-radius: 14px;
    box-shadow: 0 6px 0 var(--edge-sh); padding: 28px 22px; text-align: center;
}
.step__num {
    display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 14px;
    border-radius: 12px; font-size: 1.5rem; font-weight: 800; color: #fff;
    background: linear-gradient(180deg, var(--grass), var(--grass-d));
    border-bottom: 4px solid var(--grass-dd);
    box-shadow: inset 0 2px 0 rgba(255,255,255,.4); text-shadow: 1px 1px 0 rgba(0,0,0,.25);
}
.step__title { font-size: 1.2rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.step__desc { color: var(--ink-soft); font-size: 0.92rem; }

/* ================= FAQ ================= */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 840px; }
.qa {
    background: var(--panel); border: 2px solid var(--edge); border-radius: 12px;
    box-shadow: 0 4px 0 var(--edge-sh); overflow: hidden;
}
.qa__q {
    cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; color: var(--ink);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__mark { font-size: 1.5rem; color: var(--grass-d); transition: transform 0.2s; flex-shrink: 0; line-height: 1; }
.qa[open] .qa__mark { transform: rotate(45deg); }
.qa__a { padding: 0 20px 18px; color: var(--ink-soft); }

/* ================= Final CTA band ================= */
.ctaband {
    text-align: center; margin: 24px 0 8px; padding: 50px 30px; border-radius: 20px; color: #fff;
    background: linear-gradient(180deg, #7cca50, #4e9531); border: 2px solid #3c7a24;
    box-shadow: 0 8px 0 #3c7a24, inset 0 2px 0 rgba(255,255,255,.3);
}
.ctaband__title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; text-shadow: 2px 2px 0 rgba(0,0,0,.2); }
.ctaband__sub { margin: 12px 0 26px; font-size: 1.06rem; text-shadow: 1px 1px 0 rgba(0,0,0,.2); }
.ctaband__sub b { color: #fff5cf; }
.ctaband__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ctaband .btn--grass {   /* ปุ่มขาวให้เด่นบนพื้นเขียว */
    background: #fff; color: var(--grass-dd); border-bottom-color: #cdbc93; text-shadow: none;
}

/* ================= Footer additions ================= */
.foot__col { display: flex; flex-direction: column; gap: 4px; }
.foot__domain { color: #ffe9c9; font-size: 0.8rem; opacity: 0.85; text-shadow: 1px 1px 0 rgba(0,0,0,.5); }
.foot__links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot__links a { color: #ffe9c9; font-size: 0.88rem; font-weight: 500; text-shadow: 1px 1px 0 rgba(0,0,0,.5); }
.foot__links a:hover { text-decoration: underline; }
.foot__copy { background: #33240f; color: #cbb593; text-align: center; padding: 13px; font-size: 0.8rem; }

/* ================= Responsive ================= */
@media (max-width: 900px) {
    .features, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    .demos, .features, .steps, .pricing { grid-template-columns: 1fr; }
    .demos { max-width: 440px; margin: 0 auto; }
    .hero { min-height: 480px; }
    .hero__navlink { display: none; }
    .foot__in { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
