:root {
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --accent: #2563eb;
    --accent-light: #dbeafe;
    --border: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.grid-bg {
    background-image: linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
}

.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 5%;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: var(--text-main);
}

.hero h1 span { color: var(--accent); }

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--bg-white);
    font-weight: 700;
    padding: 1.1rem 2.2rem;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5% 5rem 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.3s, border-color 0.3s;
}

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

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
}

.why-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 5% 5rem 5%;
}

.why-panel {
    position: relative;
    overflow: hidden;
    padding: 3rem;
    border-radius: 28px;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
}

.why-panel::before,
.why-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.why-panel::before {
    inset: -80px auto auto -80px;
    width: 220px;
    height: 220px;
}

.why-panel::after {
    inset: auto -100px -120px auto;
    width: 280px;
    height: 280px;
}

.why-header {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin-bottom: 2rem;
}

.why-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    backdrop-filter: blur(8px);
}

.why-title {
    font-size: clamp(1.8rem, 2.1vw, 2.5rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    color: #fff;
    white-space: nowrap;
}

.why-copy {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
    max-width: 64rem;
}

.why-actions {
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.why-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.4rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--accent);
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

.why-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.why-card {
    position: relative;
    overflow: hidden;
    padding: 1.45rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.why-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #bfdbfe, #ffffff);
    opacity: 0.9;
}

.why-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}

.why-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
}

.why-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
    color: #fff;
}

.why-card p {
    color: rgba(255, 255, 255, 0.84);
}

.why-card small {
    display: block;
    margin-top: 0.9rem;
    color: #dbeafe;
    font-weight: 700;
}

/* PŘÍPADOVÉ STUDIE */
.portfolio-section {
    background-color: var(--bg-white);
    padding: 5rem 5%;
    border-top: 1px solid var(--border);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.portfolio-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-light), #bfdbfe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 3rem;
}

.portfolio-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.portfolio-tech {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.portfolio-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.portfolio-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.portfolio-link:hover {
    text-decoration: underline;
}

/* PROCES */
.process-section {
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    padding: 5rem 5%;
}

.process-header {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.process-header h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    margin-bottom: 0.9rem;
    color: var(--text-main);
}

.process-header p {
    color: var(--text-muted);
    max-width: 760px;
    white-space: nowrap;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.timeline-item {
    position: relative;
    padding: 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border-radius: 22px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.timeline-item::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #60a5fa);
}

.timeline-item::after {
    content: "";
    position: absolute;
    right: -24px;
    top: -24px;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14), rgba(37, 99, 235, 0));
    pointer-events: none;
}

.timeline-item h3 {
    color: var(--text-main);
    margin-bottom: 0.65rem;
    font-size: 1.3rem;
}

.timeline-item p {
    color: var(--text-muted);
}

/* FAQ */
.faq-section {
    background-color: var(--bg-white);
    padding: 5rem 5%;
    border-top: 1px solid var(--border);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-main);
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-light);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-muted);
}

/* KONTAKT */
.contact-section {
    background-color: var(--bg-white);
    padding: 5rem 5%;
    border-top: 1px solid var(--border);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}

.info-box {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.info-box p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.info-box strong { color: var(--accent); }

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

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

.form-message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-message.success {
    background: #dcfce7;
    color: #166534;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
}

footer {
    text-align: center;
    padding: 2.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .why-section { padding-left: 4%; padding-right: 4%; }
    .why-panel { padding: 1.5rem; border-radius: 22px; }
    .why-title { white-space: normal; font-size: 1.8rem; }
    .why-grid { grid-template-columns: 1fr; }
    .why-card { padding: 1.25rem; }
    .process-section { padding-left: 4%; padding-right: 4%; }
    .process-header h2 { font-size: 1.9rem; }
    .process-header p { white-space: normal; overflow: visible; text-overflow: unset; }
    .timeline { grid-template-columns: 1fr; }
    .timeline-item { padding: 1.4rem; }
}
