:root {
    /* Brand Colors */
    --burnt-orange: #C85711;
    --burnt-orange-light: #E06A1A;
    --soft-peach: #FCDDCA;
    --cream: #FFF7F1;
    --dark-text: #24140E;
    --muted-brown: #7A3B16;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --card-shadow: 0 40px 100px rgba(36, 20, 14, 0.04), 0 10px 40px rgba(36, 20, 14, 0.02);
    --premium-gradient: linear-gradient(135deg, var(--soft-peach) 0%, var(--cream) 100%);
    --glow-orange: 0 0 20px rgba(200, 87, 17, 0.2);
}

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

html, body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--cream);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: clamp(60px, 8vw, 100px) 0;
    position: relative;
    border-radius: 40px;
    /* Grounded design */
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1.1rem;
    color: var(--muted-brown);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 36px;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
}

.btn-primary {
    background: var(--burnt-orange);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(200, 87, 17, 0.2);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--dark-text);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(200, 87, 17, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--burnt-orange);
    color: var(--burnt-orange);
}

.btn-secondary:hover {
    background: var(--burnt-orange);
    color: var(--white);
    transform: translateY(-3px);
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Navigation */
nav {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 88px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    border-radius: 100px;
    background: var(--glass-bg);
    backdrop-filter: blur(6px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--burnt-orange);
    text-decoration: none;
}

.logo img {
    height: 68px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
}

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

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

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
}

.bento-item {
    background: var(--white);
    border-radius: 20px;
    padding: clamp(20px, 2vw, 28px);
    box-shadow: var(--card-shadow);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.bento-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.bento-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}

.bento-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 60px 120px rgba(200, 87, 17, 0.08), 0 20px 40px rgba(36, 20, 14, 0.03);
    border-color: var(--soft-peach);
}

.bento-item .icon-box {
    transition: all 0.4s ease;
}

.bento-item:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    color: var(--burnt-orange-light);
}

/* Command Center Visuals */
.command-center {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 10px;
    perspective: 1000px;
}

.status-card {
    background: var(--white);
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    border: 1px solid rgba(0, 0, 0, 0.02);
    animation: float-slow 4s infinite ease-in-out;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-card.active .status-indicator {
    background: #27c93f;
    box-shadow: 0 0 10px #27c93f;
}

.status-card.running .status-indicator {
    background: var(--burnt-orange);
    box-shadow: 0 0 10px var(--burnt-orange);
}

@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0) rotateX(0);
    }

    50% {
        transform: translateY(-8px) rotateX(2deg);
    }
}

/* Talent Network Animation */
.talent-network-container {
    position: relative;
    width: 100%;
    height: 90px;
    background: rgba(200, 87, 17, 0.015);
    border-radius: 12px;
    border: 1px solid rgba(200, 87, 17, 0.08);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: inset 0 0 24px rgba(200, 87, 17, 0.01);
}

.talent-network-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.talent-network-svg line {
    stroke: var(--burnt-orange);
    stroke-width: 1.5;
    stroke-opacity: 0.12;
    stroke-dasharray: 4 4;
    animation: dash-flow 20s linear infinite;
}

@keyframes dash-flow {
    to {
        stroke-dashoffset: -40;
    }
}

.talent-network-svg .pulse-line {
    stroke: var(--burnt-orange);
    stroke-width: 1.5;
    stroke-opacity: 0.4;
    stroke-dasharray: 10 90;
    stroke-dashoffset: 100;
    animation: pulse-flow 4s infinite linear;
}

@keyframes pulse-flow {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.talent-profile-node {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.talent-profile-node:hover {
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 10;
}

.talent-node-avatar {
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 2px solid var(--burnt-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(200, 87, 17, 0.12);
    transition: all 0.3s ease;
    position: relative;
}

.talent-profile-node:hover .talent-node-avatar {
    background: var(--soft-peach);
    box-shadow: 0 6px 15px rgba(200, 87, 17, 0.22), 0 0 0 6px rgba(200, 87, 17, 0.08);
}

.talent-node-avatar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid var(--burnt-orange);
    opacity: 0.3;
    animation: avatar-pulse 2.5s infinite ease-out;
}

@keyframes avatar-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.talent-node-label {
    margin-top: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--dark-text);
    background: var(--white);
    padding: 3px 8px;
    border-radius: 100px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(200, 87, 17, 0.08);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.talent-profile-node:hover .talent-node-label {
    background: var(--burnt-orange);
    color: var(--white);
    border-color: var(--burnt-orange);
}

/* Moving Glowing Line */
.glow-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--burnt-orange), transparent);
    animation: move-glow 4s infinite linear;
    opacity: 0.3;
}

@keyframes move-glow {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Animations */
@keyframes float {

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

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

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(200, 87, 17, 0.1);
    }

    50% {
        box-shadow: 0 0 40px rgba(200, 87, 17, 0.3);
    }
}

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

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

@keyframes scroll-tick {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    50% {
        transform: translateY(10px);
        opacity: 1;
    }

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

/* Footer */
footer {
    background: var(--cream);
    color: var(--dark-text);
    padding: 60px 0 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

footer a {
    color: var(--dark-text);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 1;
    color: var(--burnt-orange);
}

.footer-bottom {
    text-align: center;
    opacity: 0.5;
    font-size: 0.8rem;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* How We Work Timeline */
.how-we-work {
    padding: 100px 0;
    position: relative;
    background: var(--white);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
    padding-left: 40px;
    border-left: 2px solid var(--soft-peach);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 160px 0 120px;
    background: var(--cream);
}

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

/* CTA Section */
.cta-section {
    padding: 60px 0 40px;
    position: relative;
    z-index: 10;
}

/* CTA Card */
.cta-card {
    background: var(--soft-peach);
    color: var(--dark-text);
    padding: 64px 48px;
    border-radius: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1000px;
    border: 1px solid rgba(200, 87, 17, 0.2);
}

.cta-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(200, 87, 17, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.cta-card > * {
    position: relative;
    z-index: 1;
}

.cta-card h2 {
    color: var(--dark-text);
    margin-bottom: 20px;
}

.cta-card p {
    color: var(--dark-text);
    opacity: 0.8;
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    nav {
        height: 72px;
        padding: 0 20px;
    }

    .logo img {
        height: 40px;
    }

    .nav-links {
        display: none;
    }

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

    section {
        padding: 40px 0;
    }

    .hero {
        padding: 150px 0 0px !important; /* Eliminate bottom padding, increase top for nav overlap */
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important; /* Gap between badges and animation (target 24px-32px) */
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .hero-btns {
        flex-direction: column;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 12px;
    }

    .hero-btns .btn {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        text-align: center;
        box-sizing: border-box;
        display: block; /* Ensure it behaves as a block for width 100% */
        white-space: normal; /* Allow text to wrap if it's too long */
    }

    .hero-trust-badges {
        flex-wrap: wrap;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 10px;
        justify-content: flex-start;
        margin-top: 24px !important;
    }

    .core-engine-wrapper {
        height: 260px !important;
        width: 100% !important;
        max-width: 350px !important; /* Restrict width */
        margin: 0 auto !important; /* Center properly */
        min-width: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        background: radial-gradient(circle at center, rgba(200, 87, 17, 0.04) 0%, transparent 65%) !important;
        border: 1px solid rgba(200, 87, 17, 0.06) !important;
        border-radius: 40px !important;
    }

    .core-rings {
        transform: rotateX(65deg) rotateZ(-25deg) scale(0.48) !important;
    }

    #stack {
        padding-top: 36px !important; /* Gap between animation and heading (target 32px-44px) */
    }

    .cta-section {
        padding: 40px 0 20px;
    }

    .cta-card {
        padding: 40px 24px;
        border-radius: 24px;
    }

    /* Mobile overrides */
    .mobile-stack {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        display: grid !important;
    }
    
    .mobile-stack-columns {
        flex-direction: column !important;
    }

    .talent-network-container {
        height: 200px !important;
        max-width: 100%;
    }

    .talent-node-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .talent-node-label {
        font-size: 0.6rem;
    }

    footer {
        padding: 40px 0 20px;
        text-align: center;
    }
    
    .footer-bottom {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .btn {
        padding: 16px 24px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* ========================================
   ACCESSIBILITY
======================================== */
:focus-visible {
    outline: 2px solid var(--burnt-orange);
    outline-offset: 4px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}