/* ============================================================
   Cognizen Event — EventTouch landing
   Design alapja: https://cognizen.events/
   Paletta: rose pink accent + dark navy + light neutral
   Mobile-first
   ============================================================ */

:root {
    --rose-50:  #fff5f6;
    --rose-100: #fff1f2;
    --rose-200: #fde7ea;
    --rose-300: #f5b8c1;
    --rose-500: #ea4d5f;
    --rose-600: #d63d4f;
    --rose-700: #b8293a;

    --navy-950: #020817;
    --navy-900: #0f172a;
    --navy-800: #1e293b;
    --navy-700: #334155;

    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;

    --white: #ffffff;

    --radius:    0.625rem;   /* 10px */
    --radius-lg: 0.875rem;   /* 14px */
    --radius-xl: 1.25rem;    /* 20px */
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(2, 8, 23, .05);
    --shadow-md: 0 6px 18px rgba(2, 8, 23, .08), 0 2px 6px rgba(2, 8, 23, .05);
    --shadow-lg: 0 20px 40px rgba(2, 8, 23, .12), 0 8px 16px rgba(2, 8, 23, .06);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--navy-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }

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

h1, h2, h3 {
    margin: 0 0 .5em;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--navy-900);
}

p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--slate-200);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--navy-900);
}

.brand-icon {
    width: 28px;
    height: 28px;
    color: var(--rose-500);
    flex-shrink: 0;
}

.brand-name {
    font-weight: 800;
    letter-spacing: -.02em;
    font-size: 1.05rem;
}

.brand-name-accent {
    color: var(--rose-600);
    font-weight: 700;
}

.event-logo {
    height: 28px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    /* fekete overlay a logón */
    filter: brightness(0) saturate(100%);
}

@media (min-width: 600px) {
    .event-logo { height: 32px; max-width: 170px; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    color: var(--white);
    overflow: hidden;
    padding: 44px 0 56px;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(120% 80% at 80% 0%, rgba(234, 77, 95, .35) 0%, rgba(234, 77, 95, 0) 55%),
        radial-gradient(100% 70% at 0% 100%, rgba(47, 87, 175, .25) 0%, rgba(47, 87, 175, 0) 55%),
        linear-gradient(180deg, #020817 0%, #0f172a 60%, #1e293b 100%);
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .55;
    mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 70%);
}

.eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--rose-300);
    padding: 5px 11px;
    border: 1px solid rgba(245, 184, 193, .35);
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
    background: rgba(234, 77, 95, .08);
}

.eyebrow--accent {
    color: var(--rose-600);
    border-color: var(--rose-200);
    background: var(--rose-50);
}

.hero h1 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.025em;
    margin-bottom: 14px;
}

.hero .accent {
    background: linear-gradient(90deg, var(--rose-500), var(--rose-300));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lead {
    color: var(--slate-300);
    font-size: 1.02rem;
    margin-bottom: 22px;
    width: 100%;
}

.hero-mini {
    margin-top: 14px;
    color: var(--slate-400);
    font-size: .8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}
.hero-mini svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--slate-400);
}

/* ============================================================
   Form card
   ============================================================ */
.form-card {
    background: var(--white);
    color: var(--navy-900);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-lg);
}

.field-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--navy-800);
    margin: 6px 0 6px;
}

input[type="email"],
input[type="text"],
input[type="tel"] {
    width: 100%;
    padding: 13px 14px;
    font-size: 16px; /* iOS zoom prevention */
    border: 1px solid var(--slate-300);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--navy-900);
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

input::placeholder { color: var(--slate-400); }

input:focus {
    outline: none;
    border-color: var(--rose-500);
    box-shadow: 0 0 0 4px rgba(234, 77, 95, .15);
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 16px;
    font-size: .88rem;
    color: var(--navy-800);
    cursor: pointer;
    line-height: 1.45;
}

.checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: var(--rose-600);
    flex-shrink: 0;
}

.checkbox a { text-decoration: underline; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 14px 20px;
    transition: transform .05s ease, background .15s ease,
                box-shadow .15s ease, opacity .15s ease;
    line-height: 1.2;
    font-family: inherit;
    text-decoration: none;
}

.btn:active { transform: translateY(1px); }

.btn-block { display: flex; width: 100%; }

.btn-primary {
    background: var(--rose-600);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(214, 61, 79, .28);
}
.btn-primary:hover {
    background: var(--rose-700);
    box-shadow: 0 8px 22px rgba(214, 61, 79, .35);
}
.btn-primary:disabled {
    background: var(--slate-300);
    color: var(--white);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform .2s ease;
}
.btn:hover .btn-icon { transform: translateX(3px); }

/* ============================================================
   Messages
   ============================================================ */
.form-error {
    color: var(--rose-700);
    margin: 10px 0 0;
    font-size: .88rem;
    font-weight: 500;
}

.form-message {
    margin: 12px 0 0;
    font-size: .9rem;
    padding: 10px 12px;
    border-radius: var(--radius);
    border: 1px solid transparent;
}

.form-message.ok {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.form-message.err {
    background: var(--rose-100);
    color: var(--rose-700);
    border-color: var(--rose-300);
}

/* ============================================================
   Promo
   ============================================================ */
.promo {
    background: linear-gradient(180deg, var(--white) 0%, var(--rose-50) 100%);
    padding: 44px 0 56px;
    border-top: 1px solid var(--slate-200);
}

.promo h2 {
    font-size: 1.65rem;
    margin-top: 12px;
    margin-bottom: 14px;
    letter-spacing: -.02em;
}

.promo h3 {
    font-size: 1.15rem;
    margin-top: 32px;
    margin-bottom: 10px;
    color: var(--navy-900);
    letter-spacing: -.015em;
}

.promo h2 .emoji,
.promo .emoji {
    display: inline-block;
    margin-left: 4px;
    -webkit-text-fill-color: initial;
}

.promo p {
    color: var(--navy-800);
    margin-bottom: 14px;
}

.promo-subtitle {
    font-size: 1.05rem;
    color: var(--navy-800);
}

.promo-cta-text {
    color: var(--navy-900);
    margin-top: 18px;
    margin-bottom: 14px;
    font-size: 1.05rem;
}

/* Feature lista emoji ikonokkal */
.feature-list {
    list-style: none;
    margin: 14px 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    color: var(--navy-800);
    font-size: .97rem;
    line-height: 1.55;
}

.feature-list li strong {
    color: var(--navy-900);
    display: block;
    margin-bottom: 2px;
}

.feature-emoji {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.promo .contact-trigger + h3 {
    margin-top: 40px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    padding: 24px 0 32px;
    color: var(--slate-500);
    font-size: .85rem;
    text-align: center;
    background: var(--white);
    border-top: 1px solid var(--slate-200);
}
.site-footer p { margin: 0; }

/* ============================================================
   Modal
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 100;
}
.modal.is-open { display: flex; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 23, .55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: fadeIn .15s ease;
}

.modal-dialog {
    position: relative;
    background: var(--white);
    width: 100%;
    max-width: 560px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 24px 22px 26px;
    box-shadow: var(--shadow-lg);
    animation: slideUp .22s cubic-bezier(.2,.7,.2,1);
    max-height: 92vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: var(--slate-100);
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    color: var(--navy-800);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    background: var(--slate-200);
    color: var(--navy-900);
}

.modal h3 {
    font-size: 1.3rem;
    margin: 10px 36px 6px 0;
}

.modal-sub {
    color: var(--slate-500);
    margin: 0 0 16px;
    font-size: .92rem;
}

#contactForm input { margin-bottom: 4px; }
#contactForm .btn { margin-top: 18px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* ============================================================
   Button loader
   ============================================================ */
.btn.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn.is-loading .btn-icon { opacity: 0; }
.btn.is-loading::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 18px; height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Tablet+
   ============================================================ */
@media (min-width: 600px) {
    .container { max-width: 640px; }
    .hero { padding: 72px 0 72px; }
    .hero h1 { font-size: 2.6rem; }
    .hero .lead { font-size: 1.1rem; }
    .form-card { padding: 28px; }
    .promo { padding: 64px 0 72px; }
    .promo h2 { font-size: 1.85rem; }

    .modal { align-items: center; }
    .modal-dialog {
        border-radius: var(--radius-xl);
        max-width: 480px;
    }
}

@media (min-width: 900px) {
    .container { max-width: 720px; }
    .hero h1 { font-size: 3rem; }
}
