/* Mystra — egyoldalas kedvcsináló site
   Brand paletta: #0E1116 (ink), #1B212A (slate), #C9A15A (gold),
   #F4EBDC (parchment), #EBD9BB (parchment-alt), #6E4B7E (arcane purple) */

:root {
    --ink: #0e1116;
    --slate: #1b212a;
    --gold: #c9a15a;
    --gold-light: #ddb96f;
    --parchment: #f4ebdc;
    --parchment-alt: #ebd9bb;
    --arcane: #6e4b7e;
    --text-on-dark: #f4ebdc;
    --text-on-light: #1b212a;
    --radius: 14px;
    --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--parchment);
    color: var(--text-on-light);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 0.5em;
    color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: inherit; }

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.section--narrow { max-width: 760px; }
.section--center { text-align: center; }

.eyebrow {
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--gold);
    background: rgba(201, 161, 90, 0.12);
    display: inline-block;
    padding: 0.3em 0.9em;
    border-radius: 999px;
    margin-bottom: 1em;
}

/* ---------- Header / nav ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(14, 17, 22, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(201, 161, 90, 0.25);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand__mark { display: block; }

.brand__word {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--parchment);
    font-size: 1.2rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    color: var(--parchment-alt);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--gold-light); }

.site-nav__cta {
    background: var(--gold);
    color: var(--ink) !important;
    padding: 0.5em 1.1em;
    border-radius: 999px;
    font-weight: 600;
}

.site-nav__cta:hover { background: var(--gold-light); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--parchment);
    display: block;
}

/* ---------- Language switcher ---------- */

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1px solid rgba(244, 235, 220, 0.25);
    border-radius: 999px;
    padding: 3px;
}

.lang-switcher a {
    color: var(--parchment-alt);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.3em 0.7em;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-switcher a:hover { color: var(--gold-light); }

.lang-switcher a.is-active {
    background: var(--gold);
    color: var(--ink);
}

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

.hero {
    position: relative;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(110, 75, 126, 0.35), transparent 60%),
        linear-gradient(180deg, var(--ink), var(--slate));
    color: var(--text-on-dark);
    padding: 96px 0 120px;
    overflow: hidden;
}

.hero__inner { position: relative; z-index: 2; max-width: 640px; }

.hero h1 { color: var(--parchment); }

.hero__subheadline {
    font-size: 1.1rem;
    color: var(--parchment-alt);
    max-width: 540px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 1.8em;
}

.hero__mark {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    max-width: 46vw;
    opacity: 0.9;
    z-index: 1;
    pointer-events: none;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.85em 1.6em;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn--primary {
    background: var(--gold);
    color: var(--ink);
}

.btn--primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn--ghost {
    border: 1px solid rgba(244, 235, 220, 0.4);
    color: var(--parchment);
}

.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }

/* ---------- Sections ---------- */

.section { padding: 84px 0; }
.section--alt { background: var(--parchment-alt); }

.lead { font-size: 1.15rem; }

.section__intro {
    max-width: 640px;
    color: #4a4038;
}

/* ---------- Steps (how it works) ---------- */

.steps {
    list-style: none;
    margin: 2.5em 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}

.step {
    background: #fffdf8;
    border: 1px solid rgba(27, 33, 42, 0.08);
    border-radius: var(--radius);
    padding: 28px 22px;
    position: relative;
}

.step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(201, 161, 90, 0.15);
    color: var(--gold);
    margin-bottom: 14px;
}

.step__icon svg { width: 22px; height: 22px; }

.step p { margin-bottom: 0; color: #4a4038; font-size: 0.95rem; }

/* ---------- Galleries / placeholder tiles ---------- */

.gallery {
    display: grid;
    gap: 20px;
    margin-top: 2.2em;
}

.gallery--phone { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.gallery--wide { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.placeholder-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    background: repeating-linear-gradient(135deg, rgba(27,33,42,0.03) 0 12px, rgba(27,33,42,0.06) 12px 24px);
    border: 1.5px dashed rgba(27, 33, 42, 0.25);
    border-radius: var(--radius);
    color: #6b6053;
    font-size: 0.85rem;
    padding: 20px;
}

.placeholder-tile svg { width: 32px; height: 32px; opacity: 0.6; }

.placeholder-tile--phone { aspect-ratio: 9 / 16; }
.placeholder-tile--wide { aspect-ratio: 4 / 3; }

.screenshot-tile {
    margin: 0;
    background: var(--ink);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(14, 17, 22, 0.18);
}

.screenshot-tile img {
    display: block;
    width: 100%;
    height: auto;
}

.screenshot-tile figcaption {
    padding: 12px 14px;
    font-size: 0.85rem;
    color: var(--parchment-alt);
    text-align: center;
    background: var(--slate);
}

/* ---------- Store badges ---------- */

.stores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 1.6em;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    border-radius: 12px;
    background: var(--ink);
    color: var(--parchment);
    text-decoration: none;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.05rem;
    transition: transform 0.15s ease;
}

.store-badge svg { width: 26px; height: 26px; }

.store-badge small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.store-badge:hover { transform: translateY(-2px); }

.store-badge--disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* ---------- Contact ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    margin-top: 2em;
    align-items: start;
}

.contact-details__row {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 0;
    border-bottom: 1px solid rgba(27, 33, 42, 0.12);
}

.contact-details__row svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }

.contact-details__note {
    margin-top: 1em;
    font-size: 0.82rem;
    color: #8a7e6d;
    font-style: italic;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 6px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8em 1em;
    border-radius: 10px;
    border: 1px solid rgba(27, 33, 42, 0.2);
    background: #fffdf8;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-on-light);
}

.contact-form textarea { min-height: 130px; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 161, 90, 0.2);
}

.contact-form button[type="submit"],
.contact-form input[type="submit"] {
    align-self: flex-start;
    background: var(--gold);
    color: var(--ink);
    border: 0;
    padding: 0.85em 1.8em;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.contact-form button[type="submit"]:hover,
.contact-form input[type="submit"]:hover { background: var(--gold-light); }

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

.site-footer {
    background: var(--ink);
    color: var(--parchment-alt);
    padding: 40px 0;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', Georgia, serif;
    color: var(--parchment);
}

.site-footer__note { font-size: 0.82rem; color: #9a8f7f; margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .hero__mark { opacity: 0.35; right: -80px; }
}

@media (max-width: 640px) {
    .steps { grid-template-columns: 1fr; }

    .nav-toggle { display: flex; }

    .site-nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(14, 17, 22, 0.98);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 24px 20px;
        display: none;
    }

    .site-nav.is-open { display: flex; }

    .site-nav .lang-switcher {
        margin-bottom: 10px;
    }

    .site-nav a {
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid rgba(244, 235, 220, 0.08);
    }

    .site-nav__cta {
        margin-top: 12px;
        text-align: center;
    }

    .hero { padding: 64px 0 88px; text-align: left; }
    .section { padding: 56px 0; }
}
