:root {
    --bg: #050609;
    --bg-alt: #0b0d12;
    --bg-soft: #11141c;
    --border-subtle: #1e2230;
    --primary: #4f8cff;
    --primary-soft: rgba(79, 140, 255, 0.15);
    --primary-strong: #2c6aff;
    --accent: #39e29b;
    --text-main: #f7f7fb;
    --text-muted: #a4a9c4;
    --danger: #ff4f73;
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --radius-sm: 0.75rem;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
    --shadow-subtle: 0 10px 25px rgba(0, 0, 0, 0.35);
    --transition-fast: 0.18s ease-out;
    --transition-med: 0.25s ease;
    --max-width: 1120px;
    --nav-height: 72px;
}

/* Global reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1a2240 0, #050609 55%);
    color: var(--text-main);
}

/* Layout helpers */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: radial-gradient(circle at top left, #15182b 0, #050609 60%);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.section-header {
    max-width: 680px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.section-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.grid {
    display: grid;
    gap: 1.75rem;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.center {
    text-align: center;
}

/* Header / nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: linear-gradient(
        to bottom,
        rgba(5, 6, 9, 0.94),
        rgba(5, 6, 9, 0.82),
        transparent
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* razmak između ikonice i teksta */
    text-decoration: none;
}

.logo img {
    height: 42px;    /* idealna veličina ikonice u headeru */
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.5px;
    line-height: 1; /* sprječava skokove u visinu */
}




.main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 2px;
    transition: color var(--transition-fast);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transition: width var(--transition-fast);
}

.main-nav a:hover {
    color: var(--text-main);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.nav-cta {
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(79, 140, 255, 0.6);
    background: radial-gradient(circle at top left, var(--primary-soft), transparent);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    margin-left: 1rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px 0;
    border-radius: 999px;
    background: #f7f7fb;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
    padding: 3.5rem 0 4.5rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: stretch;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 3vw + 1.2rem, 3.1rem);
    line-height: 1.1;
    margin: 0 0 1rem;
}

.hero-copy .accent {
    display: block;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin: 0 0 1.85rem;
    color: var(--text-muted);
    font-size: 0.98rem;
    max-width: 38rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.hero-meta strong {
    display: block;
    font-size: 0.96rem;
    color: #f5f6ff;
}

/* Hero media */
.hero-media {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-card {
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.35rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.hero-card-primary {
    background: radial-gradient(circle at top left, var(--primary-soft), #050609);
}

.hero-card-primary h2 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.hero-card-primary p {
    margin: 0 0 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.hero-list li {
    margin-bottom: 0.35rem;
}

.hero-card-secondary {
    background: radial-gradient(circle at top, #141b33, #050609);
    text-align: left;
}

.hero-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.hero-stat-number {
    font-size: 2.3rem;
    margin: 0;
    font-weight: 700;
}

.hero-stat-caption {
    margin: 0.2rem 0 0.55rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-note {
    font-size: 0.75rem;
    color: #7f84a5;
}

/* Buttons */
.btn {
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: background var(--transition-med), color var(--transition-med),
        transform var(--transition-fast), box-shadow var(--transition-fast),
        border-color var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #050609;
    box-shadow: 0 12px 30px rgba(44, 106, 255, 0.55);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(44, 106, 255, 0.7);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-main);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.04);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(79, 140, 255, 0.6);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.btn-sm {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* Cards & content blocks */
.card {
    background: rgba(5, 6, 9, 0.9);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-subtle);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Categories */
.categories {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr);
    gap: 2.5rem;
}

.categories-intro h2 {
    margin-bottom: 0.6rem;
}

.categories-intro p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.96rem;
}

.category-card {
    background: linear-gradient(145deg, #0c101d, #04050a);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-soft);
}

.category-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.5rem;
    border-radius: 999px;
    background: rgba(57, 226, 155, 0.15);
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.category-tag-secondary {
    background: rgba(79, 140, 255, 0.18);
    color: var(--primary);
}

.category-card h3 {
    margin-top: 0;
    margin-bottom: 0.35rem;
}

.category-card p {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.category-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.category-list li {
    margin-bottom: 0.25rem;
}

/* Steps */
.steps {
    display: grid;
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at top left, var(--accent), var(--primary));
    color: #050609;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.step p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Stats */
.stat-card {
    border-radius: var(--radius-md);
    padding: 1.4rem 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 6, 9, 0.95);
    box-shadow: var(--shadow-subtle);
    text-align: left;
}

.stat-number {
    margin: 0 0 0.2rem;
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* CTA section */
.section-cta {
    padding: 4.5rem 0;
    background: radial-gradient(circle at top, #141a33 0, #050609 65%);
}

.cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.cta-copy h2 {
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.cta-copy p {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cta-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cta-list li {
    margin-bottom: 0.3rem;
}

/* Form */
.contact-form {
    background: rgba(5, 6, 9, 0.96);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.4rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.9rem;
}

.form-field label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #050609;
    color: var(--text-main);
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #5f6680;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.6);
    background: #070814;
}

.form-note {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    color: #7f84a5;
}

/* Subpages */
.subpage-hero {
    padding: 3.5rem 0 3.75rem;
}

.subpage-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 2.2rem;
    align-items: flex-start;
}

.subpage-hero h1 {
    font-size: clamp(2rem, 2.4vw + 1rem, 2.5rem);
    margin: 0 0 0.75rem;
}

.subpage-hero-text {
    margin: 0 0 1.35rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.subpage-hero-aside {
    display: flex;
    justify-content: flex-end;
}

.highlight-box {
    background: linear-gradient(145deg, #0e1527, #050609);
    border-radius: var(--radius-lg);
    padding: 1.3rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-subtle);
    font-size: 0.9rem;
}

.highlight-box h2 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

.highlight-box ul {
    margin: 0;
    padding-left: 1rem;
    color: var(--text-muted);
}
/* Modern product gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.gallery-frame {
    width: 100%;
    aspect-ratio: 4/3;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.25s ease;
}

.gallery-frame img:hover {
    transform: scale(1.02);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.6rem;
}

.g-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--radius-md);
    opacity: 0.55;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.25s ease;
}

.g-thumb:hover {
    opacity: 0.8;
    transform: scale(1.04);
}

.g-thumb.active {
    opacity: 1;
    transform: scale(1.05);
    border-color: var(--primary);
}

/* Mobile */
@media (max-width: 540px) {
    .gallery-frame {
        aspect-ratio: 1/1;
    }
}

/* Product grid */
.product-grid {
    margin-top: 2rem;
}

.product-card {
    background: rgba(5, 6, 9, 0.96);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: rgba(57, 226, 155, 0.16);
    color: var(--accent);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.4rem;
}

.product-badge-alt {
    background: rgba(79, 140, 255, 0.2);
    color: var(--primary);
}

.product-badge-pro {
    background: rgba(255, 79, 115, 0.2);
    color: var(--danger);
}

.product-card h3 {
    margin: 0 0 0.3rem;
    font-size: 1.02rem;
}

.product-price {
    margin: 0 0 0.4rem;
    color: #e4e7ff;
    font-weight: 600;
    font-size: 0.95rem;
}

.product-desc {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.product-features {
    list-style: none;
    margin: 0 0 0.9rem;
    padding-left: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.product-features li {
    margin-bottom: 0.23rem;
}

.product-cta {
    align-self: flex-start;
}

.info-banner {
    margin-top: 2rem;
    padding: 1rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Filters */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.filter-chip {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.9rem;
    font-size: 0.8rem;
    background: rgba(5, 6, 9, 0.96);
    color: var(--text-muted);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast),
        color var(--transition-fast), transform var(--transition-fast);
}

.filter-chip-active,
.filter-chip:hover {
    background: var(--primary-soft);
    color: var(--text-main);
    border-color: rgba(79, 140, 255, 0.8);
    transform: translateY(-1px);
}

/* Footer */
.site-footer {
    padding-top: 2.5rem;
    background: #050609;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 1.75rem;
    padding-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 0.4rem;
}

.footer-text {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.footer-col h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #d3d6f8;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.footer-col li {
    margin-bottom: 0.25rem;
}

.footer-col a {
    color: inherit;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--text-main);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 0;
    font-size: 0.78rem;
    color: #7f84a5;
}

.footer-bottom-inner {
    display: flex;
    justify-content: center;
}

/* Responsive */
@media (max-width: 960px) {
    .cta-inner,
    .subpage-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }
 .hero-inner {
        display: flex;
        flex-direction: column;
    }

    .hero-copy {
        order: 1; /* tekst PRVI */
    }

    .hero-media {
        order: 2; /* slika DRUGA */
    }

    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .categories {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {

    /* Mobile NAV */
    .main-nav {
        position: absolute;
        inset: var(--nav-height) 0 auto 0;
        margin: 0;
        padding: 1rem 1.5rem;

        background: rgba(5, 6, 9, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);

        display: flex;
        flex-direction: column;

        align-items: center;     
        text-align: center;      

        gap: 0.75rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.2s ease-out, opacity 0.18s ease-out;
    }

    .main-nav.nav-open {
        max-height: 300px;
        opacity: 1;
        pointer-events: auto;
    }

    /* HAMBURGER – SADA SAMO NA MOBILE */
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
    }

    /* HERO */
    .hero {
        padding-top: 2.75rem;
    }

    .hero-meta {
        grid-template-columns: 1fr;
    }

    /* GRID FIX – sada ne ruši desktop */
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    /* FOOTER */
    .footer-inner {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 540px) {
    .container {
        padding: 0 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-card {
        padding: 1.25rem 1.1rem;
    }

    .contact-form {
        padding: 1.25rem 1.1rem;
    }

    .category-card {
        padding: 1.3rem 1.1rem;
    }
}
