/* PocketMMO — marketing page (index.html). The game itself lives in game.html and uses base.css etc. */
@font-face { font-family: "Fredoka"; src: url("../fonts/Fredoka.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Luckiest Guy"; src: url("../fonts/LuckiestGuy-Regular.ttf") format("truetype"); font-display: swap; }

:root {
    --bg: #141628; --bg2: #1A1D36; --panel: #222647; --line: #363A63;
    --text: #F0EDFA; --muted: #A9B0D6; --accent: #1A8CFF; --accent-hi: #38B6FF; --gold: #FFD13B; --gold-soft: #F7D88F;
    --title: "Luckiest Guy", "Fredoka", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(1200px 600px at 70% -10%, #2A2F66 0%, transparent 60%), var(--bg); color: var(--text); font-family: "Fredoka", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--title); font-weight: 400; letter-spacing: 0.5px; margin: 0; line-height: 1.1; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px max(20px, calc((100% - 1160px) / 2)); background: rgba(20, 22, 40, 0.82); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(54, 58, 99, 0.7); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--title); font-size: 24px; color: var(--gold); text-shadow: 0 2px 0 #4A3300; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav nav a:hover { color: var(--text); }
.nav nav a.btn { color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; color: #fff; background: linear-gradient(#38B6FF, #1A8CFF 55%, #1868B3); border: 1px solid #0F4F8A; box-shadow: 0 6px 18px rgba(26, 140, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35); transition: transform 0.12s, box-shadow 0.12s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26, 140, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-small { padding: 7px 16px; font-size: 14px; }
.btn-big { padding: 16px 34px; font-size: 20px; color: #3A2606; background: linear-gradient(#FFE27A, #FFC21F 55%, #E0A100); border-color: #8A6200; box-shadow: 0 8px 22px rgba(255, 194, 31, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-big:hover { box-shadow: 0 12px 28px rgba(255, 194, 31, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); box-shadow: none; color: var(--text); }

/* Hero */
.hero { max-width: 1160px; margin: 0 auto; padding: 56px 20px 70px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-logo { width: 220px; height: auto; margin: 0 0 6px -10px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5)); }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); color: var(--text); text-shadow: 0 4px 0 #0B0818, 0 0 40px rgba(56, 182, 255, 0.35); }
.lead { font-size: 20px; color: var(--muted); max-width: 560px; margin: 18px 0 26px; }
.lead strong { color: var(--gold-soft); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 26px 0 0; }
.badges li { padding: 5px 14px; border-radius: 999px; background: rgba(255, 209, 59, 0.1); border: 1px solid rgba(255, 209, 59, 0.35); color: var(--gold-soft); font-weight: 600; font-size: 14px; }

/* iPhone mockup: the game runs inside (a 390x844 page, scaled to fit the glass) */
.hero-phone { display: flex; flex-direction: column; align-items: center; }
.iphone { position: relative; width: 336px; }
.iphone-body { position: relative; padding: 12px; border-radius: 54px; background: linear-gradient(145deg, #3A3F66, #14162B 40%, #2A2E52); box-shadow: 0 0 0 2px #0B0818, 0 0 0 4px #4A4F7A, 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 90px rgba(56, 120, 255, 0.28); }
.iphone-screen { position: relative; width: 312px; height: 676px; border-radius: 42px; overflow: hidden; background: #0B0818; }
.iphone-screen iframe { position: absolute; left: 0; top: 0; width: 390px; height: 845px; border: 0; transform: scale(0.8); transform-origin: 0 0; background: #0B0818; }
.island { position: absolute; z-index: 3; left: 50%; top: 22px; width: 98px; height: 28px; margin-left: -49px; border-radius: 20px; background: #05040C; box-shadow: inset 0 0 0 1px #1E2040; }
.home-bar { position: absolute; z-index: 3; left: 50%; bottom: 18px; width: 118px; height: 4px; margin-left: -59px; border-radius: 3px; background: rgba(255, 255, 255, 0.55); pointer-events: none; }
.btn-side { position: absolute; width: 4px; border-radius: 2px; background: #4A4F7A; }
.btn-side.b1 { left: -6px; top: 118px; height: 28px; }
.btn-side.b2 { left: -6px; top: 170px; height: 54px; }
.btn-side.b3 { left: -6px; top: 236px; height: 54px; }
.btn-side.b4 { right: -6px; top: 190px; height: 86px; }
.phone-hint { margin: 22px 0 0; color: var(--muted); font-size: 15px; text-align: center; }
.phone-hint b { color: var(--gold-soft); }

/* Sections */
.section { padding: 76px 20px; max-width: 1160px; margin: 0 auto; }
.section.dark { max-width: none; background: linear-gradient(rgba(10, 8, 24, 0.72), rgba(10, 8, 24, 0.72)); border-top: 1px solid rgba(54, 58, 99, 0.6); border-bottom: 1px solid rgba(54, 58, 99, 0.6); padding-left: max(20px, calc((100% - 1160px) / 2)); padding-right: max(20px, calc((100% - 1160px) / 2)); }
.section h2 { font-size: clamp(32px, 4vw, 46px); text-align: center; color: var(--gold); text-shadow: 0 3px 0 #4A3300; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 12px auto 40px; font-size: 18px; }
.center { text-align: center; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 26px 24px; border-radius: 20px; background: linear-gradient(180deg, var(--panel), #1C1F3D); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); transition: transform 0.2s, border-color 0.2s; }
.card:hover { transform: translateY(-4px); border-color: #5560A8; }
.card img { display: block; margin-bottom: 14px; object-fit: contain; }
.card img.round { border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-soft); }
.card h3 { font-size: 23px; margin-bottom: 8px; color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.zones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; max-width: 1160px; margin: 0 auto; }
.zones figure { position: relative; margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4); }
.zones img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.zones figure:hover img { transform: scale(1.07); }
.zones figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; display: flex; flex-direction: column; background: linear-gradient(transparent, rgba(8, 6, 20, 0.92)); font-size: 15px; }
.zones figcaption span { color: var(--gold-soft); font-size: 13px; font-weight: 600; }

.bosses { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.bosses figure { margin: 0; text-align: center; padding: 16px 8px 14px; border-radius: 18px; background: radial-gradient(circle at 50% 40%, #2E3364, #1B1E3C 70%); border: 1px solid var(--line); }
.bosses img { height: 130px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.55)); transition: transform 0.3s; }
.bosses figure:hover img { transform: scale(1.1) rotate(-2deg); }
.bosses figcaption { margin-top: 10px; font-family: var(--title); font-size: 19px; line-height: 1.1; }
.bosses small { font-family: "Fredoka", sans-serif; color: var(--muted); font-size: 12px; }

.classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1160px; margin: 0 auto; }
.classes article { text-align: center; padding: 24px 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.classes h3 { font-size: 24px; margin: 10px 0 6px; color: var(--gold-soft); }
.classes p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 auto 34px; max-width: 720px; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 70px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); font-size: 18px; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--title); font-size: 22px; color: #3A2606; background: linear-gradient(#FFE27A, #E0A100); }
.steps b { color: var(--gold-soft); }

.faq details { max-width: 800px; margin: 0 auto 12px; padding: 16px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

footer { text-align: center; padding: 40px 20px 50px; color: var(--muted); font-size: 15px; }
footer p { margin: 6px 0; }
footer a { color: var(--gold-soft); }

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 36px; }
    .hero-copy { display: flex; flex-direction: column; align-items: center; }
    .hero-logo { margin-left: 0; }
    .cta, .badges { justify-content: center; }
    .cards { grid-template-columns: 1fr 1fr; }
    .zones, .bosses { grid-template-columns: repeat(3, 1fr); }
    .classes { grid-template-columns: 1fr 1fr; }
    .nav nav a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
    .cards, .classes { grid-template-columns: 1fr; }
    .zones, .bosses { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 54px 16px; }
    .iphone { transform: scale(0.92); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
