:root {
    --primary: #4f46e5;
    --dark: #0f172a;
    --light: #f8fafc;
    --text: #334155;
    --accent: #818cf8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--light);
}

h1, h2, .logo { font-family: 'Lexend', sans-serif; color: var(--dark); }

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { padding: 20px 0; background: white; border-bottom: 1px solid #e2e8f0; }
nav { display: flex; justify-content: space-between; align-items: center; max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.logo { font-weight: 600; font-size: 1.2rem; }
.nav-links a { text-decoration: none; color: var(--text); margin-left: 20px; font-weight: 500; }

/* Hero */
.hero { padding: 80px 0; background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); }
.hero-inner { display: flex; align-items: center; gap: 60px; justify-content: center; }
.hero-text { text-align: left; max-width: 600px; }
h1 { font-size: 3rem; margin-bottom: 20px; }
.subtitle { font-size: 1.25rem; margin-bottom: 40px; color: var(--text); max-width: 500px; }

@media (max-width: 700px) {
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-text { text-align: center; max-width: 100%; }
}

/* Buttons */
.btn { padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: 0.3s; display: inline-block; }
.primary { background: var(--primary); color: white; margin-right: 10px; }
.primary:hover { background: #4338ca; }
.secondary { border: 2px solid var(--primary); color: var(--primary); }
.secondary:hover { background: #eef2ff; }

/* Content Section */
.content { padding: 80px 0; background: white; }
.content h2 { text-align: center; margin-bottom: 40px; }
.about-inner { display: flex; align-items: center; gap: 50px; max-width: 800px; margin: 0 auto; }
.author-photo { width: 50%; height: auto; object-fit: cover; border-radius: 50%; flex-shrink: 0; box-shadow: 0 8px 20px -4px rgb(0 0 0 / 0.2); }
.about-text { display: flex; flex-direction: column; gap: 16px; }
.about-text p { font-size: 1.1rem; }

@media (max-width: 600px) {
    .about-inner { flex-direction: column; text-align: center; }
}

/* Resources Grid */
.resources { padding: 80px 0; background: #f1f5f9; }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.card { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); }
.card h3 { margin-bottom: 10px; }
.download-link { color: var(--primary); font-weight: bold; text-decoration: none; display: block; margin-top: 15px; }

footer { padding: 40px 0; text-align: center; font-size: 0.9rem; color: #94a3b8; }

/* Assessment Section */
.assessment {
    padding: 80px 0;
    background: white;
}

.assessment h2 {
    text-align: center;
    margin-bottom: 16px;
}

.assessment .section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.assessment-form {
    max-width: 1200px;
    margin: 0 auto;
}

.assessment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.node-assessment {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border-top: 4px solid var(--primary);
}

.node-assessment h3 {
    color: var(--dark);
    margin-bottom: 24px;
    font-size: 1.2rem;
}

.node-assessment .form-group {
    margin-bottom: 24px;
}

.node-assessment .form-group:last-child {
    margin-bottom: 0;
}

.node-assessment label {
    display: block;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    color: var(--text);
    cursor: pointer;
    font-size: 0.95rem;
    margin: 0;
}

.radio-label input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.assessment-footer {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.1rem;
}

.assessment-results {
    background: #eef2ff;
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
}

.assessment-results h3 {
    text-align: center;
    color: var(--dark);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

#results-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result-card h4 {
    color: var(--dark);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text);
}

.result-label {
    font-weight: 600;
}

.result-value {
    color: var(--primary);
    font-weight: bold;
}

.assessment-results .btn {
    display: block;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .assessment {
        padding: 60px 0;
    }

    .assessment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .radio-group {
        gap: 8px;
    }

    .assessment-results {
        padding: 30px 20px;
    }

    #results-content {
        grid-template-columns: 1fr;
    }

    .btn-large {
        width: 100%;
        padding: 14px 24px;
    }
}

/* Nodes Section */
.nodes-section {
    padding: 80px 0;
    background: #f8fafc;
}

.nodes-section h2 {
    text-align: center;
    margin-bottom: 16px;
}

.nodes-section .section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.nodes-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.nodes-diagram {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px -8px rgb(0 0 0 / 0.2);
}

.node-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 800px;
}

.node-btn {
    padding: 12px 16px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.node-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.node-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.node-description {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    width: 100%;
    min-height: 150px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.node-description h3 {
    color: var(--dark);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.node-description p {
    color: var(--text);
    line-height: 1.7;
    font-size: 1rem;
}

@media (max-width: 700px) {
    .nodes-section {
        padding: 60px 0;
    }

    .nodes-diagram {
        max-width: 100%;
    }

    .node-buttons {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .node-btn {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .node-description {
        padding: 30px 20px;
        min-height: auto;
    }

    .node-description h3 {
        font-size: 1.1rem;
    }

    .node-description p {
        font-size: 0.95rem;
    }
}

/* Readiness Checklist Section */
.readiness-checklist {
    padding: 80px 0;
    background: white;
}

.readiness-checklist h2 {
    text-align: center;
    margin-bottom: 16px;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.checklist-item {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.checklist-item h3 {
    color: var(--dark);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.checklist-item ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item li {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
    padding-left: 24px;
    position: relative;
}

.checklist-item li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.scoring-section {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    padding: 40px;
    border-radius: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.scoring-section h3 {
    margin-bottom: 16px;
    color: var(--dark);
}

.scoring-section p {
    margin-bottom: 24px;
    color: var(--text);
}

.score-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.score-list li {
    color: var(--text);
    padding-left: 24px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
}

.score-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

/* Code Preview Section */
.code-preview {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.code-preview h2 {
    text-align: center;
    color: white;
    margin-bottom: 16px;
}

.code-preview > .container > p {
    text-align: center;
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 50px;
}

pre {
    overflow-x: auto;
}

pre code {
    display: block;
    line-height: 1.5;
    color: #d4d4d4;
}

/* Waitlist Section */
.waitlist {
    padding: 80px 0;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
}

.waitlist-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.waitlist h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 16px;
}

.waitlist p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.book-cover-featured {
    width: 240px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.3);
    margin-top: 40px;
    transition: transform 0.3s ease;
}

.book-cover-featured:hover {
    transform: translateY(-8px);
}

.form-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#email {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

#email::placeholder {
    color: #a0aec0;
}

#email:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.waitlist .btn {
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.waitlist .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-message {
    font-size: 0.95rem;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 8px;
    display: none;
    animation: slideIn 0.3s ease-out;
}

.form-message.success,
.form-message.error,
.form-message.info {
    display: block;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.form-message.info {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.code-window {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    max-width: 700px;
    margin: 40px auto;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.code-header {
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.file-name {
    margin-left: 10px;
    color: #888;
    font-size: 0.8rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .waitlist {
        padding: 60px 0;
    }

    .waitlist h2 {
        font-size: 1.8rem;
    }

    .form-group {
        flex-direction: column;
    }

    #email {
        min-width: auto;
    }

    .waitlist .btn {
        width: 100%;
    }

    .readiness-checklist {
        padding: 60px 0;
    }

    .checklist-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .scoring-section {
        padding: 30px 20px;
    }

    .code-preview {
        padding: 60px 0;
    }

    .code-window {
        padding: 15px;
        font-size: 0.85rem;
    }

    pre {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
