:root {
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(15, 23, 42, 0.10);
    --glass-shadow: 0 10px 30px rgba(2,6,23,0.08);

    --section-fade-a: rgba(2,6,23,0.04);
    --section-fade-b: rgba(2,6,23,0.00);

    --noise-a: rgba(14,165,233,0.10);
    --noise-b: rgba(6,182,212,0.08);
    --noise-c: rgba(59,130,246,0.06);
    --noise-base-top: rgba(248,250,252,1);
    --noise-base-bot: rgba(241,245,249,1);
}

html.dark {
    --glass-bg: rgba(2, 6, 23, 0.65);
    --glass-border: rgba(148, 163, 184, 0.14);
    --glass-shadow: 0 10px 30px rgba(0,0,0,0.35);

    --section-fade-a: rgba(255,255,255,0.02);
    --section-fade-b: rgba(255,255,255,0.00);

    --noise-a: rgba(14,165,233,0.20);
    --noise-b: rgba(6,182,212,0.18);
    --noise-c: rgba(59,130,246,0.13);
    --noise-base-top: rgba(2,6,23,1);
    --noise-base-bot: rgba(15,23,42,1);
}

html {
    scroll-behavior: smooth;
}

.hero-pattern {
    background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.noise {
    background-image:
        radial-gradient(circle at 20% 20%, var(--noise-a) 0%, rgba(0,0,0,0) 45%),
        radial-gradient(circle at 80% 30%, var(--noise-b) 0%, rgba(0,0,0,0) 50%),
        radial-gradient(circle at 40% 90%, var(--noise-c) 0%, rgba(0,0,0,0) 55%),
        linear-gradient(180deg, var(--noise-base-top) 0%, var(--noise-base-bot) 100%);
}

.section-fade {
    position: relative;
    isolation: isolate;
}

.section-fade::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--section-fade-a) 0%, var(--section-fade-b) 20%, var(--section-fade-b) 80%, var(--section-fade-a) 100%);
    pointer-events: none;
    z-index: -1;
}

.service-card,
.pricing-card {
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 40px rgba(0,0,0,0.42);
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.team-card:hover .team-overlay {
    opacity: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.glass:hover {
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: 0 16px 36px rgba(0,0,0,0.45);
}

.ring-soft:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}

.cta-btn {
    position: relative;
    overflow: hidden;
}

.cta-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0) 25%, rgba(255,255,255,.2) 50%, rgba(255,255,255,0) 75%);
    transform: translateX(-140%);
    transition: transform .6s ease;
}

.cta-btn:hover::after {
    transform: translateX(140%);
}

.brand-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(14,165,233,0.18), rgba(6,182,212,0.16));
    border: 1px solid rgba(34,211,238,0.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.brand-icon-sm {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(6,182,212,0.12));
    border: 1px solid rgba(34,211,238,0.3);
}

.brand-icon-glyph {
    color: #67e8f9;
}

html:not(.dark) .brand-icon-glyph {
    color: #0891b2;
}

html:not(.dark) .brand-icon {
    background: linear-gradient(135deg, rgba(14,165,233,0.12), rgba(6,182,212,0.10));
    border-color: rgba(8,145,178,0.25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.70);
}

html:not(.dark) .brand-icon-sm {
    border-color: rgba(8,145,178,0.20);
}

.drawer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 60;
}

.drawer[data-open="true"] {
    pointer-events: auto;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.45);
    opacity: 0;
    transition: opacity .25s ease;
}

.drawer[data-open="true"] .drawer-backdrop {
    opacity: 1;
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(360px, 92vw);
    transform: translateX(105%);
    transition: transform .28s ease;
}

.drawer[data-open="true"] .drawer-panel {
    transform: translateX(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── ACTIVE NAV LINK ─────────────────────────── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #06b6d4, #0ea5e9);
    transform: scaleX(0);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
}

.nav-link.is-active {
    color: #0ea5e9 !important;
}

.nav-link.is-active::after {
    transform: scaleX(1);
}

html:not(.dark) .nav-link.is-active {
    color: #0284c7 !important;
}

.mobile-nav-link.is-active {
    background: rgba(14,165,233,0.12);
    color: #0ea5e9 !important;
}

/* ── HAMBURGER ICON ───────────────────────────── */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    pointer-events: none;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .2s ease, width .2s ease;
    transform-origin: center;
}

.hamburger-icon.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-icon.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-icon.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE MENU ──────────────────────────────── */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 49;
    transform: translateY(-6px);
    opacity: 0;
    transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .22s ease;
    pointer-events: none;
}

.mobile-menu[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ── MOBILE STICKY CTA ────────────────────────── */
.mobile-cta-bar {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ══════════════════════════════════════════════
   SZEMANTIKUS SZEKCIÓ OSZTÁLYOK
   ══════════════════════════════════════════════ */

/* ── SECTION BADGE ────────────────────────────── */
/* Primary változat (kék) */
.section-badge {
    display: inline-block;
    background: rgba(14, 165, 233, 0.10);
    color: #0ea5e9;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(14, 165, 233, 0.25);
}

/* Secondary változat (cyan) */
.section-badge--secondary {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    border-color: rgba(6, 182, 212, 0.30);
}

/* ── SECTION TITLE ────────────────────────────── */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

/* Világos módban a Services szekció h2-je slate-900 */
html:not(.dark) .section-title--light {
    color: #0f172a;
}

/* ── SECTION DESC ─────────────────────────────── */
.section-desc {
    color: rgba(203, 213, 225, 0.80);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* ── FORM LABEL ───────────────────────────────── */
.form-label {
    display: block;
    color: #e2e8f0;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ── FORM INPUT ───────────────────────────────── */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: rgba(2, 6, 23, 0.40);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #f1f5f9;
    transition: border-color 0.2s ease;
}

.form-input::placeholder {
    color: rgba(148, 163, 184, 0.70);
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
    border-color: rgba(14, 165, 233, 0.50);
}

/* select option háttér sötét módban */
.form-input option {
    background: #0f172a;
    color: #f1f5f9;
}

/* ── BTN OUTLINE ──────────────────────────────── */
.btn-outline {
    display: block;
    text-align: center;
    width: 100%;
    border: 1px solid rgba(14, 165, 233, 0.60);
    color: #0ea5e9;
    padding: 0.75rem 0;
    border-radius: 9999px;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.10);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-outline:hover {
    background: #0ea5e9;
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.25);
}

/* ── FEATURE ITEM (About szekció icon+szöveg sorok) ── */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

/* ── CONTACT ITEM (Kapcsolat szekció icon+szöveg sorok) ── */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ── TEAM CARD (Team szekció glass kártyák) ──────── */
.team-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

/* ── STAT ITEM (Hero szekció 3 stat) ─────────────── */
.stat-item {
    text-align: center;
}
