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

:root {
    --bg-main: #060913;
    --bg-surface: rgba(20, 25, 40, 0.6);
    --bg-surface-hover: rgba(30, 38, 56, 0.8);
    --text-primary: #F8FAFC;
    --text-muted: #94A3B8;
    --text-subtle: #64748B;

    --accent-glow: rgba(59, 130, 246, 0.5);
    --brand-primary: #3B82F6;
    --brand-secondary: #8B5CF6;
    --brand-gradient: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
    --shadow-surface: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
}

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

/* Background Effects */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.shell {
    width: min(1200px, 90vw);
    margin: 0 auto;
}

.top-line {
    height: 3px;
    background: var(--brand-gradient);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
}

.navbar {
    position: fixed;
    top: 3px;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 9, 19, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}

.logo-link img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-link:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary) !important;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-cta:hover {
    background: var(--brand-gradient);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    font-weight: 700;
    color: transparent;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 1.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background-color: var(--bg-surface);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    font-weight: 700;
    background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    color: var(--text-muted);
    max-width: 70ch;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.85rem 1.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--brand-gradient);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

.hero-side {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-highlight);
    background: var(--bg-surface-hover);
}

.stat-title {
    font-size: 0.85rem;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Sections */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-muted);
    margin: 0 auto 4rem;
    max-width: 60ch;
    text-align: center;
    font-size: 1.1rem;
}

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

.card,
.step,
.boundary-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.card:hover,
.step:hover,
.boundary-box:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-surface);
    transform: translateY(-5px);
}

.card h3,
.step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

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

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

.step .num {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    background: var(--brand-gradient);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
}

.boundary-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.boundary-box h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.boundary-box p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.boundary-box a {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    margin-right: 1.5rem;
    font-size: 0.95rem;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--brand-primary);
    transition: all 0.2s ease;
}

.boundary-box a:hover {
    color: var(--brand-primary);
    border-color: transparent;
}

/* CTA Section */
.cta-panel {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.4) 0%, rgba(88, 28, 135, 0.4) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-lg);
    padding: clamp(3rem, 5vw, 5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.05;
    pointer-events: none;
}

.cta-panel h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: #fff;
}

.cta-panel p {
    color: #dbeafe;
    font-size: 1.1rem;
    max-width: 60ch;
    margin: 0 auto 2.5rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #02040A;
    border-top: 1px solid var(--border-color);
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 10%;
    width: 80%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.05) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 0;
    pointer-events: none;
}

.footer .shell {
    position: relative;
    z-index: 1;
}


.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-subtle);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-subtle);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Modal Enhancements */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    inset: 0;
    background-color: rgba(2, 4, 10, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #0B101E;
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-surface);
    width: min(600px, 100%);
    padding: 2.5rem;
    position: relative;
}

.close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #fff;
}

.modal h2 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
    color: #fff;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font: inherit;
    transition: all 0.2s ease;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.form-group select option {
    background: #0B101E;
    color: #fff;
}

.submit-btn {
    width: 100%;
    border: none;
    border-radius: var(--radius-md);
    background: var(--brand-gradient);
    color: white;
    padding: 1rem;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Reveal Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-main,
.hero-side>div,
.card,
.step,
.boundary-box {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-side>div:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-side>div:nth-child(2) {
    animation-delay: 0.3s;
}

.hero-side>div:nth-child(3) {
    animation-delay: 0.4s;
}

.cards .card:nth-child(1) {
    animation-delay: 0.1s;
}

.cards .card:nth-child(2) {
    animation-delay: 0.2s;
}

.cards .card:nth-child(3) {
    animation-delay: 0.3s;
}

.process .step:nth-child(1) {
    animation-delay: 0.1s;
}

.process .step:nth-child(2) {
    animation-delay: 0.2s;
}

.process .step:nth-child(3) {
    animation-delay: 0.3s;
}

.boundary-box:nth-child(1) {
    animation-delay: 0.1s;
}

.boundary-box:nth-child(2) {
    animation-delay: 0.2s;
}

/* Responsive */
@media (max-width: 980px) {
    h1 {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }

    .hero-side {
        grid-template-columns: 1fr;
    }

    .cards,
    .process,
    .boundary-panel {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 780px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 5vw;
        flex-direction: column;
        align-items: flex-start;
        width: 90vw;
        background: rgba(6, 9, 19, 0.95);
        backdrop-filter: blur(16px);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 1.5rem;
        box-shadow: var(--shadow-surface);
        gap: 1.5rem;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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