/* =========================================================
   DAVOTECH s.r.o. / spravait.online
   Azure / Microsoft 365 inspired design
   File: css/style.css
   ========================================================= */

:root {
    --primary: #0078d4;
    --primary-light: #36a3ff;
    --azure-cyan: #50e6ff;
    --light: #f8fafc;
    --white: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --success: #10b981;
    --border: #e2e8f0;
    --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 28px 80px rgba(15, 23, 42, 0.18);
    --radius-lg: 26px;
    --container: 1200px;
    --transition: all 0.25s ease;
}

body.dark-mode {
    --light: #020617;
    --white: #111827;
    --text: #f8fafc;
    --text-muted: #cbd5e1;
    --border: #334155;
    background: var(--light);
    color: var(--text);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

.container {
    width: 90%;
    max-width: var(--container);
    margin: 0 auto;
}

.section {
    padding: 105px 0;
}

.section h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
}

.section > .container > h2 {
    text-align: center;
    margin-bottom: 20px;
}

.section > .container > p {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.dark {
    background:
        radial-gradient(circle at top right, rgba(0, 120, 212, 0.32), transparent 36%),
        radial-gradient(circle at bottom left, rgba(80, 230, 255, 0.12), transparent 34%),
        linear-gradient(135deg, #020617 0%, #0f172a 48%, #102a56 100%);
    color: #ffffff;
}

.dark h2,
.dark h3 {
    color: #ffffff;
}

.dark p {
    color: #cbd5e1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.98rem;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(0, 120, 212, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(0, 120, 212, 0.36);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header .container {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 900;
    font-size: 1.45rem;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.logo::before {
    content: "DT";
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
    box-shadow: 0 10px 26px rgba(0, 120, 212, 0.38);
}

.logo span {
    color: var(--primary-light);
}

.menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu a {
    position: relative;
    color: #e2e8f0;
    font-weight: 700;
    font-size: 0.97rem;
    transition: var(--transition);
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    border-radius: 999px;
    transition: var(--transition);
}

.menu a:hover {
    color: #ffffff;
}

.menu a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.theme-btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.menu-toggle {
    display: none;
}

.hero {
    position: relative;
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
    padding: 100px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 75% 16%, rgba(54, 163, 255, 0.36), transparent 30%),
        radial-gradient(circle at 10% 75%, rgba(16, 185, 129, 0.14), transparent 32%),
        linear-gradient(135deg, #020617 0%, #0f172a 46%, #123b7a 100%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 92%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 70px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #dbeafe;
    font-size: 0.92rem;
    font-weight: 800;
    backdrop-filter: blur(18px);
}

.badge::before {
    content: "";
    width: 9px;
    height: 9px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.7s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
    70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero h1 {
    max-width: 820px;
    font-size: clamp(2.9rem, 6.8vw, 5.8rem);
    line-height: 0.98;
    margin-bottom: 28px;
    letter-spacing: -0.075em;
}

.hero h1::after {
    content: "";
    display: block;
    width: 96px;
    height: 5px;
    margin-top: 28px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-light), var(--azure-cyan));
}

.hero p {
    max-width: 720px;
    color: #cbd5e1;
    font-size: clamp(1.08rem, 1.8vw, 1.32rem);
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.dashboard {
    position: relative;
    padding: 30px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(24px);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
}

.dashboard h3 {
    margin-bottom: 24px;
    color: #ffffff;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
}

.status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding: 17px 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #e2e8f0;
    font-weight: 750;
}

.status:last-child {
    margin-bottom: 0;
}

.status::after {
    content: "OK";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.16);
    color: #a7f3d0;
    font-size: 0.75rem;
    font-weight: 900;
}

.stats {
    position: relative;
    z-index: 5;
    margin-top: -46px;
    padding-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border-radius: 28px;
    background: var(--border);
    box-shadow: var(--shadow-lg);
}

.stat {
    padding: 34px 24px;
    text-align: center;
    background: var(--white);
}

.stat h2 {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.stat p {
    color: var(--text-muted);
    font-size: 0.98rem;
    font-weight: 750;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.card {
    position: relative;
    min-height: 220px;
    padding: 34px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
}

.card::before {
    content: "";
    width: 58px;
    height: 58px;
    display: block;
    margin-bottom: 22px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 30% 30%, rgba(80, 230, 255, 0.75), transparent 34%),
        linear-gradient(135deg, rgba(0, 120, 212, 0.95), rgba(54, 163, 255, 0.75));
}

.card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--azure-cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
}

.card:hover::after {
    transform: scaleX(1);
}

.card h3 {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 1.38rem;
    letter-spacing: -0.035em;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
}

.dark .card,
.dark .step {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.dark .card h3,
.dark .step h3 {
    color: #ffffff;
}

.dark .card p,
.dark .step p {
    color: #cbd5e1;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.step {
    position: relative;
    padding: 30px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
}

.step:hover {
    transform: translateY(-6px);
}

.step h3 {
    position: relative;
    z-index: 2;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.step p {
    position: relative;
    z-index: 2;
    margin-top: 12px;
    color: var(--text-muted);
}

.step::before {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    font-weight: 900;
}

.step:nth-child(1)::before { content: "1"; }
.step:nth-child(2)::before { content: "2"; }
.step:nth-child(3)::before { content: "3"; }
.step:nth-child(4)::before { content: "4"; }

#blog .card {
    min-height: 190px;
}

#blog .card::before {
    background:
        radial-gradient(circle at 25% 25%, rgba(80, 230, 255, 0.75), transparent 38%),
        linear-gradient(135deg, #0f172a, #1e3a8a);
}

.contact-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 38px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 75px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.contact-card h3 {
    font-size: 2rem;
    margin-bottom: 12px;
    letter-spacing: -0.04em;
}

.contact-lines {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 30px 0;
    text-align: left;
}

.contact-line {
    padding: 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-line strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
}

.contact-line a,
.contact-line span {
    color: #cbd5e1;
    word-break: break-word;
}

.contact-line a:hover {
    color: #ffffff;
}

.contact-btn {
    margin-top: 4px;
}

footer {
    padding: 42px 0;
    background: #020617;
    color: #ffffff;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: grid;
    gap: 8px;
}

.footer-brand {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
}

.footer-services,
.footer-copy {
    color: #94a3b8;
    font-weight: 650;
}

.footer-contact a {
    color: #93c5fd;
    font-weight: 800;
}

.footer-contact a:hover {
    color: #ffffff;
}

.contact-lines-wide {
    grid-template-columns: repeat(3, 1fr);
}

.footer-company {
    color: #94a3b8;
    font-weight: 650;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@media (max-width: 1100px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .dashboard {
        max-width: 720px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid,
    .contact-lines {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .header .container {
        height: auto;
        min-height: 76px;
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .menu-toggle {
        display: grid;
    }

    .menu {
        order: 3;
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 12px 0 4px;
    }

    .menu.active {
        display: flex;
    }

    .menu a {
        padding: 14px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.09);
    }

    .section {
        padding: 82px 0;
    }

    .hero {
        min-height: auto;
        padding: 86px 0;
    }

    .hero h1 {
        letter-spacing: -0.055em;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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

@media (max-width: 680px) {
    .container {
        width: 92%;
    }

    .logo {
        font-size: 1.22rem;
    }

    .logo::before {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .cards,
    .steps,
    .stats-grid,
    .contact-lines {
        grid-template-columns: 1fr;
    }

    .card,
    .step,
    .dashboard,
    .contact-card {
        padding: 26px;
    }

    .stat {
        padding: 30px 20px;
    }

    .status {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .hero h1 {
        font-size: 2.55rem;
    }

    .badge {
        font-size: 0.82rem;
    }

    .section h2 {
        font-size: 2rem;
    }
}
