/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-blue: #2563EB;
    --primary-cyan: #06B6D4;
    --primary-gray: #1F2937;
    --primary-green: #10B981;
    --primary-orange: #F97316;
    --primary-purple: #7C3AED;

    --white: #FFFFFF;
    --light: #F9FAFB;
    --dark: #111827;

    /* Gradients */
    --gradient-blue: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
    --gradient-purple: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Poppins', sans-serif;

    /* Spacing */
    --section-padding: 5rem 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: #4B5563;
}

.gradient-text {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-blue);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-img {
    height: 2rem;
    width: 200px;
    height: auto;
}

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

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4B5563;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-label {
    color: #6B7280;
    font-size: 0.875rem;
}

.hero-visual {
    position: relative;
    margin-top: 4rem;
}

.dashboard-preview {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.dashboard-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 400px;
    position: relative;
}

.screen-frame {
    background: #1F2937;
    border-radius: 0.5rem;
    overflow: hidden;
    height: 100%;
    padding: 1rem;
}

.screen-content {
    background: #374151;
    border-radius: 0.25rem;
    height: 100%;
    position: relative;
}

.main-camera-view {
    width: 70%;
    height: 100%;
    background: #4B5563;
    border-radius: 0.25rem;
    position: relative;
    overflow: hidden;
}

.camera-feed {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #6B7280, #9CA3AF);
    opacity: 0.7;
}

.zone-overlay {
    position: absolute;
    border: 2px solid;
    border-radius: 0.25rem;
}

.zone-1 {
    top: 20%;
    left: 15%;
    width: 30%;
    height: 40%;
    border-color: #10B981;
}

.zone-2 {
    bottom: 15%;
    right: 10%;
    width: 25%;
    height: 30%;
    border-color: #F97316;
}

.pip-window {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 25%;
    height: 30%;
    background: #6B7280;
    border-radius: 0.25rem;
    border: 2px solid white;
}

.pip-feed {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #9CA3AF, #D1D5DB);
}

.alert-indicator {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    animation: pulse 2s infinite;
}

.floating-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--white);
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.badge-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.badge-text {
    font-weight: 600;
    color: var(--dark);
}

.badge-time {
    font-size: 0.875rem;
    color: #6B7280;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: var(--light);
    transform: rotate(180deg);
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 120px;
}

/* ===== FEATURES ===== */
.features {
    padding: var(--section-padding);
    background: var(--light);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6B7280;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-title {
    margin-bottom: 1rem;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: var(--section-padding);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-visual {
    width: 200px;
    height: 150px;
    background: var(--light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-placeholder[data-step="1"] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.camera-icon,
.server-icon {
    font-size: 2rem;
}

.connection-line {
    width: 2rem;
    height: 2px;
    background: var(--primary-blue);
}

.zone-demo {
    width: 100%;
    height: 100%;
    background: #E5E7EB;
    position: relative;
}

.zone-area {
    position: absolute;
    border: 2px dashed var(--primary-green);
    border-radius: 0.25rem;
}

.zone-1 {
    top: 20%;
    left: 15%;
    width: 40%;
    height: 30%;
}

.zone-2 {
    top: 40%;
    right: 10%;
    width: 30%;
    height: 40%;
}

.zone-3 {
    bottom: 15%;
    left: 25%;
    width: 50%;
    height: 25%;
}

.monitoring-demo {
    width: 100%;
    height: 100%;
    background: #1F2937;
    border-radius: 0.25rem;
    position: relative;
}

.main-view {
    width: 70%;
    height: 100%;
    background: #4B5563;
    border-radius: 0.25rem;
}

.pip-view {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 30%;
    height: 40%;
    background: #6B7280;
    border-radius: 0.25rem;
    border: 2px solid white;
}

.alert-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background: #EF4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.cta-center {
    text-align: center;
}

/* ===== PRICING ===== */
.pricing {
    padding: var(--section-padding);
    background: var(--light);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #E5E7EB;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background: var(--white);
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background: var(--primary-blue);
}

input:checked+.slider:before {
    transform: translateX(30px);
}

.discount-badge {
    background: var(--primary-green);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pricing-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border: 2px solid var(--primary-blue);
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.plan-price {
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark);
}

.period {
    color: #6B7280;
    font-size: 1rem;
}

.plan-features {
    list-style: none;
    margin: 2rem 0;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.feature-check {
    color: var(--primary-green);
    font-weight: 700;
}

.feature-uncheck {
    color: #9CA3AF;
}

.plan-cta {
    margin-top: auto;
}

.plan-cta .btn {
    width: 100%;
}

.pricing-footer {
    text-align: center;
    color: #6B7280;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: var(--section-padding);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.testimonial-rating {
    color: #FBBF24;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.testimonial-text {
    flex-grow: 1;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: var(--section-padding);
    background: var(--gradient-blue);
    color: var(--white);
    text-align: center;
}

.cta-title,
.cta-subtitle {
    color: var(--white);
}

.cta-title .gradient-text {
    background: linear-gradient(135deg, #FBBF24 0%, #F97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.cta-actions {
    margin: 3rem 0;
}

.cta-note {
    margin-top: 1rem;
    opacity: 0.9;
}

.cta-contacts {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo-img {
    height: 2rem;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: #9CA3AF;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #9CA3AF;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--white);
}

.footer-title {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #9CA3AF;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright,
.made-with {
    color: #9CA3AF;
}

/* ===== ANIMATIONS ===== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .pricing-card.featured {
        transform: none;
    }

    .step {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .step-number {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cta-contacts {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
    }
}