/* ============================================
   CactusMod — Clean editorial layout
   Theme: Forest green on off-white / dark toggle
   ============================================ */

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

:root {
    --bg: #0b0f0e;
    --bg-raised: #111916;
    --bg-subtle: #0e1311;
    --text: #e8ece9;
    --text-mid: #9fada3;
    --text-dim: #5e7065;
    --green: #2d6a4f;
    --green-light: #40916c;
    --green-bright: #52b788;
    --green-pale: rgba(82, 183, 136, 0.08);
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.14);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --mc: 'Minecraft', sans-serif;
    --max-w: 1060px;
    --nav-h: 60px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    font-size: 16px;
}

a { color: inherit; text-decoration: none; }

::selection { background: rgba(45, 106, 79, 0.4); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 3px; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
}

/* ============================================
   Navigation — slim, minimal
   ============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    background: rgba(11, 15, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mc);
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text);
    margin-right: auto;
}

.nav-icon { color: var(--green-bright); }

.nav-logo-img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: contain;
}

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

.nav-links a, .nav-link-ext {
    padding: 6px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-mid);
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-links a:hover, .nav-link-ext:hover {
    color: var(--text);
    background: rgba(255,255,255,0.04);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link-ext.accent {
    color: var(--green-bright);
}

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

.burger span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-fill {
    background: var(--green);
    color: #fff;
}

.btn-fill:hover {
    background: var(--green-light);
    transform: translateY(-1px);
}

.btn-line {
    background: transparent;
    color: var(--text-mid);
    border: 1px solid var(--border);
}

.btn-line:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.03);
}

.btn-dl {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ============================================
   Hero — big text, editorial
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-h) + 40px) 28px 80px;
}

.hero-inner {
    max-width: 680px;
    text-align: center;
}

.hero h1 {
    font-family: var(--mc);
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.01em;
    margin-bottom: 24px;
    image-rendering: pixelated;
}

.hero h1 em {
    font-style: normal;
    color: var(--green-bright);
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-mid);
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Nutshell — horizontal row, not cards
   ============================================ */
.nutshell {
    padding: 100px 0;
}

.nutshell h2 {
    text-align: center;
    font-family: var(--mc);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 48px;
    letter-spacing: 0.01em;
}

.nutshell-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-raised);
}

.nutshell-item {
    padding: 32px 28px;
    position: relative;
}

.nutshell-item + .nutshell-item {
    border-left: 1px solid var(--border);
}

.nut-icon {
    color: var(--green-bright);
    margin-bottom: 14px;
}

.nutshell-item h3 {
    font-family: var(--mc);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 6px;
}

.nutshell-item p {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.6;
}

/* ============================================
   Divider
   ============================================ */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    max-width: var(--max-w);
    margin: 0 auto;
}

/* ============================================
   Feature Blocks — alternating narrative
   ============================================ */
.features {
    padding: 80px 0;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.feature-block.reverse {
    direction: rtl;
}

.feature-block.reverse > * {
    direction: ltr;
}

.feature-block-wide {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding: 80px 28px;
}

.feature-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--green-bright);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 12px;
    font-family: var(--mono);
}

.feature-text h2 {
    font-family: var(--mc);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.01em;
    margin-bottom: 16px;
}

.feature-text p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.75;
    max-width: 460px;
}

.feature-block-wide .feature-text p {
    max-width: 520px;
    margin: 0 auto;
}

.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: border-color 0.3s;
    display: block;
}

.feature-img:hover {
    border-color: var(--border-hover);
}

/* ============================================
   FAQ — clean accordion
   ============================================ */
.faq {
    padding: 100px 0;
}

.faq h2 {
    font-family: var(--mc);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 0.01em;
}

.faq-list {
    max-width: 680px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    padding: 20px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    transition: color 0.2s;
}

.faq-item summary:hover {
    color: var(--green-bright);
}

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-dim);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    padding: 0 0 20px;
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item code {
    font-family: var(--mono);
    background: var(--green-pale);
    color: var(--green-bright);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.875em;
}

/* ============================================
   Download
   ============================================ */
.download {
    padding: 100px 0;
    text-align: center;
}

.download h2 {
    font-family: var(--mc);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.dl-sub {
    color: var(--text-mid);
    margin-bottom: 36px;
    font-size: 1rem;
}

.dl-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.rate-msg {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #e57373;
    min-height: 1.2em;
}

/* ============================================
   Footer — 3-column, simple
   ============================================ */
.footer {
    padding: 60px 0 28px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 0.88rem;
    color: var(--text-dim);
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-align: center;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 260px; height: 100vh;
        background: var(--bg-raised);
        border-left: 1px solid var(--border);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 4px;
        transition: right 0.3s;
    }

    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1rem; padding: 12px 16px; }

    .burger { display: flex; }

    .burger.active span:first-child { transform: rotate(45deg) translate(3px, 3px); }
    .burger.active span:last-child { transform: rotate(-45deg) translate(3px, -3px); }

    .nav-right .nav-link-ext { display: none; }

    .nutshell-row {
        grid-template-columns: 1fr 1fr;
    }

    .nutshell-item + .nutshell-item {
        border-left: none;
    }

    .nutshell-item:nth-child(1),
    .nutshell-item:nth-child(2) {
        border-bottom: 1px solid var(--border);
    }

    .nutshell-item:nth-child(2),
    .nutshell-item:nth-child(4) {
        border-left: 1px solid var(--border);
    }

    .feature-block {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .feature-block.reverse {
        direction: ltr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .nutshell-row {
        grid-template-columns: 1fr;
    }

    .nutshell-item + .nutshell-item {
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .nutshell-item:nth-child(2) {
        border-left: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .dl-buttons {
        flex-direction: column;
        align-items: center;
    }

    .dl-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}
