/* kpop.hu design system */

:root {
    --bg: #0b0b12;
    --bg-soft: #12121d;
    --card: #16162399;
    --border: #2a2a3d;
    --text: #f2f0f7;
    --muted: #9b97ad;
    --pink: #ff2d78;
    --violet: #8b5cf6;
    --cyan: #22d3ee;
    --grad: linear-gradient(100deg, #ff2d78 0%, #8b5cf6 55%, #22d3ee 100%);
    --radius: 14px;
    --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* subtle ambient glow */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(600px 400px at 85% -10%, #ff2d7822, transparent 70%),
        radial-gradient(700px 500px at -10% 30%, #8b5cf61e, transparent 70%),
        radial-gradient(600px 500px at 110% 90%, #22d3ee14, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

main, header, footer, nav { position: relative; z-index: 1; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* ---------- Nav ---------- */

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.nav .brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text);
    text-decoration: none;
}

.brand .dot { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav .links { display: flex; gap: 22px; flex-wrap: wrap; }

.nav .links a { color: var(--muted); font-size: 15px; font-weight: 600; }
.nav .links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 56px; text-align: center; }

.hero h1 {
    font-size: clamp(34px, 7vw, 64px);
    line-height: 1.08;
    margin: 0 0 18px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero p.lead {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto 32px;
}

.badge-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }

.badge {
    font-size: 13px;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 999px;
    background: #ffffff08;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 6px 24px #ff2d7844;
}
.btn-primary:hover { box-shadow: 0 8px 30px #ff2d7866; color: #fff; }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }

.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Sections & cards ---------- */

section { padding: 56px 0; }

.section-title { font-size: clamp(24px, 4vw, 34px); font-weight: 800; margin: 0 0 8px; text-align: center; }
.section-sub { color: var(--muted); text-align: center; max-width: 560px; margin: 0 auto 40px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    backdrop-filter: blur(6px);
}

.card h3 { margin: 0 0 10px; font-size: 20px; }
.card p { color: var(--muted); margin: 0 0 18px; font-size: 15px; }

.card .icon { font-size: 30px; margin-bottom: 14px; display: block; }

.card.highlight { border-image: linear-gradient(100deg, #ff2d78, #8b5cf6, #22d3ee) 1; border-width: 1px; border-style: solid; }

/* ---------- Newsletter ---------- */

.newsletter-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.newsletter-box h2 { margin: 0 0 8px; font-size: 26px; }
.newsletter-box p { color: var(--muted); margin: 0 0 22px; font-size: 15px; }

.newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto 12px; }

.newsletter-form input[type=email] {
    flex: 1;
    padding: 13px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #0d0d16;
    color: var(--text);
    font-size: 15px;
    outline: none;
}
.newsletter-form input[type=email]:focus { border-color: var(--violet); }

@media (max-width: 520px) {
    .newsletter-form { flex-direction: column; }
}

.consent { font-size: 12.5px; color: var(--muted); max-width: 460px; margin: 0 auto; text-align: left; display: flex; gap: 8px; align-items: flex-start; }
.consent input { margin-top: 4px; }

.form-note { font-size: 14px; margin-top: 12px; min-height: 20px; }
.form-note.ok { color: #4ade80; }
.form-note.err { color: #f87171; }

/* ---------- Quiz ---------- */

.quiz-wrap { max-width: 640px; margin: 0 auto; }

.progress { height: 6px; background: #ffffff14; border-radius: 999px; margin-bottom: 26px; overflow: hidden; }
.progress .bar { height: 100%; background: var(--grad); width: 0%; transition: width .25s ease; border-radius: 999px; }

.quiz-q { font-size: 22px; font-weight: 700; margin: 0 0 22px; min-height: 60px; }

.quiz-opts { display: grid; gap: 12px; }

.quiz-opt {
    text-align: left;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    transition: border-color .12s ease, background .12s ease;
}
.quiz-opt:hover { border-color: var(--violet); }
.quiz-opt.correct { border-color: #4ade80; background: #4ade8018; }
.quiz-opt.wrong { border-color: #f87171; background: #f8717118; }
.quiz-opt:disabled { cursor: default; opacity: .85; }

.quiz-result { text-align: center; }
.quiz-result .score { font-size: 54px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 8px 0; }
.quiz-result h2 { font-size: 28px; margin: 6px 0 10px; }
.quiz-result p { color: var(--muted); max-width: 480px; margin: 0 auto 24px; }

.share-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Hangul trainer ---------- */

.tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }

.tab {
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}
.tab.active { background: var(--grad); color: #fff; border-color: transparent; }

.jamo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }

.jamo-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: border-color .12s ease, transform .12s ease;
}
.jamo-card:hover { border-color: var(--violet); transform: translateY(-2px); }

.jamo-card .glyph { font-size: 34px; font-weight: 700; display: block; }
.jamo-card .roman { font-size: 13px; color: var(--muted); display: block; margin-top: 6px; min-height: 18px; }
.jamo-card.revealed .roman { color: var(--cyan); font-weight: 700; }

.hangul-hint { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 18px; }

.practice-glyph { font-size: 84px; font-weight: 800; text-align: center; margin: 10px 0 26px; }

.stat-row { display: flex; gap: 18px; justify-content: center; color: var(--muted); font-size: 14px; margin-top: 22px; }
.stat-row b { color: var(--text); }

/* ---------- Premium ---------- */

.price-tag { font-size: 42px; font-weight: 800; margin: 6px 0; }
.price-tag .cur { font-size: 20px; color: var(--muted); font-weight: 600; }

.check-list { list-style: none; padding: 0; margin: 0 0 26px; }
.check-list li { padding: 8px 0 8px 30px; position: relative; color: var(--text); font-size: 15.5px; }
.check-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--cyan); font-weight: 800; }

/* ---------- Footer ---------- */

footer {
    border-top: 1px solid var(--border);
    padding: 34px 0 44px;
    margin-top: 40px;
    font-size: 14px;
    color: var(--muted);
}

.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--text); }

/* ---------- Cookie bar ---------- */

#cookie-note {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: #0d0d16f2;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 16px;
    text-align: center;
    border-top: 1px solid var(--border);
}
#cookie-note a { color: var(--cyan); }
#cookie-note button {
    margin-left: 12px;
    background: #ffffff14;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 16px;
    font-size: 13px;
    cursor: pointer;
}

/* ---------- Misc ---------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.hidden { display: none !important; }
