/* ===================================
   NEMO PAGE
   Responsibility: nemo.html showcase and the home-page Nemo band
   =================================== */

.nemo-page {
    background: #06101f;
    color: #E6EEF7;
}

/* Hero: deep-water gradient with the diving helmet */
.nemo-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--space-xl) + 2rem) var(--space-md) var(--space-lg);
    background:
        radial-gradient(ellipse at 70% 20%, rgba(0, 217, 255, 0.18), transparent 55%),
        linear-gradient(180deg, #0A1128 0%, #06101f 70%);
}

.nemo-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-md);
    align-items: center;
}

.nemo-kicker {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: var(--space-sm);
}

.nemo-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.1;
    color: #FFFFFF;
    margin-bottom: var(--space-sm);
}

.nemo-hero h1 span {
    color: var(--blue);
}

.nemo-lede {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #C9D6E4;
    max-width: 36rem;
    margin-bottom: var(--space-md);
}

.nemo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.nemo-btn {
    display: inline-block;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.nemo-btn:hover {
    transform: translateY(-2px);
}

.nemo-btn.primary {
    background: var(--blue);
    color: var(--navy);
    box-shadow: 0 0 24px rgba(0, 217, 255, 0.35);
}

.nemo-btn.ghost {
    border: 1px solid rgba(0, 217, 255, 0.6);
    color: #E6EEF7;
}

.nemo-meta {
    font-size: 0.9rem;
    color: #8FA3B8;
}

.nemo-helmet {
    width: 100%;
    max-width: 420px;
    justify-self: center;
    filter: drop-shadow(0 0 40px rgba(0, 217, 255, 0.25));
    animation: nemo-float 6s ease-in-out infinite;
}

@keyframes nemo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
    .nemo-helmet { animation: none; }
}

/* Sections */
.nemo-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.nemo-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #FFFFFF;
    margin-bottom: var(--space-sm);
}

.nemo-section > p {
    color: #C9D6E4;
    max-width: var(--content-width);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.nemo-illustration {
    width: 100%;
    border-radius: var(--border-radius);
    display: block;
    box-shadow: var(--shadow-lg);
}

/* What it does */
.nemo-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.nemo-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 217, 255, 0.18);
    border-radius: var(--border-radius);
    padding: var(--space-md);
}

.nemo-card h3 {
    color: var(--blue);
    margin-bottom: var(--space-xs);
}

.nemo-card p {
    color: #C9D6E4;
    line-height: 1.6;
}

/* Team flow: brief, delegate, review, decide */
.nemo-flow {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    counter-reset: flow;
}

.nemo-flow li {
    position: relative;
    padding: var(--space-md) var(--space-sm) var(--space-sm);
    border-top: 3px solid var(--blue);
    background: rgba(0, 217, 255, 0.05);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    color: #C9D6E4;
    line-height: 1.5;
}

.nemo-flow li::before {
    counter-increment: flow;
    content: counter(flow);
    position: absolute;
    top: -1.1rem;
    left: var(--space-sm);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--blue);
    color: var(--navy);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nemo-flow strong {
    display: block;
    color: #FFFFFF;
    margin-bottom: 0.25rem;
}

/* Video guide */
.nemo-videos {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-sm);
}

.nemo-videos a {
    display: flex;
    gap: var(--space-sm);
    align-items: baseline;
    padding: var(--space-sm);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #E6EEF7;
    text-decoration: none;
    transition: border-color var(--transition-speed), background var(--transition-speed);
}

.nemo-videos a:hover {
    border-color: var(--blue);
    background: rgba(0, 217, 255, 0.08);
}

.nemo-videos .num {
    font-family: var(--font-mono);
    color: var(--blue);
    min-width: 2ch;
}

/* Requirements */
.nemo-reqs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.nemo-reqs ul {
    color: #C9D6E4;
    line-height: 1.8;
    padding-left: 1.2rem;
}

.nemo-reqs pre {
    background: #020812;
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: var(--border-radius);
    padding: var(--space-sm);
    color: #BFEFFF;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    overflow-x: auto;
}

.nemo-page a.inline {
    color: var(--blue);
}

.nemo-closing {
    text-align: center;
}

.nemo-closing > p {
    margin-left: auto;
    margin-right: auto;
}

.nemo-closing .nemo-actions {
    justify-content: center;
}

/* Home-page band */
.nemo-band {
    background:
        radial-gradient(ellipse at 85% 50%, rgba(0, 217, 255, 0.2), transparent 60%),
        linear-gradient(90deg, #0A1128, #06101f);
    color: #E6EEF7;
    padding: var(--space-lg) 0;
}

.nemo-band-inner {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: var(--space-md);
    align-items: center;
}

.nemo-band img {
    width: 160px;
    filter: drop-shadow(0 0 24px rgba(0, 217, 255, 0.3));
}

.nemo-band h2 {
    color: #FFFFFF;
    margin-bottom: var(--space-xs);
}

.nemo-band p {
    color: #C9D6E4;
    line-height: 1.6;
    max-width: 40rem;
}

@media (max-width: 900px) {
    .nemo-hero-inner,
    .nemo-reqs {
        grid-template-columns: 1fr;
    }
    .nemo-helmet {
        max-width: 240px;
        order: -1;
    }
    .nemo-cards,
    .nemo-flow {
        grid-template-columns: 1fr;
    }
    .nemo-flow li {
        margin-top: var(--space-sm);
    }
    .nemo-band-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .nemo-band img {
        margin: 0 auto;
        width: 120px;
    }
    .nemo-band p {
        margin: 0 auto;
    }
}
