/* ============================================
   4TECH DESIGN — MASTER STYLESHEET
   Fonts: Urbanist (display) + Playfair Display (serif) + Outfit (body) + JetBrains Mono (mono)
   ============================================ */

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 10001;
    pointer-events: none;
}

.scroll-progress-bar {
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
}

/* ============================================
   SPLIT WORDS (for text reveals)
   ============================================ */
.split-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.split-word-inner {
    display: inline-block;
}

/* ============================================
   CSS VARIABLES & THEME SYSTEM
   ============================================ */
:root {
    --font-display: 'Urbanist', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    --nav-height: 80px;
    --container-width: 1400px;
    --container-padding: clamp(20px, 4vw, 60px);
}

[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-card: #0d0d0d;
    --bg-card-hover: #141414;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --text-tertiary: #555555;
    --border-color: #1a1a1a;
    --border-hover: #333333;
    --accent: #c8ff00;
    --accent-dim: rgba(200, 255, 0, 0.1);
    --accent-hover: #daff4d;
    --overlay: rgba(0, 0, 0, 0.85);
    --grain-opacity: 0.03;
    --glow: rgba(200, 255, 0, 0.06);
    --shadow-lg: 0 25px 60px rgba(0,0,0,0.5);
}

[data-theme="light"] {
    /* Čisto bela / nevtralne sive — nobenega zelenega tinta na ploskvah */
    --bg-primary: #ffffff;
    --bg-secondary: #f6f6f8;
    --bg-tertiary: #eeeef1;
    --bg-card: #ffffff;
    --bg-card-hover: #fafafa;

    /* Globoka temno-siva za clean kontrast */
    --text-primary: #0a0a0c;
    --text-secondary: #4f4f57;
    --text-tertiary: #8a8a92;
    --border-color: #e6e6ea;
    --border-hover: #c8c8d0;

    /* Lime kot interakcijski accent (gumbi, linki, focus) — ne v ploskvah */
    --accent: #84a700;
    --accent-dim: rgba(132, 167, 0, 0.12);
    --accent-hover: #97bd00;

    --overlay: rgba(255, 255, 255, 0.94);
    --grain-opacity: 0.035;
    --glow: rgba(132, 167, 0, 0.10);

    /* Nevtralne sive sence — brez olive hue */
    --shadow-lg:
        0 1px 2px rgba(15, 15, 25, 0.04),
        0 24px 60px -10px rgba(15, 15, 25, 0.10),
        0 12px 24px -6px rgba(15, 15, 25, 0.06);
}

/* ------- Body: subtle layered grey gradients + dotted texture ------- */
[data-theme="light"] body {
    background:
        /* Engineering dotted pattern */
        radial-gradient(circle at center, rgba(15, 15, 25, 0.04) 1px, transparent 1.5px) 0 0 / 24px 24px,
        /* Subtle grey radial za depth (zgoraj levo) */
        radial-gradient(ellipse 60% 50% at 15% 0%,   rgba(15, 15, 25, 0.025) 0%, transparent 55%),
        /* Subtle grey radial (spodaj desno) */
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(15, 15, 25, 0.020) 0%, transparent 60%),
        #ffffff;
    background-attachment: fixed, fixed, fixed, fixed;
}

[data-theme="light"] .grain {
    opacity: 0.04;
    mix-blend-mode: multiply;
}

/* ------- Cards: čista bela, nevtralne sence ------- */
[data-theme="light"] .reference-card,
[data-theme="light"] .showcase-card,
[data-theme="light"] .service-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .value-card,
[data-theme="light"] .plugin-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .blog-card,
[data-theme="light"] .storitev-card,
[data-theme="light"] .related-card {
    background: #ffffff;
    box-shadow:
        0 1px 2px rgba(15, 15, 25, 0.04),
        0 6px 18px rgba(15, 15, 25, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .reference-card:hover,
[data-theme="light"] .showcase-card:hover,
[data-theme="light"] .service-card:hover,
[data-theme="light"] .blog-card:hover,
[data-theme="light"] .storitev-card:hover,
[data-theme="light"] .related-card:hover {
    background: #ffffff;
    border-color: var(--text-primary);
    box-shadow:
        0 4px 10px rgba(15, 15, 25, 0.06),
        0 24px 56px -8px rgba(15, 15, 25, 0.16);
}

/* ------- TOC + Plugin CTA — bele kartice, nevtralne sence ------- */
[data-theme="light"] .post-toc {
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 15, 25, 0.04), 0 8px 24px rgba(15, 15, 25, 0.06);
}
[data-theme="light"] .post-plugin-cta {
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 15, 25, 0.04), 0 12px 32px rgba(15, 15, 25, 0.08);
}

/* ------- Code & pre — nevtralna siva ------- */
[data-theme="light"] .post-content code {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}
[data-theme="light"] .post-content pre {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}
[data-theme="light"] .post-content pre code { color: var(--text-primary); background: transparent; border: none; }
[data-theme="light"] .post-content blockquote {
    background: var(--bg-secondary);
    border-radius: 0 12px 12px 0;
    padding: 16px 24px 16px 28px;
}

/* ------- Mega menu / drawer / footer — pure white ------- */
[data-theme="light"] .mega-menu,
[data-theme="light"] .mobile-drawer {
    background: #ffffff;
}
[data-theme="light"] .footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* ------- Hero glow — edina lokacija, kjer ohranimo lime presence ------- */
[data-theme="light"] .hero-full-orb-1 { opacity: 0.20; }
[data-theme="light"] .hero-full-orb-2 { opacity: 0.04; background: #1a1a1c; }
[data-theme="light"] .hero-full-grid { opacity: 0.55; }
[data-theme="light"] .hero-full-glow {
    background: radial-gradient(circle, rgba(132, 167, 0, 0.20) 0%, transparent 65%);
}
[data-theme="light"] .hero-full-scroll-line::after { background: var(--text-primary); }

/* ------- Nav scrolled — clean white frosted glass ------- */
[data-theme="light"] .nav.scrolled {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow:
        0 1px 0 rgba(15, 15, 25, 0.06),
        0 6px 24px rgba(15, 15, 25, 0.04);
}

/* ------- Buttons — primary dark fill; lime samo na hover (interakcijski accent) ------- */
[data-theme="light"] .btn-primary {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(15, 15, 25, 0.10);
}
[data-theme="light"] .btn-primary:hover {
    background: var(--accent);
    color: #0a0a0c;
    border-color: var(--accent);
    box-shadow:
        0 0 0 3px rgba(132, 167, 0, 0.18),
        0 8px 24px rgba(132, 167, 0, 0.30);
    transform: translateY(-1px);
}

[data-theme="light"] .btn-outline {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}
[data-theme="light"] .btn-outline:hover {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
}

/* ------- Section labels (eyebrows) — lime accent ostane (interakcijski poudarek) ------- */
[data-theme="light"] .section-label {
    color: var(--accent);
    font-weight: 600;
}
[data-theme="light"] .section-label::before {
    /* background: var(--accent); */
}

/* ------- Pills / tagi — neutralna bela ploskev ------- */
[data-theme="light"] .services-stack-tag,
[data-theme="light"] .cat-pill {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    border-color: var(--border-color);
}
[data-theme="light"] .cat-pill.is-active {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
}
[data-theme="light"] .services-stack-tag:hover,
[data-theme="light"] .cat-pill:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* ------- Form fields ------- */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px var(--accent-dim);
}

/* ------- Striped sekcije — nevtralna siva ------- */
[data-theme="light"] .stats-strip,
[data-theme="light"] .services-stack-item:nth-child(even),
[data-theme="light"] .post-related {
    background: var(--bg-secondary);
}

/* ------- Scroll progress bar — solid lime (samo accent linija) ------- */
[data-theme="light"] .scroll-progress-bar {
    background: var(--accent);
}

/* ------- Selection ------- */
[data-theme="light"] ::selection {
    background: var(--accent);
    color: #ffffff;
}


/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* overflow-x on html (not body) so body stays a non-scroll container.
       Required for position: sticky inside body to work correctly. */
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.6s var(--ease-out-expo), color 0.6s var(--ease-out-expo);
    cursor: none;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

button {
    cursor: none;
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
}

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

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
    position: fixed;
    top: 0; left: 0;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--text-primary);
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), opacity 0.3s;
    will-change: transform;
}

.cursor.hover { width: 60px; height: 60px; }

.cursor-follower {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--text-primary);
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
    transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), opacity 0.3s;
    will-change: transform;
}

.cursor-follower.hover { width: 80px; height: 80px; opacity: 0.1; }

/* ============================================
   GRAIN OVERLAY
   ============================================ */
.grain {
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    pointer-events: none;
    z-index: 9990;
    opacity: var(--grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loader {
    position: fixed; inset: 0;
    background: var(--bg-primary);
    z-index: 10001;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 30px;
}

.loader-logo {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: -0.03em;
    overflow: hidden;
}

.loader-logo span {
    display: inline-block;
    transform: translateY(100%);
}

.loader-bar {
    width: 200px; height: 2px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar-fill {
    width: 0%; height: 100%;
    background: var(--text-primary);
    border-radius: 2px;
}

.loader-count {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    z-index: 1000;
    padding: 0 var(--container-padding);
    display: flex; align-items: center; justify-content: space-between;
    transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: var(--overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border-color);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    display: flex; align-items: center; gap: 8px;
}

.nav-logo .dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.nav-links {
    display: flex; align-items: center; gap: 0;
    list-style: none;
}

.nav-link {
    position: relative;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active { color: var(--text-primary); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 20px; right: 20px;
    height: 1px;
    background: var(--text-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out-expo);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link[data-mega]::before {
    content: '';
    position: absolute;
    right: 12px; top: 50%;
    width: 4px; height: 4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-60%) rotate(45deg);
    transition: transform 0.3s;
}

.nav-link[data-mega].open::before {
    transform: translateY(-30%) rotate(-135deg);
}

.nav-actions {
    display: flex; align-items: center; gap: 16px;
}

/* Theme Switcher */
.theme-switch {
    position: relative;
    width: 52px; height: 28px;
    background: var(--bg-tertiary);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    transition: all 0.4s var(--ease-out-expo);
    overflow: hidden;
}

.theme-switch:hover { border-color: var(--border-hover); }

.theme-switch-knob {
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--text-primary);
    transition: transform 0.5s var(--ease-out-expo);
    display: flex; align-items: center; justify-content: center;
}

[data-theme="light"] .theme-switch-knob { transform: translateX(24px); }

.theme-switch-icon { font-size: 10px; line-height: 1; }
[data-theme="dark"] .theme-switch-icon::before { content: '\263E'; }
[data-theme="light"] .theme-switch-icon::before { content: '\2600'; color: var(--bg-primary); }

/* Nav CTA */
.nav-cta {
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 100px;
    transition: all 0.4s var(--ease-out-expo);
    position: relative; overflow: hidden;
    font-family: var(--font-display);
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 30px rgba(255,255,255,0.1);
}

/* ============================================
   MEGA MENU
   ============================================ */
.mega-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    z-index: 999;
    transition: max-height 0.6s var(--ease-out-expo), padding 0.6s var(--ease-out-expo), opacity 0.4s;
    opacity: 0;
}

.mega-menu.open {
    max-height: 500px;
    padding: 50px 0;
    opacity: 1;
}

.mega-menu-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.mega-menu-col {
    opacity: 0;
    transform: translateY(15px);
}

.mega-menu.open .mega-menu-col {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s, transform 0.5s var(--ease-out-expo);
}

.mega-menu.open .mega-menu-col:nth-child(1) { transition-delay: 0.05s; }
.mega-menu.open .mega-menu-col:nth-child(2) { transition-delay: 0.1s; }
.mega-menu.open .mega-menu-col:nth-child(3) { transition-delay: 0.15s; }
.mega-menu.open .mega-menu-col:nth-child(4) { transition-delay: 0.2s; }

.mega-menu-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.mega-menu-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 0;
    transition: all 0.3s;
    border-radius: 8px;
}

.mega-menu-item:hover { padding-left: 10px; }

.mega-menu-item-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.mega-menu-item:hover .mega-menu-item-icon {
    background: var(--accent-dim);
    border-color: var(--accent);
}

.mega-menu-item-text h4 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
}

.mega-menu-item-text p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 300;
}

.mega-menu-featured {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex; flex-direction: column; justify-content: space-between;
}

.mega-menu-featured-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.mega-menu-featured h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}

.mega-menu-featured p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

.mega-menu-featured-cta {
    margin-top: 20px;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600;
    color: var(--accent);
    font-family: var(--font-display);
}

.mega-menu-featured-cta .arrow { transition: transform 0.3s; }
.mega-menu-featured:hover .mega-menu-featured-cta .arrow { transform: translateX(4px); }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 100px;
    transition: all 0.4s var(--ease-out-expo);
    position: relative; overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px;
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 100px;
    transition: all 0.4s var(--ease-out-expo);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-accent {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px;
    background: var(--accent);
    color: #000;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 100px;
    transition: all 0.4s var(--ease-out-expo);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

/* ============================================
   SECTION HELPERS
   ============================================ */
/* Section labels as code comments — unifies the whole page
   in a subtle developer aesthetic (PHP/inline-comment flavor).
   Renders: "// SECTION_LABEL" with accent-colored slashes. */
.section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-label::before {
    content: '//';
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0;
    font-size: 13px;
}

.section-label.center {
    justify-content: center;
}

/* Code bracket markers around section titles (subtle) */
.section-title .bracket {
    font-family: var(--font-mono);
    font-size: 0.5em;
    color: var(--accent);
    font-weight: 500;
    font-style: normal;
    vertical-align: 0.4em;
    letter-spacing: 0;
    margin: 0 0.15em;
    opacity: 0.8;
}

/* Inline PHP tag chip — reusable (<?php) */
.code-chip {
    font-family: var(--font-mono);
    font-size: 0.55em;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-dim);
    padding: 0.2em 0.55em;
    border-radius: 6px;
    letter-spacing: 0;
    font-style: normal;
    vertical-align: 0.3em;
    white-space: nowrap;
    display: inline-block;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.section-title .serif {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
}

/* ============================================
   PAGE HERO (subpages)
   ============================================ */
.page-hero {
    padding: calc(var(--nav-height) + 80px) 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.page-hero-bg {
    position: absolute; inset: 0; overflow: hidden;
}

.page-hero-grid {
    position: absolute; inset: -20%;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.3;
    transform: perspective(500px) rotateX(25deg);
    transform-origin: center 70%;
}

.page-hero-glow {
    position: absolute;
    top: 20%; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, var(--glow), transparent 70%);
    filter: blur(40px);
}

.page-hero .section-label { margin-bottom: 24px; }

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 88px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.page-hero-title .serif {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
}

.page-hero-title .outline {
    -webkit-text-stroke: 1.5px var(--text-primary);
    color: transparent;
}

.page-hero-desc {
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 40px;
    font-weight: 300;
}

.page-hero-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 30px;
}

.page-hero-breadcrumb a {
    color: var(--text-tertiary);
    transition: color 0.3s;
}

.page-hero-breadcrumb a:hover { color: var(--text-primary); }

.page-hero-breadcrumb .sep { opacity: 0.4; }

/* ============================================
   HERO (homepage)
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-bg { position: absolute; inset: 0; overflow: hidden; }

.hero-grid {
    position: absolute; inset: -20%;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.4;
    transform: perspective(500px) rotateX(30deg);
    transform-origin: center 60%;
}

.hero-glow {
    position: absolute;
    top: 20%; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 600px;
    background: radial-gradient(ellipse, var(--glow), transparent 70%);
    filter: blur(40px);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.hero-orb-1 { width: 500px; height: 500px; top: 10%; right: -10%; background: var(--accent); }
.hero-orb-2 { width: 400px; height: 400px; bottom: 10%; left: -5%; background: var(--text-primary); opacity: 0.05; }

.hero-content {
    position: relative; z-index: 2;
    width: 100%; padding: 80px 0;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 20px 8px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    margin-bottom: 40px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    overflow: hidden;
}

.hero-badge-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: #000;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(52px, 8.5vw, 130px);
    font-weight: 900;
    line-height: 0.93;
    letter-spacing: -0.05em;
    margin-bottom: 30px;
}

.hero-title .line { display: block; overflow: hidden; }
.hero-title .line-inner { display: block; transform: translateY(110%); }
.hero-title .serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; }
.hero-title .outline { -webkit-text-stroke: 2px var(--text-primary); color: transparent; }

.hero-subtitle {
    max-width: 520px;
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 50px;
    opacity: 0;
    font-weight: 300;
}

.hero-actions { display: flex; align-items: center; gap: 20px; opacity: 0; }

.hero-stats {
    display: flex; gap: 60px;
    margin-top: 80px; padding-top: 40px;
    border-top: 1px solid var(--border-color);
    opacity: 0;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
}

.hero-stat-number .accent { color: var(--accent); }

.hero-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    letter-spacing: 0.01em;
    font-weight: 300;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; opacity: 0;
    animation: fadeInUp 0.8s 2s forwards;
}

.hero-scroll-line {
    width: 1px; height: 60px;
    background: var(--border-color);
    position: relative; overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%; left: 0;
    width: 100%; height: 100%;
    background: var(--text-primary);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown { 0% { top: -100%; } 100% { top: 100%; } }

.hero-scroll-text {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    writing-mode: vertical-rl;
}

@keyframes fadeInUp { to { opacity: 0.6; } }

/* ============================================
   MARQUEE
   ============================================ */
.marquee-section {
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--bg-secondary);
}

.marquee-track {
    display: flex; gap: 60px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-item {
    font-family: var(--font-display);
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-tertiary);
    display: flex; align-items: center; gap: 20px;
}

.marquee-item .sep {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services { padding: 160px 0; position: relative; }

.services-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: end;
}

.services-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
    font-weight: 300;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 32px;
    transition: all 0.5s var(--ease-out-expo);
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--glow), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before { opacity: 1; }

.service-card-number {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 30px;
    position: relative;
}

.service-card-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin-bottom: 28px;
    transition: all 0.4s;
    position: relative;
}

.service-card:hover .service-card-icon {
    background: var(--accent-dim);
    border-color: var(--accent);
    transform: scale(1.05);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    position: relative;
}

.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    flex-grow: 1;
    font-weight: 300;
}

.service-card-arrow {
    display: flex; align-items: center; gap: 8px;
    margin-top: 28px;
    font-size: 13px; font-weight: 600;
    color: var(--text-tertiary);
    transition: color 0.3s;
    position: relative;
    font-family: var(--font-display);
}

.service-card:hover .service-card-arrow { color: var(--text-primary); }
.service-card-arrow svg { transition: transform 0.3s var(--ease-out-expo); }
.service-card:hover .service-card-arrow svg { transform: translateX(4px); }

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 160px 0;
    background: var(--bg-secondary);
    position: relative; overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual { position: relative; height: 600px; }

.about-visual-box {
    position: absolute;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.about-visual-box-1 {
    top: 0; left: 0;
    width: 70%; height: 65%;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-primary));
    display: flex; align-items: center; justify-content: center;
}

.about-visual-box-1-inner {
    font-family: var(--font-display);
    font-size: 120px; font-weight: 900;
    opacity: 0.06;
    letter-spacing: -0.05em;
}

.about-visual-box-2 {
    bottom: 0; right: 0;
    width: 65%; height: 55%;
    background: var(--bg-tertiary);
    padding: 32px;
    display: flex; flex-direction: column; justify-content: flex-end;
}

.about-visual-code {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 2;
}

.about-visual-code .highlight { color: var(--accent); }

.about-text h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 30px;
}

.about-text h2 .serif {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
}

.about-text-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 300;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.about-feature {
    padding: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
}

.about-feature:hover { border-color: var(--border-hover); }

.about-feature-icon { font-size: 22px; margin-bottom: 10px; }

.about-feature h4 {
    font-family: var(--font-display);
    font-size: 15px; font-weight: 700;
    margin-bottom: 6px;
}

.about-feature p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 300;
}

/* ============================================
   PROCESS
   ============================================ */
.process { padding: 160px 0; position: relative; }

.process-header { text-align: center; margin-bottom: 100px; }

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 24px; left: 12.5%; right: 12.5%;
    height: 1px;
    background: var(--border-color);
}

.process-step { text-align: center; position: relative; }

.process-step-number {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 28px;
    font-family: var(--font-mono);
    font-size: 14px; font-weight: 500;
    color: var(--text-secondary);
    position: relative; z-index: 2;
    transition: all 0.4s;
}

.process-step:hover .process-step-number {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
    transform: scale(1.15);
}

.process-step h3 {
    font-family: var(--font-display);
    font-size: 20px; font-weight: 800;
    margin-bottom: 12px;
}

.process-step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 240px;
    margin: 0 auto;
    font-weight: 300;
}

/* ============================================
   REFERENCES
   ============================================ */
.references {
    padding: 160px 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.references-header {
    display: flex; justify-content: space-between; align-items: end;
    margin-bottom: 60px;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.reference-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: all 0.5s var(--ease-out-expo);
}

.reference-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.reference-card.featured { grid-row: span 2; }

.reference-card-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--bg-tertiary);
    position: relative; overflow: hidden;
}

.reference-card.featured .reference-card-image {
    aspect-ratio: auto;
    height: 100%;
    min-height: 300px;
}

.reference-card-image-inner {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-primary));
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.6s var(--ease-out-expo);
}

.reference-card:hover .reference-card-image-inner { transform: scale(1.05); }

.reference-card-placeholder {
    font-family: var(--font-display);
    font-size: 48px; font-weight: 900;
    opacity: 0.08;
}

.reference-card-content { padding: 24px 28px; }

.reference-card-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.reference-card-content h3 {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 800;
    margin-bottom: 6px;
}

.reference-card-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 300;
}

/* ============================================
   TECH STACK
   ============================================ */
.tech { padding: 120px 0; border-top: 1px solid var(--border-color); }

.tech-header { text-align: center; margin-bottom: 60px; }

.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.tech-item {
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px;
    transition: all 0.4s var(--ease-out-expo);
    padding: 16px;
}

.tech-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tech-item-icon { font-size: 28px; opacity: 0.7; }

.tech-item-name {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    text-align: center;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    padding: 160px 0;
    text-align: center;
    position: relative; overflow: hidden;
}

.cta-bg { position: absolute; inset: 0; }

.cta-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.cta-bg-orb-1 {
    width: 600px; height: 600px;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    opacity: 0.06;
}

.cta-content { position: relative; z-index: 2; }

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.cta-title .serif {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
}

.cta-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto; margin-right: auto;
    line-height: 1.6;
    font-weight: 300;
}

.cta-actions {
    display: flex; align-items: center; justify-content: center;
    gap: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 320px;
    font-weight: 300;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 14px; font-weight: 700;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0;
    transition: color 0.3s, transform 0.3s;
    font-weight: 300;
}

.footer-col a:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 300;
}

.footer-bottom-links { display: flex; gap: 24px; }

.footer-bottom-links a {
    color: var(--text-tertiary);
    transition: color 0.3s;
}

.footer-bottom-links a:hover { color: var(--text-primary); }

/* ============================================
   DETAIL PAGE — FEATURES GRID
   ============================================ */
.features-section { padding: 120px 0; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px 30px;
    transition: all 0.4s var(--ease-out-expo);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--accent-dim);
    border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 22px;
    transition: all 0.3s;
}

.feature-card:hover .feature-card-icon {
    border-color: var(--accent);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

/* ============================================
   DETAIL PAGE — SPLIT CONTENT
   ============================================ */
.split-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-grid.reverse { direction: rtl; }
.split-grid.reverse > * { direction: ltr; }

.split-visual {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    aspect-ratio: 4/3;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    position: relative;
}

.split-visual-text {
    font-family: var(--font-display);
    font-size: 80px; font-weight: 900;
    opacity: 0.06;
    letter-spacing: -0.05em;
}

.split-content h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.split-content h2 .serif {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
}

.split-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    font-weight: 300;
}

.split-list {
    list-style: none;
    margin-top: 24px;
}

.split-list li {
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-secondary);
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 400;
}

.split-list li .check {
    color: var(--accent);
    font-size: 14px;
    flex-shrink: 0;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 120px 0;
}

.faq-list {
    max-width: 800px;
    margin: 60px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-display);
    font-size: 18px; font-weight: 700;
    text-align: left;
    transition: color 0.3s;
    letter-spacing: -0.01em;
}

.faq-question:hover { color: var(--accent); }

.faq-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out-expo), padding 0.4s;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 24px;
}

.faq-answer p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px;
    transition: all 0.4s;
}

.testimonial-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: var(--accent);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-card blockquote {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
    font-weight: 300;
}

.testimonial-author {
    font-family: var(--font-display);
    font-size: 14px; font-weight: 700;
}

.testimonial-role {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 2px;
    font-weight: 300;
}

/* ============================================
   FILTER TABS
   ============================================ */
.filter-tabs {
    display: flex; gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 22px;
    font-family: var(--font-display);
    font-size: 13px; font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    transition: all 0.3s;
    letter-spacing: 0.02em;
}

.filter-tab:hover { border-color: var(--border-hover); }

.filter-tab.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline-section { padding: 120px 0; }

.timeline {
    max-width: 700px;
    margin: 60px auto 0;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 1px;
    background: var(--border-color);
}

.timeline-item {
    padding-bottom: 48px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -44px; top: 6px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--text-tertiary);
    transition: all 0.3s;
}

.timeline-item:hover::before {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.3);
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.timeline-item h3 {
    font-family: var(--font-display);
    font-size: 20px; font-weight: 800;
    margin-bottom: 8px;
}

.timeline-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

/* ============================================
   VALUES / COUNTERS GRID
   ============================================ */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.value-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.4s;
}

.value-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.value-card-number {
    font-family: var(--font-display);
    font-size: 48px; font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 8px;
}

.value-card-number .accent { color: var(--accent); }

.value-card h4 {
    font-family: var(--font-display);
    font-size: 15px; font-weight: 700;
    margin-bottom: 6px;
}

.value-card p {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ============================================
   PLUGINS GRID
   ============================================ */
.plugins-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.plugin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s var(--ease-out-expo);
    display: flex; flex-direction: column;
}

.plugin-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.plugin-card-header {
    display: flex; justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.plugin-card-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--accent-dim);
    border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}

.plugin-card-version {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.plugin-card h3 {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.plugin-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
    flex-grow: 1;
}

.plugin-card-tags {
    display: flex; gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.plugin-card-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    color: var(--text-secondary);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-right { opacity: 0; transform: translateX(40px); }
.reveal-scale { opacity: 0; transform: scale(0.95); }

/* ============================================
   MOBILE NAV
   ============================================ */
.nav-hamburger {
    display: none;
    flex-direction: column; gap: 5px;
    padding: 8px;
    z-index: 1002;
}

.nav-hamburger span {
    width: 24px; height: 1.5px;
    background: var(--text-primary);
    transition: all 0.3s var(--ease-out-expo);
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ============================================
   RESPONSIVE
   ============================================ */
/* =========== TABLET + BELOW (≤1024px) — mobile drawer active =========== */
@media (max-width: 1024px) {
    /* Mobile drawer takes over → hide desktop nav + show hamburger */
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .nav-cta { display: none; }

    /* Touch = no cursor */
    .cursor, .cursor-follower { display: none; }
    body { cursor: auto; }
    a, button { cursor: pointer; }

    /* Tap targets — WCAG 44px minimum */
    .nav-logo, .nav-hamburger,
    .filter-tab, .faq-question,
    .mobile-drawer-link, .mobile-drawer-item,
    .mobile-drawer-close { min-height: 44px; }
    .nav-hamburger { padding: 12px; }
    .nav-hamburger span { width: 22px; }

    .services-header { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-visual { height: 400px; }
    .references-grid { grid-template-columns: 1fr 1fr; }
    .reference-card.featured { grid-row: auto; }
    .process-steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .process-steps::before { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .tech-grid { grid-template-columns: repeat(4, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .split-grid { grid-template-columns: 1fr; gap: 40px; }
    .split-grid.reverse { direction: ltr; }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .plugins-grid { grid-template-columns: 1fr; }
}

/* =========== PHONE (≤768px) =========== */
@media (max-width: 768px) {
    :root {
        --container-padding: clamp(18px, 5vw, 28px);
    }
    .nav { padding: 14px var(--container-padding); }

    .services-grid { grid-template-columns: 1fr; }
    .references-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 30px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-features { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr 1fr; }

    /* Horizontally scrollable filter tabs (better than wrapping) */
    .filter-tabs {
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 8px;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .filter-tab { flex-shrink: 0; white-space: nowrap; }

    .references-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .cta-actions { flex-direction: column; align-items: stretch; }

    /* Footer tightening */
    .footer { padding: 70px 0 40px; }
    .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* =========== SMALL PHONE (≤480px) =========== */
@media (max-width: 480px) {
    /* Hero — stay readable on narrow screens */
    .hero-full-title { font-size: clamp(40px, 13vw, 64px); }
    .hero-full-subtitle { font-size: 15px; margin-bottom: 36px; }
    .hero-full-cta { flex-direction: column; align-items: stretch; width: 100%; gap: 12px; }
    .hero-full-cta .btn-primary,
    .hero-full-cta .btn-outline { width: 100%; justify-content: center; }

    .section-title { font-size: clamp(32px, 9vw, 48px); }
    .intro-text-section { padding: 100px 0; }
    .intro-text { font-size: clamp(22px, 6vw, 32px); }

    .stats-strip-item { padding: 40px 20px; }
    .stats-strip-number { font-size: clamp(34px, 10vw, 48px); }
    .stats-strip-label { font-size: 12px; }

    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: 1fr; }

    /* Drawer inner tightening on very small phones */
    .mobile-drawer-content { padding: 20px 18px; gap: 28px; }
    .mobile-drawer-header { padding: 16px 18px; }
    .mobile-drawer-footer { padding: 16px 18px 22px; }
    .mobile-drawer-link { font-size: 22px; padding: 10px 0; }
    .mobile-drawer-item-icon { width: 40px; height: 40px; font-size: 18px; }

    /* CTA buttons full-width on phones */
    .cta-actions .btn-primary,
    .cta-actions .btn-outline { width: 100%; justify-content: center; }
}

/* ============================================
   SHOWCASE — horizontal "pinned" scroll gallery
   Lenis.dev pattern: CSS position:sticky, NO GSAP pin.
   This removes the fixed/relative transition that caused
   the visible bump at fast scroll velocities.
   Structure:
     .showcase
       .showcase-header    (normal flow, scrolls)
       .showcase-stage     (tall container: 100vh + distance)
         .showcase-track-wrap   (position: sticky, height: 100vh)
           .showcase-track      (flex row of cards, translates X)
           .showcase-progress   (absolute inside sticky)
   ============================================ */
.showcase {
    background: var(--bg-secondary);
    padding: 120px 0 0;
    position: relative;
}

.showcase-header {
    padding: 0 var(--container-padding);
    margin-bottom: 60px;
}

.showcase-header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    flex-wrap: wrap;
}

/* Outer scroll-travel container — height set by JS to
   (viewport + horizontal distance). This is what the user
   "scrolls through" while the inner track-wrap sticks. */
.showcase-stage {
    position: relative;
    width: 100%;
}

/* Inner rail — native CSS sticky at viewport top.
   As user scrolls the stage, this stays at top:0 for the
   entire stage height. No JS pin, no position swap, no bump. */
.showcase-track-wrap {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: var(--container-padding);
}

.showcase-track {
    display: flex;
    align-items: center;
    gap: 32px;
    will-change: transform;
    padding-right: calc(var(--container-padding) + 40px);
    height: auto;
}

.showcase-card {
    flex: 0 0 auto;
    /* Size cards relative to VIEWPORT HEIGHT so they never overflow */
    height: min(70vh, 640px);
    aspect-ratio: 16 / 9;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    transition: border-color 0.5s var(--ease-out-expo);
}

.showcase-card:hover {
    border-color: var(--border-hover);
}

.showcase-card-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.showcase-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--bg-tertiary);
    transition: filter 0.5s var(--ease-out-expo);
    filter: saturate(0.95) contrast(1.02);
}

.showcase-card:hover .showcase-card-media img {
    filter: saturate(1.1) contrast(1.04);
}

.showcase-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 45%, transparent 65%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
    pointer-events: none;
    z-index: 1;
}

[data-theme="light"] .showcase-card::after {
    background: linear-gradient(to top, rgba(10,10,10,0.78) 0%, rgba(10,10,10,0.15) 45%, transparent 65%);
}

.showcase-card:hover::after { opacity: 1; }

.showcase-card-meta {
    position: absolute;
    left: 28px; right: 28px; bottom: 24px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    color: #fff;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.showcase-card:hover .showcase-card-meta {
    opacity: 1;
    transform: translateY(0);
}

.showcase-card-index {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.7;
}

.showcase-card-title { text-align: right; }

.showcase-card-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.showcase-card-title h3 {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.4vw, 34px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

/* End card — "View all" placeholder */
.showcase-card-end-media {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 50%, var(--accent-dim) 0%, transparent 60%),
        var(--bg-tertiary);
}

.showcase-card-end-content {
    text-align: center;
    padding: 40px;
}

.showcase-card-end-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.showcase-card-end-title {
    font-family: var(--font-display);
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 24px;
}

.showcase-card-end-title .serif {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
}

.showcase-card-end-cta {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* Progress indicator — floats at the bottom of the pinned rail */
.showcase-progress {
    position: absolute;
    left: var(--container-padding);
    right: var(--container-padding);
    bottom: 48px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 3;
    pointer-events: none;
}

.showcase-progress-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
    display: flex;
    gap: 6px;
}

.showcase-progress-label #showcaseCurrent {
    color: var(--text-primary);
}

.showcase-progress-sep {
    opacity: 0.4;
}

.showcase-progress-bar {
    flex: 1;
    max-width: 320px;
    height: 2px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.showcase-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.1s linear;
}

.showcase-progress-hint {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.25em;
    color: var(--text-tertiary);
    margin-left: auto;
}

/* Shorter viewports: give cards more room, move progress up */
@media (max-height: 760px) {
    .showcase-card { height: min(64vh, 520px); }
    .showcase-progress { bottom: 32px; }
}

@media (max-width: 900px) {
    .showcase { padding: 80px 0 100px; }
    .showcase-header { margin-bottom: 40px; }
    /* Mobile: no sticky, native horizontal scroll inside the track-wrap */
    .showcase-stage { height: auto !important; }
    .showcase-track-wrap {
        position: relative;
        top: auto;
        height: auto;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 0 var(--container-padding) 60px;
    }
    .showcase-card {
        height: auto;
        width: 78vw;
        aspect-ratio: 4/3;
        scroll-snap-align: start;
    }
    .showcase-card-end-title { font-size: clamp(32px, 8vw, 48px); }
    .showcase-progress {
        position: relative;
        left: auto; right: auto; bottom: auto;
        margin-top: 24px;
    }
    .showcase-progress-hint { display: none; }
}

/* ============================================
   REFERENCE CARD — real image treatment
   Works with <img> inside .reference-card-image-inner
   ============================================ */
.reference-card {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.reference-card-image-inner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.8s var(--ease-out-expo), filter 0.6s var(--ease-out-expo);
    filter: saturate(0.92) contrast(1.02);
    will-change: transform;
}

.reference-card:hover .reference-card-image-inner img {
    transform: scale(1.08);
    filter: saturate(1.08) contrast(1.05);
}

/* Clip-path reveal on scroll */
.reference-card-image {
    clip-path: inset(0 0 0 0 round 20px);
}

.reference-card[data-reveal="pending"] .reference-card-image-inner img {
    transform: scale(1.3);
}

.reference-card[data-reveal="pending"] .reference-card-image {
    clip-path: inset(0 50% 0 50% round 20px);
}

.reference-card {
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo), border-color 0.5s var(--ease-out-expo);
}

/* Darkening overlay with "View" label on hover */
.reference-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 45%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
    pointer-events: none;
}

.reference-card:hover .reference-card-image::after { opacity: 1; }

.reference-card-image::before {
    content: 'Obišči stran  ↗';
    position: absolute;
    left: 24px; bottom: 20px;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 100px;
    backdrop-filter: blur(8px);
    background: rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
    pointer-events: none;
}

.reference-card:hover .reference-card-image::before {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   CUSTOM CURSOR — "view" state for media hovers
   ============================================ */
.cursor.view, .cursor-follower.view {
    mix-blend-mode: normal;
}

.cursor-follower.view {
    width: 96px !important;
    height: 96px !important;
    background: var(--accent) !important;
    border: none !important;
    margin: -48px 0 0 -48px !important;
}

.cursor-follower.view::after {
    content: 'VIEW';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #000;
}

.cursor.view {
    opacity: 0 !important;
}

/* ============================================
   VELOCITY-REACTIVE MARQUEE (play-state control)
   ============================================ */
.marquee-v2-track {
    animation-play-state: running;
    will-change: transform;
}

/* ============================================
   BLOG TEASER (homepage) + BLOG PAGE
   ============================================ */
.blog-teaser {
    padding: 140px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.blog-teaser-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.blog-teaser-desc {
    font-size: clamp(15px, 1.2vw, 18px);
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
    max-width: 560px;
    margin-top: 20px;
}

.blog-teaser-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
}

.blog-teaser-grid .blog-card-featured {
    grid-row: span 2;
}

.blog-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-card);
    text-decoration: none;
    color: inherit;
    transition: transform 0.5s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
    min-height: 200px;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.blog-card-featured {
    padding: 40px;
    background:
        radial-gradient(ellipse at top right, var(--accent-dim) 0%, transparent 60%),
        var(--bg-card);
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.blog-card-cat {
    color: var(--accent);
    font-weight: 600;
}

.blog-card-title {
    font-family: var(--font-display);
    font-size: clamp(18px, 1.4vw, 22px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.blog-card-featured .blog-card-title {
    font-size: clamp(24px, 2.2vw, 36px);
    line-height: 1.15;
}

.blog-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: auto;
    padding-bottom: 24px;
}

.blog-card-featured .blog-card-excerpt {
    font-size: 15px;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
}

.blog-card-arrow {
    font-size: 16px;
    transition: transform 0.4s var(--ease-out-expo);
}

.blog-card:hover .blog-card-arrow {
    transform: translateX(6px);
    color: var(--accent);
}

@media (max-width: 1024px) {
    .blog-teaser { padding: 90px 0; }
    .blog-teaser-grid {
        grid-template-columns: 1fr 1fr;
    }
    .blog-teaser-grid .blog-card-featured { grid-column: span 2; grid-row: auto; }
}

@media (max-width: 640px) {
    .blog-teaser { padding: 70px 0; }
    .blog-teaser-header { margin-bottom: 40px; }
    .blog-teaser-grid { grid-template-columns: 1fr; }
    .blog-teaser-grid .blog-card-featured { grid-column: auto; }
    .blog-card { padding: 24px; min-height: auto; }
    .blog-card-featured { padding: 28px; }
}

/* Blog page grid (blog.html) */
.blog-page { padding: 80px 0 140px; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.blog-page-cta {
    margin-top: 80px;
    text-align: center;
    padding: 60px 40px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 50% 0%, var(--accent-dim) 0%, transparent 60%),
        var(--bg-card);
}

.blog-page-cta p {
    font-size: clamp(16px, 1.4vw, 20px);
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .blog-page { padding: 60px 0 100px; }
}

@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-page-cta { padding: 40px 24px; margin-top: 60px; }
}

/* ============================================
   NAV OPEN — lock body scroll when mobile menu active
   ============================================ */
html.nav-open,
html.nav-open body {
    overflow: hidden;
}

/* ============================================
   MOBILE DRAWER — slide-in megamenu for mobile
   Desktop: hidden. Mobile: slide from right.
   Structured like desktop mega-menu (sections + icons).
   ============================================ */
.mobile-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 100vw;
    height: 100dvh;
    background: var(--bg-primary);
    transform: translateX(100%);
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.mobile-drawer.open { transform: translateX(0); }

.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s var(--ease-out-expo);
    z-index: 1099;
}

.mobile-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.mobile-drawer-close {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: transparent;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out-expo);
}

.mobile-drawer-close:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
    transform: rotate(90deg);
}

.mobile-drawer-content {
    flex: 1;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.mobile-drawer-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-drawer-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-drawer-label::before {
    content: '//';
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0;
    font-size: 12px;
}

/* Big display-style nav links (Domov / Reference / O nas / Blog) */
.mobile-drawer-link {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    padding: 12px 0;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s var(--ease-out-expo), padding 0.3s var(--ease-out-expo);
}

.mobile-drawer-link:last-child { border-bottom: none; }

.mobile-drawer-link::after {
    content: '→';
    font-size: 20px;
    color: var(--text-tertiary);
    transition: transform 0.3s var(--ease-out-expo), color 0.3s var(--ease-out-expo);
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
    color: var(--accent);
    padding-left: 6px;
}

.mobile-drawer-link:hover::after {
    transform: translateX(4px);
    color: var(--accent);
}

/* Service/WordPress items — icon + text style (mega-menu) */
.mobile-drawer-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 14px 12px;
    margin: 0 -12px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s var(--ease-out-expo);
}

.mobile-drawer-item:hover,
.mobile-drawer-item:active {
    background: var(--bg-card);
}

.mobile-drawer-item-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
}

.mobile-drawer-item-text h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.mobile-drawer-item-text p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
    font-weight: 300;
}

.mobile-drawer-footer {
    padding: 20px 24px 28px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.mobile-drawer-footer .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 15px;
}

.mobile-drawer-theme-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.mobile-drawer-theme-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

/* Show on tablet/phone, hide desktop mega menus */
@media (max-width: 1024px) {
    .mobile-drawer { display: flex; }
    /* Hide old fullscreen stacked nav — replaced by drawer */
    .nav-links.mobile-open { display: none !important; }
    /* Hide desktop mega-menu triggers (mobile drawer has its own service list) */
    .mega-menu { display: none !important; }
}

@media (min-width: 1025px) {
    .mobile-drawer,
    .mobile-drawer-backdrop { display: none !important; }
}

/* ============================================
   PREFERS-REDUCED-MOTION — disable animations
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-full-scroll-line::after,
    .marquee-v2-track { animation: none !important; }
    .cursor, .cursor-follower, .grain { display: none !important; }
}

/* ============================================
   POST CONTENT TYPOGRAPHY (single.php)
   ============================================ */
.post-content {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-secondary);
}
.post-content p { margin: 0 0 1.4em; }
.post-content h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-primary);
    margin: 56px 0 18px;
    scroll-margin-top: calc(var(--nav-height) + 30px);
}
.post-content h3 {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin: 36px 0 14px;
    scroll-margin-top: calc(var(--nav-height) + 30px);
}
.post-content h2:first-child, .post-content h3:first-child { margin-top: 0; }
.post-content ul, .post-content ol { padding-left: 24px; margin: 0 0 1.5em; }
.post-content li { margin: 0 0 0.5em; }
.post-content li::marker { color: var(--accent); }
.post-content a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.post-content a:hover { color: var(--accent); }
.post-content strong { color: var(--text-primary); font-weight: 600; }
.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 8px 0 8px 24px;
    margin: 28px 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15em;
    color: var(--text-primary);
}
.post-content code {
    font-family: var(--font-mono);
    font-size: 0.92em;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 5px;
    color: var(--accent);
}
.post-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.7;
}
.post-content pre code { background: none; border: none; padding: 0; color: var(--text-primary); }
.post-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 24px 0; }
.post-content hr { border: 0; border-top: 1px solid var(--border-color); margin: 40px 0; }

/* ============================================
   AUTO-TOC (single post)
   ============================================ */
.post-toc {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 18px;
    padding: 22px 26px 24px;
    margin: 0 0 48px;
    position: relative;
    overflow: hidden;
}
.post-toc::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
}

.post-toc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border-color);
}
.post-toc-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.post-toc-toggle {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 6px 14px;
    cursor: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.post-toc-toggle:hover { border-color: var(--accent); color: var(--text-primary); }
.post-toc-toggle-icon {
    font-size: 14px;
    line-height: 1;
    transition: transform 0.3s var(--ease-out-expo);
}

.post-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
    transition: max-height 0.45s var(--ease-out-expo), opacity 0.3s, margin 0.3s;
    max-height: 1200px;
    overflow: hidden;
}
.post-toc[data-collapsed="true"] .post-toc-list {
    max-height: 0;
    opacity: 0;
    margin: 0;
}
.post-toc[data-collapsed="true"] .post-toc-toggle-icon { transform: rotate(45deg); content: '+'; }
.post-toc[data-collapsed="true"] .post-toc-head { padding-bottom: 0; border-bottom: none; margin-bottom: 0; }

.post-toc-list li {
    margin: 0;
}
.post-toc-list li.is-sub {
    padding-left: 28px;
}
.post-toc-list li a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.45;
}
.post-toc-list li a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}
.post-toc-list li a.is-active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}
.post-toc-list li a.is-active::before {
    content: '';
    position: absolute;
    left: -3px;
    width: 3px;
    height: 100%;
}
.post-toc-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
    flex-shrink: 0;
    min-width: 22px;
    letter-spacing: 0.06em;
}
.post-toc-list li a:hover .post-toc-num,
.post-toc-list li a.is-active .post-toc-num { color: var(--accent); }
.post-toc-text {
    font-size: 14px;
    font-weight: 500;
}
.post-toc-list li.is-sub .post-toc-text {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-tertiary);
}
.post-toc-list li.is-sub a:hover .post-toc-text,
.post-toc-list li.is-sub a.is-active .post-toc-text {
    color: var(--text-secondary);
}

/* Related cards hover */
.related-card { color: inherit; }
.related-card:hover { border-color: var(--accent); transform: translateY(-3px); }

@media (max-width: 720px) {
    .post-toc { padding: 18px 18px 20px; margin-bottom: 36px; }
    .post-toc-list li.is-sub { padding-left: 16px; }
    .post-toc-text { font-size: 13px; }
}

/* ============================================
   POST PLUGIN CTA — embed na koncu novic
   ============================================ */
.post-plugin-cta {
    margin: 56px 0 16px;
    padding: 36px 32px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, var(--accent-dim) 0%, transparent 55%),
        var(--bg-card);
    position: relative;
    overflow: hidden;
}
.post-plugin-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: var(--accent);
    border-radius: 4px 0 0 4px;
}
.post-plugin-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    padding: 5px 12px;
    border: 1px solid var(--accent);
    border-radius: 100px;
    background: var(--accent-dim);
}
.post-plugin-cta h3 {
    font-family: var(--font-display) !important;
    font-size: clamp(24px, 2.4vw, 32px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    line-height: 1.15 !important;
    margin: 0 0 12px !important;
    color: var(--text-primary);
}
.post-plugin-cta p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 22px !important;
    font-size: 15px;
}
.post-plugin-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.post-plugin-cta-meta {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--text-tertiary);
    text-transform: uppercase;
}
.post-plugin-cta a.btn-primary,
.post-plugin-cta a.btn-outline {
    text-decoration: none !important;
}
@media (max-width: 600px) {
    .post-plugin-cta { padding: 26px 22px; margin: 40px 0 12px; }
    .post-plugin-cta-meta { margin-left: 0; width: 100%; }
}

/* ============================================
   PAGINATION (the_posts_pagination output)
   Used on archive-storitve, archive-reference,
   archive.php, search.php — wherever WP renders.
   ============================================ */
.navigation.pagination {
    margin: 60px 0 0;
    padding: 32px 0 0;
    border-top: 1px solid var(--border-color);
}
.navigation.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    font-family: var(--font-mono);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s var(--ease-out-expo);
    cursor: none;
}
.navigation.pagination a.page-numbers:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}
.navigation.pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #0a0a0c;
    font-weight: 600;
}
[data-theme="dark"] .navigation.pagination .page-numbers.current {
    color: #0a0a0c;
}
.navigation.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    min-width: 32px;
}
.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
    font-size: 16px;
    padding: 0 18px;
}

/* Hide screen-reader heading visually but keep accessible */
.navigation.pagination .screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

@media (max-width: 600px) {
    .navigation.pagination { margin-top: 40px; }
    .navigation.pagination .page-numbers {
        min-width: 38px; height: 38px;
        font-size: 12px;
        padding: 0 10px;
    }
}

/* ============================================
   PAGE: O NAS  (page-o-nas.php)
   ============================================ */

/* ---- Hero ---- */
.onas-hero {
    padding: calc(var(--nav-height) + 100px) 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.onas-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.onas-hero-grid {
    position: absolute;
    inset: -10%;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.3;
    mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
}
.onas-hero-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--glow) 0%, transparent 60%);
    filter: blur(60px);
}
.onas-hero-content {
    position: relative;
    z-index: 1;
}
.onas-hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8.5vw, 132px);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 0.95;
    margin: 28px 0;
}
.onas-hero-subtitle {
    max-width: 740px;
    margin: 32px auto 0;
    font-size: clamp(17px, 1.5vw, 22px);
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
}
.onas-hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 44px;
    flex-wrap: wrap;
}

/* ---- Story ---- */
.onas-story { padding: 80px 0; }
.onas-story-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}
.onas-story-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.5vw, 72px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-top: 24px;
}
.onas-story-body {
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.75;
    color: var(--text-secondary);
    font-weight: 300;
}
.onas-story-body p { margin-bottom: 1.5em; }
.onas-story-body p:last-child { margin-bottom: 0; }
.onas-story-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ---- Stats ---- */
.onas-stats {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.onas-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
}
.onas-stat {
    padding: 28px 24px;
    border-right: 1px solid var(--border-color);
    text-align: center;
}
.onas-stat:last-child { border-right: none; }
.onas-stat-num {
    font-family: var(--font-display);
    font-size: clamp(48px, 5.5vw, 80px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
}
.onas-stat-num .accent { color: var(--accent); }
.onas-stat-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-top: 12px;
}

/* ---- Values ---- */
.onas-values { padding: 120px 0; }
.onas-values-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 64px;
}
.onas-values-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.5vw, 72px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 24px 0;
}
.onas-values-desc {
    color: var(--text-secondary);
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.7;
    font-weight: 300;
}
.onas-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.onas-value {
    padding: 32px 28px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--bg-card);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}
.onas-value:hover {
    border-color: var(--text-primary);
    transform: translateY(-3px);
}
.onas-value::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out-expo);
}
.onas-value:hover::after { transform: scaleX(1); }
.onas-value-num {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 16px;
}
.onas-value h3 {
    font-family: var(--font-display);
    font-size: clamp(20px, 1.8vw, 24px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 12px;
}
.onas-value p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
    font-weight: 300;
}

/* ---- Tech stack ---- */
.onas-tech {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.onas-tech-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}
.onas-tech-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 24px 0 16px;
}
.onas-tech-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 300;
}
.onas-tech-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}
.onas-tech-group-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.onas-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.onas-tech-tags span {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    padding: 7px 14px;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    background: var(--bg-card);
    transition: all 0.2s;
}
.onas-tech-tags span:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

/* ---- CTA ---- */
.onas-cta {
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.onas-cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.2;
    mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 60%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 60%);
}
.onas-cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}
.onas-cta-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6.5vw, 96px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 28px 0 24px;
}
.onas-cta-desc {
    color: var(--text-secondary);
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.65;
    font-weight: 300;
    max-width: 620px;
    margin: 0 auto 40px;
}
.onas-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .onas-story-grid,
    .onas-tech-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
@media (max-width: 720px) {
    .onas-stat {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 24px 16px;
    }
    .onas-stat:last-child { border-bottom: none; }
}

/* ==================================================================
   SHARED PAGE-HERO UTILITIES
   Uporabljeno v: post-hero, blog-index-hero, archive-hero,
   storitve-archive-hero, storitev-hero
   ================================================================== */
.page-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.22;
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
            mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
    pointer-events: none;
}
.page-hero-grid--side {
    -webkit-mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 70%);
            mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 70%);
    opacity: 0.18;
}
.page-hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--glow) 0%, transparent 60%);
    filter: blur(60px);
    pointer-events: none;
}
.page-hero-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 32px;
    transition: color 0.2s;
}
.page-hero-back:hover { color: var(--accent); }

/* ==================================================================
   SINGLE POST  (single.php)
   ================================================================== */
.post-single .post-hero {
    padding: calc(var(--nav-height) + 60px) 0 60px;
    position: relative;
    overflow: hidden;
}
.post-single .post-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 920px;
}
.post-single .post-meta-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
}
.post-single .post-meta-cat {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}
.post-single .post-meta-sep { opacity: 0.4; }

.post-single .post-hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 88px);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 28px;
}
.post-single .post-hero-lead {
    font-size: clamp(17px, 1.4vw, 22px);
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 720px;
}

.post-single .post-feature {
    padding: 0 0 60px;
}
.post-single .post-feature .container {
    max-width: 1100px;
}
.post-single .post-feature-frame {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    aspect-ratio: 16 / 9;
    background: var(--bg-tertiary);
}
.post-single .post-feature-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-single .post-body { padding: 0 0 80px; }
.post-single .post-body .container { max-width: 760px; }

.post-single .post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 48px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}
.post-single .post-tags a {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.post-single .post-tags a:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

/* Related posts */
.post-related {
    padding: 60px 0 100px;
    border-top: 1px solid var(--border-color);
}
.post-related-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}
.post-related-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.post-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.post-related .related-card {
    display: flex;
    flex-direction: column;
    padding: 26px 26px 28px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--bg-card);
    transition: all 0.3s var(--ease-out-expo);
}
.post-related .related-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}
.related-card-cat {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
}
.related-card-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 10px;
}
.related-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    flex: 1;
    font-weight: 300;
}
.related-card-date {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

/* ==================================================================
   BLOG INDEX  (page-blog.php)
   ================================================================== */
.blog-index .blog-index-hero {
    padding: calc(var(--nav-height) + 80px) 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.blog-index .blog-index-hero-inner {
    position: relative;
    z-index: 1;
}
.blog-index .blog-index-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin: 24px 0;
}
.blog-index .blog-index-lead {
    max-width: 720px;
    margin: 28px auto 0;
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 300;
}

.blog-index .blog-pills-section { padding: 20px 0 32px; }
.blog-index .blog-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.cat-pill {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    background: transparent;
    transition: all 0.2s;
}
.cat-pill .count { opacity: 0.5; margin-left: 4px; }
.cat-pill:hover { border-color: var(--accent); color: var(--text-primary); }
.cat-pill.is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: #0a0a0a;
}

.blog-index .blog-grid-section { padding: 20px 0 100px; }
.blog-index .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}
.blog-index .blog-card {
    display: flex;
    flex-direction: column;
    padding: 30px 28px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--bg-card);
    transition: all 0.4s var(--ease-out-expo);
    min-height: 280px;
}
.blog-index .blog-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}
.blog-card-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.blog-card-cat { color: var(--accent); }
.blog-card-sep { opacity: 0.4; }

.blog-card-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 1.8vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin-bottom: 14px;
}
.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
    flex: 1;
    font-weight: 300;
}
.blog-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}
.blog-card-date {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.blog-card-arrow {
    color: var(--accent);
    font-size: 18px;
}

.blog-empty {
    text-align: center;
    color: var(--text-secondary);
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
    flex-wrap: wrap;
}
.blog-pagination a, .blog-pagination span {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.blog-pagination a:hover { border-color: var(--accent); color: var(--text-primary); }
.blog-pagination .current {
    background: var(--accent);
    color: #0a0a0a;
    border-color: var(--accent);
}

/* ==================================================================
   GENERIC ARCHIVE  (archive.php)
   ================================================================== */
.generic-archive .archive-hero {
    padding: calc(var(--nav-height) + 80px) 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.generic-archive .archive-hero-inner {
    position: relative;
    z-index: 1;
}
.generic-archive .archive-hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 100px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin: 24px 0;
}
.generic-archive .archive-hero-desc {
    max-width: 700px;
    margin: 24px auto 0;
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 300;
}
.generic-archive .archive-hero-back-row {
    margin-top: 28px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.generic-archive .blog-grid-section { padding: 20px 0 100px; }
.generic-archive .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}
.generic-archive .blog-card {
    display: flex;
    flex-direction: column;
    padding: 30px 28px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--bg-card);
    transition: all 0.4s var(--ease-out-expo);
    min-height: 260px;
}
.generic-archive .blog-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}
.generic-archive .blog-card .blog-card-title {
    font-size: clamp(22px, 1.8vw, 26px);
    line-height: 1.2;
    margin-bottom: 12px;
}
.generic-archive .blog-card-date {
    margin-top: 18px;
}

/* ==================================================================
   STORITVE ARCHIVE  (archive-storitve.php)
   ================================================================== */
.storitve-archive .storitve-archive-hero {
    padding: calc(var(--nav-height) + 80px) 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.storitve-archive .storitve-archive-hero-inner {
    position: relative;
    z-index: 1;
}
.storitve-archive .storitve-archive-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin: 24px 0;
}
.storitve-archive .storitve-archive-lead {
    max-width: 700px;
    margin: 28px auto 40px;
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 300;
}
.storitve-archive .storitve-archive-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.storitve-archive .storitve-archive-grid { padding: 40px 0 120px; }
.storitve-archive .storitve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.storitve-archive .storitev-card {
    display: flex;
    flex-direction: column;
    padding: 36px 32px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-card);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    min-height: 320px;
}
.storitve-archive .storitev-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}
.storitve-archive .storitev-card-icon {
    font-size: clamp(60px, 6vw, 90px);
    line-height: 1;
    color: var(--text-tertiary);
    opacity: 0.55;
    margin-bottom: 24px;
}
.storitve-archive .storitev-card-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.storitve-archive .storitev-card-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 300;
    flex: 1;
}
.storitve-archive .storitev-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 20px 0 0;
}
.storitve-archive .storitev-card-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
}
.storitve-archive .storitev-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--accent);
    text-transform: uppercase;
}
.storitve-archive .storitve-empty {
    text-align: center;
    color: var(--text-secondary);
}

/* ==================================================================
   STORITEV SINGLE  (single-storitve.php)
   ================================================================== */
.storitev-single .storitev-hero {
    padding: calc(var(--nav-height) + 80px) 0 80px;
    position: relative;
    overflow: hidden;
}
.storitev-single .storitev-hero-inner {
    position: relative;
    z-index: 1;
}
.storitev-single .storitev-hero-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: end;
    max-width: 1100px;
}
.storitev-single .storitev-hero-icon {
    font-size: clamp(80px, 8vw, 140px);
    line-height: 1;
    opacity: 0.4;
    margin-bottom: 20px;
}
.storitev-single .storitev-hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.95;
}
.storitev-single .storitev-hero-lead {
    margin: 32px 0 0;
    max-width: 720px;
    font-size: clamp(17px, 1.5vw, 22px);
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
}
.storitev-single .storitev-hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 32px 0 0;
}
.storitev-single .storitev-hero-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 7px 16px;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    background: var(--bg-card);
}

.storitev-single .storitev-content-section { padding: 40px 0 80px; }
.storitev-single .storitev-content-section .container { max-width: 860px; }
.storitev-single .storitev-content {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-secondary);
}

.storitev-single .storitev-cta {
    padding: 80px 0 100px;
}
.storitev-single .storitev-cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.storitev-single .storitev-cta-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 24px 0 28px;
}
.storitev-single .storitev-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================================================================
   GENERIC PAGE  (page.php — fallback za stranj brez posebnega templata)
   ================================================================== */
.generic-page .generic-page-header {
    padding: calc(var(--nav-height) + 80px) 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.generic-page .generic-page-header-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
}
.generic-page .generic-page-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 100px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin: 24px 0;
    text-align: center;
}
.generic-page .generic-page-body {
    padding: 20px 0 100px;
}
.generic-page .generic-page-body-inner {
    max-width: 760px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 17px;
}
.generic-page .generic-page-body-inner p { margin: 0 0 1.4em; }
.generic-page .generic-page-body-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 48px 0 18px;
}
.generic-page .generic-page-body-inner h3 {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin: 32px 0 12px;
}
.generic-page .generic-page-body-inner ul,
.generic-page .generic-page-body-inner ol {
    padding-left: 24px;
    margin: 0 0 1.4em;
}
.generic-page .generic-page-body-inner li { margin: 0 0 0.4em; }
.generic-page .generic-page-body-inner li::marker { color: var(--accent); }
.generic-page .generic-page-body-inner a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.generic-page .generic-page-body-inner a:hover { color: var(--accent); }
.generic-page .generic-page-body-inner strong { color: var(--text-primary); font-weight: 600; }
