/* ---------------------------------------------------------------
   Dizajn tokeni — promijenite ovdje i mijenja se cijela stranica.
   --------------------------------------------------------------- */
:root {
    --brand: #4f46e5;
    --brand-dark: #4338ca;
    --brand-soft: #eef2ff;

    --ink: #111827;
    --ink-muted: #4b5563;
    --ink-faint: #6b7280;

    --surface: #ffffff;
    --surface-alt: #f9fafb;
    --border: #e5e7eb;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .06);

    --space: 1rem;
    --container: 1120px;

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

@media (prefers-color-scheme: dark) {
    :root {
        --brand: #818cf8;
        --brand-dark: #a5b4fc;
        --brand-soft: #1e1b4b;

        --ink: #f3f4f6;
        --ink-muted: #d1d5db;
        --ink-faint: #9ca3af;

        --surface: #0f1117;
        --surface-alt: #161923;
        --border: #262b38;
        --shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .4);
    }
}

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

* { margin: 0; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--brand); }

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9em;
    padding: .15em .4em;
    border-radius: 4px;
    background: var(--brand-soft);
    color: var(--brand-dark);
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: calc(var(--space) * 1.5);
}

.container.narrow { max-width: 720px; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: .75rem 1rem;
    background: var(--brand);
    color: #fff;
    z-index: 100;
}

.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------
   Zaglavlje i navigacija
   --------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space);
    min-height: 64px;
}

.brand {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -.01em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: calc(var(--space) * 1.5);
}

.site-nav a {
    color: var(--ink-muted);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
}

.site-nav a:hover { color: var(--ink); }

.site-nav .nav-cta {
    padding: .5rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
}

.site-nav .nav-cta:hover { background: var(--brand-dark); color: #fff; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: .5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero {
    padding: clamp(3rem, 10vw, 7rem) 0;
    background:
        radial-gradient(60rem 30rem at 50% -10%, var(--brand-soft), transparent 70%),
        var(--surface);
    text-align: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: .75rem;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}

.lead {
    max-width: 46ch;
    margin: 0 auto 2rem;
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--ink-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
}

/* ---------------------------------------------------------------
   Gumbi
   --------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .7rem 1.4rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }

.btn-ghost { border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-alt); }

.btn-lg { padding: .9rem 1.9rem; font-size: 1.05rem; }

/* ---------------------------------------------------------------
   Sekcije
   --------------------------------------------------------------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }

.section-muted {
    background: var(--surface-alt);
    border-block: 1px solid var(--border);
}

.section h2,
.cta h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    letter-spacing: -.015em;
    margin-bottom: .75rem;
}

.section-lead {
    color: var(--ink-faint);
    margin-bottom: 2.5rem;
}

/* Kartice */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: calc(var(--space) * 1.5);
}

.card {
    padding: calc(var(--space) * 1.75);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .1), 0 16px 40px rgba(0, 0, 0, .08);
}

.card-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 1.1rem;
}

.card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.card p { color: var(--ink-muted); }

/* Poziv na akciju */
.cta {
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    text-align: center;
}

.cta p {
    color: var(--ink-muted);
    margin-bottom: 1.75rem;
}

/* ---------------------------------------------------------------
   Podnožje
   --------------------------------------------------------------- */
.site-footer {
    padding: calc(var(--space) * 2) 0;
    border-top: 1px solid var(--border);
    background: var(--surface-alt);
    font-size: .9rem;
    color: var(--ink-faint);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space);
    align-items: center;
    justify-content: space-between;
}

/* ---------------------------------------------------------------
   Mobitel
   --------------------------------------------------------------- */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .site-nav {
        position: absolute;
        inset: 64px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--space);
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        display: none;
    }

    .site-nav.is-open { display: flex; }

    .site-nav a {
        padding: .75rem .5rem;
        border-radius: var(--radius-sm);
    }

    .site-nav .nav-cta {
        margin-top: .5rem;
        text-align: center;
    }

    .footer-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}