/* ──────────────────────────────────────────────────────────────────
   Liquid Glass design system — hardver.absec.hu
   iOS 26 Liquid Glass, mobile-first, WCAG 2.1 AA
   ────────────────────────────────────────────────────────────────── */

:root {
    /* Accent */
    --accent-hue: 220;
    --accent: hsl(var(--accent-hue) 92% 56%);
    --accent-soft: hsl(var(--accent-hue) 92% 56% / 0.12);
    --accent-strong: hsl(var(--accent-hue) 96% 46%);

    /* Surfaces (light) */
    --bg: hsl(220 33% 97%);
    --bg-elev: hsl(220 40% 100%);
    --text: hsl(222 38% 11%);
    --text-muted: hsl(220 12% 38%);

    /* Glass */
    --glass-bg: hsl(0 0% 100% / 0.55);
    --glass-bg-strong: hsl(0 0% 100% / 0.72);
    --glass-border: hsl(0 0% 100% / 0.28);
    --glass-stroke: 0.5px;
    --glass-blur: 25px;

    /* Shadow (multi-layer emelés) */
    --shadow-sm: 0 1px 1px hsl(222 38% 11% / 0.04), 0 1px 2px hsl(222 38% 11% / 0.05);
    --shadow: 0 1px 2px hsl(222 38% 11% / 0.06),
              0 4px 10px hsl(222 38% 11% / 0.08),
              0 18px 40px hsl(222 38% 11% / 0.10);
    --shadow-inner: inset 0 1px 0 hsl(0 0% 100% / 0.55), inset 0 -1px 0 hsl(220 38% 11% / 0.08);

    /* Radii (squircle feel) */
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    /* Motion */
    --ease: cubic-bezier(.2,.8,.2,1);

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Inter, system-ui, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Inter, system-ui, sans-serif;

    /* Layout */
    --content-max: 1200px;
    --nav-height: 64px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: hsl(220 22% 8%);
        --bg-elev: hsl(222 18% 12%);
        --text: hsl(210 30% 96%);
        --text-muted: hsl(220 12% 65%);

        --glass-bg: hsl(222 18% 14% / 0.55);
        --glass-bg-strong: hsl(222 18% 14% / 0.72);
        --glass-border: hsl(220 30% 92% / 0.18);

        --shadow-sm: 0 1px 1px hsl(0 0% 0% / 0.30), 0 1px 2px hsl(0 0% 0% / 0.40);
        --shadow: 0 1px 2px hsl(0 0% 0% / 0.40),
                  0 8px 20px hsl(0 0% 0% / 0.45),
                  0 24px 60px hsl(0 0% 0% / 0.55);
        --shadow-inner: inset 0 1px 0 hsl(0 0% 100% / 0.12), inset 0 -1px 0 hsl(0 0% 0% / 0.30);
    }
}

/* ── Reset & basics ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 10% -10%, hsl(var(--accent-hue) 100% 72% / 0.18), transparent 60%),
        radial-gradient(800px 500px at 90% 10%, hsl(280 92% 70% / 0.12), transparent 60%),
        var(--bg);
    min-height: 100dvh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0 0 .4em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2vw + .8rem, 2.25rem); font-weight: 650; }
p  { margin: 0 0 1em; color: var(--text-muted); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Skip link — a11y */
.skip-link {
    position: absolute; top: -40px; left: 8px;
    background: var(--accent); color: white;
    padding: .5rem .8rem; border-radius: var(--radius-sm); z-index: 1000;
}
.skip-link:focus { top: 8px; }

/* ── Shared layout ──────────────────────────────────────────────── */
.container { width: min(100% - 2rem, var(--content-max)); margin-inline: auto; }

/* ── Navigation (glass) ─────────────────────────────────────────── */
.site-header {
    position: sticky; top: .75rem; z-index: 100;
    padding-inline: .75rem;
}
.nav {
    display: flex; align-items: center; gap: 1rem;
    height: var(--nav-height);
    padding: .5rem .75rem .5rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    border: var(--glass-stroke) solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow), var(--shadow-inner);
}
.nav .brand {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 700; font-size: 1.05rem;
    color: var(--text); text-decoration: none;
}
.nav .brand-dot {
    width: 22px; height: 22px; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), hsl(280 92% 66%));
    box-shadow: var(--shadow-inner), 0 4px 12px hsl(var(--accent-hue) 92% 56% / 0.45);
}
.nav .links { display: none; gap: .25rem; margin-inline: auto; }
.nav .links a {
    color: var(--text); text-decoration: none;
    padding: .5rem .85rem; border-radius: var(--radius-pill);
    transition: background .2s var(--ease);
}
.nav .links a:hover { background: var(--accent-soft); }
.nav .cta { margin-left: auto; }
.nav-toggle {
    margin-left: auto; appearance: none;
    width: 44px; height: 44px; border-radius: var(--radius);
    border: var(--glass-stroke) solid var(--glass-border);
    background: var(--glass-bg-strong); color: var(--text);
    display: inline-grid; place-items: center;
    cursor: pointer;
}
.nav-toggle:hover { background: var(--accent-soft); }

.mobile-menu {
    display: none;
    margin: .6rem .75rem 0;
    padding: 1rem;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    border: var(--glass-stroke) solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.mobile-menu a {
    display: block; color: var(--text); text-decoration: none;
    padding: .75rem; border-radius: var(--radius-sm);
    min-height: 44px;
}
.mobile-menu a:hover { background: var(--accent-soft); }
.mobile-menu[hidden] { display: none; }

@media (min-width: 768px) {
    .nav .links { display: inline-flex; }
    .nav-toggle { display: none; }
    .mobile-menu { display: none !important; }
}

/* ── Buttons (squircle, glassy) ─────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 44px; padding: .7rem 1.1rem;
    border-radius: var(--radius);
    font: inherit; font-weight: 600;
    text-decoration: none; cursor: pointer;
    border: var(--glass-stroke) solid var(--glass-border);
    box-shadow: var(--shadow), var(--shadow-inner);
    transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
    color: var(--text);
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn.primary {
    color: white;
    background: linear-gradient(180deg, hsl(var(--accent-hue) 96% 62%), var(--accent-strong));
    border-color: hsl(var(--accent-hue) 96% 46% / 0.6);
}
.btn.ghost { background: transparent; }

/* ── Glass card ─────────────────────────────────────────────────── */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    border: var(--glass-stroke) solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow), var(--shadow-inner);
    padding: 1.5rem;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
    padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(2rem, 4vw, 4rem);
    text-align: center;
}
.hero .eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .85rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    color: var(--accent-strong);
    background: var(--accent-soft);
    padding: .35rem .8rem; border-radius: var(--radius-pill);
    margin-bottom: 1.2rem;
}
.hero h1 { max-width: 18ch; margin-inline: auto; }
.hero .lede { max-width: 60ch; margin-inline: auto; font-size: 1.125rem; color: var(--text-muted); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.5rem; }

.hero-card-grid {
    display: grid; gap: 1rem;
    grid-template-columns: 1fr;
    margin-top: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 640px)  { .hero-card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px)  { .hero-card-grid { grid-template-columns: repeat(3, 1fr); } }

.feature h3 { font-size: 1.15rem; }
.feature .icon {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; border-radius: var(--radius);
    background: var(--accent-soft); color: var(--accent-strong);
    margin-bottom: .75rem; font-size: 1.25rem;
}

/* ── Forms ──────────────────────────────────────────────────────── */
.field { display: block; margin-bottom: 1rem; }
.field > label {
    display: block; font-size: .92rem; font-weight: 600;
    margin-bottom: .35rem; color: var(--text);
}
.input, .textarea, .select {
    width: 100%;
    min-height: 44px;
    padding: .7rem .9rem;
    background: var(--bg-elev);
    color: var(--text);
    border: var(--glass-stroke) solid var(--glass-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-inner);
    font: inherit;
}
.textarea { min-height: 128px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.form-errors, .field-error { color: hsl(0 72% 52%); font-size: .9rem; margin: .25rem 0 .5rem; }
.form-success {
    background: hsl(145 70% 42% / 0.12); color: hsl(145 70% 28%);
    border: 1px solid hsl(145 70% 42% / 0.35);
    padding: .8rem 1rem; border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}
@media (prefers-color-scheme: dark) {
    .form-success { color: hsl(145 60% 72%); }
}

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
    margin-top: 4rem;
    padding: 2rem 0 2.5rem;
    color: var(--text-muted);
    font-size: .92rem;
}
.site-footer .container {
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
}
.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--text-muted); }

/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
