/* Hero Section */
#hero {
    /* static hero section with inline video above text */
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    position: relative;
    background-color: #050505;
}


#hero .hero-content {
    position: relative; /* To be above the overlay */
    z-index: 1;
    max-width: 800px;
}

.hero-logo-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 16px auto;
}
.hero-logo-inline img {
    max-width: 300px; /* adapt below intrinsic if smaller */
    height: auto;
    border-radius: 8px;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
    font-weight: 300;
}

#hero .hero-earn-link {
    display: inline-block; /* Allows margin and respects text flow */
    margin-top: 1.5rem; /* Space from the button above */
    font-size: 1.1rem; /* Slightly smaller than hero p, but larger than nav */
    /* The gradient text style comes from nav-link-highlight */
}

/* Content Sections General Styling */
.content-section {
    padding: 80px 0;
    min-height: 70vh; /* Ensure sections have some height */
}

.content-section.alt-bg {
    background-color: #121212; /* Slightly different dark shade for alternate sections */
}

.content-section .container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    align-items: center;
    gap: 40px; /* Space between text and image */
}

.content-section .section-text,
.content-section .section-image {
    flex: 1;
    min-width: 300px; /* Prevent extreme squishing */
}

/* Center section title if it's not in a flex item */
.content-section > h2 { /* Direct child h2 of content-section */
    text-align: center;
    display: block; /* Override inline-block from global */
    margin-left: auto;
    margin-right: auto;
}
/* If section title is within a .section-text block, it'll inherit text-align:left by default */
.section-text h2 {
    text-align: left;
    border-bottom: none; /* Remove global border if title is within section text */
    padding-bottom: 0;
    display: block;
}

.section-image img, .section-image video {
    border-radius: 8px;
    /* box-shadow: inset 0 0 25px 10px rgba(0,0,0,0.6); Removed shadow */
    -webkit-mask-image: radial-gradient(circle, black 75%, rgba(0,0,0,0) 100%);
    mask-image: radial-gradient(circle, black 75%, rgba(0,0,0,0) 100%);
}

/* Specific Section Adjustments */
#features ul li, #access .access-model ul li, #monetization ul li, #roadmap ul li {
    font-size: 1.15rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

#features ul li strong, #access .access-model h3, #monetization h3 {
    color: #f0f0f0;
}

#access .access-models {
    display: flex;
    gap: 30px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

#access .access-model {
    flex: 1;
    background-color: rgba(255,255,255,0.03); /* Very subtle background */
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #222;
}

#access .access-model h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

#tokenomics .token-info {
    margin-bottom: 2rem;
}
#tokenomics .token-info h3 {
    font-size: 1.4rem;
    color: #f0f0f0;
    margin-bottom: 0.5rem;
}
#tokenomics .token-info p em {
    color: #aaa;
    font-size: 0.9rem;
}


/* Responsive adjustments for content sections */
@media (max-width: 768px) {
    /* Remove extra hero padding; global header offset handles overlap */
    #hero { padding-top: 0; }
    #hero h1 { font-size: 2.8rem; }
    #hero p { font-size: 1.1rem; }

    .content-section .container {
        position: relative; /* For absolute positioning of section-image */
        padding: 30px 20px; /* Added more padding for text over background */
        display: block; /* Change from flex to block for simpler stacking of text over absolute bg */
    }
    
    .content-section .section-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1; /* Behind text and its own overlay */
        border-radius: 0; /* Ensure it fills edges if container has radius */
    }

    .content-section .section-image img, 
    .content-section .section-image video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
        /* box-shadow: inset 0 0 25px 10px rgba(0,0,0,0.6); Removed shadow */
        -webkit-mask-image: radial-gradient(circle, black 75%, rgba(0,0,0,0) 100%);
        mask-image: radial-gradient(circle, black 75%, rgba(0,0,0,0) 100%);
        margin: 0;
    }

    .content-section .section-image::before { /* Overlay for readability */
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.55); /* Adjusted overlay */
        z-index: 2; /* Above image, below text */
        border-radius: inherit; /* Inherit from parent .section-image if it had one */
    }

    .content-section .section-text {
        position: relative; 
        z-index: 3; /* On top of image and overlay */
        color: #f0f0f0; 
        width: 100%; /* Retain full width for text block */
        text-align: center; /* Keep text centered */
        padding: 20px 0; /* Add some vertical padding within the text block */
    }
    
    .content-section .section-text h2 {
        color: #ffffff; 
        text-align: center; /* Keep h2 centered */
    }

    .content-section .section-text ul {
        text-align: left; 
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 1.5em; /* Restore some padding for bullets if needed */
    }
    .content-section .section-text ul li {
        color: #dddddd; /* Lighter for better contrast */
        margin-bottom: 0.6rem;
        position: relative; /* Ensure bullet positioning is fine */
    }
     .content-section .section-text ul li::before { /* Ensure bullets are visible */
        color: #888; /* Adjust bullet color if needed */
    }


    /* Original rules for .section-text and .section-image width:100% are implicitly handled now */
    /* Original text-align center for .section-text h2 is reapplied */

    #access .access-models {
        flex-direction: column; /* This is fine as it's for content within .section-text */
        margin-top: 1rem; /* Adjust spacing */
    }
    #access .access-model {
        background-color: rgba(20, 20, 20, 0.7); /* Darker background for models on image */
        border: 1px solid #444;
    }

    /* Ensure any direct children of .container that aren't .section-text or .section-image are handled.
       For now, assuming .section-image and .section-text are the primary ones for this effect. */
}

/* Agents section: avoid grid compression by stacking content */
#agents .container {
    display: block;
}

/* Agents section: layout and equal-height cards */
#agents .agent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 16px;
    align-items: stretch;
}
#agents .agent-card {
    height: 100%;
}
#agents .agent-card .agent-media img {
    border-radius: 12px;
}

#agents .agents-explainer {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 8px;
}
#agents .agents-explainer .explainer-card {
    background: #0b0f17;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 12px;
}

@media (max-width: 900px) {
    #agents .agent-grid { grid-template-columns: 1fr; }
    #agents .agents-explainer { grid-template-columns: 1fr; }
}

/* What is Quantu: keep bullet card decoration but remove the inner blue dot */
#what-is .bullet-point::before {
    content: none;
}

/* Technology Section */
#tech .container {
    display: block;
}

#tech .tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

#tech .tech-card:hover {
    transform: translateY(-2px);
    border-color: #334155;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

#tech .tech-card a {
    text-decoration: none;
}

#tech .tech-card a:hover {
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    #tech .tech-grid {
        grid-template-columns: 1fr;
    }
}

/* Production refresh for qnt.sh */
#hero {
    height: auto;
    min-height: calc(100svh - var(--header-h) - 44px);
    justify-content: center;
    padding: 56px 24px 72px;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(96, 165, 250, 0.08), rgba(5,5,6,0) 46%),
        linear-gradient(180deg, #050506 0%, #070911 100%);
}

#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(34, 211, 238, 0.14), transparent 28%, transparent 72%, rgba(167, 139, 250, 0.12)),
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: auto, 64px 64px, 64px 64px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.86), rgba(0,0,0,0.42) 72%, transparent);
}

#hero .hero-content {
    width: min(100%, 1180px);
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 450px);
    column-gap: 72px;
    align-items: center;
    text-align: left;
}

#hero .hero-logo-inline {
    grid-column: 2;
    grid-row: 1 / 6;
    width: 100%;
    margin: 0;
    isolation: isolate;
}

#hero .hero-logo-inline::before {
    content: "";
    position: absolute;
    inset: 8%;
    z-index: -1;
    border-radius: 8px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    transform: rotate(-2deg);
}

#hero .hero-logo-inline img {
    width: 100%;
    max-width: 450px;
    border-radius: 8px;
    filter: saturate(1.08) contrast(1.04);
}

#hero h1,
#hero p,
#hero #agent-cmd,
#hero .cta-container {
    grid-column: 1;
}

#hero h1 {
    max-width: 680px;
    margin-bottom: 18px;
    font-size: 4rem;
    line-height: 1.02;
}

#hero p {
    max-width: 640px;
    margin-bottom: 16px;
    color: #d7dde8;
    font-size: 1.2rem;
    font-weight: 400;
}

#hero .cta-container {
    text-align: left;
    margin: 22px 0 0;
}

.content-section {
    min-height: auto;
    padding: 92px 0;
    position: relative;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.content-section.alt-bg {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(8, 11, 19, 0.92)),
        #080b13;
}

.content-section .container {
    width: min(92%, 1180px);
    max-width: none;
    display: grid;
    grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
    gap: 56px;
    align-items: center;
    padding: 0;
}

.content-section .section-text,
.content-section .section-image {
    min-width: 0;
}

.section-image {
    position: relative;
}

.section-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
}

.section-image img,
.section-image video {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

.section-text h2,
.section-header h2 {
    margin-bottom: 18px;
    color: #ffffff;
    font-size: 2.4rem;
}

.section-text p {
    max-width: 660px;
    color: #d2d8e4;
    font-size: 1.12rem;
    font-weight: 400;
}

.value-proposition-bullets {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
}

.bullet-point {
    margin-bottom: 0;
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-left: 3px solid #22d3ee;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.72);
    color: #d8dee9;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.bullet-point strong {
    color: #ffffff;
}

#tech .container,
#roadmap .container {
    display: block !important;
}

#tech .section-header,
#roadmap .section-header {
    max-width: 760px;
    margin: 0 auto 30px !important;
}

#tech .section-header p,
#roadmap .section-header p {
    color: #9aa6b8 !important;
}

#tech .tech-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

#tech .tech-card,
#roadmap .roadmap-card {
    min-height: 100%;
    border-radius: 8px !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    background:
        linear-gradient(180deg, rgba(18, 24, 38, 0.96), rgba(10, 15, 27, 0.96)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.045) !important;
}

#tech .tech-card {
    padding: 22px !important;
}

#tech .tech-card:hover,
#roadmap .roadmap-card:hover {
    transform: translateY(-3px);
    border-color: rgba(125, 211, 252, 0.34) !important;
    box-shadow: 0 22px 46px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

#tech .tech-card h3,
#roadmap .roadmap-card h3 {
    font-size: 1.15rem !important;
    margin-bottom: 10px !important;
}

#tech .tech-card p,
#roadmap .roadmap-card p {
    color: #c5cedd !important;
    font-size: 1rem !important;
    line-height: 1.65;
}

#tech .tech-card a {
    font-weight: 700;
    text-decoration: none;
}

#roadmap {
    padding: 80px 0 !important;
}

#roadmap .roadmap-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    overflow: visible !important;
}

#roadmap .quarter-column {
    min-width: 0 !important;
    gap: 12px !important;
}

#roadmap .badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px !important;
    font-weight: 700;
}

#install .container {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

#install .section-text {
    max-width: 620px;
}

@media (max-width: 1024px) {
    #hero .hero-content {
        column-gap: 42px;
        grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    }

    #hero h1 {
        font-size: 3.2rem;
    }

    .content-section .container,
    #install .container {
        gap: 34px;
    }
}

@media (max-width: 768px) {
    #hero {
        min-height: auto;
        padding: 30px 18px 42px;
    }

    #hero .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
    }

    #hero .hero-logo-inline {
        width: min(82vw, 300px);
        margin: 0 auto 18px;
        order: 0;
    }

    #hero h1 {
        max-width: 420px;
        margin-bottom: 14px;
        font-size: 2.45rem !important;
    }

    #hero p {
        max-width: 380px;
        margin-bottom: 14px;
        font-size: 1rem !important;
    }

    #hero .cta-container {
        text-align: center;
        margin-top: 18px;
    }

    .content-section {
        padding: 64px 0;
    }

    .content-section .container,
    #install .container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 24px;
        padding: 0;
    }

    .content-section .section-image {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        z-index: auto !important;
        order: 0;
    }

    .content-section .section-image img,
    .content-section .section-image video {
        width: 100%;
        height: auto !important;
        object-fit: cover;
        border-radius: 8px;
    }

    .content-section .section-image::before {
        content: none !important;
    }

    .content-section .section-text {
        position: relative !important;
        z-index: auto !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .content-section .section-text h2 {
        text-align: left !important;
        font-size: 1.9rem;
    }

    .content-section .section-text p {
        font-size: 1rem;
    }

    .bullet-point {
        padding: 14px 15px;
    }

    #tech .tech-grid,
    #roadmap .roadmap-grid {
        grid-template-columns: 1fr !important;
    }

    #roadmap .quarter-column {
        width: 100% !important;
    }
}
