:root {
    --ink: #0b1324;
    --ink-2: #1c2740;
    --text: #3d4a63;
    --muted: #6b7890;
    --bg: #ffffff;
    --bg-alt: #f4f7fc;
    --line: #e3e9f3;
    --accent: #2563eb;
    --accent-2: #06b6d4;
    --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
    --radius: 18px;
    --shadow: 0 10px 30px -12px rgba(11, 19, 36, .18);
    --shadow-lg: 0 30px 60px -20px rgba(11, 19, 36, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--accent);
    margin-bottom: 14px;
}
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; max-width: 60ch; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: 14px 24px;
    border: 0; border-radius: 999px;
    background: var(--grad);
    color: #fff; font: inherit; font-weight: 700; font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .7);
    transition: transform .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(37, 99, 235, .8); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn-small { padding: 9px 18px; font-size: .92rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(11,19,36,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: var(--ink-2); font-weight: 600; font-size: .97rem; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--accent); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px; }
.nav-toggle .icon { width: 28px; height: 28px; }

/* Hero */
.hero {
    position: relative; overflow: hidden;
    background: var(--ink);
    color: #b8c3d9;
    padding: 96px 0 110px;
}
.hero::before, .hero::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none;
}
.hero::before { width: 520px; height: 520px; background: #1d4ed8; top: -180px; right: -80px; }
.hero::after { width: 420px; height: 420px; background: #0891b2; bottom: -220px; left: -120px; opacity: .35; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #7dd3fc; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 36px; }
.pillars { display: flex; flex-wrap: wrap; gap: 10px; }
.pillar {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px 8px 10px; border-radius: 999px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    color: #e2e8f5; font-size: .9rem; font-weight: 600;
    transition: background .2s, border-color .2s;
}
.pillar:hover { text-decoration: none; background: rgba(255,255,255,.12); border-color: rgba(125,211,252,.5); }
.pillar .icon { color: #7dd3fc; }

.hero-visual { position: relative; height: 440px; }
.hv { position: absolute; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08); }
.hv-1 { width: 68%; height: 62%; top: 0; right: 0; }
.hv-2 { width: 58%; height: 46%; bottom: 8%; left: 0; background: #fff; }
.hv-3 { width: 40%; height: 36%; bottom: 0; right: 6%; }
.hv-badge {
    position: absolute;
    display: flex; gap: 12px; align-items: center;
    background: rgba(255,255,255,.95); color: var(--ink);
    padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: .92rem; line-height: 1.3;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}
.hv-badge small { font-weight: 500; color: var(--muted); }
.hv-badge .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--grad); color: #fff; }
.hv-badge-1 { left: 2%; top: 12%; }
.hv-badge-2 { right: 0; bottom: 40%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head p { font-size: 1.08rem; }

/* Hlavní řešení */
.solutions-section { overflow: hidden; }
.solution {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
    padding: 56px 0; border-top: 1px solid var(--line);
}
.solution:first-of-type { border-top: 0; padding-top: 0; }
.solution-flip .solution-copy { order: 2; }
.solution h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; margin-bottom: .6em; }
.solution-copy > p { font-size: 1.08rem; }
.solution-label {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
    padding: 6px 14px 6px 8px; border-radius: 999px;
    background: linear-gradient(135deg, #e0ecff, #dff7fb); color: var(--accent);
    font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
.solution-label .icon { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--grad); color: #fff; }
.solution-points { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 12px; }
.solution-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-weight: 600; }
.solution-points .icon { color: var(--accent); margin-top: 3px; }
.solution-visual { position: relative; }
.solution-visual::before {
    content: ''; position: absolute; inset: 8% -4% -6% 10%; border-radius: 28px;
    background: var(--grad); opacity: .14; z-index: 0;
}
.solution-flip .solution-visual::before { inset: 8% 10% -6% -4%; }
.solution-visual img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); background: #fff; }

/* AI ukázka */
.ai-demo {
    position: relative; z-index: 1;
    background: var(--ink); color: #c9d3e6; border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lg);
    display: grid; gap: 14px; font-size: .95rem;
}
.ai-demo-head { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ai-demo-head .icon { color: #7dd3fc; }
.ai-demo-head span { margin-left: auto; font-size: .78rem; font-weight: 600; color: #4ade80; display: flex; align-items: center; gap: 6px; }
.ai-demo-head span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.msg { padding: 12px 16px; border-radius: 16px; line-height: 1.55; max-width: 88%; }
.msg-user { justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg-ai { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); border-bottom-left-radius: 4px; }
.msg-ai strong { color: #fff; }
.ai-demo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-demo-actions span { font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(125,211,252,.35); color: #7dd3fc; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service {
    padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service p { margin: 0; font-size: .97rem; }
.service-icon {
    width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 20px;
    border-radius: 14px; background: linear-gradient(135deg, #e0ecff, #dff7fb); color: var(--accent);
}
.service-icon .icon { width: 26px; height: 26px; }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project {
    background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    display: flex; flex-direction: column; transition: transform .25s;
}
.project:hover { transform: translateY(-4px); }
.project-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project:hover .project-img img { transform: scale(1.05); }
.project-year {
    position: absolute; top: 14px; right: 14px; padding: 4px 12px; border-radius: 999px;
    background: rgba(11,19,36,.75); color: #fff; font-size: .8rem; font-weight: 700; backdrop-filter: blur(6px);
}
.project-body { padding: 24px 26px 28px; }
.project-body p { font-size: .95rem; margin-bottom: .6em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #e8efff; color: var(--accent); }
.tech { font-size: .85rem !important; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin: 12px 0 0 !important; }

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.checklist { list-style: none; margin: 0; padding: 32px; border-radius: var(--radius); background: var(--bg-alt); display: grid; gap: 16px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-weight: 600; }
.checklist .icon { color: #fff; background: var(--grad); border-radius: 50%; padding: 4px; width: 24px; height: 24px; margin-top: 1px; }

/* Contact */
.section-dark { background: var(--ink); color: #b8c3d9; position: relative; overflow: hidden; }
.section-dark::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: #1d4ed8; filter: blur(120px); opacity: .35; top: -260px; left: -200px; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #7dd3fc; }
.contact { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255,255,255,.07); color: #7dd3fc; }
.contact-list a { color: #e2e8f5; padding-top: 8px; line-height: 1.45; }
.contact-list a strong { color: #fff; }

.form { background: #fff; color: var(--text); padding: 36px; border-radius: 22px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 700; color: var(--ink-2); }
.form input, .form textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
    padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcfe;
    transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37,99,235,.12); background: #fff; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.captcha > label { margin-bottom: 6px; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row img { border-radius: 10px; border: 1.5px solid var(--line); height: 52px; width: auto; }
.captcha-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .25em; font-weight: 700; text-align: center; }
.captcha-refresh { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); cursor: pointer; transition: color .2s, transform .4s; }
.captcha-refresh:hover { color: var(--accent); transform: rotate(-90deg); }

.interest { border: 0; padding: 0; margin: 0; }
.interest legend { font-size: .88rem; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.interest-options { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; display: inline-flex !important; position: relative; }
.form .chip input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.chip span {
    padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fbfcfe;
    font-size: .88rem; font-weight: 600; color: var(--text); transition: all .2s;
}
.chip:hover span { border-color: #b7c8ea; }
.chip input:checked + span { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -8px rgba(37,99,235,.8); }
.chip input:focus-visible + span { outline: 3px solid rgba(37,99,235,.35); outline-offset: 2px; }
.form-note { font-size: .8rem; color: var(--muted); margin: 0; }
.alert { padding: 14px 16px; border-radius: 12px; font-size: .93rem; font-weight: 600; }
.alert-ok { display: flex; gap: 10px; align-items: center; background: #e7f8ef; color: #0f7a43; }
.alert-err { background: #fdeceb; color: #b42318; display: grid; gap: 4px; }

/* Footer */
.site-footer { background: #070d1a; color: #8592ab; padding: 64px 0 28px; font-size: .93rem; }
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer a { color: #c5cfe2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-logo { height: 42px; width: auto; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 16px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    .hv-badge { animation: none; }
}

/* Responsive */
@media (max-width: 1000px) {
    .hero-grid, .about, .contact { grid-template-columns: 1fr; }
    .hero-visual { height: 360px; }
    .services, .projects { grid-template-columns: repeat(2, 1fr); }
    .solution { grid-template-columns: 1fr; gap: 36px; }
    .solution-flip .solution-copy { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .nav-toggle { display: block; }
    .nav {
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        padding: 8px 16px 18px;
        display: none;
    }
    .nav.open { display: flex; }
    .nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
    .nav .btn { margin-top: 14px; }
    .hero { padding: 64px 0 72px; }
    .hero-visual { display: none; }
    .section { padding: 72px 0; }
    .services, .projects, .form .row, .footer-grid { grid-template-columns: 1fr; }
    .form { padding: 24px; }
    .footer-bottom { flex-direction: column; }
}
