/*
 * site.css – Sdílený design systém pro marketingové stránky www.qeron.cz
 * Načítá ho index, /produkty/ a /nastroje/. Nástroje používají tool.css.
 * Nav je v /assets/nav.js, patička v /assets/footer.js - tady jejich styly nepatří.
 */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --accent: #0ea5e9;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --gray: #64748b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(15,23,42,.08);
    --shadow-hover: 0 16px 48px rgba(37,99,235,.15);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--dark);
    margin: 0;
}

/* ── HERO (homepage) ── */
.hero {
    background:
        linear-gradient(135deg, rgba(15,23,42,.98) 0%, rgba(15,23,42,.96) 48%, rgba(30,58,95,.98) 100%),
        #0f172a;
    color: white;
    padding: 94px 24px 84px;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: .28;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 170px;
    background: linear-gradient(180deg, transparent, rgba(15,23,42,.72));
    pointer-events: none;
}
.hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 56px;
    align-items: center;
}
.hero-copy { max-width: 660px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37,99,235,.2);
    border: 1px solid rgba(37,99,235,.4);
    color: #93c5fd;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
    max-width: 100%;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    margin-bottom: 20px;
}
.hero h1 span {
    background: linear-gradient(90deg, #60a5fa, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 620px;
    margin: 0 0 34px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; }
.hero-proof {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 26px;
}
.hero-proof span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.08);
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,.12);
    padding: 8px 13px;
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 600;
}
.hero-metric-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 30px;
}
.hero-metric {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 12px 13px;
    min-height: 78px;
}
.hero-metric strong {
    display: block;
    color: white;
    font-size: .88rem;
    line-height: 1.25;
}
.hero-metric span {
    display: block;
    color: #94a3b8;
    font-size: .76rem;
    line-height: 1.35;
    margin-top: 5px;
}
.hero-visual { position: relative; }
.workflow-card {
    position: relative;
    background: rgba(255,255,255,.96);
    color: var(--dark);
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(2,6,23,.38);
    padding: 22px;
    overflow: hidden;
}
.workflow-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), #22c55e);
}
.workflow-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.workflow-header span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
}
.workflow-header h2 {
    font-size: 1.12rem;
    font-weight: 800;
    margin: 0 0 4px;
    letter-spacing: -.02em;
}
.workflow-header p {
    color: var(--gray);
    font-size: .82rem;
    line-height: 1.45;
    margin: 0;
}
.workflow-stack { display: grid; gap: 12px; }
.workflow-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 13px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px;
}
.workflow-row i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 12px;
    font-size: 1rem;
}
.workflow-row.ai i { color: #0284c7; background: #e0f2fe; }
.workflow-row.control i { color: #16a34a; background: #dcfce7; }
.workflow-row h3 {
    font-size: .95rem;
    font-weight: 800;
    margin: 0 0 3px;
    letter-spacing: -.01em;
}
.workflow-row p {
    color: var(--gray);
    font-size: .82rem;
    line-height: 1.45;
    margin: 0;
    max-width: none;
}
.workflow-output {
    margin-top: 14px;
    background: var(--dark);
    color: white;
    border-radius: 14px;
    padding: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.workflow-output strong {
    display: block;
    font-size: .98rem;
    margin-bottom: 3px;
}
.workflow-output span {
    color: #94a3b8;
    font-size: .8rem;
    line-height: 1.4;
}
.workflow-output i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}
.hero-note {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: .86rem;
    line-height: 1.5;
}
.hero-note i { color: #facc15; }
.btn-hero-primary {
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all .2s;
    border: none;
}
.btn-hero-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,.4); }
.btn-hero-secondary {
    background: rgba(255,255,255,.08);
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.15);
    transition: all .2s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.15); color: white; transform: translateY(-2px); }

/* ── PAGE HERO (podstránky) ── */
.page-hero {
    background:
        linear-gradient(135deg, rgba(15,23,42,.98) 0%, rgba(15,23,42,.96) 48%, rgba(30,58,95,.98) 100%),
        #0f172a;
    color: white;
    padding: 66px 24px 58px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: .28;
    pointer-events: none;
}
.page-hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.page-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.18;
    margin: 0 0 14px;
}
.page-hero p {
    font-size: 1.08rem;
    color: #94a3b8;
    max-width: 640px;
    margin: 0;
    line-height: 1.7;
}

/* ── STATS ── */
.stats-bar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 28px 24px;
}
.stats-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--primary); letter-spacing: -.03em; }
.stat-label { font-size: .85rem; color: var(--gray); margin-top: 2px; }

/* ── SECTION ── */
.section { padding: 80px 24px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 14px;
}
.section-header p {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}
.container-lg { max-width: 1140px; margin: 0 auto; }

/* ── PILLARS ── */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 28px;
}
.pillar-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 22px;
    box-shadow: var(--shadow);
}
.pillar-card i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--primary-light);
    color: var(--primary);
    margin-bottom: 14px;
    font-size: 1.05rem;
}
.pillar-card h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -.01em;
}
.pillar-card p {
    font-size: .9rem;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* ── ANALÝZA A IMPLEMENTACE AI ── */
.ai-impl-section { background: white; }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.step-card {
    position: relative;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 26px 26px;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 16px;
}
.step-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 10px;
}
.step-card p {
    font-size: .93rem;
    color: var(--gray);
    line-height: 1.65;
    margin: 0;
}
.step-card ul {
    margin: 12px 0 0;
    padding-left: 0;
    list-style: none;
}
.step-card li {
    font-size: .88rem;
    color: var(--dark-2);
    line-height: 1.5;
    padding-left: 24px;
    position: relative;
    margin-bottom: 7px;
}
.step-card li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 800;
}
.ai-impl-band {
    margin-top: 34px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    color: white;
    border-radius: var(--radius);
    padding: 30px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
}
.ai-impl-band h3 {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 8px;
}
.ai-impl-band p {
    color: #94a3b8;
    font-size: .95rem;
    line-height: 1.65;
    margin: 0;
    max-width: 640px;
}

/* ── NAUČÍME VÁS TO ── */
.learn-section {
    background: var(--primary-light);
    border-top: 1px solid #bfdbfe;
    border-bottom: 1px solid #bfdbfe;
}
.learn-section .step-card {
    background: white;
    box-shadow: var(--shadow);
}
.learn-section .step-num { background: var(--accent); }
.learn-extras { margin-top: 34px; }
.learn-extras > h3 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.02em;
    text-align: center;
    margin: 0 0 22px;
}
.learn-extras .service-item { background: white; }
.learn-band {
    margin-top: 34px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
}
.learn-band h3 {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 8px;
}
.learn-band p {
    color: var(--gray);
    font-size: .95rem;
    line-height: 1.65;
    margin: 0;
    max-width: 640px;
}
.learn-band p.learn-note {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: .88rem;
    color: var(--gray);
}
.learn-band p.learn-note i {
    color: var(--primary);
    margin-right: 7px;
}
.learn-band .btn-cta {
    background: var(--primary);
    color: white;
    flex-shrink: 0;
}
.learn-band .btn-cta:hover { background: var(--primary-dark); color: white; }

/* ── PRODUCT CARDS ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity .3s;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}
.product-card:hover::before { opacity: 1; }
.product-ribbon {
    position: absolute;
    top: 26px;
    right: -36px;
    width: 160px;
    text-align: center;
    color: white;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 8px 0;
    transform: rotate(45deg);
}
.product-icon {
    width: 56px; height: 56px;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 20px;
    flex-shrink: 0;
}
.product-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -.02em;
}
.product-card p {
    font-size: .95rem;
    color: var(--gray);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 24px;
}
.product-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 16px;
    align-self: flex-start;
}
.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 11px 22px;
    border-radius: 9px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: all .2s;
    align-self: flex-start;
}
.btn-card:hover { background: var(--primary-dark); color: white; transform: translateX(3px); }
.btn-card-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--primary);
    padding: 11px 22px;
    border-radius: 9px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    border: 1.5px solid var(--primary);
    transition: all .2s;
    align-self: flex-start;
}
.btn-card-outline:hover { background: var(--primary); color: white; }
.section-more {
    text-align: center;
    margin-top: 40px;
}

/* ── SERVICES ── */
.services-section { background: white; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.service-item {
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all .2s;
}
.service-item:hover { border-color: var(--primary); background: var(--primary-light); }
.service-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 14px;
    display: block;
}
.service-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.service-item p { font-size: .88rem; color: var(--gray); margin: 0; line-height: 1.6; }
a.service-link { display: block; text-decoration: none; color: inherit; background: white; }
a.service-link:hover h4 { color: var(--primary); }

/* ── AI FILOSOFIE ── */
.ai-section {
    background: var(--dark);
    color: white;
    padding: 82px 24px;
}
.ai-panel {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 44px;
    align-items: center;
}
.ai-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #93c5fd;
    background: rgba(37,99,235,.16);
    border: 1px solid rgba(147,197,253,.22);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.ai-panel h2 {
    font-size: clamp(1.9rem, 3vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.18;
    margin-bottom: 18px;
}
.ai-panel p {
    color: #cbd5e1;
    font-size: 1.03rem;
    line-height: 1.75;
    margin-bottom: 0;
}
.ai-list { display: grid; gap: 12px; }
.ai-list div {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 16px 18px;
    color: #e2e8f0;
    font-size: .94rem;
    line-height: 1.55;
}
.ai-list strong {
    color: white;
    display: block;
    margin-bottom: 3px;
}

/* ── CTA ── */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 50%, #0ea5e9 100%);
    color: white;
    padding: 80px 24px;
    text-align: center;
}
.cta-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 14px;
}
.cta-section p { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 520px; margin: 0 auto 36px; line-height: 1.7; }
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--primary);
    padding: 15px 36px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all .2s;
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.25); color: var(--primary-dark); }

/* ── COOKIE ── */
#cookie-banner {
    position: fixed;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 700px;
    background: var(--dark-2);
    border: 1px solid #334155;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    z-index: 9999;
    display: none;
    padding: 20px 24px;
}
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-text h6 { color: white; font-weight: 700; margin-bottom: 4px; font-size: .95rem; }
.cookie-text p { color: #94a3b8; font-size: .82rem; margin: 0; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-decline { background: transparent; border: 1px solid #475569; color: #94a3b8; padding: 8px 18px; border-radius: 8px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.btn-cookie-decline:hover { border-color: #64748b; color: white; }
.btn-cookie-accept { background: var(--primary); border: none; color: white; padding: 8px 18px; border-radius: 8px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.btn-cookie-accept:hover { background: var(--primary-dark); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hero { padding: 72px 18px 58px; }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    .hero-badge {
        white-space: normal;
        line-height: 1.45;
        border-radius: 12px;
    }
    .hero-actions a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .hero-metric-row { grid-template-columns: repeat(2, 1fr); }
    .workflow-card { border-radius: 14px; padding: 18px; }
    .workflow-header { flex-direction: column; }
    .workflow-output { align-items: flex-start; }
    .stats-inner { gap: 32px; }
    .products-grid { grid-template-columns: 1fr; }
    .pillars-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .ai-impl-band { flex-direction: column; align-items: flex-start; }
    .ai-panel { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1080px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 42px;
    }
    .hero-copy { max-width: 760px; }
    .hero-visual { max-width: 620px; }
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 2.05rem; }
    .hero-metric-row { grid-template-columns: 1fr; }
    .workflow-row { grid-template-columns: 1fr; }
    .workflow-output { flex-direction: column; }
}
