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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-blue: #2563eb;
    --accent-gray: #6b7280;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-full {
    max-width: 100%;
    padding: 0 40px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 12px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 92px;
    width: 220px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--accent-blue);
    border-radius: 8px;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    background: rgba(37, 99, 235, 0.1);
}

.btn-login svg {
    stroke: currentColor;
}

/* Hero */
.hero {
    padding: 240px 0 140px;
    text-align: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    margin-top: -1px;
    min-height: 600px;
}

.hero-bg {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 120%;
    background-image: url('images/hero-bg.png');
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: 0.25;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(40px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 48px;
}

.accent {
    color: var(--accent-blue);
}

.btn-primary {
    padding: 16px 48px;
    background: var(--accent-blue);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

/* Sections */
.section {
    padding: 100px 40px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 20px;
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.section-title {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
}

/* About Section */
.about {
    background: var(--bg-primary);
}

.about-content {
    background: var(--bg-secondary);
    border-radius: 32px;
    padding: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-left {
    max-width: 600px;
}

.about-right {
    position: relative;
}

.dashboard-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.stats {
    margin-top: 48px;
}

.stat-item {
    display: inline-block;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent-blue);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
    padding: 80px 40px;
    background: var(--bg-primary);
}

.features-grid .container {
    max-width: 1600px;
}

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

.feature-icon-card {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.feature-icon-card:hover .icon-wrapper {
    background: rgba(37, 99, 235, 0.15);
}

.icon-wrapper {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.icon-wrapper svg {
    width: 36px;
    height: 36px;
    stroke: var(--accent-blue);
}

.feature-icon-card h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

/* Services Section */
.services {
    background: var(--bg-primary);
}

.services .container {
    max-width: 1600px;
}

.services-grid {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    border-radius: 32px;
    overflow: hidden;
    background: var(--bg-secondary);
    transition: transform 0.3s;
    position: relative;
    aspect-ratio: 16 / 10;
}

.service-card:nth-child(3) {
    grid-row: 1 / 3;
    aspect-ratio: 16 / 20.48;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.service-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-4px);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.4;
}

.service-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.service-image {
    margin-top: 24px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Clients Section */
.clients {
    background: var(--bg-primary);
}

.clients .container-full {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.clients-left {
    max-width: 500px;
}

.clients-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.marquee-container {
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    gap: 16px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.marquee-track.reverse {
    animation-direction: reverse;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-chip {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
}

.client-chip:hover {
    border-color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.1);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal.show {
    display: flex;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-box {
    position: relative;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px;
    width: 450px;
    max-width: 90%;
    z-index: 2;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-header img {
    width: 230px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab.active {
    background: var(--accent-blue);
    color: var(--text-primary);
}

.form {
    display: none;
}

.form.active {
    display: block;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.field input {
    width: 100%;
    padding: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s;
}

.field input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.submit {
    width: 100%;
    padding: 16px;
    background: var(--accent-blue);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    margin-top: 24px;
    transition: all 0.3s;
}

.field input.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.submit:hover {
    background: #1d4ed8;
}

/* Responsive */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .clients .container-full {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .service-card.large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .container, .container-full {
        padding: 0 24px;
    }

    .nav {
        display: none;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .section {
        padding: 60px 0;
    }

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

    .about-content {
        gap: 32px;
    }

    .modal-box {
        padding: 32px 24px;
    }
}
