/* =========================================
   Ordexity - CSS Variables & Reset
   Styl: ciemne tło, akcent cyan/emerald/blue
   ========================================= */

:root {
    /* Colors - Dark theme */
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --white: #ffffff;

    /* Accent colors */
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --cyan-300: #67e8f9;
    --cyan-200: #a5f3fc;
    --emerald-400: #34d399;
    --emerald-300: #6ee7b7;
    --emerald-200: #a7f3d0;
    --blue-500: #3b82f6;
    --blue-400: #60a5fa;
    --blue-300: #93c5fd;

    /* Gradients */
    --gradient-text: linear-gradient(to right, #67e8f9, #a7f3d0, #93c5fd);
    --gradient-glow: linear-gradient(to right, rgba(6, 182, 212, 0.2), rgba(52, 211, 153, 0.15), rgba(59, 130, 246, 0.2));
    --gradient-glow-2: linear-gradient(to top right, rgba(59, 130, 246, 0.15), rgba(6, 182, 212, 0.1), rgba(52, 211, 153, 0.1));
    --gradient-card: linear-gradient(to bottom right, rgba(6, 182, 212, 0.2), rgba(52, 211, 153, 0.15), rgba(59, 130, 246, 0.2));
    --gradient-cta: linear-gradient(to right, rgba(6, 182, 212, 0.1), rgba(52, 211, 153, 0.05), rgba(59, 130, 246, 0.1));

    /* Background */
    --bg-primary: var(--slate-950);
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --container-max: 1152px;
    --section-padding: 4rem;
    --section-padding-lg: 5rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 1.875rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--slate-100);
    background-color: var(--bg-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
    list-style: none;
}

/* =========================================
   Container
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* =========================================
   Background Gradient (decorative)
   Height set by JS → --bg-h.  Parallax scrolls
   the tall element upward so it never runs out.
   ========================================= */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--bg-h, 100vh);
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
}

/* Top blob */
.bg-gradient::before {
    content: '';
    position: absolute;
    top: -10rem;
    left: 50%;
    transform: translateX(-50%);
    width: 920px;
    height: 540px;
    background: var(--gradient-glow);
    border-radius: 50%;
    filter: blur(80px);
}

/* Bottom blob */
.bg-gradient::after {
    content: '';
    position: absolute;
    bottom: -10rem;
    right: -220px;
    width: 520px;
    height: 520px;
    background: var(--gradient-glow-2);
    border-radius: 50%;
    filter: blur(80px);
}

/* JS-injected intermediate blobs */
.bg-gradient .bg-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo img,
.nav-logo-img {
    height: 2.75rem;
    width: auto;
    display: block;
    mix-blend-mode: lighten;
}

@media (min-width: 768px) {
    .nav-logo-img {
        height: 3.25rem;
    }
}

/* Wrapper: logo image + tagline poniżej */
.nav-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    line-height: 1;
}

.nav-logo-tagline {
    font-size: 0.5rem;
    font-weight: 600;
    color: var(--slate-400);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Logo w stopce — trochę mniejsze */
.nav-logo--footer .nav-logo-img {
    height: 1.875rem;
    opacity: 0.8;
}



.logo-fallback {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon-wrapper {
    position: relative;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    overflow: hidden;
}

.logo-icon-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, var(--cyan-400), var(--emerald-400), var(--blue-500));
    opacity: 0.8;
}

.logo-icon-inner {
    position: absolute;
    inset: 2px;
    background: var(--slate-950);
    border-radius: 0.875rem;
}

.logo-icon-center {
    position: relative;
    width: 1rem;
    height: 1rem;
    background: linear-gradient(to bottom right, var(--cyan-400), var(--emerald-400), var(--blue-500));
    border-radius: 0.375rem;
}

.logo-text-wrapper {
    line-height: 1;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--white);
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--slate-400);
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    color: var(--slate-300);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--white);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    cursor: pointer;
}

@media (max-width: 767px) {
    .nav-buttons .lang-switcher {
        display: none;
    }
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--slate-300);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

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

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

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

/* Mobile menu — prosty dropdown pod navbarem */
.nav-menu-mobile {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
    background: var(--slate-950);
    border-bottom: 1px solid var(--border-color);
}

.nav-menu-mobile.active {
    grid-template-rows: 1fr;
}

@media (min-width: 768px) {
    .nav-menu-mobile {
        display: none !important;
    }
}

/* Wewnętrzny wrapper — wymagany przez grid-rows trick */
.nav-menu-links {
    overflow: hidden;
}

.nav-menu-links .nav-link {
    display: block;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate-300);
    border-bottom: 1px solid var(--border-color);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-menu-links .nav-link:last-child {
    border-bottom: none;
}

.nav-menu-links .nav-link:hover,
.nav-menu-links .nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.04);
}

/* CTA in mobile menu */
.nav-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.75rem 1.25rem;
    padding: 0.875rem;
    border-radius: var(--radius-md);
}

/* Lang switcher in mobile menu */
.lang-switcher--mobile {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--border-color);
    justify-content: flex-start;
    gap: 0.5rem;
}

body.menu-open {
    overflow: hidden;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--white);
    color: var(--slate-900);
}

.btn-primary:hover {
    background: var(--slate-200);
}

.btn-primary .btn-icon {
    transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-icon {
    transform: translateX(2px);
}

.btn-ghost {
    background: transparent;
    color: var(--slate-300);
}

.btn-ghost:hover {
    color: var(--white);
    background: var(--bg-card);
}

.btn-outline {
    background: var(--bg-card);
    color: var(--white);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-card-hover);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-icon {
    width: 1rem;
    height: 1rem;
}

/* =========================================
   Badges
   ========================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--slate-300);
}

.badge-accent {
    background: rgba(6, 182, 212, 0.15);
    color: var(--cyan-200);
    border: none;
}

.badge-dark {
    background: rgba(2, 6, 23, 0.4);
    color: var(--slate-200);
}

.badge-icon {
    width: 1rem;
    height: 1rem;
    color: var(--cyan-200);
}

/* =========================================
   Cards
   ========================================= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.card:hover {
    background: var(--bg-card-hover);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.875rem;
    color: var(--slate-300);
    line-height: 1.6;
}

/* Pill Card (icon + text) */
.pill-card {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
}

.pill-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    margin-top: 0.125rem;
}

.pill-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--cyan-200);
}

.pill-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
}

.pill-text {
    font-size: 0.875rem;
    color: var(--slate-300);
    margin-top: 0.25rem;
}

/* Stat Card */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 1.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--slate-300);
    margin-top: 0.25rem;
}

/* Service Card */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
}

.service-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}

.service-card-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-card-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--slate-300);
}

.service-card-item svg {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    color: var(--cyan-200);
    margin-top: 0.125rem;
}

/* Step Card */
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.step-number {
    font-size: 0.875rem;
    color: var(--slate-400);
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
}

.step-text {
    font-size: 0.875rem;
    color: var(--slate-300);
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Case Card */
.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
}

.case-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}

.case-text {
    font-size: 0.875rem;
    color: var(--slate-300);
    line-height: 1.6;
    margin-top: 0.5rem;
}

.case-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* FAQ Card */
.faq-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
}

.faq-question {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
}

.faq-answer {
    font-size: 0.875rem;
    color: var(--slate-300);
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Result Card (special) */
.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    margin-top: 1rem;
}

.result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.result-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
}

.result-text {
    font-size: 0.875rem;
    color: var(--slate-300);
    line-height: 1.6;
    margin-top: 0.25rem;
}

/* =========================================
   CTA Box
   ========================================= */
.cta-box {
    background: var(--gradient-cta);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-3xl);
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .cta-box {
        padding: 2rem;
    }
}

.cta-box-alt {
    background: var(--bg-card);
}

.cta-content {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .cta-content {
        grid-template-columns: 2fr 1fr;
        align-items: center;
    }
}

.cta-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
}

@media (min-width: 640px) {
    .cta-title {
        font-size: 1.25rem;
    }
}

.cta-text {
    font-size: 0.875rem;
    color: var(--slate-300);
    margin-top: 0.5rem;
}

/* Stacked CTA: text above button, centered */
.cta-content--stacked {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.cta-content--stacked .btn {
    width: auto;
}

.cta-button {
    text-align: left;
}

@media (min-width: 1024px) {
    .cta-button {
        text-align: right;
    }
}

/* =========================================
   Sections
   ========================================= */
.section {
    position: relative;
    padding: var(--section-padding) 0;
}

@media (min-width: 640px) {
    .section {
        padding: var(--section-padding-lg) 0;
    }
}

.section-border {
    border-top: 1px solid var(--border-color);
}

/* Section Header */
.section-header {
    max-width: 42rem;
}

.section-header.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--slate-300);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
}

.section-eyebrow svg {
    width: 1rem;
    height: 1rem;
    color: var(--cyan-200);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--white);
    line-height: 1.3;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 1.875rem;
    }
}

.section-desc {
    font-size: 1rem;
    color: var(--slate-300);
    margin-top: 0.75rem;
    line-height: 1.6;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    padding-top: 3rem;
    padding-bottom: 3.5rem;
}

@media (min-width: 640px) {
    .hero {
        padding-top: 4rem;
        padding-bottom: 5rem;
    }
}

.hero-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 7fr 5fr;
        gap: 3rem;
    }
}

.hero-content {
    max-width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--slate-300);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.25rem 0.75rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--white);
    line-height: 1.15;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-title-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1rem;
    color: var(--slate-300);
    line-height: 1.7;
    margin-top: 1.25rem;
    max-width: 42rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-stats {
    display: grid;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

@media (min-width: 640px) {
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hero-cards {
    display: grid;
    gap: 1rem;
}

/* =========================================
   Grid layouts
   ========================================= */
.grid-2 {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-3 {
    display: grid;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-split {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .grid-split {
        grid-template-columns: 5fr 7fr;
        gap: 3rem;
    }
}

/* =========================================
   Footer
   ========================================= */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--slate-400);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--slate-300);
}

.footer-link:hover {
    color: var(--white);
}

/* =========================================
   Animations
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease forwards;
}

.animate-delay-1 { animation-delay: 0.05s; }
.animate-delay-2 { animation-delay: 0.1s; }
.animate-delay-3 { animation-delay: 0.15s; }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Utility
   ========================================= */
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }

.text-center { text-align: center; }

.hidden { display: none !important; }

@media (max-width: 767px) {
    .hidden-mobile { display: none !important; }
}

/* SVG Icons inline */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

/* =========================================
   Contact Form
   ========================================= */
.contact-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 3rem;
    }
}

.contact-info-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.contact-info-text {
    font-size: 0.875rem;
    color: var(--slate-300);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-detail-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
}

.contact-detail-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--cyan-200);
}

.contact-detail-label {
    font-size: 0.75rem;
    color: var(--slate-400);
    margin-bottom: 0.125rem;
}

.contact-detail-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .contact-form-wrapper {
        padding: 2rem;
    }
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-300);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--slate-500);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--cyan-500);
    background: rgba(255, 255, 255, 0.08);
}

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

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

.form-select option {
    background: var(--slate-900);
    color: var(--white);
}

.form-row {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-success {
    text-align: center;
    padding: 2rem;
}

.form-success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.form-success-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--emerald-400);
    margin-bottom: 0.5rem;
}

.form-success-text {
    font-size: 0.875rem;
    color: var(--slate-300);
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--slate-800);
    color: var(--white);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--emerald-400);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    z-index: 100;
}

.toast-error {
    border-left-color: #ef4444;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* =========================================
   Partners Section
   ========================================= */
.partners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.partner-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    transition: all var(--transition-slow);
}

.partner-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

/* Avatar */
.partner-avatar-wrapper {
    position: relative;
    width: 7rem;
    height: 7rem;
    flex-shrink: 0;
}

.partner-avatar {
    width: 7rem;
    height: 7rem;
    border-radius: var(--radius-full);
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.partner-avatar-fallback {
    display: none;
    width: 7rem;
    height: 7rem;
    border-radius: var(--radius-full);
    background: var(--gradient-card);
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.partner-avatar-fallback svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--cyan-300);
}

/* Gradient ring around avatar */
.partner-avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--cyan-400), var(--emerald-400), var(--blue-500));
    z-index: 0;
}

.partner-avatar-ring::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: var(--radius-full);
    background: var(--slate-900);
}

/* When image is displayed, re-order z-index */
.partner-avatar-wrapper .partner-avatar {
    z-index: 2;
}
.partner-avatar-wrapper .partner-avatar-fallback {
    z-index: 2;
}

/* Partner info */
.partner-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.partner-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
}

.partner-role {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cyan-400);
    letter-spacing: 0.01em;
}

.partner-bio {
    font-size: 0.875rem;
    color: var(--slate-300);
    line-height: 1.65;
    margin-top: 0.25rem;
}

.partner-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* =========================================
   Partner card — color variants
   ========================================= */

/* ── Blue — Tech / System / Implementation ── */
.partner-card--blue {
    background: linear-gradient(160deg,
        rgba(59, 130, 246, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 60%,
        rgba(96, 165, 250, 0.05) 100%
    );
    border-color: rgba(59, 130, 246, 0.28);
    box-shadow: 0 0 36px rgba(59, 130, 246, 0.07);
}
.partner-card--blue:hover {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.12);
}
.partner-card--blue .partner-avatar-ring {
    background: linear-gradient(135deg, var(--blue-400), var(--blue-300), var(--cyan-400));
}
.partner-card--blue .partner-role {
    color: var(--blue-400);
}

/* ── Green — Value Creation / Results ── */
.partner-card--green {
    background: linear-gradient(160deg,
        rgba(52, 211, 153, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 60%,
        rgba(110, 231, 183, 0.05) 100%
    );
    border-color: rgba(52, 211, 153, 0.28);
    box-shadow: 0 0 36px rgba(52, 211, 153, 0.07);
}
.partner-card--green:hover {
    border-color: rgba(52, 211, 153, 0.45);
    box-shadow: 0 16px 40px rgba(52, 211, 153, 0.12);
}
.partner-card--green .partner-avatar-ring {
    background: linear-gradient(135deg, var(--emerald-400), var(--emerald-300), var(--cyan-300));
}
.partner-card--green .partner-role {
    color: var(--emerald-400);
}

/* ── Cyan — Process Analysis ── */
.partner-card--cyan {
    background: linear-gradient(160deg,
        rgba(6, 182, 212, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 60%,
        rgba(34, 211, 238, 0.05) 100%
    );
    border-color: rgba(6, 182, 212, 0.28);
    box-shadow: 0 0 36px rgba(6, 182, 212, 0.07);
}
.partner-card--cyan:hover {
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: 0 16px 40px rgba(6, 182, 212, 0.12);
}
.partner-card--cyan .partner-avatar-ring {
    background: linear-gradient(135deg, var(--cyan-500), var(--cyan-400), var(--cyan-300));
}
.partner-card--cyan .partner-role {
    color: var(--cyan-400);
}

/* ── Red (muted) — Risk Analysis & Mitigation ── */
.partner-card--red {
    background: linear-gradient(160deg,
        rgba(153, 27, 27, 0.09) 0%,
        rgba(255, 255, 255, 0.03) 60%,
        rgba(185, 28, 28, 0.06) 100%
    );
    border-color: rgba(185, 28, 28, 0.26);
    box-shadow: 0 0 36px rgba(153, 27, 27, 0.07);
}
.partner-card--red:hover {
    border-color: rgba(185, 28, 28, 0.42);
    box-shadow: 0 16px 40px rgba(153, 27, 27, 0.11);
}
.partner-card--red .partner-avatar-ring {
    background: linear-gradient(135deg, #7f1d1d, #b91c1c, #ef4444);
}
.partner-card--red .partner-role {
    color: #fca5a5; /* red-300 — czytelne na ciemnym tle, nie krzyczy */
}


.founder-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    max-width: 860px;
    margin: 0 auto;
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 50%,
        rgba(109, 40, 217, 0.06) 100%
    );
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: var(--radius-2xl);
    padding: 2.5rem 2rem;
    box-shadow: 0 0 48px rgba(139, 92, 246, 0.07);
}

@media (min-width: 768px) {
    .founder-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
        padding: 3rem 3.5rem;
    }
}

/* Founder avatar */
.founder-avatar-wrapper {
    position: relative;
    width: 10rem;
    height: 10rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .founder-avatar-wrapper {
        width: 12rem;
        height: 12rem;
    }
}

.founder-avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
}

.founder-avatar-fallback {
    display: none;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--gradient-card);
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.founder-avatar-fallback svg {
    width: 3.5rem;
    height: 3.5rem;
    color: var(--cyan-300);
}

.founder-avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--cyan-400), var(--emerald-400), var(--blue-500));
    z-index: 0;
}

.founder-avatar-ring::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: var(--radius-full);
    background: var(--slate-950);
}

/* Founder content */
.founder-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    text-align: center;
}

@media (min-width: 768px) {
    .founder-content {
        text-align: left;
    }
}

.founder-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cyan-400);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .founder-eyebrow {
        justify-content: flex-start;
    }
}

.founder-eyebrow svg {
    width: 1rem;
    height: 1rem;
}

.founder-name {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin: 0;
}

@media (min-width: 768px) {
    .founder-name {
        font-size: 2.25rem;
    }
}

.founder-role {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--cyan-300);
}

.founder-bio {
    font-size: 1rem;
    color: var(--slate-300);
    line-height: 1.75;
    margin: 0.25rem 0 0;
    text-align: justify;
}

.founder-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .founder-tags {
        justify-content: flex-start;
    }
}

/* =========================================
   Language Switcher
   ========================================= */

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lang-btn {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--slate-400);
    padding: 0.25rem 0.375rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    text-decoration: none;
}

.lang-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.lang-btn--active {
    color: var(--cyan-400);
}

.lang-sep {
    color: var(--slate-700);
    font-size: 0.7rem;
    user-select: none;
}

/* =========================================
   Scroll To Top FAB
   ========================================= */

.scroll-top-btn {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--slate-900);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 35;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(0.75rem) scale(0.85);
    pointer-events: none;
    transition: opacity 0.25s ease,
                transform 0.25s ease,
                background 0.15s ease;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.scroll-top-btn:hover {
    background: var(--slate-200);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.scroll-top-btn:active {
    transform: translateY(0) scale(0.95);
}

.scroll-top-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* On desktop hide FAB — users have mouse and scrollbar */
@media (min-width: 1024px) {
    .scroll-top-btn {
        display: none;
    }
}

/* =========================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ========================================= */

/* 1. Prevent horizontal overflow — clip nie psuje position:sticky w odróżnieniu od hidden */
html {
    overflow-x: clip;
}
body {
    overflow-x: clip;
}

/* 2. Reduce section/hero padding on mobile */
@media (max-width: 639px) {
    :root {
        --section-padding: 2.5rem;
        --section-padding-lg: 2.5rem;
    }

    .hero {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }
}

/* 3. Navbar: hide primary CTA button on very small screens */
@media (max-width: 479px) {
    .nav-buttons .btn-primary {
        display: none;
    }

    /* Compact logo tagline on tiny screens */
    .logo-tagline {
        display: none;
    }

    .logo-icon-wrapper {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* 4. Hero title scale on small phones */
@media (max-width: 399px) {
    .hero-title {
        font-size: 1.75rem;
    }
}

/* 5. Hero stats: show 3 cols from 480px instead of 640px */
@media (min-width: 480px) and (max-width: 639px) {
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 6. Hero buttons: full width on mobile */
@media (max-width: 479px) {
    .hero-buttons {
        flex-direction: column;
    }

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

/* 7. iOS zoom prevention — inputs must be 16px */
@media (max-width: 767px) {
    .form-input,
    .form-textarea,
    .form-select {
        font-size: 16px;
    }

    /* Prevent iOS tap highlight */
    input, select, textarea, button {
        -webkit-tap-highlight-color: transparent;
    }
}

/* 8. Reduce card padding on small screens */
@media (max-width: 479px) {
    .service-card,
    .step-card,
    .case-card,
    .faq-card {
        padding: 1.25rem 1rem;
    }

    .partner-card {
        padding: 1.5rem 1rem;
    }

    .founder-wrapper {
        padding: 1.75rem 1.25rem;
        gap: 1.75rem;
    }

    .cta-box {
        padding: 1.25rem 1rem;
    }

    .contact-form-wrapper {
        padding: 1.25rem 1rem;
    }
}

/* 9. Fix grid-2 on medium mobile: still 1 col below 480px */
@media (max-width: 479px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* 10. Partners grid: 1 col on all mobile */
@media (max-width: 639px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .partner-card {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1.25rem;
    }

    .partner-avatar-wrapper {
        width: 5rem;
        height: 5rem;
        flex-shrink: 0;
    }

    .partner-avatar,
    .partner-avatar-fallback {
        width: 5rem;
        height: 5rem;
    }

    .partner-info {
        align-items: flex-start;
    }

    .partner-tags {
        justify-content: flex-start;
    }
}

/* 11. Founder section: reduce avatar on small screens */
@media (max-width: 479px) {
    .founder-avatar-wrapper {
        width: 8rem;
        height: 8rem;
    }
}

/* 12. Fix toast on mobile (full-width at bottom) */
@media (max-width: 479px) {
    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        width: auto;
    }
}

/* 13. CTA box button full width on mobile */
@media (max-width: 639px) {
    .cta-button .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 14. Section title smaller on tiny screens */
@media (max-width: 399px) {
    .section-title {
        font-size: 1.375rem;
    }

    .founder-name {
        font-size: 1.5rem;
    }
}

/* 15. Result card: stack badge below text on tiny screens */
@media (max-width: 399px) {
    .result-header {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* 16. Fix hero-cards pills on mobile: smaller gap */
@media (max-width: 479px) {
    .hero-cards {
        gap: 0.75rem;
    }

    .pill-card {
        padding: 0.875rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }
}

/* 17. Smooth scrolling offset fix for sticky navbar on mobile */
@media (max-width: 767px) {
    .section {
        scroll-margin-top: 4.5rem;
    }
}

/* 18. Ensure nav doesn't overflow */
@media (max-width: 767px) {
    .nav-container {
        padding: 0.75rem 0;
    }
}

/* =========================================
   Value Page — specific components
   =========================================

/* Nav active / value highlight */
.nav-link--value {
    color: var(--cyan-400);
    font-weight: 600;
}
.nav-link--value:hover,
.nav-link--active.nav-link--value {
    color: var(--cyan-300);
}

/* ── Desktop Dropdown ─────────────────────────────────────── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.875rem;
    color: var(--slate-300);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color var(--transition-fast);
    font-family: var(--font-family);
    font-weight: inherit;
}

.nav-dropdown-trigger:hover {
    color: var(--white);
}

.nav-link--value.nav-dropdown-trigger {
    color: var(--cyan-400);
    font-weight: 600;
}

.nav-link--value.nav-dropdown-trigger:hover {
    color: var(--cyan-300);
}

.nav-dropdown-arrow {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown.open  .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 0.875rem);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 200px;
    background: var(--slate-900);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 0.375rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base);
    z-index: 200;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    white-space: nowrap;
}

/* Right-aligned panel (for Build Value — near right edge) */
.nav-dropdown-panel--right {
    left: auto;
    right: 0;
    transform: translateY(-6px);
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown.open  .nav-dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown:hover .nav-dropdown-panel--right,
.nav-dropdown.open  .nav-dropdown-panel--right {
    transform: translateY(0);
}

/* Small arrow / caret above panel */
.nav-dropdown-panel::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--slate-900);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.nav-dropdown-panel--right::before {
    left: auto;
    right: 1.25rem;
    transform: rotate(45deg);
}

.nav-dropdown-item {
    display: block;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    color: var(--slate-300);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-dropdown-item:hover {
    color: var(--white);
    background: rgba(255,255,255,0.06);
}

.nav-dropdown-item--overview {
    color: var(--cyan-400);
    font-weight: 600;
    font-size: 0.8125rem;
}

.nav-dropdown-item--overview:hover {
    color: var(--cyan-300);
    background: rgba(6,182,212,0.08);
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.25rem 0.5rem;
}

/* ── Mobile collapsible group ─────────────────────────────── */
.nav-mobile-group {
    border-bottom: 1px solid var(--border-color);
}

.nav-mobile-group-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate-300);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    transition: color var(--transition-fast), background var(--transition-fast);
    text-align: left;
}

.nav-mobile-group-trigger:hover {
    color: var(--white);
    background: rgba(255,255,255,0.04);
}

.nav-mobile-group-trigger[aria-expanded="true"] .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-mobile-group-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0,0,0,0.2);
}

.nav-mobile-group-items.open {
    max-height: 400px;
}

.nav-link--sub {
    display: block;
    padding: 0.75rem 1.25rem 0.75rem 2rem;
    font-size: 0.875rem;
    color: var(--slate-400);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link--sub:last-child {
    border-bottom: none;
}

.nav-link--sub:hover {
    color: var(--white);
    background: rgba(255,255,255,0.04);
}

.nav-link--sub-overview {
    color: var(--cyan-400);
    font-weight: 600;
}

.nav-link--sub-overview:hover {
    color: var(--cyan-300);
}

/* ── Before / After Table ─────────────────────────────────── */
.value-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    margin-top: 2.5rem;
}

.value-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    min-width: 640px;
}

.value-table thead tr {
    background: rgba(255,255,255,0.05);
}

.value-table th,
.value-table td {
    padding: 0.875rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.value-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-400);
}

.value-table tbody tr:last-child td {
    border-bottom: none;
}

.value-table tbody tr:hover td {
    background: rgba(255,255,255,0.03);
}

.value-table .proc-name {
    font-weight: 600;
    color: var(--white);
}

.value-table .col-before {
    color: var(--slate-400);
}

.value-table .col-after {
    color: var(--emerald-300);
}

.effect-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: rgba(34, 211, 153, 0.12);
    color: var(--emerald-300);
    border: 1px solid rgba(34, 211, 153, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

/* ── ROI Calculator ───────────────────────────────────────── */
.roi-calculator {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    margin-top: 2.5rem;
}

.roi-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .roi-inputs {
        grid-template-columns: 1fr;
    }
}

.roi-field {}

.roi-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--slate-400);
    margin-bottom: 0.4rem;
}

.roi-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 600;
    transition: border-color var(--transition-fast);
}

.roi-input:focus {
    outline: none;
    border-color: var(--cyan-500);
}

.roi-results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
    .roi-results {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .roi-results {
        grid-template-columns: 1fr;
    }
}

.roi-result-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
}

.roi-result-card--accent {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.25);
}

.roi-result-label {
    font-size: 0.75rem;
    color: var(--slate-400);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.roi-result-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.roi-result-card--accent .roi-result-value {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roi-disclaimer {
    font-size: 0.75rem;
    color: var(--slate-500);
    text-align: center;
    margin-bottom: 0;
}

/* ── Case Study Cards ─────────────────────────────────────── */
.value-case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: background var(--transition-base), border-color var(--transition-base);
}

.value-case-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255,255,255,0.18);
}

.value-case-tag {
    margin-bottom: 1rem;
}

.value-case-lines {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.value-case-lines li {
    font-size: 0.875rem;
    color: var(--slate-300);
    line-height: 1.55;
    display: flex;
    gap: 0.5rem;
}

.value-case-lines li strong {
    color: var(--slate-500);
    flex-shrink: 0;
}

.value-case-result {
    color: var(--emerald-300) !important;
    font-weight: 500;
    margin-top: 0.25rem;
}

.value-case-result strong {
    color: var(--emerald-400) !important;
}

/* ── Methodology Quote ────────────────────────────────────── */
.value-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--slate-200);
    line-height: 1.7;
    text-align: center;
    padding: 0 2rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 640px) {
    .value-quote {
        font-size: 1rem;
        padding: 0;
    }
}

/* ── Industry Cards ───────────────────────────────────────── */
.industry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    transition: background var(--transition-base), border-color var(--transition-base);
}

.industry-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255,255,255,0.18);
}

.industry-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.industry-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cyan-400);
}

.industry-skip-label {
    color: var(--slate-500);
    margin-top: 0.375rem;
}

.industry-cases {
    font-size: 0.84rem;
    color: var(--slate-300);
    line-height: 1.55;
}

.industry-skip {
    font-size: 0.84rem;
    color: var(--slate-500);
    line-height: 1.5;
}

.industry-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.industry-diff-label {
    font-size: 0.75rem;
    color: var(--slate-400);
}

/* ── Honest AI Cards ──────────────────────────────────────── */
.honest-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: background var(--transition-base);
}

.honest-card:hover {
    background: var(--bg-card-hover);
}

.honest-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    color: var(--slate-500);
}

.honest-icon svg {
    width: 100%;
    height: 100%;
}

.honest-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.375rem;
}

.honest-text {
    font-size: 0.875rem;
    color: var(--slate-400);
    line-height: 1.6;
}

/* =========================================
   Privacy Policy Modal
   ========================================= */
.privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

.privacy-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.privacy-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.privacy-modal-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: var(--slate-900);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
    transform: translateY(16px) scale(0.98);
    transition: transform var(--transition-slow);
    overflow: hidden;
}

.privacy-modal.open .privacy-modal-box {
    transform: translateY(0) scale(1);
}

.privacy-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.privacy-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
}

.privacy-modal-updated {
    font-size: 0.75rem;
    color: var(--slate-500);
    margin-top: 0.25rem;
    display: block;
}

.privacy-modal-close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast);
    cursor: pointer;
    background: none;
    border: none;
}

.privacy-modal-close:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.privacy-modal-close svg {
    width: 1.125rem;
    height: 1.125rem;
}

.privacy-modal-body {
    overflow-y: auto;
    padding: 1.5rem 1.75rem 2rem;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}

/* Scrollbar styling inside modal */
.privacy-modal-body::-webkit-scrollbar       { width: 5px; }
.privacy-modal-body::-webkit-scrollbar-track { background: transparent; }
.privacy-modal-body::-webkit-scrollbar-thumb { background: var(--slate-700); border-radius: var(--radius-full); }

/* Privacy content typography */
.privacy-modal-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin: 1.5rem 0 0.5rem;
}

.privacy-modal-body h3:first-child {
    margin-top: 0;
}

.privacy-modal-body h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-300);
    margin: 1rem 0 0.375rem;
}

.privacy-modal-body p {
    font-size: 0.875rem;
    color: var(--slate-400);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.privacy-modal-body ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.privacy-modal-body li {
    font-size: 0.875rem;
    color: var(--slate-400);
    line-height: 1.65;
    margin-bottom: 0.25rem;
}

.privacy-modal-body a {
    color: var(--cyan-400);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-modal-body a:hover {
    color: var(--cyan-300);
}

@media (max-width: 639px) {
    .privacy-modal-box {
        max-height: 92vh;
        border-radius: var(--radius-xl);
    }

    .privacy-modal-header,
    .privacy-modal-body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* =========================================
   Cookie Banner
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    background: rgba(15, 23, 42, 0.97);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

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

.cookie-banner-text {
    flex: 1;
    font-size: 0.8125rem;
    color: var(--slate-400);
    line-height: 1.55;
    margin: 0;
}

.cookie-banner-link {
    color: var(--cyan-400);
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.cookie-banner-link:hover {
    color: var(--cyan-300);
}

.cookie-banner-dismiss {
    flex-shrink: 0;
    padding: 0.5rem 1.125rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--slate-900);
    background: var(--white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
    font-family: var(--font-family);
    white-space: nowrap;
}

.cookie-banner-dismiss:hover {
    background: var(--slate-200);
}

@media (max-width: 639px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
    }

    .cookie-banner-dismiss {
        width: 100%;
        text-align: center;
    }
}
