/* ==========================================================================
   Poslić — shared design system  ("Night-shift navy")
   Brand palette is fixed: navy + sky from the Android app theme. Do not add
   new hues; tints/alphas of these only.
   ========================================================================== */

:root {
    /* Brand — navy core */
    --navy-950: #0f1a2a;
    --navy-900: #131d2c;
    --navy-800: #23354f;
    --navy-700: #334d72;
    --navy-600: #4a6a8f;
    --navy-500: #5a7094;

    /* Brand — sky */
    --sky-400: #84c4e1;
    --sky-300: #9dd4ec;
    --sky-200: #add8eb;
    --sky-100: #d6ebf5;
    --sky-50:  #eaf3f9;

    /* Surfaces */
    --bg: #f8fafc;
    --surface: #ffffff;
    --line: #e8eef4;
    --white: #ffffff;

    /* Semantic */
    --success: #4caf93;
    --warning: #e8a946;
    --error: #e57373;

    /* Ink on light */
    --ink: var(--navy-900);
    --ink-2: var(--navy-500);
    --ink-3: #8896a8;

    /* Type */
    --font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shape */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Depth */
    --shadow-sm: 0 1px 2px rgba(15, 26, 42, 0.06);
    --shadow-md: 0 6px 16px -6px rgba(15, 26, 42, 0.12);
    --shadow-lg: 0 18px 40px -16px rgba(15, 26, 42, 0.22);
    --shadow-navy: 0 12px 36px -12px rgba(35, 53, 79, 0.45);
    --shadow-navy-lg: 0 24px 64px -20px rgba(35, 53, 79, 0.55);

    /* Motion */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--sky-200); color: var(--navy-900); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

/* --------------------------------------------------------------------------
   Film grain — one fixed overlay, sits above everything, never intercepts.
   -------------------------------------------------------------------------- */
.grain {
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 2000;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Aurora — drifting brand-colored glows for dark sections.
   Parent needs position:relative + overflow:hidden.
   -------------------------------------------------------------------------- */
.aurora { position: absolute; inset: 0; pointer-events: none; }
.aurora i {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    will-change: transform;
}
.aurora i:nth-child(1) {
    width: 560px; height: 560px;
    left: -10%; top: -20%;
    background: radial-gradient(circle, rgba(51, 77, 114, 0.9), transparent 65%);
    animation: aurora-a 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
    width: 480px; height: 480px;
    right: -8%; top: 10%;
    background: radial-gradient(circle, rgba(132, 196, 225, 0.38), transparent 65%);
    animation: aurora-b 22s ease-in-out infinite alternate;
}
.aurora i:nth-child(3) {
    width: 420px; height: 420px;
    left: 30%; bottom: -30%;
    background: radial-gradient(circle, rgba(157, 212, 236, 0.22), transparent 65%);
    animation: aurora-c 30s ease-in-out infinite alternate;
}
@keyframes aurora-a { to { transform: translate(12%, 14%) scale(1.15); } }
@keyframes aurora-b { to { transform: translate(-10%, 18%) scale(0.9); } }
@keyframes aurora-c { to { transform: translate(-14%, -12%) scale(1.2); } }

/* Faint dotted grid for dark sections */
.dotgrid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(173, 216, 235, 0.14) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
}

/* --------------------------------------------------------------------------
   Header — dark navy glass, identical on every page.
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(15, 26, 42, 0.62);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid rgba(173, 216, 235, 0.1);
    transition: background 0.35s ease, border-color 0.35s ease;
}
.header.is-scrolled {
    background: rgba(15, 26, 42, 0.88);
    border-bottom-color: rgba(173, 216, 235, 0.16);
}
.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    max-width: 1240px;
    margin: 0 auto;
}
@media (min-width: 768px) { .header__inner { padding: 14px 40px; } }

.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo__icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 100%);
    border: 1px solid rgba(173, 216, 235, 0.25);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-navy);
}
.logo__icon svg { width: 26px; height: 26px; }
.logo__text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.header__nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 768px) { .header__nav { display: flex; } }
.header__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sky-100);
    opacity: 0.82;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    transition: opacity 0.2s, background 0.2s;
}
.header__link:hover { opacity: 1; background: rgba(173, 216, 235, 0.1); }

.header__cta {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--sky-400);
    color: var(--navy-950);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 24px -8px rgba(132, 196, 225, 0.55);
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, background 0.2s;
}
.header__cta:hover {
    transform: translateY(-2px);
    background: var(--sky-300);
    box-shadow: 0 14px 32px -10px rgba(132, 196, 225, 0.65);
}
@media (min-width: 1024px) { .header__cta { display: inline-flex; } }

.mobile-menu-btn {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 10px;
}
.mobile-menu-btn span {
    width: 22px; height: 2px;
    background: var(--sky-100);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.mobile-menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.is-open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

.mobile-menu {
    position: fixed;
    top: 68px; left: 12px; right: 12px;
    z-index: 999;
    background: rgba(19, 29, 44, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(173, 216, 235, 0.14);
    border-radius: var(--radius-xl);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.mobile-menu.active { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu__link {
    padding: 13px 16px;
    color: var(--sky-100);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
}
.mobile-menu__link:hover { background: rgba(173, 216, 235, 0.1); }
.mobile-menu__cta {
    margin-top: 8px;
    padding: 14px 16px;
    background: var(--sky-400);
    color: var(--navy-950);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, background 0.25s, border-color 0.25s;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn--primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 100%);
    box-shadow: var(--shadow-navy);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-navy-lg); }
.btn--primary:active { transform: translateY(0); }

.btn--sky {
    color: var(--navy-950);
    background: var(--sky-400);
    box-shadow: 0 12px 32px -10px rgba(132, 196, 225, 0.55);
}
.btn--sky:hover { transform: translateY(-3px); background: var(--sky-300); box-shadow: 0 18px 40px -12px rgba(132, 196, 225, 0.7); }

.btn--ghost-dark {
    color: var(--sky-100);
    background: rgba(173, 216, 235, 0.08);
    border: 1px solid rgba(173, 216, 235, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn--ghost-dark:hover { background: rgba(173, 216, 235, 0.15); border-color: rgba(173, 216, 235, 0.4); transform: translateY(-3px); }

.btn--ghost-light {
    color: var(--navy-800);
    background: var(--surface);
    border: 1px solid var(--line);
}
.btn--ghost-light:hover { border-color: var(--sky-200); background: var(--sky-50); transform: translateY(-3px); }

/* --------------------------------------------------------------------------
   Section scaffolding (light sections)
   -------------------------------------------------------------------------- */
.section-header { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: var(--radius-full);
    background: var(--sky-100);
    color: var(--navy-800);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 18px;
}
.section-label svg { width: 13px; height: 13px; }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.12;
    color: var(--ink);
    margin-bottom: 14px;
}
.section-desc { font-size: 1.05rem; color: var(--ink-2); }

/* Dark-section variants */
.section-header--dark .section-label { background: rgba(173, 216, 235, 0.14); color: var(--sky-200); }
.section-header--dark .section-title { color: var(--white); }
.section-header--dark .section-desc { color: var(--sky-100); opacity: 0.75; }

/* --------------------------------------------------------------------------
   Scroll reveal — .reveal elements fade/rise when .is-visible is added.
   With [data-stagger], direct children cascade.
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
[data-stagger].is-visible > * { opacity: 1; transform: none; }
[data-stagger].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: 0.13s; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: 0.21s; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: 0.29s; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: 0.37s; }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: 0.45s; }
[data-stagger].is-visible > *:nth-child(7) { transition-delay: 0.53s; }
[data-stagger].is-visible > *:nth-child(8) { transition-delay: 0.61s; }
[data-stagger].is-visible > *:nth-child(9) { transition-delay: 0.69s; }
[data-stagger].is-visible > *:nth-child(10) { transition-delay: 0.77s; }
[data-stagger].is-visible > *:nth-child(11) { transition-delay: 0.85s; }
[data-stagger].is-visible > *:nth-child(12) { transition-delay: 0.93s; }

/* --------------------------------------------------------------------------
   Mini-hero — shared dark band for utility/legal pages.
   -------------------------------------------------------------------------- */
.mini-hero {
    position: relative;
    overflow: hidden;
    padding: 148px 0 72px;
    background:
        radial-gradient(ellipse 120% 90% at 70% -20%, rgba(51, 77, 114, 0.55), transparent 60%),
        linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
    text-align: center;
}
.mini-hero__icon {
    width: 76px; height: 76px;
    margin: 0 auto 26px;
    border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(173, 216, 235, 0.1);
    border: 1px solid rgba(173, 216, 235, 0.24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5);
}
.mini-hero__icon svg { width: 36px; height: 36px; color: var(--sky-300); }
.mini-hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin-bottom: 12px;
}
.mini-hero__subtitle {
    font-size: 1.02rem;
    color: var(--sky-100);
    opacity: 0.78;
    max-width: 560px;
    margin: 0 auto;
}

/* Utility-page content card */
.sheet {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-2xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
@media (max-width: 480px) { .sheet { padding: 26px 20px; } }

/* --------------------------------------------------------------------------
   Footer — dark, shared.
   -------------------------------------------------------------------------- */
.footer {
    position: relative;
    overflow: hidden;
    background: var(--navy-950);
    border-top: 1px solid rgba(173, 216, 235, 0.1);
    padding: 64px 0 32px;
}
.footer--slim { padding: 36px 0 32px; }
.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 48px;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; } }

.footer__logo { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.footer__logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 100%);
    border: 1px solid rgba(173, 216, 235, 0.25);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
}
.footer__logo-icon svg { width: 26px; height: 26px; }
.footer__logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem; font-weight: 700; color: var(--white); letter-spacing: -0.02em;
}
.footer__desc { font-size: 0.9rem; color: var(--sky-100); opacity: 0.6; max-width: 320px; margin-bottom: 22px; }
.footer__social { display: flex; gap: 10px; }
.footer__social-link {
    width: 38px; height: 38px;
    border-radius: var(--radius-md);
    background: rgba(173, 216, 235, 0.08);
    border: 1px solid rgba(173, 216, 235, 0.14);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.25s, transform 0.25s var(--ease-spring), border-color 0.25s;
}
.footer__social-link svg { width: 16px; height: 16px; fill: var(--sky-200); }
.footer__social-link:hover { background: rgba(173, 216, 235, 0.18); border-color: rgba(173, 216, 235, 0.35); transform: translateY(-3px); }

.footer__col h4 {
    font-size: 0.75rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--sky-300);
    margin-bottom: 16px;
}
.footer__links { list-style: none; }
.footer__links li + li { margin-top: 10px; }
.footer__links a {
    font-size: 0.9rem; color: var(--sky-100); opacity: 0.6;
    text-decoration: none; transition: opacity 0.2s;
}
.footer__links a:hover { opacity: 1; }

.footer__bottom {
    display: flex; flex-direction: column; gap: 12px;
    align-items: center; text-align: center;
    padding-top: 28px;
    border-top: 1px solid rgba(173, 216, 235, 0.1);
}
@media (min-width: 768px) { .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer--slim .footer__bottom { border-top: none; padding-top: 0; }
.footer__copy { font-size: 0.8125rem; color: var(--sky-100); opacity: 0.45; }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a {
    font-size: 0.8125rem; color: var(--sky-100); opacity: 0.45;
    text-decoration: none; transition: opacity 0.2s, color 0.2s;
}
.footer__legal a:hover { opacity: 1; color: var(--sky-300); }

/* --------------------------------------------------------------------------
   Cookie consent banner — injected by poslic.js, shown until a choice is made.
   -------------------------------------------------------------------------- */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 200;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s var(--ease-spring);
    pointer-events: none;
}
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

.cookie-banner__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 18px 22px;
    background: linear-gradient(150deg, var(--navy-900), var(--navy-800));
    border: 1px solid rgba(173, 216, 235, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px -18px rgba(10, 18, 32, 0.65);
}
@media (max-width: 640px) {
    .cookie-banner__inner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
}

.cookie-banner__icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(132, 196, 225, 0.14);
    color: var(--sky-300);
}
.cookie-banner__icon svg { width: 22px; height: 22px; }

.cookie-banner__text {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--sky-100, #dceaf5);
    color: rgba(220, 234, 245, 0.92);
}
.cookie-banner__text a { color: var(--sky-300); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid rgba(132, 196, 225, 0.45); }
.cookie-banner__text a:hover { border-bottom-color: var(--sky-300); }

.cookie-banner__actions { flex-shrink: 0; display: flex; gap: 10px; }
@media (max-width: 640px) { .cookie-banner__actions { width: 100%; } .cookie-banner__btn { flex: 1; } }

.cookie-banner__btn {
    padding: 11px 22px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.25s var(--ease-spring), background 0.25s, border-color 0.25s, color 0.25s;
}
.cookie-banner__btn:hover { transform: translateY(-2px); }
.cookie-banner__btn--ghost {
    background: transparent;
    border: 1.5px solid rgba(173, 216, 235, 0.32);
    color: var(--sky-200);
}
.cookie-banner__btn--ghost:hover { border-color: var(--sky-300); color: var(--white); }
.cookie-banner__btn--solid {
    background: var(--white);
    border: 1.5px solid var(--white);
    color: var(--navy-900);
    box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.5);
}
.cookie-banner__btn--solid:hover { background: var(--sky-100, #eaf4fb); }

/* --------------------------------------------------------------------------
   Reduced motion — kill decorative animation, keep content visible.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .aurora i { animation: none; }
    .reveal, [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.15s !important; }
}
