/* ==========================================
   CLOSECLAW - 虾业革命 | Terminal Showcase
   ========================================== */

:root {
    --bg-deep: #050a05;
    --bg-dark: #0a0f0a;
    --bg-panel: #0d120d;
    --bg-card: #111811;

    --green: #00ff41;
    --green-mid: #00cc33;
    --green-dim: #00881f;
    --green-glow: rgba(0, 255, 65, 0.3);

    --teal: #26a69a;
    --teal-glow: rgba(38, 166, 154, 0.3);

    --red: #ff4444;
    --red-dim: #cc2222;
    --amber: #ffb000;
    --gold: #ffd700;
    --purple: #b388ff;

    --text: #b8c8b8;
    --text-bright: #e0f0e0;
    --text-dim: #4a5a4a;

    --border: #1a2e1a;

    --font-display: 'ZCOOL QingKe HuangYou', 'Microsoft YaHei', sans-serif;
    --font-mono: 'VT323', 'Courier New', Consolas, monospace;

    --nav-h: 60px;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--green-dim) var(--bg-dark);
}

body {
    font-family: var(--font-mono);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-deep);
    overflow-x: hidden;
}

a { color: var(--green); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--teal); text-shadow: 0 0 8px var(--teal-glow); }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--green-dim); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ========================================
   CRT EFFECTS
   ======================================== */

.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px, transparent 2px,
        rgba(0, 0, 0, 0.08) 2px, rgba(0, 0, 0, 0.08) 4px
    );
    animation: scanFlicker 8s linear infinite;
}

.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.45) 100%);
}

@keyframes scanFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.96; }
}

/* ========================================
   BOOT SCREEN
   ======================================== */

.boot-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-deep);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.boot-overlay.done { opacity: 0; visibility: hidden; pointer-events: none; }

.boot-content {
    font-family: var(--font-mono);
    font-size: 20px;
    color: var(--green);
    text-shadow: 0 0 5px var(--green-glow);
    max-width: 600px;
    padding: 2rem;
    white-space: pre-wrap;
    line-height: 1.8;
}

.boot-cursor { animation: blink 0.7s step-end infinite; color: var(--green); }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ========================================
   NAVIGATION
   ======================================== */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(5, 10, 5, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.nav.visible { transform: translateY(0); }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--green);
    text-shadow: 0 0 5px var(--green-glow);
}

.nav-icon { font-size: 1.4rem; }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }

.nav-link {
    font-size: 1rem;
    color: var(--text-dim);
    position: relative;
    padding: 0.3rem 0;
}

.nav-link::before {
    content: '>';
    margin-right: 0.3rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.nav-link:hover::before,
.nav-link.active::before { opacity: 1; }

.nav-link:hover,
.nav-link.active { color: var(--green); text-shadow: 0 0 5px var(--green-glow); }

.nav-link.cta {
    color: var(--bg-deep);
    background: var(--green);
    padding: 0.3rem 1rem;
    border: none;
    text-shadow: none;
}

.nav-link.cta:hover { background: var(--teal); color: var(--bg-deep); }
.nav-link.cta::before { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--green);
    transition: all 0.3s;
}

/* ========================================
   HERO
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-wrap { position: absolute; inset: 0; z-index: 0; }

.hero-bg {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.1;
    filter: blur(3px) saturate(0.4);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    padding-top: var(--nav-h);
    width: 100%;
}

.hero-text { flex: 1; }

.hero-badge {
    font-size: 1rem;
    color: var(--green-mid);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 9vw, 7rem);
    color: var(--red);
    text-shadow:
        0 0 10px rgba(255, 68, 68, 0.5),
        0 0 40px rgba(255, 68, 68, 0.2),
        0 3px 0 #990000;
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.hero-en {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    color: var(--text-dim);
    letter-spacing: 0.5em;
    margin-bottom: 1.5rem;
    font-weight: normal;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--green);
    min-height: 2em;
    margin-bottom: 2rem;
    text-shadow: 0 0 5px var(--green-glow);
}

.cursor { animation: blink 0.7s step-end infinite; font-weight: normal; }

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.hero-stat-num {
    display: block;
    font-size: 2.5rem;
    color: var(--teal);
    text-shadow: 0 0 10px var(--teal-glow);
    font-family: var(--font-display);
}

.hero-stat-label { font-size: 0.9rem; color: var(--text-dim); }
.hero-stat-sep { color: var(--border); font-size: 2rem; }

.hero-cta {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--bg-deep);
    background: var(--green);
    padding: 0.8rem 2rem;
    border: 2px solid var(--green);
    text-shadow: none;
    transition: all 0.3s;
}

.hero-cta .cursor { color: var(--bg-deep); }

.hero-cta:hover {
    background: transparent;
    color: var(--green);
    text-shadow: 0 0 5px var(--green-glow);
    box-shadow: 0 0 20px var(--green-glow), inset 0 0 20px var(--green-glow);
}

.hero-cta:hover .cursor { color: var(--green); }

.hero-lobster {
    flex: 0 0 auto;
    max-width: 280px;
    animation: lobsterFloat 4s ease-in-out infinite;
}

.hero-lobster-img {
    filter: drop-shadow(0 0 25px rgba(255, 68, 68, 0.3));
}

@keyframes lobsterFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(2deg); }
    75% { transform: translateY(10px) rotate(-1deg); }
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 3px;
    animation: fadeInOut 2s ease-in-out infinite;
}

.scroll-arrow { margin-top: 0.5rem; animation: scrollBounce 1.5s ease-in-out infinite; }

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: 5rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--green);
    margin-bottom: 0.5rem;
}

.section-sub {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

.glow { text-shadow: 0 0 5px var(--green-glow), 0 0 15px rgba(0, 255, 65, 0.12); }

.hl-green { color: var(--green); text-shadow: 0 0 5px var(--green-glow); }
.hl-teal { color: var(--teal); }
.hl-red { color: var(--red); }
.hl-amber { color: var(--amber); }
.hl-gold { color: var(--gold); text-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
.hl-purple { color: var(--purple); }

.prompt { color: var(--green); margin-right: 0.5rem; user-select: none; }

/* ========================================
   TERMINAL WINDOW
   ======================================== */

.terminal-window {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.terminal-dots { display: flex; gap: 6px; }

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-bar-title { font-size: 0.9rem; color: var(--text-dim); }
.terminal-content { padding: 2rem; }

.terminal-block p { margin-bottom: 1rem; line-height: 1.8; }
.terminal-end { color: var(--text-dim); margin-top: 1.5rem; font-size: 0.85rem; }

/* ========================================
   ABOUT
   ======================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.screen-frame {
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 6px;
    padding: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.05), inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.screen-frame img { width: 100%; border-radius: 2px; }

.screen-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent 0px, transparent 3px, rgba(0, 0, 0, 0.04) 3px, rgba(0, 0, 0, 0.04) 6px);
    pointer-events: none;
}

.img-caption { margin-top: 0.8rem; font-size: 0.9rem; color: var(--text-dim); text-align: center; }

/* ========================================
   SPECIES CARDS
   ======================================== */

.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.5rem;
}

.species-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.2rem;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.species-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--green), var(--teal));
    opacity: 0;
    transition: opacity 0.3s;
}

.species-card:hover {
    border-color: var(--green-dim);
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 255, 65, 0.08);
}

.species-card:hover::before { opacity: 1; }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.card-id { font-size: 0.8rem; color: var(--text-dim); }

.card-risk {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 1px;
}

.card-risk.low { color: var(--green); border: 1px solid var(--green-dim); background: rgba(0, 255, 65, 0.05); }
.card-risk.medium { color: var(--amber); border: 1px solid rgba(255, 176, 0, 0.3); background: rgba(255, 176, 0, 0.05); }
.card-risk.high { color: var(--red); border: 1px solid rgba(255, 68, 68, 0.3); background: rgba(255, 68, 68, 0.05); }

.card-img {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 1rem;
    padding: 1rem;
    overflow: hidden;
}

.card-img img {
    max-width: 80%; max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s;
}

.species-card:hover .card-img img { transform: scale(1.12); }

.card-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-stats { display: flex; flex-direction: column; gap: 0.6rem; }

.card-stat {
    display: grid;
    grid-template-columns: 50px 1fr 30px;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.stat-label { color: var(--text-dim); }

.stat-track {
    height: 6px;
    background: var(--bg-dark);
    border-radius: 3px;
    overflow: hidden;
}

.stat-bar { height: 100%; border-radius: 3px; transition: width 1s ease; }
.stat-bar.escape { background: linear-gradient(90deg, var(--amber), var(--red)); }
.stat-bar.growth { background: linear-gradient(90deg, var(--green-dim), var(--teal)); }

.stat-val { text-align: right; color: var(--text-bright); }

/* ========================================
   GALLERY
   ======================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.gallery-item { cursor: pointer; transition: transform 0.3s ease; }
.gallery-item:hover { transform: scale(1.03); }
.gallery-item:hover .screen-frame {
    border-color: var(--green-dim);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.1);
}

.gallery-caption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--text-dim); text-align: center; }

/* ========================================
   FEATURES
   ======================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--teal);
    box-shadow: 0 0 20px var(--teal-glow);
    transform: translateY(-2px);
}

.feature-icon { font-size: 2rem; margin-bottom: 0.8rem; }

.feature-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--green);
    margin-bottom: 0.5rem;
}

.feature-title::before { content: '> '; color: var(--green-dim); }

.feature-desc { font-size: 0.95rem; color: var(--text-dim); line-height: 1.6; }

/* ========================================
   ENDINGS
   ======================================== */

.endings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ending-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ending-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
}

.ending-bankrupt::before { background: var(--red); }
.ending-capitalist::before { background: var(--gold); }
.ending-curse::before { background: var(--purple); }

.ending-bankrupt:hover { border-color: var(--red-dim); box-shadow: 0 0 25px rgba(255, 68, 68, 0.1); }
.ending-capitalist:hover { border-color: rgba(255, 215, 0, 0.3); box-shadow: 0 0 25px rgba(255, 215, 0, 0.1); }
.ending-curse:hover { border-color: rgba(179, 136, 255, 0.3); box-shadow: 0 0 25px rgba(179, 136, 255, 0.1); }

.ending-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }

.ending-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.ending-bankrupt .ending-name { color: var(--red); }
.ending-capitalist .ending-name { color: var(--gold); }
.ending-curse .ending-name { color: var(--purple); }

.ending-en { font-size: 0.75rem; color: var(--text-dim); letter-spacing: 3px; margin-bottom: 1rem; }

.ending-terminal {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.8rem;
    text-align: left;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.ending-terminal p { margin-bottom: 0.3rem; }
.ending-quote { font-size: 1rem; font-style: italic; color: var(--text); line-height: 1.6; }

/* ========================================
   DOWNLOAD
   ======================================== */

.download-section { text-align: center; }

.download-box {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

.download-cmd {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem;
    text-align: left;
    margin: 2rem 0;
    font-size: 0.95rem;
    color: var(--green);
}

.download-progress {
    height: 4px;
    background: var(--bg-deep);
    border-radius: 2px;
    margin: 1rem 0;
    overflow: hidden;
}

.download-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--teal));
    border-radius: 2px;
    transition: width 2s ease;
}

.download-progress-bar.animate { width: 100%; }
.download-status { color: var(--teal); }

.download-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    padding: 0.8rem 1.8rem;
    border: 2px solid;
    border-radius: 4px;
    transition: all 0.3s;
}

.dl-primary {
    color: var(--bg-deep);
    background: var(--green);
    border-color: var(--green);
}

.dl-primary:hover {
    background: transparent;
    color: var(--green);
    box-shadow: 0 0 15px var(--green-glow);
}

.dl-secondary {
    color: var(--teal);
    border-color: var(--teal);
    background: transparent;
}

.dl-secondary:hover {
    background: var(--teal);
    color: var(--bg-deep);
    box-shadow: 0 0 15px var(--teal-glow);
}

.download-note { font-size: 0.9rem; color: var(--text-dim); }

/* ========================================
   FOOTER
   ======================================== */

.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 3rem;
    text-align: center;
}

.footer-inner p { margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-dim); }
.footer-link { color: var(--teal); }
.footer-end { margin-top: 1rem; color: var(--green-dim); }

/* ========================================
   LIGHTBOX
   ======================================== */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-close {
    position: absolute;
    top: 1rem; right: 1.5rem;
    font-size: 2.5rem;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1;
}

.lightbox-close:hover { color: var(--green); }

.lightbox-img {
    max-width: 90%; max-height: 80vh;
    border: 2px solid var(--border);
    border-radius: 4px;
}

.lightbox-caption { margin-top: 1rem; color: var(--text-dim); font-size: 1rem; }

/* ========================================
   REVEAL ANIMATION
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.species-grid .reveal:nth-child(1) { transition-delay: 0s; }
.species-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.species-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.species-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.species-grid .reveal:nth-child(5) { transition-delay: 0.4s; }

.features-grid .reveal:nth-child(2n) { transition-delay: 0.1s; }
.features-grid .reveal:nth-child(3n) { transition-delay: 0.2s; }

.endings-grid .reveal:nth-child(1) { transition-delay: 0s; }
.endings-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.endings-grid .reveal:nth-child(3) { transition-delay: 0.3s; }

.gallery-grid .reveal:nth-child(1) { transition-delay: 0s; }
.gallery-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.gallery-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.gallery-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .endings-grid { grid-template-columns: 1fr; }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        padding: 6rem 2rem 4rem;
    }

    .hero-stats { justify-content: center; }
    .hero-cta { margin: 0 auto; }

    .hero-lobster {
        max-width: 180px;
        margin-top: 2rem;
    }

    .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .section { padding: 3rem 1.5rem; }

    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: rgba(5, 10, 5, 0.97);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.3s;
        z-index: 999;
    }

    .nav-links.open { transform: translateY(0); opacity: 1; }
    .nav-toggle { display: flex; }
    .species-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .download-box { padding: 2rem 1.5rem; }
    .download-links { flex-direction: column; align-items: stretch; }
    .dl-btn { justify-content: center; }
}

@media (max-width: 400px) {
    .species-grid { grid-template-columns: 1fr; }
}
