/* --- Reset & Variables --- */
:root {
    /* Dark Mode First Palette */
    --bg-base: #060606;
    --bg-surface: #111111;
    --bg-elevated: #1a1a1a;

    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-tertiary: #8c93a1;

    /* Accents (Purple & Gold) */
    --accent-gold: #d4af37;
    --accent-purple: #7c3aed;
    --accent-blue: #3b82f6;

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

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-pill: 100px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* --- Typography --- */
.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 50%, var(--text-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShimmer 4s linear infinite;
}

.text-gold {
    background: linear-gradient(135deg, #fcd34d 0%, var(--accent-gold) 50%, #fcd34d 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShimmer 4s linear infinite;
}

.text-purple {
    background: linear-gradient(135deg, #a78bfa 0%, var(--accent-purple) 50%, #a78bfa 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShimmer 4s linear infinite reverse;
}

h1,
h2,
h3,
h4,
h5 {
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.03em;
}

/* --- Layout Wrappers --- */
.wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-spacing {
    padding: 8rem 0;
}

/* --- Floating Pill Nav --- */
.pill-nav-container {
    position: fixed;
    top: 2rem;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    /* Let clicks pass through container */
}

.pill-nav {
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 0.5rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1000px;
    pointer-events: auto;
    /* Re-enable clicks */
    transition: all 0.3s ease;
}

.pill-nav.scrolled {
    background: rgba(17, 17, 17, 0.85);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    top: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 1rem;
}

.nav-brand img {
    height: 28px;
}

.nav-brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.nav-action {
    background: var(--text-primary);
    color: var(--bg-base);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-action:hover {
    background: var(--accent-gold);
    color: var(--bg-base);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

/* --- Centered Hero --- */
.hero-centered {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 6rem;
    /* Account for nav */
}

.hero-badge {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    display: inline-block;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.hero-visual {
    margin-top: 4rem;
    width: 100%;
    max-width: 1000px;
    height: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

/* Hero Glows */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
    animation: blobFloat 12s infinite alternate ease-in-out;
}

.glow-purple {
    background: var(--accent-purple);
    width: 400px;
    height: 400px;
    top: 20%;
    left: -100px;
}

.glow-gold {
    background: var(--accent-gold);
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -50px;
}

/* --- Bento Box Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.col-4 {
    grid-column: span 4;
}

.col-8 {
    grid-column: span 8;
}

.col-6 {
    grid-column: span 6;
}

.col-12 {
    grid-column: span 12;
}

.row-2 {
    grid-row: span 2;
}

/* Bento content styling */
.bento-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.bento-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.bento-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Vertical Scrolling Timeline --- */
.timeline-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.timeline-sticky-header {
    position: sticky;
    top: 8rem;
}

.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
}

.timeline-steps::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    z-index: 0;
}

.timeline-step {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.step-indicator {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.timeline-step.active .step-indicator {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.step-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    flex-grow: 1;
    opacity: 0.5;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.timeline-step.active .step-content {
    opacity: 1;
    transform: translateY(0);
    border-color: var(--border-hover);
}

/* --- Interactive Tabs --- */
.tabs-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 -2px 0 var(--accent-purple);
}

.tab-content {
    display: none;
    padding: 3rem;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

/* --- Footer --- */
.asymmetric-footer {
    border-top: 1px solid var(--border-color);
    padding: 6rem 0 2rem 0;
    background: var(--bg-base);
}

.footer-grid-modern {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-large-text {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.footer-nav-col h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav-col ul {
    list-style: none;
}

.footer-nav-col ul li {
    margin-bottom: 0.75rem;
}

.footer-nav-col a {
    color: var(--text-primary);
    font-size: 1rem;
}

.footer-nav-col a:hover {
    color: var(--accent-gold);
}

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

/* Forms */
.neo-form .form-group {
    margin-bottom: 1.5rem;
}

.neo-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.neo-form input,
.neo-form textarea {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.neo-form input:focus,
.neo-form textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.btn-submit {
    width: 100%;
    background: var(--text-primary);
    color: var(--bg-base);
    border: none;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--accent-gold);
    transform: translateY(-3px);
}

/* --- Buttons --- */
.btn-primary,
.btn-outline {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-base);
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-base);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.pulse-btn {
    animation: btnPulse 2s infinite;
}

/* Animations */
@keyframes gradientShimmer {
    to {
        background-position: 200% center;
    }
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.5;
    }

    100% {
        transform: translate(-20px, 20px) scale(0.95);
        opacity: 0.3;
    }
}

@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Mobile Responsive */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .col-4,
    .col-8,
    .col-6 {
        grid-column: span 1 !important;
    }

    .timeline-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-sticky-header {
        position: static;
    }

    .footer-grid-modern {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-action {
        display: none;
    }

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

    /* Mobile Menu Active State */
    .nav-links.mobile-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        padding: 1rem;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        margin-top: 0.5rem;
    }
}