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

:root {
    --navy: #1a2332;
    --navy-light: #243447;
    --blue: #3b82f6;
    --blue-light: #dbeafe;
    --blue-dark: #1e40af;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --green: #10b981;
    --radius: 8px;
    --radius-lg: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.7;
    font-size: 16px;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-light);
    padding: 14px 0;
}

.nav-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-logo {
    height: 28px;
    width: auto;
}

.nav-brand {
    font-weight: 700;
    font-size: 18px;
    color: var(--white);
    letter-spacing: -0.02em;
}

.nav-subtitle {
    font-size: 13px;
    color: var(--gray-300);
    font-weight: 400;
}

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

.hero {
    text-align: center;
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 48px;
}

.hero-logo {
    max-width: 240px;
    height: auto;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.hero-tagline {
    font-size: 20px;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 12px;
}

.hero-quote {
    font-size: 16px;
    color: var(--blue);
    font-style: italic;
    margin-bottom: 8px;
}

.hero-meta {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--blue-light);
    color: var(--blue-dark);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.hero-github-link {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--gray-500);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-github-link:hover {
    color: var(--blue-dark);
}

.toc {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 48px;
}

.toc h2 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    margin-bottom: 16px;
    font-weight: 600;
}

.toc ul {
    list-style: none;
    columns: 2;
    gap: 24px;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: var(--blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}

.toc a:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

section {
    margin-bottom: 48px;
}

h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    padding-top: 16px;
}

h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--gray-800);
    margin-top: 28px;
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
    color: var(--gray-700);
}

ul, ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

li {
    margin-bottom: 8px;
    color: var(--gray-700);
}

li strong {
    color: var(--gray-800);
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

blockquote {
    border-left: 4px solid var(--blue);
    background: var(--blue-light);
    padding: 20px 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 24px 0;
}

blockquote p {
    color: var(--gray-800);
    font-style: italic;
    font-size: 15px;
    margin-bottom: 8px;
}

blockquote cite {
    font-size: 13px;
    color: var(--gray-500);
    font-style: normal;
    font-weight: 500;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    font-size: 14px;
}

thead {
    background: var(--gray-100);
}

th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--gray-200);
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

tr:last-child td {
    border-bottom: none;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.card h3 {
    margin-top: 0;
    font-size: 16px;
    color: var(--navy);
}

.card p {
    font-size: 14px;
    margin-bottom: 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: border-color 0.15s;
}

.pricing-card.featured {
    border-color: var(--blue);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12);
}

.pricing-card h3 {
    margin-top: 0;
    font-size: 15px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.price {
    font-size: 40px;
    font-weight: 700;
    color: var(--navy);
    margin: 12px 0 8px;
}

.price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-500);
}

.pricing-card p {
    font-size: 13px;
    margin-bottom: 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.metric-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--blue);
    line-height: 1.1;
}

.metric-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin: 4px 0 8px;
}

.metric-card p {
    font-size: 13px;
    margin-bottom: 4px;
}

.metric-card cite {
    font-size: 12px;
    color: var(--gray-500);
    font-style: normal;
}

.rev1-block {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin: 16px 0;
}

.rev1-text {
    flex: 1;
    min-width: 0;
}

.origin-photo {
    flex-shrink: 0;
    width: 280px;
    margin: 0;
    text-align: center;
}

.origin-photo-img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.origin-photo figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--gray-500);
    font-style: italic;
}

@media (max-width: 700px) {
    .rev1-block {
        flex-direction: column;
    }
    .origin-photo {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.team-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
}

.team-headshot {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 55% 15%;
    margin: 0 auto 16px auto;
    border: 3px solid var(--gray-200);
}

.team-card h3 {
    margin-top: 0;
    font-size: 18px;
    color: var(--navy);
}

.team-role {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 12px !important;
}

.team-card p {
    font-size: 14px;
    text-align: left;
}

.team-linkedin {
    display: inline-block;
    margin-top: auto;
    padding-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid var(--blue);
    border-radius: 20px;
    transition: background 0.15s, color 0.15s;
}

.team-linkedin:hover {
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
}

.team-note {
    font-size: 14px;
    color: var(--gray-500);
    font-style: italic;
    margin-top: 12px;
}

.timeline {
    position: relative;
    padding-left: 32px;
    margin: 24px 0 8px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    padding-bottom: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--blue);
    z-index: 1;
}

.timeline-item--final::before {
    border-color: var(--gray-500);
    background: var(--gray-500);
}

.timeline-date {
    flex-shrink: 0;
    width: 90px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    padding-top: 2px;
}

.timeline-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 4px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

.showcase-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 24px;
}

.showcase-card {
    cursor: pointer;
    transition: transform 0.2s;
}

.showcase-card:hover {
    transform: translateY(-3px);
}

.showcase-frame {
    position: relative;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s;
}

.showcase-card:hover .showcase-frame {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
}

.showcase-img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top;
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 0 16px;
    background: linear-gradient(transparent, rgba(26, 35, 50, 0.75));
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.showcase-card:hover .showcase-overlay {
    opacity: 1;
}

.showcase-overlay span {
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.showcase-caption {
    padding: 14px 4px 0;
}

.showcase-caption strong {
    font-size: 15px;
    color: var(--gray-900);
}

.showcase-caption p {
    font-size: 13px;
    color: var(--gray-600);
    margin: 4px 0 0;
    line-height: 1.5;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.lightbox-inner {
    position: relative;
    max-width: 900px;
    width: 100%;
}

.lightbox-inner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 28px;
    font-size: 32px;
    color: var(--white);
    cursor: pointer;
    line-height: 1;
    z-index: 1001;
}

.lessons-section {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    margin-top: 56px;
}

.lessons-section h2 {
    padding-top: 0;
}

@media (max-width: 640px) {
    .lessons-section {
        padding: 28px 20px;
    }
}

footer {
    text-align: center;
    padding: 48px 0 0;
    border-top: 1px solid var(--gray-200);
    margin-top: 48px;
}

footer p {
    color: var(--gray-500);
    font-size: 14px;
}

.footer-note {
    font-size: 13px;
    color: var(--gray-400);
    font-style: italic;
    margin-top: 4px;
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero-tagline {
        font-size: 17px;
    }

    h2 {
        font-size: 24px;
    }

    .toc ul {
        columns: 1;
    }

    .card-grid,
    .pricing-grid,
    .metrics-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .price {
        font-size: 32px;
    }
}
