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

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #06B6D4;
    --accent: #10B981;
    --bg: #FFFFFF;
    --surface: #F8FAFC;
    --text: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
}

body.dark {
    --bg: #0F172A;
    --surface: #1E293B;
    --text: #F8FAFC;
    --text-muted: #94A3B8;
    --border: #334155;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

h1, h2, h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    line-height: 1.1;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

body.dark header {
    background: rgba(15, 23, 42, 0.8);
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

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

.logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.nav-links a i {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.nav-links a:hover i {
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.theme-toggle {
    background: var(--surface);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text);
    transition: all 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-signup {
    background: white;
    color: var(--primary);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.9rem 2.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

nav .btn-signup {
    border-radius: 8px;
    padding: 0.9rem 2.4rem;
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

body.dark .btn-signup {
    background: rgba(15, 23, 42, 0.8);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

body.dark .btn-signup:hover {
    box-shadow: 0 18px 50px rgba(6, 182, 212, 0.25);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s;
}

/* Hero */
.hero {
    margin-top: clamp(5rem, 12vw, 8rem);
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
    margin-left: 0;
    margin-right: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-image {
    flex: 1;
    max-width: 540px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    border-radius: 16px;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    animation: heroFloat 9s ease-in-out infinite;
    will-change: transform;
}

.hero-image:hover img {
    animation-play-state: paused;
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
}

@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Hero background with mobile image */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/mikrotik/3274406.jpg');
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
    border-radius: 0;
}

.hero .hero-content {
    position: relative;
    z-index: 2;
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

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

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 320px;
        margin-top: 2rem;
    }

    .mockup-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2.5rem;
        gap: 2rem;
    }

    .mockup-container:nth-child(even) {
        direction: ltr;
    }

    .mockup-container:nth-child(even) > * {
        direction: ltr;
    }

    .mockup-image {
        margin: 0 auto;
    }

    .mockup-image img {
        max-width: 200px;
    }
}

/* Stats */
.stats {
    padding: 4rem 0;
    background: var(--surface);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

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

/* Features */
.features {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    padding: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* How it Works */
.how-it-works {
    padding: 6rem 0;
    background: var(--surface);
}

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

.platform-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s;
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.platform-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
}

.platform-content {
    padding: 2rem;
}

.platform-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Mockup Section */
.mockup-section {
    padding: 6rem 0;
}

.mockup-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.mockup-container:nth-child(even) {
    direction: rtl;
}

.mockup-container:nth-child(even) > * {
    direction: ltr;
}

.mockup-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-image img {
    width: 100%;
    max-width: 240px;
    height: auto;
}

.mockup-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.mockup-content p {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.mockup-features {
    list-style: none;
}

.mockup-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.mockup-features i {
    color: var(--accent);
    font-size: 1.25rem;
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
    background: var(--surface);
}

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

.testimonial-card {
    background: var(--bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
}

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

.testimonial-text {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.author-info h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Pricing */
.pricing {
    padding: 6rem 0;
}

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

.pricing-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.2);
}

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

.pricing-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

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

.price {
    text-align: center;
    margin-bottom: 2rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.features-list i {
    color: var(--accent);
    font-size: 1.25rem;
}

/* Download Section */
.download {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.85), rgba(6, 182, 212, 0.85)), url('images/mikrotik/photo_18_2025-10-26_10-03-52-removebg-preview.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
}

.download h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.download p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    color: white;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    background: white;
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.download-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.download-btn i {
    font-size: 2rem;
}

.download-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-info small {
    font-size: 0.75rem;
    opacity: 0.7;
}

.download-info span {
    font-size: 1.125rem;
}

/* Contact */
.contact {
    padding: 6rem 0;
    background: var(--surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.contact-form {
    background: var(--bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

/* Footer */
footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

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

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

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

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    nav.container {
        padding: 2.25rem 1.5rem;
    }

    .hero {
        margin-top: 6rem;
        padding: 7rem 0 4rem;
    }

    .mockup-container {
        grid-template-columns: 1fr;
    }

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