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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --dark: #0f172a;
    --gray-900: #1e293b;
    --gray-700: #475569;
    --gray-500: #64748b;
    --gray-300: #cbd5e1;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.badge-light {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

/* ==== BUTTONS ==== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-900);
    border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-full { width: 100%; }
.btn-nav { padding: 10px 20px; font-size: 0.875rem; }

/* ==== HEADER ==== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 100;
    transition: all 0.3s;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--dark);
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
}

.logo-accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray-700);
    transition: color 0.2s;
    font-size: 0.9375rem;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

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

/* ==== HERO ==== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.hero-text h1 {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat span {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ==== HERO VISUAL ==== */
.hero-visual {
    position: relative;
    height: 480px;
}

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 40px;
    left: 0;
    width: 340px;
    padding: 16px;
    z-index: 2;
}

.card-2 {
    bottom: 0;
    right: 0;
    width: 240px;
    height: 380px;
    animation-delay: -3s;
    background: var(--gradient);
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.card-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.card-content {
    margin-top: 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
}

.code-line { color: var(--gray-700); }
.indent { padding-left: 20px; }
.code-purple { color: #a855f7; }
.code-blue { color: #3b82f6; }
.code-green { color: #10b981; }
.code-yellow { color: #eab308; }

.mobile-mockup {
    width: 100%;
    height: 100%;
    background: var(--dark);
    border-radius: 24px;
    padding: 12px;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.1);
}

.mobile-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    overflow: hidden;
}

.mobile-bar {
    width: 60px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    margin: 0 auto 20px;
}

.mobile-line {
    height: 14px;
    background: var(--gray-100);
    border-radius: 7px;
    margin-bottom: 8px;
}

.mobile-line.short { width: 60%; }

.mobile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.mobile-grid div {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    opacity: 0.8;
}

.mobile-grid div:nth-child(2) { opacity: 0.6; }
.mobile-grid div:nth-child(3) { opacity: 0.7; }
.mobile-grid div:nth-child(4) { opacity: 0.9; }

/* ==== SECTIONS ==== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-header h2 { margin-bottom: 16px; }

.section-header p {
    color: var(--gray-700);
    font-size: 1.0625rem;
}

/* ==== SERVICES ==== */
.services {
    background: var(--gray-50);
}

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

.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.2);
}

.service-card-featured {
    background: var(--gradient);
    color: var(--white);
    transform: scale(1.05);
}

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

.service-card-featured h3,
.service-card-featured p,
.service-card-featured li { color: var(--white); }

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon svg { width: 28px; height: 28px; }

.icon-blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.icon-purple { background: rgba(255,255,255,0.2); color: var(--white); }
.icon-green { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.service-card h3 { margin-bottom: 12px; }

.service-card p {
    color: var(--gray-700);
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-features li {
    color: var(--gray-700);
    font-size: 0.875rem;
    padding-left: 24px;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.service-card-featured .service-features li::before { color: var(--white); }

/* ==== ABOUT ==== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
    height: 480px;
}

.about-shape {
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: 24px;
    transform: rotate(-3deg);
}

.about-card {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--white);
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.about-card-icon {
    width: 56px;
    height: 56px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.about-card-icon svg { width: 28px; height: 28px; }

.about-card strong {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}

.about-card span {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.about-text h2 { margin-bottom: 20px; }

.about-text p {
    color: var(--gray-700);
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    gap: 14px;
    margin-top: 32px;
}

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

.check-icon {
    width: 28px;
    height: 28px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* ==== WHY US ==== */
.why { background: var(--gray-50); }

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.why-item {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
}

.why-item:hover { transform: translateY(-6px); }

.why-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
}

.why-item h3 { margin-bottom: 10px; }

.why-item p {
    color: var(--gray-700);
    font-size: 0.9375rem;
}

/* ==== CONTACT ==== */
.contact {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--gray-300);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg { width: 22px; height: 22px; }

.contact-item strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--white);
}

.contact-item a, .contact-item span {
    color: var(--gray-300);
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.contact-item a:hover { color: var(--primary); }

/* ==== FORM ==== */
.contact-form-wrapper {
    position: relative;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    color: var(--gray-900);
}

.contact-form h3 {
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--white);
    color: var(--gray-900);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

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

.form-note {
    margin-top: 16px;
    font-size: 0.8125rem;
    color: var(--gray-500);
    text-align: center;
}

.form-success {
    background: var(--white);
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    color: var(--gray-900);
    display: none;
}

.form-success.active { display: block; }
.contact-form.hidden { display: none; }

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px;
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.form-success h3 { margin-bottom: 12px; }
.form-success p { color: var(--gray-700); }

/* ==== FOOTER ==== */
.footer {
    background: #020617;
    color: var(--gray-300);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--gray-300);
    font-size: 0.9375rem;
    max-width: 300px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: var(--gray-300);
    font-size: 0.9375rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.875rem;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 968px) {
    .nav-links, .btn-nav { display: none; }
    .menu-toggle { display: flex; }

    .hero-content,
    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        height: 400px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    section { padding: 70px 0; }
    .hero { padding: 120px 0 60px; }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .form-row { grid-template-columns: 1fr; }

    .contact-form { padding: 28px 24px; }

    .about-card { right: 0; left: 0; width: max-content; margin: 0 auto; }

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

    .card-1 { width: 280px; }
    .card-2 { width: 180px; height: 300px; }
}
