/* RESET AND BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #FFFFFF;
    --black: #000000;
    --red: #C61919;
    --gray-black: #333333;
    --light-gray: #F5F5F5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
    cursor: default;
}

html {
    scroll-behavior: smooth;
}

/* ==== NAVBAR ==== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.visible {
    opacity: 1;
    pointer-events: auto;
}

.navbar-container {
    padding: 0.8rem 3rem;
    display: flex;
    align-items: center;
}

.navbar-logo {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.navbar-logo:hover {
    opacity: 0.7;
}

.logo {
    height: 40px;
    width: auto;
    display: block;
    color: #000000;
}

/* PRE-ENTRY STATE */
.pre-entry {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.pre-entry.slide-up {
    transform: translateY(-100%);
}

.pre-entry-content {
    position: relative;
    text-align: center;
}

.pre-entry-line-1 {
    font-size: 1.8rem;
    color: var(--black);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.pre-entry-divider {
    width: 2px;
    height: 0;
    background: var(--red);
    margin: 2rem auto;
    animation: growLine 0.4s ease-out forwards 0.5s, blink 0.2s ease-in-out 0.9s;
}

.pre-entry-line-2 {
    font-size: 1.8rem;
    color: var(--black);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes growLine {
    to {
        height: 40px;
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* MAIN CONTENT */
.main-content {
    opacity: 0;
    transition: opacity 0.8s ease-in;
    padding-top: 5.6rem;
}

.main-content.visible {
    opacity: 1;
}

/* SECTION 1: WORLDVIEW */
.section-1 {
    min-height: 100vh;
    background: var(--white);
    display: flex;
    align-items: center;
    padding: 0 10% 0 10%;
}

.section-1-content {
    max-width: 900px;
}

.animate-line {
    font-size: 2.5rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(12px);
}

.animate-line.visible {
    animation: slideInText 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.flicker-red {
    display: inline-block;
    animation: flickerRed 0.3s ease-in-out;
}

@keyframes flickerRed {
    0%, 100% { color: var(--black); }
    50% { color: var(--red); }
}

/* SECTION 2: THE GAP */
.section-2 {
    min-height: 80vh;
    background: var(--white);
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.section-2-content {
    max-width: 900px;
    width: 100%;
}

.drift-line {
    font-size: 2.2rem;
    line-height: 1.4;
    margin-bottom: 3rem;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.drift-line.drifting {
    transform: translateX(-100px);
    opacity: 0.3;
}

.fixed-line {
    font-size: 2.2rem;
    line-height: 1.4;
    position: relative;
}

.fixed-emphasis {
    font-weight: 600;
    position: relative;
    z-index: 10;
}

/* SECTION 3: BROADCAST VS TRIBES */
.section-3 {
    min-height: 90vh;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
}

.split-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 4rem;
    width: 100%;
    max-width: 1200px;
    align-items: center;
}

.split-left {
    background: var(--white);
    padding: 3rem;
    text-align: center;
}

.split-left h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.split-left p {
    font-size: 1.2rem;
    line-height: 1.8;
}

.split-divider {
    width: 2px;
    height: 200px;
    background: transparent;
    position: relative;
}

.split-divider.animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--red);
    animation: drawLine 1s ease-out forwards;
}

@keyframes drawLine {
    from {
        height: 0%;
    }
    to {
        height: 100%;
    }
}

.split-right {
    background: var(--black);
    color: var(--white);
    padding: 3rem;
    text-align: center;
}

.split-right h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.split-right p {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* SECTION 4: THE INVISIBLE COST */
.section-4 {
    min-height: 90vh;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
}

.section-4-content {
    max-width: 800px;
    text-align: left;
}

.cost-line {
    font-size: 2rem;
    line-height: 1.6;
    color: var(--white);
    margin-bottom: 1.5rem;
    opacity: 0;
}

.cost-line.visible {
    animation: fadeInSlow 0.8s ease-out forwards;
}

.cost-line-red {
    font-size: 2rem;
    line-height: 1.6;
    color: var(--red);
    margin-top: 2rem;
    opacity: 0;
}

.cost-line-red.visible {
    animation: fadeInSlow 0.8s ease-out forwards;
}

@keyframes fadeInSlow {
    to {
        opacity: 1;
    }
}

/* SECTION 5: INTRODUCING LADDERS */
.section-5 {
    min-height: 85vh;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    position: relative;
}

.ladder-motif {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 300px;
    opacity: 0.1;
    transition: opacity 0.6s ease-out;
}

.ladder-motif::before,
.ladder-motif::after {
    content: '';
    position: absolute;
    left: -10px;
    width: 23px;
    height: 2px;
    background: var(--gray-black);
}

.ladder-motif::before {
    top: 30%;
}

.ladder-motif::after {
    top: 70%;
}

.ladder-motif.sharpened {
    opacity: 0.3;
}

.section-5-content {
    max-width: 800px;
}

.intro-line {
    font-size: 2.3rem;
    line-height: 1.5;
}

.emphasize-word {
    font-weight: 600;
    position: relative;
}

/* SECTION 6: HOW IT MOVES */
.section-6 {
    min-height: 90vh;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
}

.section-6-content {
    max-width: 900px;
    width: 100%;
}

.animation-container {
    position: relative;
    height: 200px;
    margin-bottom: 4rem;
}

.intent-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--black);
    border-radius: 50%;
    transform: translateY(-50%);
    transition: left 1.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.intent-dot.moving {
    left: calc(100% - 12px);
}

.intent-path {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    transform: translateY(-50%);
}

.path-label {
    position: absolute;
    top: -40px;
    font-size: 0.9rem;
    color: var(--gray-black);
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.path-label[data-step="1"] {
    left: 20%;
}

.path-label[data-step="2"] {
    left: 50%;
    transform: translateX(-50%);
}

.path-label[data-step="3"] {
    right: 20%;
}

.path-label.visible {
    opacity: 1;
}

.flow-description {
    font-size: 1.8rem;
    text-align: center;
    line-height: 1.6;
}

/* SECTION 7: ROLES (LIVING) */
.section-7 {
    min-height: 90vh;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
}

.lanes-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
}

.lane {
    opacity: 0;
    transform: translateY(20px);
}

.lane.visible {
    animation: laneAppear 0.6s ease-out forwards;
}

.lane[data-lane="1"].visible {
    animation-delay: 0s;
}

.lane[data-lane="2"].visible {
    animation-delay: 0.2s;
}

.lane[data-lane="3"].visible {
    animation-delay: 0.4s;
}

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

.lane h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.lane p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--gray-black);
}

.lane-bridge {
    position: relative;
}

.red-pulse {
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    opacity: 0;
}

.red-pulse.pulsing {
    animation: pulse 0.8s ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* SECTION 8: INCENTIVES */
.section-8 {
    min-height: 90vh;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
}

.section-8-content {
    max-width: 1200px;
    width: 100%;
}

.incentive-intro {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 500;
}

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

.role-hover-card {
    background: var(--white);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.role-hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.role-hover-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.role-details {
    opacity: 1;
}

.role-details p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.gain {
    color: var(--black);
    font-weight: 600;
}

.risk {
    color: var(--gray-black);
}

.compound {
    color: var(--gray-black);
    font-style: italic;
}

/* SECTION 9: PHILOSOPHICAL PUNCH */
.section-9 {
    min-height: 75vh;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
}

.section-9-content {
    max-width: 700px;
    text-align: center;
}

.philosophy-line-1 {
    font-size: 2rem;
    font-style: italic;
    color: var(--gray-black);
    margin-bottom: 2rem;
}

.philosophy-line-2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--black);
}

.underline-red-permanent {
    position: relative;
    display: inline-block;
}

.underline-red-permanent::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--red);
}

/* SECTION 10: FINAL INVITATION */
.section-10 {
    min-height: 90vh;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
}

.section-10-content {
    max-width: 800px;
    text-align: center;
}

.final-question {
    font-size: 2.8rem;
    line-height: 1.4;
    margin-bottom: 4rem;
    font-weight: 500;
}

.final-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.btn-request-access {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-request-access:hover {
    animation: subtleVibrate 0.3s ease-in-out;
}

@keyframes subtleVibrate {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
}

.btn-learn-more {
    color: var(--black);
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 3px;
}

.btn-learn-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--red);
}

.btn-learn-more:hover {
    color: var(--red);
}

/* FOOTER */
.footer {
    min-height: 30vh;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 10%;
    text-align: center;
}

.footer-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.footer-line {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gray-black);
    opacity: 0;
    margin-bottom: 0.5rem;
}

.footer-line.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.footer-line:nth-child(2).visible {
    animation-delay: 0.3s;
}

.footer-line:nth-child(3).visible {
    animation-delay: 0.6s;
}

/* Inline logo in section 5 */
.inline-logo {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin-right: 10px;
    display: inline-block;
    position: relative;
    top: -2px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .section-1-content,
    .section-2-content,
    .section-4-content,
    .section-5-content,
    .section-9-content,
    .section-10-content {
        padding: 0 5%;
    }
    
    .animate-line,
    .drift-line,
    .fixed-line {
        font-size: 1.8rem;
    }
    
    .cost-line,
    .cost-line-red {
        font-size: 1.6rem;
    }
    
    .lanes-container,
    .roles-hover-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .split-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .split-divider {
        width: 100%;
        height: 2px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0.6rem 2rem;
    }
    
    .logo {
        height: 32px;
    }
    
    .main-content {
        padding-top: 4.8rem;
    }
    
    .pre-entry-line-1,
    .pre-entry-line-2 {
        font-size: 1.3rem;
    }
    
    .animate-line,
    .drift-line,
    .fixed-line {
        font-size: 1.4rem;
    }
    
    .cost-line,
    .cost-line-red {
        font-size: 1.3rem;
    }
    
    .intro-line {
        font-size: 1.6rem;
    }
    
    .final-question {
        font-size: 1.8rem;
    }
    
    .animation-container {
        height: 150px;
    }
    
    .path-label {
        font-size: 0.75rem;
    }
}
