/* ==========================================================================
   CORE — TYPO + AIRY RHYTHM (v1.3)
   - 12px alap betűméret
   - sokkal szellősebb spacing (section/gap/padding)
   - linkek: nincs lila visited
   - performance: nincs box-shadow transition
   ========================================================================== */

:root {
    /* --- színek --- */
    --bg: #0f1012;
    --text: #ffffff;
    --muted: #a8acb3;
    --accent: #ff6a00;
    --success: #19c37d;
    --card: #15171b;

    /* --- forma / árnyék --- */
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);

    /* --- layout --- */
    --container-max: 1200px;

    /* --- animáció --- */
    --spring: cubic-bezier(.22, .61, .36, 1);
    --speed: 210ms;

    /* --- header tokenek (más fájlok használhatják) --- */
    --header-h: 108px;
    --header-h-shrink: 56px;

    /* --- glass token --- */
    --glass-border: rgba(255, 255, 255, 0.08);

    /* --- háttér tokenek (ha más fájl használja) --- */
    --bg-image: url("/assets/img/fix.png");
    --light-opacity: 0.90;

    /* --- AIRY SPACING: sokkal szellősebb --- */
    --gap: clamp(20px, 3.2vw, 44px);
    --section-py: clamp(72px, 9vw, 140px);
    --page-px: clamp(18px, 3.4vw, 30px);

    /* --- tipográfia --- */
    --fs-base: 12px;
    /* KÉRT: 12px */
    --lh-base: 1.75;
    /* levegős olvasás */
    --lh-tight: 1.16;
    --lh-title: 1.10;

    /* fókusz */
    --focus: rgba(255, 106, 0, 0.55);
}

/* ---- RESET / BASE ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

html {
    scroll-behavior: auto;
    background: var(--bg);
    font-size: var(--fs-base);
    /* 1rem = 12px */
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;

    color: var(--text);
    background: var(--bg);

    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
    font-weight: 450;
    font-size: 1rem;
    line-height: var(--lh-base);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    overflow-x: hidden;
    overflow-y: auto;
}

/* Média elemek: ne törjék a layoutot */
img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Űrlap elemek: vegyék át a tipót */
button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

/* Linkek
   - alapból NINCS aláhúzás (kártya/gomb jellegű linkeknél zavaró)
   - szövegfolyamban (pl. <p>) és a .link utilnál van aláhúzás
*/
a {
    color: inherit;
    text-decoration: none;
}

/* Szövegen belüli linkek (olvashatóság) */
p a,
.link {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.22);
    text-underline-offset: 3px;
}

p a:hover,
.link:hover {
    text-decoration-color: rgba(255, 255, 255, 0.55);
}

a:visited {
    color: inherit;
}

/* Fókusz */
:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-radius: 10px;
}

/* Szövegkényelmi korlát */
p {
    max-width: 78ch;
}

/* ---- TYPO HELPERS ---- */
.h2 {
    margin: 0 0 18px;
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.25;
    letter-spacing: 0.2px;
}

.muted {
    color: var(--muted);
}

.txt-accent {
    color: var(--accent);
}

/* ---- LAYOUT ---- */
.maincontainer {
    width: 100%;
}

.section {
    padding: var(--section-py) var(--page-px);
    background: transparent;

    padding-left: calc(var(--page-px) + env(safe-area-inset-left));
    padding-right: calc(var(--page-px) + env(safe-area-inset-right));
}

.section .inner {
    width: 100%;
    max-width: min(1180px, 92vw);
    margin: 0 auto;
}

/* ---- HERO (basic typography only, konkrét layout a hero.css-ben) ---- */
.hero h1,
.hero-copy h1 {
    font-size: clamp(20px, 3.0vw, 34px);
    line-height: var(--lh-title);
    letter-spacing: 0.2px;
}

/* ---- BUTTONS ---- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 16px;
    /* kicsit nagyobb tap area */
    border-radius: 12px;

    border: 1px solid rgba(248, 250, 252, 0.10);
    background: rgba(10, 10, 11, 0.94);
    color: #e5e7eb;

    font-weight: 650;
    font-size: 12px;
    letter-spacing: 0.03em;

    cursor: pointer;

    /* performance: nincs box-shadow transition */
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.btn:hover {
    background: rgba(15, 15, 16, 0.98);
    border-color: rgba(249, 250, 251, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.62);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.58);
}

/* Accent gomb */
.btn-accent {
    position: relative;
    z-index: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 9px 18px 9px 58px;
    /* kényelmesebb */
    border-radius: 999px;

    background: linear-gradient(135deg, rgba(5, 5, 7, 0.96), rgba(15, 16, 20, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.40);
    color: #f9fafb;

    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 0.05em;

    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.78);

    cursor: pointer;
    transition: transform 140ms ease, border-color 140ms ease;
}

.btn-accent::after {
    content: "";
    position: absolute;
    left: 48px;
    right: 14px;
    top: 2px;
    height: 30%;
    border-radius: 999px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
    opacity: 0.85;
    pointer-events: none;
}

.btn-accent::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;

    background-color: #000;
    background-image: url("/assets/img/logo-mark.png");
    background-size: 120%;
    background-position: center;
    background-repeat: no-repeat;

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.92),
        0 0 16px rgba(0, 0, 0, 0.88);
    z-index: 1;
}

.btn-accent:hover {
    transform: translateY(-1px);
    border-color: rgba(209, 213, 219, 0.6);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.86);
}

.btn-accent:active {
    transform: translateY(0);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.78);
}

@media (max-width: 480px) {
    .btn {
        padding: 10px 16px;
    }

    .btn-accent {
        padding: 8px 16px 8px 54px;
        font-size: 11px;
    }

    .btn-accent::before {
        width: 36px;
        height: 36px;
        left: 8px;
    }

    .btn-accent::after {
        left: 44px;
        right: 12px;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {

    .btn,
    .btn-accent {
        transition: none !important;
    }

    .preloader {
        transition: none !important;
    }

    .preloader__spinner {
        animation: none !important;
    }
}