:root {
    --bg-prime: #0a0a0b;
    --text-white: #ffffff;
    --text-muted: #88888e;
    --accent-orange: #ff9900;
    --border-dim: rgba(255, 255, 255, 0.08);
    --card-bg: #141416;

    --font-inter: 'Inter', sans-serif;
    --font-serif: 'EB Garamond', serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-prime);
    color: var(--text-white);
    font-family: var(--font-inter);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Elements */
.flywheel-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.05) 0%, transparent 70%);
    border: 1px dashed rgba(255, 153, 0, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: rotateSlow 60s linear infinite;
}

@keyframes rotateSlow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.stars-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    z-index: -1;
}

/* Container */
.bezos-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 40px;
}

/* Header */
.header-main {
    text-align: center;
    margin-bottom: 120px;
    padding: 60px 0;
    border-bottom: 1px solid var(--border-dim);
}

.badge-line {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 14px;
    border: 1px solid var(--text-muted);
    letter-spacing: 0.15em;
    border-radius: 4px;
}

.badge.accent {
    background: var(--accent-orange);
    color: #000;
    border: none;
    font-weight: 700;
}

.main-title {
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.85;
    margin-bottom: 20px;
}

.role-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: 0.1em;
}

.motto-box {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.3;
}

.core-pillars {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.pillar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pillar span {
    color: var(--accent-orange);
    font-family: var(--font-mono);
}

/* Cards */
.section-card {
    background: var(--card-bg);
    border: 1px solid var(--border-dim);
    padding: 60px;
    margin-bottom: 60px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-orange);
    margin-bottom: 25px;
    display: block;
    letter-spacing: 0.2em;
}

.section-card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 30px;
}

/* Flywheel Visual */
.flywheel-container {
    height: 400px;
    position: relative;
    margin: 40px 0;
}

.flywheel-visual {
    width: 300px;
    height: 300px;
    border: 2px dashed var(--border-dim);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.f-node {
    position: absolute;
    background: var(--bg-prime);
    border: 1px solid var(--accent-orange);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.f-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 900;
    color: var(--accent-orange);
    letter-spacing: 0.2em;
}

/* Regret Slider */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.block-card {
    background: var(--card-bg);
    padding: 40px;
    border: 1px solid var(--border-dim);
    border-radius: 8px;
}

.accent-orange {
    border-top: 4px solid var(--accent-orange);
}

.age-slider-container {
    margin: 30px 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.age-slider {
    flex: 1;
    accent-color: var(--accent-orange);
}

.regret-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-orange);
    height: 1.5em;
}

/* Memo Grid */
.memo-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.memo-line {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-dim);
    font-size: 0.95rem;
}

.memo-right h3 {
    color: var(--accent-orange);
}

/* AWS Constitution Code Style */
.code-style {
    background: #000;
}

.aws-rules {
    background: #0f0f11;
    padding: 40px;
    border: 1px solid var(--accent-orange);
    font-family: var(--font-mono);
    border-radius: 4px;
    margin: 30px 0;
}

.rule-code {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #a0a0a0;
}

.rule-code .ln {
    color: var(--accent-orange);
    margin-right: 20px;
    opacity: 0.5;
}

.rule-code.important {
    color: #fff;
    border-left: 2px solid var(--accent-orange);
    padding-left: 15px;
}

/* Reading List */
.reading-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.book-item {
    border-top: 1px solid var(--accent-orange);
    padding-top: 20px;
}

.book-title {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.book-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Project Evolution Current */
.evo-column.current {
    background: rgba(255, 153, 0, 0.15);
    border: 1px solid var(--accent-orange);
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.2);
}

.evo-header {
    font-family: var(--font-mono);
    font-weight: 700;
    margin-bottom: 10px;
}

/* Detailed Timeline Container */
.timeline-container {
    padding-left: 120px;
    position: relative;
    margin-top: 40px;
}

.t-line {
    border-left: 2px solid var(--border-dim);
    padding-left: 40px;
}

.t-event {
    position: relative;
    margin-bottom: 50px;
}

.t-event::before {
    content: '';
    position: absolute;
    left: -48px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--bg-prime);
    border: 2px solid var(--accent-orange);
    border-radius: 50%;
}

.t-event.highlight::before {
    background: var(--accent-orange);
    box-shadow: 0 0 10px var(--accent-orange);
}

.t-year {
    position: absolute;
    left: -130px;
    top: 0;
    font-family: var(--font-mono);
    font-weight: 800;
    color: var(--accent-orange);
}

.t-event p {
    font-size: 1rem;
    color: var(--text-white);
}

/* Decision Doors */
.doors-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.door {
    padding: 20px;
    border-left: 2px solid var(--border-dim);
    transition: all 0.3s;
}

.door h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--accent-orange);
}

.door:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Taste */
.taste-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.t-item {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-dim);
}

.cool {
    color: var(--accent-orange);
}

.uncool {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Evolution */
.project-evolution {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 60px 0;
    text-align: center;
}

.evo-column {
    flex: 1;
    padding: 20px;
}

.evo-column h4 {
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
}

.evo-column.accent {
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid var(--accent-orange);
    border-radius: 8px;
}

.evo-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* Timeline */
.timeline-section {
    padding: 60px 0;
}

.timeline-scroll {
    display: flex;
    overflow-x: auto;
    padding: 40px 0;
    gap: 40px;
    scrollbar-width: none;
}

.t-node {
    min-width: 250px;
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-dim);
    position: relative;
    font-size: 0.9rem;
}

.t-node::before {
    content: attr(data-year);
    position: absolute;
    top: -40px;
    left: 0;
    font-family: var(--font-mono);
    font-weight: bold;
    color: var(--accent-orange);
}

/* Footer / EPILOGUE */
.footer-main {
    text-align: center;
    padding: 100px 0;
    border-top: 1px solid var(--border-dim);
}

.final-vision {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 60px;
}

.footer-sign {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-top: 20px;
    letter-spacing: 0.4em;
    color: var(--accent-orange);
}

.infrastructure-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 2;
}

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

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

@media (max-width: 768px) {

    .section-grid,
    .taste-grid,
    .project-evolution,
    .core-pillars {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 20px;
    }

    .main-title {
        font-size: 4rem;
    }

    .bezos-container {
        padding: 40px 20px;
    }
}