/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #0B1120;
    /* Deepest Navy */
    --accent-color: #3B82F6;
    /* Bright Blue */
    --accent-secondary: #06B6D4;
    /* Cyan */
    --accent-glow: rgba(59, 130, 246, 0.6);
    --surface-dark: #1E293B;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --gradient-main: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
}

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

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

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94A3B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-size: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Header */
header {
    background-color: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent-secondary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 180px 0 100px;
    position: relative;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.08), transparent 25%);
}

/* Background Grid Animation */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    z-index: 1;
    pointer-events: none;
}

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

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero h1 span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    /* Stack on mobile, inline on desktop handled by media query */
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image-container {
    margin-top: 80px;
    position: relative;
    perspective: 1000px;
}

.hero-img {
    width: 100%;
    max-width: 1000px;
    border-radius: 20px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 50px 100px -20px rgba(0, 0, 0, 0.6);
    transform: rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: rotateX(0deg) scale(1.02);
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
}

/* Modules Grid */
.modules {
    padding: 120px 0;
    position: relative;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.module-card {
    background: rgba(30, 41, 59, 0.5);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.module-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.module-icon {
    width: 70px;
    height: 70px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: var(--accent-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.module-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: white;
}

.module-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Differentials */
.differentials {
    padding: 120px 0;
    background: linear-gradient(to bottom, var(--primary-color), #020617);
}

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

.diff-item {
    text-align: center;
    position: relative;
}

.diff-number {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.diff-content {
    position: relative;
    z-index: 1;
    background: rgba(11, 17, 32, 0.8);
    /* readable text over number */
    padding-top: 40px;
}

.diff-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Workflow */
.flow {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.flow-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.step {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px 30px;
    border-radius: 24px;
    width: 260px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.step:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white;
}

.step-arrow {
    font-size: 2rem;
    color: var(--text-secondary);
    animation: pulse 2s infinite;
}

/* Contact Footer */
footer {
    background-color: #020617;
    padding: 100px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    display: inline-block;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
}

.footer-contact {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.hero-image-container {
    animation: float 6s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-img {
        transform: none;
    }

    nav ul {
        display: none;
    }

    .flow-steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

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