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

:root {
    --bg-base: #0a0a0a;
    --bg-surface: #121212;
    --primary: #10b981;
    /* Emerald */
    --primary-dim: rgba(16, 185, 129, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --nav-height: 80px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

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

/* --- Layout --- */

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

section {
    padding: 140px 0;
}

/* --- Global Components --- */

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.eyebrow {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    text-decoration: none;
    gap: 10px;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    border: none;
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
}

/* --- Navigation --- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 10, 0.8);
    transition: all 0.3s var(--ease);
}

.nav-scrolled {
    height: 65px;
    background: rgba(10, 10, 10, 0.95);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
    color: #fff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-only {
    display: none;
}

.desk-only {
    display: block;
}

/* --- Hero --- */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    text-align: center;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 2rem;
}

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

/* --- Expertise Grid --- */

.expertise-section {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 992px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

.expertise-cell {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    transition: all 0.3s var(--ease);
}

.expertise-cell:hover {
    background: var(--primary-dim);
    border-color: var(--primary);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px -10px rgba(16, 185, 129, 0.3);
}

.expertise-cell:hover i {
    transform: rotate(10deg);
}

.expertise-cell i {
    color: var(--primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease);
}

.cell-content {
    display: flex;
    flex-direction: column;
}

.cell-content strong {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: #fff;
    white-space: nowrap;
}

.cell-content span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* --- Engagement Pipeline --- */

.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.pipeline-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 3.5rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transition: 0.4s var(--ease);
}

.pipeline-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--bg-base);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.pipeline-card i {
    color: var(--primary);
    margin-bottom: 2rem;
    width: 32px;
    height: 32px;
    opacity: 0.8;
}

/* --- Pulse Indicator --- */

.pulse-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3.5);
        opacity: 0;
    }
}

/* --- Horizontal Services Layout (Startup Minimalist) --- */

.section-title {
    margin-bottom: 6rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.services-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-row {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.service-row:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-5px);
}

.service-row h3 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.service-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    font-size: 0.75rem;
    color: var(--primary);
    background: var(--primary-dim);
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 600;
}

.service-desc p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

/* --- Support Model --- */

.model-banner {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 5rem;
    text-align: center;
}

/* --- Footer --- */

footer {
    padding: 100px 0 60px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-info p {
    color: var(--text-secondary);
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

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

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

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

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* --- Animations --- */

.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */

@media (max-width: 992px) {
    .service-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem;
    }

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

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

@media (max-width: 600px) {
    .container {
        padding: 0 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .desk-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        border-bottom: 1px solid var(--border);
        padding: 2rem;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        backdrop-filter: blur(20px);
    }

    .nav-links.active {
        display: flex;
    }

    section {
        padding: 80px 0;
    }

    .hero {
        padding-top: 120px;
        min-height: auto;
    }

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

    .section-title h2 {
        font-size: 2.2rem;
    }

    .pipeline-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .model-banner {
        padding: 3rem 1.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .expertise-grid {
        gap: 0.8rem;
    }

    .expertise-cell {
        padding: 0.8rem 1rem;
    }
}

/* --- Privacy & Terms Overlay --- */

.footer-cta {
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.2s;
    font-weight: 500;
}

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

/* --- Legal Modal --- */

#legal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2500;
    display: none;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

#legal-overlay.active {
    opacity: 1;
}

#legal {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    padding: 3.5rem;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.gradient-text {
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}