/* ===== Design Tokens ===== */
:root {
    --navy-900: #060d1f;
    --navy-800: #0b1a33;
    --navy-700: #0f2341;
    --navy-600: #142e54;
    --navy-500: #1a3a68;
    --blue-400: #4a9ef7;
    --blue-300: #7ab8fa;
    --blue-200: #a8d2fc;
    --blue-100: #dceefe;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--white);
    background: var(--navy-900);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Container ===== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(6, 13, 31, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 10px 0;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

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

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

.logo-mark {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-300);
    transition: var(--transition);
    position: relative;
}

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

.nav-cta {
    background: var(--blue-400) !important;
    color: var(--white) !important;
    padding: 8px 22px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
}

.nav-cta:hover {
    background: var(--blue-300) !important;
    transform: translateY(-1px);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
    background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 40%, var(--navy-700) 100%);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    background: var(--blue-400);
}

.shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    top: 40%;
    left: 60%;
    animation: float 18s ease-in-out infinite 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    background: rgba(74, 158, 247, 0.12);
    border: 1px solid rgba(74, 158, 247, 0.25);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--blue-300);
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--white) 0%, var(--blue-200) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    color: var(--blue-200);
    margin-bottom: 16px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--gray-400);
    max-width: 560px;
    margin: 0 auto 36px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-400), #3580d9);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(74, 158, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 158, 247, 0.4);
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blue-400);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-400);
    max-width: 520px;
    margin: 0 auto;
}

/* ===== About ===== */
.about {
    background: var(--navy-900);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--gray-300);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    background: rgba(74, 158, 247, 0.06);
    border: 1px solid rgba(74, 158, 247, 0.1);
}

.stat-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-400);
}

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

.stat strong {
    display: block;
    font-size: 0.95rem;
    color: var(--white);
}

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

/* Code Window */
.code-window {
    border-radius: var(--radius);
    overflow: hidden;
    background: #0d1526;
    border: 1px solid rgba(74, 158, 247, 0.15);
    box-shadow: var(--shadow-lg);
}

.code-window-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f57;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #28c840;
}

.code-window-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.code-window-body {
    padding: 20px;
    font-size: 0.85rem;
    line-height: 1.9;
}

.code-window-body pre {
    margin: 0;
}

.code-window-body code {
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.ck {
    color: #c792ea;
}

.cv {
    color: #82aaff;
}

.cp {
    color: #f78c6c;
}

.cs {
    color: #c3e88d;
}

.cm {
    color: #82aaff;
}

/* ===== Services ===== */
.services {
    background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
}

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

.service-card {
    padding: 36px 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.service-card:hover {
    background: rgba(74, 158, 247, 0.06);
    border-color: rgba(74, 158, 247, 0.2);
    transform: translateY(-4px);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(74, 158, 247, 0.1);
    color: var(--blue-400);
}

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

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.service-card p {
    font-size: 0.92rem;
    color: var(--gray-400);
    line-height: 1.65;
}

/* ===== Process ===== */
.process {
    background: var(--navy-900);
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 36px;
    top: 36px;
    bottom: 36px;
    width: 2px;
    background: linear-gradient(180deg, var(--blue-400), rgba(74, 158, 247, 0.1));
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 28px 0;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(74, 158, 247, 0.1);
    border: 2px solid rgba(74, 158, 247, 0.3);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--blue-400);
    position: relative;
    z-index: 1;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    margin-top: 6px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--gray-400);
}

/* ===== Contact ===== */
.contact {
    background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.contact-card:hover {
    background: rgba(74, 158, 247, 0.06);
    border-color: rgba(74, 158, 247, 0.2);
}

.contact-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(74, 158, 247, 0.1);
    color: var(--blue-400);
}

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

.contact-card h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.contact-card a,
.contact-card span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
}

.contact-card a:hover {
    color: var(--blue-300);
}

/* ===== Footer ===== */
.footer {
    padding: 60px 0 0;
    background: var(--navy-900);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 40px;
}

.footer-brand {
    max-width: 340px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-300);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-col a {
    font-size: 0.9rem;
    color: var(--gray-500);
    transition: var(--transition);
}

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

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===== Scroll Animations ===== */
.section-header,
.about-text,
.about-visual,
.service-card,
.process-step,
.contact-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .footer-top {
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        background: rgba(6, 13, 31, 0.98);
        backdrop-filter: blur(20px);
        transition: var(--transition);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

    .hero {
        padding: 100px 20px 60px;
    }

    .section {
        padding: 70px 0;
    }

    .footer-links {
        gap: 32px;
    }

    .process-timeline::before {
        left: 35px;
    }
}