/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: #1d1d1f;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 600;
    font-size: 18px;
    color: #000000;
    text-decoration: none;
    border-bottom: 2px dashed #22c55e;
    padding-bottom: 4px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #000000;
    padding-bottom: 2px;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero {
    padding: 160px 24px 60px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #000000;
}

.hero-subtitle {
    font-size: 18px;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Journey Section - Roadmap Layout */
.journey-section {
    padding: 40px 24px 80px;
    background: #ffffff;
}

.roadmap-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Roadmap Row - Independent Card Heights */
.roadmap-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.roadmap-row:last-child {
    margin-bottom: 0;
}

/* Loop Cards - New Solid Border Style with Rounded Corners */
.loop-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    width: 380px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Hover State */
.loop-card:hover {
    background: #fafafa;
    border-color: #d1d5db;
}

/* Expanded State - Blue border with blue-tinted shadow */
.loop-card.expanded {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Loop Number Badge */
.loop-number {
    width: 36px;
    height: 36px;
    background: #000000;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 14px;
}

/* Card Title */
.loop-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #000000;
}

/* Card Description */
.loop-card > p {
    font-size: 14px;
    color: #666666;
    margin-bottom: 0;
}

/* Loop Expanded Content - Hidden by default */
.loop-expanded {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Show expanded content when parent has .expanded class */
.loop-card.expanded .loop-expanded {
    display: block;
}

/* Loop Stages */
.loop-stages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.loop-stages.grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Stage Cards - Matching style with rounded corners */
.stage {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 85px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.stage:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.stage-num {
    display: inline-block;
    width: 22px;
    height: 22px;
    background: #000000;
    color: #ffffff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    line-height: 22px;
    margin-bottom: 6px;
}

.stage h4 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 3px;
    color: #000000;
}

.stage p {
    font-size: 10px;
    color: #666666;
}

.stage-arrow {
    color: #999999;
    font-size: 16px;
}

/* Loop Feedback */
.loop-feedback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 12px 16px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 13px;
    color: #6b7280;
}

.feedback-arrow {
    color: #6b7280;
    font-size: 16px;
}

/* About Section */
.about-section {
    padding: 80px 24px;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 700px;
    margin: 0 auto;
}

.about-image {
    flex-shrink: 0;
}

.about-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.about-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #666666;
    margin-bottom: 8px;
}

.about-role {
    font-size: 17px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 10px;
}

.about-bio {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* NVIDIA Publications */
.nvidia-publications {
    margin-bottom: 20px;
}

.publications-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #666666;
    margin-bottom: 10px;
}

.publications-list {
    list-style: none;
}

.publications-list li {
    margin-bottom: 6px;
}

.publications-list a {
    font-size: 13px;
    color: #000000;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.publications-list a:hover {
    opacity: 0.7;
}

/* About Links */
.about-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.about-links a {
    font-size: 13px;
    color: #000000;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.about-links a:hover {
    opacity: 0.7;
}

/* DLI Section */
.dli-section {
    padding: 40px 24px;
    text-align: center;
    background: #f8f8f8;
    border-top: 1px solid #e5e7eb;
}

.dli-text {
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.dli-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #76b900;
    text-decoration: none;
    padding: 10px 24px;
    border: 2px solid #76b900;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dli-link:hover {
    background: #76b900;
    color: #ffffff;
}

/* Footer */
.footer {
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    background: #ffffff;
}

.footer p {
    font-size: 13px;
    color: #666666;
}

.footer-copy {
    margin-top: 6px;
    font-size: 12px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 28px;
    max-width: 550px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e0e0e0;
    color: #000000;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.modal-stage-number {
    width: 42px;
    height: 42px;
    background: #000000;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #000000;
}

.modal-header p {
    font-size: 13px;
    color: #666666;
}

.modal-body h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666666;
    margin-bottom: 14px;
    margin-top: 20px;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-tool {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
}

.modal-tool h5 {
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 6px;
}

.modal-tool p {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
}

.source-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: #000000;
    text-decoration: underline;
}

.source-link:hover {
    opacity: 0.7;
}

.modal-decisions {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px;
}

.modal-decisions ul {
    margin: 0;
    padding-left: 18px;
}

.modal-decisions li {
    font-size: 13px;
    color: #92400e;
    margin-bottom: 6px;
}

.modal-decisions li:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1000px) {
    .roadmap-row {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    .roadmap-row.row-reverse {
        flex-direction: column;
    }
    
    .roadmap-arrow {
        transform: rotate(90deg);
        width: 50px;
        height: 40px;
        margin: 8px 0;
        min-height: auto;
    }
    
    .roadmap-connector {
        display: none;
    }
    
    .loop-card {
        width: 100%;
        max-width: 380px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .about-links {
        justify-content: center;
    }
    
    .nav-logo {
        font-size: 16px;
    }
    
    .nav-links a {
        font-size: 13px;
    }
}
