.hero-section {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #030208 url('../images/hero-server.webp') right bottom / auto 100% no-repeat;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, #030208 0%, rgba(3, 2, 8, .92) 35%, rgba(3, 2, 8, .4) 60%, rgba(3, 2, 8, 0) 80%),
        radial-gradient(ellipse 60% 70% at 15% 55%, rgba(124, 58, 237, .10), transparent 70%);
}

.hero-content {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 70px;
}

.hero-title { max-width: 720px; font-size: 3.2rem; }
.hero-subtitle { margin: 20px 0 36px; max-width: 540px; font-size: 1.15rem; color: rgba(255, 255, 255, .75); }

.hero-buttons { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero-buttons-row { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-cta, .hero-cta-secondary {
    display: inline-block;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.hero-cta { padding: 14px 30px; background: #fff; color: #111; }
.hero-cta:hover { background: #e6e6e6; }
.hero-cta-secondary { padding: 10px 20px; font-size: 0.92rem; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.hero-cta-secondary:hover { border-color: #fff; }


.section { padding: 88px 70px; }
.section-description { max-width: 680px; }
.section > * { max-width: 1260px; margin-left: auto; margin-right: auto; }
.pricing-section, #usecases { background: var(--grey); }

.section-header { margin-bottom: 44px; }


.services-scroll-container { position: relative; }
.scroll-arrow { display: none; }

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

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 26px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: border-color .15s, box-shadow .15s;
}
.service-card:hover { border-color: #4a4d53; }
.service-card--featured { border-top: 2px solid var(--text); }

.service-icon { display: none; }
.service-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.service-title { margin: 6px 0 10px; font-size: 1.4rem; font-weight: 600; }
.service-description { font-size: 0.95rem; color: var(--muted); }

.service-highlights { list-style: none; margin: 20px 0 26px; border-top: 1px solid var(--line); }
.service-highlights li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.service-highlights li:last-child { font-weight: 600; }

.service-cta {
    margin-top: auto;
    padding: 11px 16px;
    text-align: center;
    border: 1px solid var(--text);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.service-cta:hover, .service-card--featured .service-cta { background: var(--text); color: var(--bg); }
.service-card--featured .service-cta:hover { background: var(--hover); }


.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.feature-card { padding: 26px 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.feature-card:hover { border-color: var(--line); }
.feature-icon { display: none; }
.feature-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.feature-description { font-size: 0.95rem; color: var(--muted); }


.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tech-item { background: var(--card); padding: 28px; border: 1px solid var(--line); border-radius: 6px; }
.tech-number { font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.tech-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.tech-description { font-size: 0.95rem; color: var(--muted); }

.contact-section:empty { display: none; }


.cookie-banner {
    display: none;
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1100;
    max-width: 980px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.cookie-banner.open { display: block; }
.cookie-banner-inner { display: flex; align-items: center; gap: 24px; padding: 20px 24px; }
.cookie-banner-text { flex: 1; font-size: 0.9rem; color: var(--muted); }
.cookie-banner-text strong { display: block; color: var(--text); margin-bottom: 4px; }
.cookie-banner-text a { color: var(--text) !important; }
.cookie-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }

.cookie-btn {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
}
.cookie-btn:hover { border-color: var(--text); }
.cookie-btn-primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.cookie-btn-primary:hover { background: var(--hover); }

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, .7);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }

.cookie-modal { width: 100%; max-width: 520px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); }
.modal-close:hover { color: var(--text); }
.modal-close svg { width: 20px; height: 20px; }
.cookie-modal-header { padding: 28px 28px 8px; }
.cookie-modal-header h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.cookie-modal-header p { font-size: 0.9rem; color: var(--muted); }
.cookie-modal-body { padding: 8px 28px; }
.cookie-category { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cookie-category:last-child { border-bottom: 0; }
.cookie-category-title { font-weight: 600; font-size: 0.95rem; }
.cookie-category-desc { font-size: 0.85rem; color: var(--muted); }
.cookie-modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 18px 28px; background: var(--grey); }

.cookie-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider { position: absolute; inset: 0; background: #3a3d42; border-radius: 24px; cursor: pointer; transition: background .2s; }
.cookie-toggle-slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .2s; }
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--text); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(20px); background: var(--bg); }
.cookie-toggle input:disabled + .cookie-toggle-slider { opacity: .5; cursor: not-allowed; }


.redirect-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(0, 0, 0, .85);
    align-items: center;
    justify-content: center;
}
.redirect-overlay.open { display: flex; }
.redirect-card { width: 300px; padding: 32px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.redirect-icon-wrap { width: 52px; height: 52px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }
.redirect-icon-wrap svg { width: 24px; height: 24px; }
.redirect-text { font-weight: 600; }
.redirect-subtext { font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.redirect-progress { height: 3px; margin-top: 22px; background: var(--grey); border-radius: 3px; overflow: hidden; }
.redirect-progress-bar { width: 0; height: 100%; background: var(--text); }
.redirect-overlay.open .redirect-progress-bar { animation: fill 1.4s ease forwards; }
@keyframes fill { to { width: 100%; } }


.status-icon-btn, .chat-toggle {
    position: fixed;
    right: 24px;
    z-index: 900;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
    transition: border-color .15s;
}
.status-icon-btn:hover, .chat-toggle:hover { border-color: var(--text); }
.status-icon-btn svg, .chat-toggle svg { width: 22px; height: 22px; }
.status-icon-plug { bottom: 148px; }
.status-icon-gear { bottom: 86px; }

.chat-toggle { bottom: 24px; background: var(--text); border-color: var(--text); color: var(--bg); }
.chat-toggle:hover { background: var(--hover); }
.chat-toggle .chat-close-icon, .chat-toggle.open .chat-chat-icon { display: none; }
.chat-toggle.open .chat-close-icon { display: block; }

.chat-window {
    display: none;
    flex-direction: column;
    position: fixed;
    right: 24px;
    bottom: 88px;
    z-index: 950;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: calc(100vh - 130px);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
    overflow: hidden;
}
.chat-window.open { display: flex; }
.chat-header { padding: 16px 20px; background: var(--dark); border-bottom: 1px solid var(--line); color: #fff; }
.chat-header-title { font-weight: 600; }
.chat-header-sub { font-size: 0.82rem; color: rgba(255, 255, 255, .6); }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--grey); }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 6px; font-size: 0.9rem; }
.chat-msg.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); }
.chat-msg.user { align-self: flex-end; background: var(--text); color: var(--bg); }
.chat-quick-replies { display: flex; flex-direction: column; gap: 6px; }
.chat-quick-btn { display: flex; gap: 10px; align-items: center; padding: 10px 12px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 4px; font-size: 0.88rem; color: var(--text); }
.chat-quick-btn:hover { border-color: var(--text); }


@media (max-width: 1080px) {
    .hero-content { padding: 80px 35px; }
    .section { padding-left: 35px; padding-right: 35px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid, .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-section { min-height: 0; background-size: cover; }
    .hero-overlay { background: linear-gradient(to right, rgba(3, 2, 8, .92), rgba(3, 2, 8, .7)); }
    .hero-content { padding: 64px 20px; }
    .hero-title { font-size: 2.1rem; }
    .hero-subtitle { font-size: 1rem; }
    .section { padding: 60px 20px; }
    .services-grid, .features-grid, .tech-grid { grid-template-columns: 1fr; }
    .cookie-banner-inner { flex-direction: column; align-items: stretch; }
    .cookie-banner-actions { flex-wrap: wrap; }
    .cookie-banner-actions .cookie-btn { flex: 1; }
    .status-icon-btn, .chat-toggle { right: 16px; }
    .chat-window { right: 16px; }
}
