/* === CONVRO — Główny styl === */

:root {
    --bg: #070C1B;
    --bg-elevated: #0C1225;
    --bg-soft: #050814;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --accent: #4F8DF9;
    --accent-soft: rgba(79, 141, 249, 0.14);
    --accent-strong: #2F6EE6;
    --text-main: #F4F5F7;
    --text-muted: #B5B7C3;
    --text-soft: #8D90A1;
    --danger: #F97373;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-pill: 999px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
    --shadow-subtle: 0 10px 26px rgba(0, 0, 0, 0.35);
}

/* Reset / global */

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: radial-gradient(circle at top, #0E1630 0, #070C1B 50%, #040614 100%);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* Layout */

.shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 18px;
}

.page-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 96px 18px 72px 18px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 12, 27, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
}

.brand {
    text-decoration: none;
    color: inherit;
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    box-shadow: var(--shadow-subtle);
}

.brand-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: lowercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.nav-link {
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--text-main);
    opacity: 0.88;
    transition: all 0.16s ease-out;
    background: transparent;
}

.nav-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.09);
}

.nav-link-outline {
    border-color: rgba(255, 255, 255, 0.18);
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 3.1fr) minmax(0, 2.4fr);
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.hero-copy {
    min-width: 0;
}

.hero-title {
    font-size: clamp(30px, 3.1vw, 36px);
    line-height: 1.16;
    margin: 0 0 16px 0;
}

.hero-lead {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0 0 20px 0;
}

.hero-lead strong {
    color: var(--text-main);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.17s ease-out;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 12px 30px rgba(79, 141, 249, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(79, 141, 249, 0.48);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.04);
}

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

/* Hero metrics */

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 6px;
}

.hero-metric {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(5, 8, 20, 0.8);
}

.metric-value {
    font-size: 14px;
    font-weight: 600;
    margin-right: 6px;
}

.metric-label {
    font-size: 11px;
    color: var(--text-soft);
}

.hero-note {
    margin: 0;
    font-size: 11px;
    color: var(--text-soft);
}

/* Hero visual */

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

.hero-banner {
    width: 100%;
    max-width: 360px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: radial-gradient(circle at top, #151E3B, #070C1B 70%);
}

.hero-banner-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Sections */

.section {
    margin-bottom: 64px;
}

.section-header {
    max-width: 620px;
    margin-bottom: 24px;
}

.section-header h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.section-header p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Tiles (kafelki) */

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

.tile {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: linear-gradient(145deg, rgba(5, 8, 20, 0.96), rgba(10, 16, 36, 0.96));
    padding: 10px 14px 10px;
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
}

.tile summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
}

.tile[open] summary {
    margin-bottom: 8px;
}

.tile summary::-webkit-details-marker {
    display: none;
}

.tile-body {
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-soft);
    padding-right: 4px;
}

.tile-arrow {
    font-size: 11px;
    color: var(--text-muted);
    transform-origin: center;
    transition: transform 0.16s ease-out;
}

.tile[open] .tile-arrow {
    transform: rotate(180deg);
}

/* Link w tekście */

.inline-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(79, 141, 249, 0.4);
    padding-bottom: 1px;
}

.inline-link:hover {
    border-bottom-color: rgba(79, 141, 249, 0.9);
}

/* Prose section */

.prose-section p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-muted);
    margin: 0 0 10px 0;
}

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

/* Case slider */

.cases-section {
    text-align: left;
}

.case-slider {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 10px;
}

.case-frame {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: radial-gradient(circle at top, rgba(16, 24, 52, 0.96), rgba(5, 8, 20, 0.98));
    padding: 18px 18px 16px 18px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.case-card {
    display: none;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
}

.case-card.is-active {
    display: grid;
}

.case-logo {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, var(--accent), var(--accent-strong));
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 14px 32px rgba(79, 141, 249, 0.6);
}

.case-content h3 {
    margin: 0 0 4px 0;
    font-size: 15px;
}

.case-industry {
    margin: 0 0 8px 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-soft);
}

.case-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-muted);
}

.case-nav {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(5, 8, 20, 0.95);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.16s ease-out;
}

.case-nav:hover {
    background: rgba(255, 255, 255, 0.04);
}

.case-counter {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-soft);
    text-align: center;
}

/* Bullets */

.bullets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.bullet-item {
    padding: 16px 16px 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: linear-gradient(135deg, rgba(5, 8, 20, 0.96), rgba(9, 14, 31, 0.96));
}

.bullet-index {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 4px;
}

.bullet-item h3 {
    margin: 0 0 6px 0;
    font-size: 14px;
}

.bullet-item p {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Pricing */

.pricing-section {
    margin-bottom: 64px;
}

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

.pricing-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: linear-gradient(150deg, #050814, #0C1225);
    padding: 18px 18px 16px 18px;
    box-shadow: var(--shadow-subtle);
    position: relative;
}

.pricing-card h3 {
    margin: 0 0 4px 0;
    font-size: 15px;
}

.pricing-tagline {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: var(--text-muted);
}

.pricing-price {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 600;
}

.pricing-list {
    list-style: none;
    margin: 0 0 14px 0;
    padding: 0;
    font-size: 12px;
    color: var(--text-soft);
}

.pricing-list li {
    margin-bottom: 5px;
    padding-left: 14px;
    position: relative;
}

.pricing-list li::before {
    content: "•";
    position: absolute;
    left: 2px;
    top: 0;
    font-size: 14px;
    color: var(--accent);
}

.pricing-card-featured {
    border-color: var(--accent);
    box-shadow: 0 18px 50px rgba(79, 141, 249, 0.55);
}

.pricing-badge {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 10px;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Legal */

.legal-section {
    margin-bottom: 72px;
}

.legal-section h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.legal-section p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0 0 8px 0;
}

.legal-list {
    margin: 0 0 10px 16px;
    padding: 0;
    font-size: 12px;
    color: var(--text-soft);
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border-subtle);
    background: #050814;
}

.footer-shell {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 20px 18px;
}

.footer-left {
    max-width: 360px;
}

.footer-copy {
    margin: 6px 0 0 0;
    font-size: 11px;
    color: var(--text-soft);
}

.footer-right {
    text-align: right;
    min-width: 0;
}

.footer-meta {
    margin: 0 0 4px 0;
    font-size: 11px;
    color: var(--text-muted);
}

.footer-meta-small {
    font-size: 10px;
    color: var(--text-soft);
}

/* Responsive */

@media (max-width: 880px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .hero-visual {
        order: -1;
    }

    .page-shell {
        padding-top: 88px;
    }
}

@media (max-width: 720px) {
    .header-shell {
        padding-inline: 14px;
    }

    .brand-text {
        font-size: 16px;
    }

    .main-nav {
        gap: 6px;
    }

    .nav-link {
        padding-inline: 12px;
    }

    .case-slider {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .case-nav {
        width: 36px;
        margin: 0 auto;
    }

    .footer-shell {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .footer-right {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .pricing-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tile-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
