/* ============================================
   ANOA — Light, refined, modern
   ============================================ */

:root {
    --ink: #1C1C1C;
    --ink-soft: #3A3A3A;
    --ink-muted: #6E6E6E;
    --ink-faint: #9A9A9A;

    --surface: #FFFFFF;
    --surface-warm: #F9F8F6;
    --surface-muted: #F3F2EF;
    --border: rgba(28, 28, 28, 0.08);
    --border-hover: rgba(28, 28, 28, 0.18);

    --accent: #C4A35A;
    --accent-soft: rgba(196, 163, 90, 0.14);

    --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-soft: 0 2px 24px rgba(28, 28, 28, 0.04);
    --shadow-hover: 0 12px 40px rgba(28, 28, 28, 0.08);

    --container: 1140px;
    --header-h: 80px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--ink-muted);
    background: var(--surface);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--ink);
    color: var(--surface);
}

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

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--border-hover);
}

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

.btn-sm {
    padding: 11px 24px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 15px;
}

/* ---- Section labels ---- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 20px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.section-header {
    text-align: center;
    max-width: 580px;
    margin: 0 auto 72px;
}

.section-title {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 300;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
}

.section-desc {
    font-size: 16px;
    font-weight: 300;
    color: var(--ink-muted);
    line-height: 1.8;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-soft);
}

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

.logo img {
    height: 26px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-list a {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--ink);
    transition: width var(--transition);
}

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

@media (hover: hover) and (min-width: 769px) {
    .nav-list a:hover::after {
        width: 100%;
    }
}

/* Nav dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown-chevron {
    transition: transform var(--transition);
    opacity: 0.5;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    padding: 8px 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 100;
}

.nav-dropdown-menu a {
    display: block;
    padding: 11px 24px;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--ink-muted);
    white-space: nowrap;
}

.nav-dropdown-menu a::after {
    display: none;
}

.nav-dropdown-menu a:hover {
    color: var(--ink);
    background: var(--surface-warm);
}

@media (hover: hover) and (min-width: 769px) {
    .nav-dropdown:hover .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .nav-dropdown:hover .nav-dropdown-chevron {
        transform: rotate(180deg);
        opacity: 1;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .nav-dropdown.open .nav-dropdown-chevron {
        transform: rotate(180deg);
        opacity: 1;
    }
}

.header-cta {
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.nav-toggle span {
    position: absolute;
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all var(--transition);
    right: 5px;
}

.nav-toggle span:nth-child(1) {
    width: 23px;
    top: 11px;
}

.nav-toggle span:nth-child(2) {
    width: 40px;
    top: 19px;
}

.nav-toggle span:nth-child(3) {
    width: 31px;
    top: 27px;
}

.nav-toggle.active span:nth-child(1),
.nav-toggle.active span:nth-child(3) {
    top: 50%;
    right: auto;
    left: 50%;
    width: 36px;
    margin-top: -1px;
}

.nav-toggle.active span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--surface-warm);
    color: var(--ink);
    padding-top: var(--header-h);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-grid {
    display: none;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(196, 163, 90, 0.06) 0%, transparent 65%);
    border-radius: 50%;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(28, 28, 28, 0.03) 0%, transparent 65%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding: 100px 32px 120px;
}

.hero-title {
    font-size: clamp(38px, 5.5vw, 62px);
    font-weight: 200;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
    color: var(--ink);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 300;
    color: var(--ink-muted);
    line-height: 1.85;
    max-width: 540px;
    margin-bottom: 44px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 200;
    color: var(--ink);
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--ink-faint);
    margin-top: 6px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: 140px 0;
    background: var(--surface);
}

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

.services-grid--2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 820px;
    margin: 0 auto;
}

.services-note {
    text-align: center;
    margin-top: 48px;
    font-size: 15px;
    font-weight: 300;
    color: var(--ink-faint);
}

.services-note a {
    color: var(--ink);
    border-bottom: 1px solid var(--border-hover);
    transition: all var(--transition);
}

.services-note a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.service-card {
    padding: 40px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

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

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    margin-bottom: 28px;
    transition: color var(--transition);
}

.service-card:hover .service-icon {
    color: var(--ink);
}

.service-title {
    font-size: 17px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.service-desc {
    font-size: 14px;
    font-weight: 300;
    color: var(--ink-muted);
    line-height: 1.8;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.tag {
    font-size: 11px;
    font-weight: 300;
    padding: 5px 12px;
    background: var(--surface-muted);
    color: var(--ink-faint);
    border-radius: 100px;
    letter-spacing: 0.03em;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--ink);
    transition: gap var(--transition), color var(--transition);
}

.service-link:hover {
    color: var(--accent);
    gap: 12px;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
    padding: 140px 0;
    background: var(--surface-warm);
}

.products--inverted {
    padding: 120px 0;
    background: var(--surface);
}

.products--inverted .product-card {
    background: var(--surface-warm);
}

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

.product-card {
    padding: 40px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

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

.product-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    margin-bottom: 28px;
    transition: color var(--transition);
}

.product-card:hover .product-icon {
    color: var(--ink);
}

.product-title {
    font-size: 17px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.product-desc {
    font-size: 14px;
    font-weight: 300;
    color: var(--ink-muted);
    line-height: 1.8;
    margin-bottom: 24px;
    flex-grow: 1;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--ink);
    transition: gap var(--transition), color var(--transition);
}

.product-link:hover {
    color: var(--accent);
    gap: 12px;
}

/* ============================================
   REFERENCES
   ============================================ */
.references {
    padding: 140px 0;
    background: var(--surface);
}

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

/* Project cards — homepage i portfolio */
.project-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
}

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

.portfolio-item.project-card {
    border-radius: var(--radius);
}

.portfolio-item.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.project-preview {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--surface-muted);
    overflow: hidden;
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--transition);
}

.project-card:hover .project-preview img {
    transform: scale(1.03);
}

.project-preview-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(160deg, #f0eeea 0%, #e8e6e1 50%, #f5f3ef 100%);
    text-align: center;
}

.project-domain {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--ink-muted);
}

.project-name-fallback {
    font-size: 14px;
    font-weight: 300;
    color: var(--ink-faint);
    line-height: 1.4;
}

.project-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(28, 28, 28, 0.72);
    color: var(--surface);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover .project-preview-overlay {
    opacity: 1;
}

.project-info {
    padding: 20px 24px;
}

.project-category {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.project-title {
    font-size: 16px;
    font-weight: 400;
    color: var(--ink);
    margin-top: 8px;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.reference-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    background: var(--surface);
}

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

.reference-preview {
    aspect-ratio: 16 / 10;
    background: var(--surface-muted);
    overflow: hidden;
}

.reference-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--surface-muted) 0%, var(--surface-warm) 100%);
    font-size: 14px;
    font-weight: 300;
    color: var(--ink-faint);
    text-align: center;
    padding: 24px;
    letter-spacing: 0.02em;
}

.reference-info {
    padding: 24px 28px;
}

.reference-category {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.reference-info h3 {
    font-size: 16px;
    font-weight: 400;
    color: var(--ink);
    margin-top: 8px;
    letter-spacing: -0.01em;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 60px 0 140px;
    background: var(--surface);
}

.cta-box {
    text-align: center;
    padding: 80px 48px;
    background: var(--surface-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--ink);
}

.cta-box h2 {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.cta-box p {
    font-size: 16px;
    font-weight: 300;
    color: var(--ink-muted);
    margin-bottom: 36px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--surface-warm);
    color: var(--ink-muted);
    padding: 100px 0 0;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-logo {
    height: 30px;
    width: auto;
    margin-bottom: 20px;
    opacity: 0.85;
}

.footer-tagline {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 240px;
    color: var(--ink-faint);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--ink-faint);
    transition: all var(--transition);
}

.social-link:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 22px;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-contact a {
    font-size: 14px;
    font-weight: 300;
    color: var(--ink-faint);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--ink);
}

.footer-bottom {
    padding: 28px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--ink-faint);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid--2 {
        max-width: none;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        padding: 32px 24px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .nav-list > li > a:not(.nav-dropdown-trigger) {
        display: block;
        padding: 14px 0;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-list a::after {
        display: none;
    }

    .nav-dropdown-trigger {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 14px 0;
        font-size: 14px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none !important;
        min-width: 0;
        padding: 0;
        margin-top: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition), visibility var(--transition), padding var(--transition), margin var(--transition);
    }

    .nav-dropdown.open .nav-dropdown-menu {
        visibility: visible;
        max-height: 360px;
        transform: none !important;
        margin: 6px 0 14px;
        padding: 12px 14px;
        background: var(--surface-muted);
        border: 1px solid var(--border);
        border-radius: var(--radius);
    }

    .nav-dropdown-menu a {
        padding: 12px 14px;
        font-size: 14px;
        color: var(--ink-soft);
        text-transform: none;
        letter-spacing: 0.02em;
        border-radius: 8px;
    }

    .nav-dropdown-menu a:hover,
    .nav-dropdown-menu a:active {
        background: var(--surface-warm);
        color: var(--ink);
    }

    .nav-list a {
        font-size: 14px;
    }

    .header-cta {
        display: none;
    }

    .hero-content {
        padding: 72px 24px 96px;
    }

    .hero-stats {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .hero-stats .stat {
        flex: 1;
        min-width: 0;
        text-align: center;
    }

    .hero-stats .stat-number {
        font-size: 22px;
    }

    .hero-stats .stat-label {
        font-size: 10px;
        line-height: 1.35;
    }

    .stat-divider {
        display: block;
        height: 28px;
        flex-shrink: 0;
    }

    .references-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 56px 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .services,
    .products,
    .references {
        padding: 100px 0;
    }
}

@media (max-width: 480px) {
    .services-grid,
    .services-grid--2,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

.hero-content .section-label { animation-delay: 0.1s; }
.hero-content .hero-title { animation-delay: 0.2s; }
.hero-content .hero-subtitle { animation-delay: 0.35s; }
.hero-content .hero-actions { animation-delay: 0.5s; }
.hero-content .hero-stats { animation-delay: 0.65s; }

.service-card,
.product-card,
.reference-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease, border-color var(--transition), box-shadow var(--transition);
}

.service-card.visible,
.product-card.visible,
.reference-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SERVICE PAGES
   ============================================ */
.page-hero {
    padding: calc(var(--header-h) + 80px) 0 100px;
    background: var(--surface-warm);
}

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

.page-hero-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 200;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--ink);
    margin-bottom: 32px;
}

.page-hero-title em {
    font-style: normal;
    font-weight: 300;
    color: var(--accent);
}

.page-hero-text {
    margin-bottom: 36px;
}

.page-hero-text p {
    font-size: 16px;
    font-weight: 300;
    color: var(--ink-muted);
    line-height: 1.85;
    margin-bottom: 18px;
}

.page-hero-text p:last-child {
    margin-bottom: 0;
}

.page-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-visual-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1;
}

.page-visual-screen {
    position: absolute;
    inset: 12% 8% 8% 12%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

.page-visual-bar {
    display: flex;
    gap: 6px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.page-visual-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--surface-muted);
}

.page-visual-content {
    padding: 24px;
}

.page-visual-line {
    height: 8px;
    background: var(--surface-muted);
    border-radius: 4px;
    margin-bottom: 12px;
    width: 70%;
}

.page-visual-line--wide {
    width: 90%;
    height: 12px;
    margin-bottom: 20px;
}

.page-visual-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 24px;
}

.page-visual-blocks span {
    aspect-ratio: 1;
    background: var(--surface-muted);
    border-radius: var(--radius);
}

.page-visual-blocks span:nth-child(2) {
    background: var(--accent-soft);
    border: 1px solid rgba(196, 163, 90, 0.25);
}

.page-visual-float {
    position: absolute;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    box-shadow: var(--shadow-soft);
}

.page-visual-float--1 {
    top: 8%;
    right: 0;
}

.page-visual-float--2 {
    bottom: 28%;
    left: 0;
}

.page-visual-float--3 {
    bottom: 8%;
    right: 12%;
}

.page-package {
    padding: 0 0 120px;
    background: var(--surface);
}

.package-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    padding: 56px;
    background: var(--surface-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.package-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.package-lead {
    font-size: 16px;
    font-weight: 300;
    color: var(--ink-muted);
    line-height: 1.85;
    margin-bottom: 32px;
}

.package-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.package-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition);
}

.package-item:hover {
    border-color: var(--border-hover);
}

.package-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
}

.package-item h3 {
    font-size: 15px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 4px;
}

.package-item p {
    font-size: 13px;
    font-weight: 300;
    color: var(--ink-muted);
    line-height: 1.7;
}

.page-offerings {
    padding: 120px 0;
    background: var(--surface);
}

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

.offering-card {
    padding: 36px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

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

.offering-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    margin-bottom: 24px;
    transition: color var(--transition);
}

.offering-card:hover .offering-icon {
    color: var(--ink);
}

.offering-title {
    font-size: 17px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.offering-desc {
    font-size: 14px;
    font-weight: 300;
    color: var(--ink-muted);
    line-height: 1.8;
}

.page-process {
    padding: 120px 0;
    background: var(--surface-warm);
}

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

.process-card {
    padding: 32px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: all var(--transition);
}

.process-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-soft);
}

.process-step {
    display: block;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 16px;
}

.process-title {
    font-size: 17px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 10px;
}

.process-desc {
    font-size: 14px;
    font-weight: 300;
    color: var(--ink-muted);
    line-height: 1.75;
}

.page-portfolio {
    padding: 120px 0;
    background: var(--surface);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.portfolio-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.portfolio-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.portfolio-preview {
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(160deg, var(--surface-muted) 0%, var(--surface-warm) 100%);
    text-align: center;
}

.portfolio-preview span {
    font-size: 12px;
    font-weight: 300;
    color: var(--ink-faint);
    line-height: 1.4;
}

.portfolio-meta {
    padding: 12px 14px;
    border-top: 1px solid var(--border);
}

.portfolio-category {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.portfolio-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* App page visual — flowchart */
.page-visual-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 24px 32px;
    gap: 0;
}

.flow-node {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--ink-faint);
    background: var(--surface);
    flex-shrink: 0;
}

.flow-node--start,
.flow-node--end {
    width: 10px;
    height: 10px;
    background: var(--ink-muted);
    border-color: var(--ink-muted);
}

.flow-node--accent {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.flow-line {
    width: 2px;
    height: 20px;
    background: var(--surface-muted);
}

.flow-line--branch {
    height: 16px;
}

.flow-row {
    display: flex;
    gap: 48px;
    position: relative;
}

.flow-row::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 62px;
    height: 2px;
    background: var(--surface-muted);
}

@media (max-width: 1024px) {
    .package-box {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 32px;
    }

    .page-hero-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .page-hero-visual {
        order: -1;
    }

    .page-visual-card {
        max-width: 300px;
        margin: 0 auto;
    }

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

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 768px) {
    .page-hero {
        padding: calc(var(--header-h) + 48px) 0 80px;
    }

    .page-offerings,
    .page-package,
    .page-process,
    .page-portfolio {
        padding: 80px 0;
    }

    .package-box {
        padding: 32px 24px;
    }

    .offerings-grid,
    .process-grid,
    .portfolio-grid,
    .portfolio-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .offerings-grid,
    .process-grid,
    .portfolio-grid,
    .portfolio-grid--3 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page {
    padding: calc(var(--header-h) + 64px) 0 120px;
    background: var(--surface-warm);
    min-height: 100vh;
}

.contact-header {
    max-width: 560px;
    margin-bottom: 56px;
}

.contact-title {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 200;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.contact-intro {
    font-size: 16px;
    font-weight: 300;
    color: var(--ink-muted);
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info-block {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.contact-info-block h2 {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail-label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 4px;
}

.contact-details a {
    font-size: 15px;
    font-weight: 300;
    color: var(--ink);
}

.contact-details a:hover {
    color: var(--accent);
}

.contact-expect {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-expect li {
    font-size: 14px;
    font-weight: 300;
    color: var(--ink-muted);
    padding-left: 18px;
    position: relative;
}

.contact-expect li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 1px;
    background: var(--accent);
}

.contact-info-block--muted {
    background: transparent;
    border-style: dashed;
}

.contact-info-block--muted p {
    font-size: 14px;
    font-weight: 300;
    color: var(--ink-faint);
    line-height: 1.75;
}

.contact-form-wrap {
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 400;
    color: var(--ink-soft);
    letter-spacing: 0.02em;
}

.form-group label span {
    color: var(--accent);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 300;
    color: var(--ink);
    background: var(--surface-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--border-hover);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-input::placeholder {
    color: var(--ink-faint);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239A9A9A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group--error .form-input {
    border-color: #c45c5c;
}

.form-error {
    font-size: 12px;
    color: #c45c5c;
}

.form-alert {
    padding: 20px 24px;
    border-radius: var(--radius);
    margin-bottom: 28px;
}

.form-alert--success {
    background: rgba(76, 140, 90, 0.1);
    border: 1px solid rgba(76, 140, 90, 0.25);
    color: #3d6b47;
}

.form-alert--success strong {
    display: block;
    font-weight: 400;
    margin-bottom: 4px;
}

.form-alert--success p {
    font-size: 14px;
    font-weight: 300;
}

.form-alert--error {
    background: rgba(196, 92, 92, 0.08);
    border: 1px solid rgba(196, 92, 92, 0.25);
    color: #a04545;
    font-size: 14px;
}

.contact-submit {
    align-self: flex-start;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding: calc(var(--header-h) + 40px) 0 80px;
    }

    .contact-form-wrap {
        padding: 28px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-submit {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Case study
   ============================================ */

.case-study {
    background: var(--surface);
}

.case-hero {
    padding: calc(var(--header-h) + 40px) 0 56px;
    background: var(--surface-warm);
}

.case-hero-top {
    padding-bottom: 24px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.case-hero-main {
    max-width: 780px;
}

.case-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    transition: color var(--transition);
}

.case-back:hover {
    color: var(--ink);
}

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

.case-title {
    font-size: clamp(30px, 4.2vw, 46px);
    font-weight: 200;
    line-height: 1.22;
    color: var(--ink);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.case-tagline {
    font-size: 17px;
    font-weight: 300;
    color: var(--ink-muted);
    margin-bottom: 32px;
    line-height: 1.65;
    max-width: 52ch;
}

.case-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.product-download-note {
    flex: 1 1 100%;
    max-width: 520px;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--ink-faint);
    margin: 4px 0 0;
}

.product-windows-notice {
    flex: 1 1 100%;
    max-width: 520px;
    padding: 16px 18px;
    border: 1px solid rgba(28, 28, 28, 0.14);
    border-radius: 12px;
    background: rgba(28, 28, 28, 0.03);
}
.product-windows-notice strong {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}
.product-windows-notice p {
    margin: 0;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.55;
    color: var(--ink-muted);
}
.product-windows-notice--cta {
    margin: 16px auto 0;
    text-align: left;
}

.case-live-btn {
    margin-top: 0;
}

.case-hero-visual {
    padding: 0 0 80px;
    background: var(--surface-warm);
}

.case-hero-image {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-hover);
}

.case-hero-placeholder {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

.case-browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border);
}

.case-browser-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-hover);
}

.case-browser-url {
    flex: 1;
    margin-left: 12px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 300;
    color: var(--ink-muted);
    background: var(--surface);
    border-radius: 6px;
    text-align: center;
}

.case-browser-body {
    padding: 48px 40px 56px;
}

.case-browser-line {
    height: 10px;
    width: 55%;
    background: var(--surface-muted);
    border-radius: 4px;
    margin-bottom: 16px;
}

.case-browser-line--wide {
    width: 75%;
    height: 14px;
    margin-bottom: 28px;
}

.case-browser-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.case-browser-blocks span {
    aspect-ratio: 4 / 3;
    background: var(--surface-muted);
    border-radius: var(--radius);
}

.case-body {
    padding-top: 80px;
    padding-bottom: 100px;
}

.case-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: start;
}

.case-section {
    margin-bottom: 56px;
}

.case-section:last-child {
    margin-bottom: 0;
}

.case-section h2 {
    font-size: 22px;
    font-weight: 300;
    color: var(--ink);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.case-section p {
    font-size: 16px;
    font-weight: 300;
    color: var(--ink-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.case-section p:last-child {
    margin-bottom: 0;
}

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

.case-features li {
    position: relative;
    padding-left: 20px;
    font-size: 15px;
    font-weight: 300;
    color: var(--ink-muted);
}

.case-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.case-modules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
}

.case-modules li {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.case-modules strong {
    font-size: 15px;
    font-weight: 400;
    color: var(--ink);
}

.case-modules span {
    font-size: 14px;
    font-weight: 300;
    color: var(--ink-muted);
    line-height: 1.55;
}

.case-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-steps li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 15px;
    font-weight: 300;
    color: var(--ink-muted);
}

.case-step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 400;
    color: var(--accent);
    background: var(--surface-warm);
    border: 1px solid var(--border);
    border-radius: 50%;
}

.case-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.case-meta-card {
    padding: 28px;
    background: var(--surface-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.case-meta-card h3 {
    font-size: 13px;
    font-weight: 400;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.case-meta-list > div {
    margin-bottom: 16px;
}

.case-meta-list > div:last-child {
    margin-bottom: 0;
}

.case-meta-list dt {
    font-size: 12px;
    font-weight: 400;
    color: var(--ink-faint);
    margin-bottom: 4px;
}

.case-meta-list dd {
    font-size: 14px;
    font-weight: 300;
    color: var(--ink);
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-tag {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 400;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
}

.case-fonts li {
    margin-bottom: 14px;
}

.case-fonts li:last-child {
    margin-bottom: 0;
}

.case-fonts strong {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 2px;
}

.case-fonts span {
    font-size: 13px;
    font-weight: 300;
    color: var(--ink-muted);
}

.case-colors li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.case-colors li:last-child {
    margin-bottom: 0;
}

.case-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.case-color-hex {
    font-size: 13px;
    font-weight: 400;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    min-width: 72px;
}

.case-color-label {
    font-size: 12px;
    font-weight: 300;
    color: var(--ink-muted);
}

.case-cta {
    padding: 0 0 100px;
}

@media (max-width: 1024px) {
    .case-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .case-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .case-hero {
        padding: calc(var(--header-h) + 28px) 20px 40px;
    }

    .case-hero-top {
        padding-bottom: 20px;
        margin-bottom: 32px;
    }

    .case-hero-visual {
        padding-bottom: 56px;
    }

    .case-browser-body {
        padding: 32px 24px 40px;
    }

    .case-body {
        padding-top: 56px;
        padding-bottom: 72px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .case-features {
        grid-template-columns: 1fr;
    }

    .case-modules {
        grid-template-columns: 1fr;
    }

    .case-sidebar {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
    padding: calc(var(--header-h) + 64px) 0 120px;
    background: var(--surface-warm);
    min-height: 100vh;
}

.legal-header {
    max-width: 720px;
    margin-bottom: 48px;
}

.legal-title {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-top: 16px;
    line-height: 1.15;
}

.legal-intro,
.legal-updated {
    font-size: 15px;
    font-weight: 300;
    color: var(--ink-muted);
    line-height: 1.75;
    margin-top: 16px;
}

.legal-updated {
    font-size: 13px;
    color: var(--ink-faint);
    margin-top: 12px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 56px;
    align-items: start;
}

.legal-nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.legal-nav a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 300;
    color: var(--ink-faint);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.legal-nav a:hover {
    color: var(--ink);
    background: var(--surface);
}

.legal-nav .is-active a {
    color: var(--ink);
    background: var(--surface);
    font-weight: 400;
}

.legal-content {
    max-width: 720px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 48px;
}

.legal-content > *:first-child {
    margin-top: 0;
}

.legal-content h2 {
    font-size: 18px;
    font-weight: 400;
    color: var(--ink);
    margin: 36px 0 14px;
    letter-spacing: -0.01em;
}

.legal-content h3 {
    font-size: 15px;
    font-weight: 400;
    color: var(--ink);
    margin: 24px 0 10px;
}

.legal-content p,
.legal-content li {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--ink-muted);
}

.legal-content p {
    margin-bottom: 14px;
}

.legal-content ul {
    margin: 0 0 16px 1.2em;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-content a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-content a:hover {
    color: var(--ink-muted);
}

.legal-content code {
    font-size: 13px;
    background: var(--surface-muted);
    padding: 2px 6px;
    border-radius: 4px;
}

.legal-index-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.legal-index-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    min-height: 140px;
}

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

.legal-index-card h2 {
    font-size: 18px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.legal-index-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 300;
    color: var(--ink-faint);
    letter-spacing: 0.02em;
}

.legal-index-card:hover .legal-index-link {
    color: var(--ink);
}

.form-privacy-note {
    font-size: 13px;
    font-weight: 300;
    color: var(--ink-faint);
    line-height: 1.6;
    margin-top: -8px;
    margin-bottom: 20px;
}

.form-privacy-note a {
    color: var(--ink-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 20px;
    background: rgba(28, 28, 28, 0.96);
    color: #f5f3ef;
    backdrop-filter: blur(8px);
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(245, 243, 239, 0.85);
    flex: 1;
    min-width: 240px;
}

.cookie-banner-text a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner .btn-ghost {
    background: var(--ink);
    color: var(--surface);
    border: 1px solid var(--ink);
}

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

.cookie-banner .btn-primary {
    background: var(--surface);
    color: var(--ink);
}

.cookie-banner .btn-primary:hover {
    background: #fff;
    color: var(--ink);
}

@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .legal-nav ul {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .legal-content {
        padding: 28px 24px;
    }

    .legal-index-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .legal-page {
        padding: calc(var(--header-h) + 40px) 0 80px;
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-banner-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* ============================================
   CJENOVNIK
   ============================================ */
.pricing-page {
    background: var(--surface);
}

.pricing-hero {
    padding: calc(var(--header-h) + 96px) 0 100px;
    background: var(--surface-warm);
    border-bottom: 1px solid var(--border);
}

.pricing-hero-inner {
    max-width: 850px;
}

.pricing-hero h1 {
    max-width: 780px;
    margin-bottom: 28px;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.045em;
    color: var(--ink);
}

.pricing-hero h1 em {
    font-weight: 300;
    color: var(--accent);
}

.pricing-hero p {
    max-width: 680px;
    font-size: 18px;
    line-height: 1.75;
}

.pricing-section {
    padding: 112px 0;
}

.pricing-section--warm {
    background: var(--surface-warm);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pricing-section-head {
    max-width: 680px;
    margin-bottom: 52px;
}

.pricing-section-head h2,
.pricing-social h2 {
    margin-bottom: 16px;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.pricing-section-head p {
    font-size: 16px;
}

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

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

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

.pricing-card--featured {
    border-color: rgba(196, 163, 90, 0.6);
}

.pricing-card-badge {
    align-self: flex-start;
    margin-bottom: 20px;
    padding: 5px 10px;
    border-radius: 100px;
    background: var(--accent-soft);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7a6528;
}

.pricing-card h3 {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 400;
    color: var(--ink);
}

.pricing-card-price {
    margin-bottom: 18px;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.pricing-card-desc {
    min-height: 84px;
    margin-bottom: 26px;
    font-size: 14px;
    line-height: 1.65;
}

.pricing-features {
    display: grid;
    gap: 11px;
    margin-bottom: 30px;
}

.pricing-features li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 4px;
    border-left: 1.5px solid var(--accent);
    border-bottom: 1.5px solid var(--accent);
    transform: rotate(-45deg);
}

.pricing-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* ============================================
   WEBSITE TEMPLATES
   ============================================ */
.templates-page-hero {
    padding: calc(var(--header-h) + 80px) 0 100px;
    background: var(--surface-warm);
}

.templates-page-hero-inner {
    max-width: 760px;
}

.templates-page-hero .page-hero-title {
    margin-top: 16px;
}

.templates-page-hero .page-hero-text {
    max-width: none;
}

.templates-page-hero .hero-actions {
    margin-top: 28px;
}

.templates-process {
    background: var(--surface);
}

.templates-package {
    background: var(--surface);
}

.templates-catalog {
    padding-top: 0;
}

.templates-grid {
    grid-template-columns: repeat(3, 1fr);
}

.template-card {
    position: relative;
}

.template-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.template-card-info {
    position: relative;
    z-index: 1;
}

.template-card-desc {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 300;
    color: var(--ink-muted);
    line-height: 1.75;
}

.template-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    font-size: 13px;
}

.template-card-meta strong {
    color: var(--ink);
    font-size: 18px;
    font-weight: 400;
}

.template-card-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.template-card-price small {
    font-size: 11px;
    font-weight: 300;
    color: var(--ink-muted);
    line-height: 1.35;
}

.template-card-meta a,
.template-card-meta span {
    position: relative;
    z-index: 3;
    color: var(--ink-muted);
}

.template-card-meta a:hover {
    color: var(--accent);
}

.template-card--soon {
    opacity: 0.92;
}

.template-preview {
    position: relative;
    padding: 0;
    background: #e8e6e1;
    overflow: hidden;
}

.template-preview-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform var(--transition);
}

.template-card:hover .template-preview-image {
    transform: scale(1.03);
}

.template-preview-browser,
.template-detail-visual {
    width: 100%;
}

.template-preview-browser {
    overflow: hidden;
    border: 1px solid rgba(16, 24, 32, 0.08);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.template-preview-top {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(16, 24, 32, 0.06);
    background: #f9f8f6;
}

.template-preview-top span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4d0c8;
}

.template-preview-body {
    padding: 18px;
}

.template-preview-hero {
    height: 120px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--template-accent, #0d3b66) 0%, #dfe9f2 100%);
    margin-bottom: 18px;
}

.template-preview-lines {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.template-preview-lines span {
    display: block;
    height: 9px;
    width: 100%;
    background: #edf1f4;
    border-radius: 999px;
}

.template-preview-lines span:nth-child(2) {
    width: 84%;
}

.template-preview-lines span:nth-child(3) {
    width: 66%;
}

.template-preview-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.template-preview-cards span {
    display: block;
    aspect-ratio: 1 / 0.84;
    border-radius: 14px;
    background: #eef2f5;
}

.template-status {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(16, 24, 32, 0.08);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    z-index: 2;
}

.template-visual-card .page-visual-screen {
    box-shadow: var(--shadow-hover);
}

.template-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.template-detail-visual {
    position: relative;
}

.template-price-badge {
    position: absolute;
    right: -14px;
    bottom: -14px;
    padding: 16px 20px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
}

.pricing-custom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    padding: 42px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.pricing-custom h3 {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
}

.pricing-custom p {
    max-width: 650px;
}

.pricing-custom-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    text-align: right;
}

.pricing-custom-action strong {
    font-size: 22px;
    font-weight: 400;
    color: var(--ink);
}

.pricing-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.pricing-service {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    background: var(--surface-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.pricing-service h3 {
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 400;
    color: var(--ink);
}

.pricing-service p {
    max-width: 390px;
    font-size: 13px;
    line-height: 1.55;
}

.pricing-service > strong {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 400;
    color: var(--ink);
    white-space: nowrap;
}

.pricing-social-section {
    padding-top: 0;
}

.pricing-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.pricing-social-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px 30px;
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    color: rgba(255, 255, 255, 0.7);
    transition: transform var(--transition), border-color var(--transition);
}

.pricing-social-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.28);
}

.pricing-social-card--featured {
    border-color: rgba(196, 163, 90, 0.75);
}

.pricing-social-card .pricing-card-badge {
    color: #ead9ad;
}

.pricing-social-card h3 {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 400;
    color: var(--surface);
}

.pricing-social-card-price {
    margin-bottom: 24px;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -0.03em;
    color: var(--surface);
}

.pricing-social-card-price span {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.55);
}

.pricing-social-card .pricing-features li {
    color: var(--surface);
}

.pricing-social-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.pricing-social-note {
    max-width: 850px;
    margin: 22px auto 0;
    font-size: 12px;
    line-height: 1.65;
    text-align: center;
    color: var(--ink-faint);
}

.pricing-note-section {
    padding: 0 0 60px;
}

.pricing-note {
    padding: 24px 28px;
    background: var(--accent-soft);
    border: 1px solid rgba(196, 163, 90, 0.28);
    border-radius: var(--radius);
}

.pricing-note strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.pricing-note p {
    font-size: 13px;
    line-height: 1.65;
}

.pricing-cta {
    padding-top: 40px;
}

@media (max-width: 960px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .templates-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card-desc {
        min-height: 0;
    }

    .pricing-social-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .templates-page-hero {
        padding: calc(var(--header-h) + 48px) 0 80px;
    }

    .pricing-hero {
        padding: calc(var(--header-h) + 56px) 0 64px;
    }

    .pricing-hero p {
        font-size: 16px;
    }

    .pricing-section {
        padding: 72px 0;
    }

    .pricing-section-head {
        margin-bottom: 36px;
    }

    .pricing-custom {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 24px;
    }

    .template-detail-actions {
        flex-direction: column;
    }

    .template-detail-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .template-preview-cards {
        grid-template-columns: 1fr;
    }

    .template-card-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .template-price-badge {
        position: static;
        display: inline-block;
        margin-top: 16px;
    }

    .pricing-custom-action {
        align-items: flex-start;
        text-align: left;
    }

    .pricing-services-grid {
        grid-template-columns: 1fr;
    }

    .pricing-service {
        flex-direction: column;
        gap: 12px;
    }

    .pricing-social-section {
        padding-top: 0;
    }
}
