/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Light theme */
    --bg: #f8fafc;
    --text: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.5);
    --card-border: rgba(0, 0, 0, 0.05);
    --nav-bg: rgba(0, 0, 0, 0.05);
    --nav-border: rgba(0, 0, 0, 0.05);
    --nav-hover: rgba(0, 0, 0, 0.1);
    --overlay: rgba(255, 255, 255, 0.2);
    --blob-blue: rgba(37, 99, 235, 0.1);
    --blob-indigo: rgba(99, 102, 241, 0.05);
    --blob-orange: rgba(249, 115, 22, 0.1);
    --selection-bg: #f97316;
    --heading-color: #0f172a;
}

[data-theme="dark"] {
    --bg: #0f172a;
    --text: #f1f5f9;
    --text-light: #cbd5e1;
    --text-lighter: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.1);
    --nav-border: rgba(255, 255, 255, 0.1);
    --nav-hover: rgba(255, 255, 255, 0.2);
    --overlay: rgba(15, 23, 42, 0.2);
    --blob-blue: rgba(37, 99, 235, 0.2);
    --blob-indigo: rgba(99, 102, 241, 0.1);
    --blob-orange: rgba(249, 115, 22, 0.2);
    --heading-color: #ffffff;
}

::selection {
    background: var(--selection-bg);
    color: #fff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background-color 0.3s, color 0.3s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Layout ===== */
.page-wrapper {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== Background Effects ===== */
.bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(128px);
}

.blob--blue {
    top: -8rem;
    left: -8rem;
    width: 24rem;
    height: 24rem;
    background: var(--blob-blue);
}

.blob--indigo {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50rem;
    height: 50rem;
    background: var(--blob-indigo);
}

.blob--orange {
    bottom: -8rem;
    right: -8rem;
    width: 24rem;
    height: 24rem;
    background: var(--blob-orange);
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay);
    mix-blend-mode: overlay;
    backdrop-filter: blur(1px);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 80rem;
    padding: 1.5rem;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.header--scrolled {
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--card-border);
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #f97316, #f43f5e);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3);
}

.logo__icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #fff;
}

.logo__text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--heading-color);
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Theme Toggle */
.theme-toggle {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--nav-border);
    border-radius: 9999px;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.theme-toggle:hover {
    background: var(--nav-hover);
    color: var(--heading-color);
}

.theme-toggle svg {
    width: 1rem;
    height: 1rem;
}

.icon-sun {
    display: none;
}

.icon-moon {
    display: block;
}

[data-theme="dark"] .icon-sun {
    display: block;
}

[data-theme="dark"] .icon-moon {
    display: none;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    padding: 0.25rem;
    border-radius: 9999px;
    background: var(--nav-bg);
    border: 1px solid var(--nav-border);
    backdrop-filter: blur(12px);
}

.lang-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover {
    color: var(--heading-color);
}

.lang-btn.active {
    background: #f97316;
    color: #fff;
}


/* ===== Hero ===== */
.hero {
    z-index: 10;
    width: 100%;
    max-width: 80rem;
    padding: 0 1.5rem;
    padding-top: 9rem;
}

.hero__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.hero__content {
    text-align: center;
    max-width: 42rem;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: var(--nav-bg);
    border: 1px solid var(--nav-border);
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    color: #ea580c;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    cursor: default;
    transition: all 0.2s;
}

[data-theme="dark"] .badge {
    color: #fed7aa;
}

.badge:hover {
    background: var(--nav-hover);
}

.badge__dot {
    position: relative;
    width: 0.5rem;
    height: 0.5rem;
}

.badge__dot-ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #fb923c;
    opacity: 0.75;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.badge__dot-core {
    position: relative;
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #f97316;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Heading */
.heading {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    color: var(--heading-color);
}

.heading__gradient {
    background: linear-gradient(to right, #fb923c, #fb7185, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description */
.description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
    font-weight: 300;
}

/* CTA Buttons */
.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.btn-primary {
    display: inline-block;
    width: 100%;
    padding: 0.85rem 2rem;
    border-radius: 9999px;
    background: linear-gradient(to right, #f97316, #f43f5e);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 0 40px -10px rgba(249, 115, 22, 0.5);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(to right, #ea580c, #e11d48);
    box-shadow: 0 0 60px -15px rgba(249, 115, 22, 0.7);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    width: 100%;
    padding: 0.85rem 2rem;
    border-radius: 9999px;
    background: var(--nav-bg);
    border: 1px solid var(--card-border);
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    backdrop-filter: blur(4px);
    transition: all 0.3s;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--nav-hover);
    transform: translateY(-2px);
}

/* ===== Hikvision Showcase ===== */
.hikvision-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.hikvision-showcase__glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(249, 115, 22, 0.15) 50%, transparent 70%);
    filter: blur(40px);
    animation: showcaseGlow 4s ease-in-out infinite alternate;
    z-index: 0;
}

[data-theme="dark"] .hikvision-showcase__glow {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(249, 115, 22, 0.25) 50%, transparent 70%);
}

@keyframes showcaseGlow {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.hikvision-showcase__card {
    position: relative;
    z-index: 1;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    padding: 2rem 2rem 1.25rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hikvision-showcase__card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 35px 60px -15px rgba(99, 102, 241, 0.15), 0 0 40px -10px rgba(249, 115, 22, 0.1);
}

.hikvision-showcase__img {
    width: 200px;
    height: auto;
    object-fit: contain;
    border-radius: 0.75rem;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.hikvision-showcase__card:hover .hikvision-showcase__img {
    transform: scale(1.05);
}

.hikvision-showcase__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hikvision-showcase__badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hikvision-showcase__text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
}

@media (min-width: 640px) {
    .hikvision-showcase__img {
        width: 260px;
    }

    .hikvision-showcase__glow {
        width: 350px;
        height: 350px;
    }

    .hikvision-showcase__card {
        padding: 2.5rem 2.5rem 1.5rem;
    }
}

@media (min-width: 768px) {
    .hikvision-showcase__img {
        width: 300px;
    }

    .hikvision-showcase__glow {
        width: 400px;
        height: 400px;
    }
}

/* ===== Features Grid ===== */
.features {
    margin-top: 6rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
    width: 100%;
    max-width: 72rem;
    padding-bottom: 5rem;
}

.feature-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(4px);
}

.feature-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card__title--orange {
    color: #f97316;
}

.feature-card__title--rose {
    color: #f43f5e;
}

.feature-card__title--indigo {
    color: #6366f1;
}

.feature-card__desc {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.75;
}

/* ===== Contact Section ===== */
.contact {
    width: 100%;
    max-width: 72rem;
    padding: 0 1.5rem 5rem;
    z-index: 10;
}

.contact__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.75rem;
}

.contact__desc {
    font-size: 0.9rem;
    color: var(--text-lighter);
    max-width: 32rem;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(4px);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    display: block;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.contact-card:hover .contact-card__icon {
    transform: scale(1.1);
}

.contact-card--telegram:hover {
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

.contact-card--phone1:hover {
    box-shadow: 0 20px 25px -5px rgba(249, 115, 22, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

.contact-card--phone2:hover {
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .contact-card--telegram:hover,
[data-theme="dark"] .contact-card--phone1:hover,
[data-theme="dark"] .contact-card--phone2:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.contact-card__icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #fff;
}

.contact-card__icon--telegram {
    background: linear-gradient(135deg, #3b82f6, #22d3ee);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2);
}

.contact-card__icon--phone1 {
    background: linear-gradient(135deg, #f97316, #f43f5e);
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.2);
}

.contact-card__icon--phone2 {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2);
}

.contact-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.contact-card__text {
    font-size: 0.875rem;
    color: var(--text-lighter);
    margin-bottom: 0.75rem;
}

.contact-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-card__link svg {
    width: 1rem;
    height: 1rem;
}

.contact-card__link--blue {
    color: #3b82f6;
}

.contact-card__link--orange {
    color: #f97316;
}

.contact-card__link--indigo {
    color: #6366f1;
}

.contact-card:hover .contact-card__link--blue {
    color: #60a5fa;
}

.contact-card:hover .contact-card__link--orange {
    color: #fb923c;
}

.contact-card:hover .contact-card__link--indigo {
    color: #818cf8;
}

/* ===== Footer ===== */
.footer {
    width: 100%;
    z-index: 10;
    text-align: center;
    color: var(--text-lighter);
    font-size: 0.8rem;
    font-weight: 300;
    padding: 1.5rem;
}

/* ===== Responsive ===== */
@media (min-width: 640px) {
    .heading {
        font-size: 3.25rem;
    }

    .description {
        font-size: 1.125rem;
    }

    .hero {
        padding-top: 10rem;
    }

    .badge {
        font-size: 0.875rem;
        margin-bottom: 2rem;
    }

    .cta-group {
        flex-direction: row;
        justify-content: center;
        width: auto;
        gap: 1.25rem;
    }

    .btn-primary,
    .btn-secondary {
        width: auto;
        padding: 1rem 2rem;
    }

    .logo__text {
        display: block;
    }

    .nav {
        gap: 1rem;
    }

    .lang-btn {
        font-size: 0.875rem;
    }

    .contact__title {
        font-size: 2rem;
    }
}

@media (max-width: 639px) {
    .logo__text {
        display: none;
    }
}

@media (min-width: 1024px) {
    .hero__container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: center;
        gap: 4rem;
    }

    .hero__content {
        text-align: left;
        max-width: 45rem;
    }

    .badge {
        margin-left: 0;
    }

    .description {
        margin-left: 0;
    }

    .cta-group {
        justify-content: flex-start;
    }

    .heading {
        font-size: 4rem;
    }

    .hikvision-showcase {
        margin: 0;
        flex: 1;
        justify-content: flex-end;
    }
}

@media (min-width: 768px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 767px) {
    .heading br {
        display: none;
    }
}