:root {
    --bg-canvas: #f8f9fb;
    --text-main: #1a1a1e;
    --text-dim: #6b6b76;
    --accent-blue: #0084ff;
    --accent-blue-soft: rgba(0, 132, 255, 0.05);
    --accent-amber: #ff9d00;
    --border-dashed: #d1d1d6;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);

    --font-inter: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-serif: 'Playfair Display', serif;
}

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

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

/* Background Canvas Effect */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#d1d1d6 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    opacity: 0.5;
}

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

/* Header */
.header-main {
    margin-bottom: 120px;
    text-align: left;
}

.status-pill {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 12px;
    background: #eef0f3;
    border: 1px solid #d1d1d6;
    border-radius: 4px;
    margin-right: 10px;
}

.status-pill.blue {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.main-title {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.9;
    margin: 20px 0;
}

.tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.8rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.role-desc {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-blue);
    margin-bottom: 30px;
}

.identity-labels {
    display: flex;
    gap: 15px;
}

.label {
    font-size: 0.8rem;
    background: white;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Block Cards */
.block-card {
    background: white;
    border: 1px solid #e1e4e8;
    padding: 60px;
    margin-bottom: 60px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.block-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

.block-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Grandma Demo */
.grandma-demo {
    display: flex;
    gap: 40px;
    align-items: center;
    background: #fdfdfd;
    padding: 40px;
    border: 2px dashed var(--border-dashed);
    border-radius: 8px;
}

.phone-mock {
    width: 200px;
    height: 350px;
    background: #000;
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.app-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.big-action-btn {
    width: 140px;
    height: 140px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(244, 67, 54, 0.4);
    transition: transform 0.2s;
}

.big-action-btn:hover {
    transform: scale(1.05);
}

/* Browser Trans */
.browser-transformation {
    margin: 40px 0;
}

.trans-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.trans-item.active {
    background: var(--accent-blue-soft);
    border-left: 4px solid var(--accent-blue);
}

.old-way {
    color: var(--text-dim);
    text-decoration: line-through;
}

.new-way {
    font-weight: 600;
    color: var(--accent-blue);
}

/* Logic Grid */
.logic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.equation-box {
    background: white;
    padding: 40px;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
}

.equation-box.highlight {
    background: var(--text-main);
    color: white;
}

.math-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.main-equation {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

/* Patina Viz */
.impro-visual {
    background: #f0f2f5;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    min-height: 200px;
}

.cursor-line {
    font-size: 1.5rem;
    font-family: var(--font-mono);
    margin-bottom: 40px;
}

.blinking-cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-blue);
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.spawn-blocks {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.s-block {
    background: white;
    padding: 15px 25px;
    border: 1px solid var(--accent-blue);
    border-radius: 8px;
    font-weight: 600;
    cursor: grab;
    transition: all 0.3s;
}

.s-block:hover {
    transform: rotate(2deg);
}

/* Learning */
.learning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.l-card h4 {
    color: var(--accent-blue);
    margin-bottom: 10px;
}

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

.timeline-v {
    border-left: 2px solid #e1e4e8;
    padding-left: 40px;
    margin-top: 40px;
}

.t-item {
    position: relative;
    margin-bottom: 40px;
}

.t-item::before {
    content: '';
    position: absolute;
    left: -49px;
    top: 10px;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid #e1e4e8;
    border-radius: 50%;
}

.t-item.active::before {
    border-color: var(--accent-blue);
}

.t-item.highlight {
    color: var(--accent-blue);
}

.t-year {
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 5px;
    display: block;
}

/* Footer */
.footer-main {
    text-align: center;
    padding: 100px 0;
    border-top: 1px solid #e1e4e8;
}

.final-quote {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.link {
    font-family: var(--font-mono);
    margin: 0 15px;
    font-size: 0.8rem;
}

.copyright {
    margin-top: 40px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
}

/* 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) {

    .grandma-demo,
    .logic-grid,
    .learning-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

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

    .block-card {
        padding: 30px;
    }
}