/* ─── 1. CSS VARIABLES (FIP BRANDING) ─── */
:root {
    --font-geist: 'Geist', sans-serif;
    --font-geist-mono: 'Geist Mono', monospace;
    --font-lora: 'Lora', serif;
    /* FIP colors */
    --bg: #0F1C24;
    --text: #F4F8FB;
    --text-muted: #AACFD1;
    --accent: #559DA1;
    --hover: #2F5759;
    --border: #315B78;
    --card-bg: #1E3748;
}

/* ─── 2. THEME ─── */
html.dark {
    background: var(--bg);
}

/* ─── 3. BASE / RESET ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-geist);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── 4. LAYOUT ─── */
.container {
    max-width: 620px;
    width: 100%;
    padding: 2rem;
}

/* ─── 5. HERO SECTION ─── */
h1 {
    font-family: var(--font-geist);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-align: center;
}
h1 em {
    font-family: var(--font-lora);
    font-style: italic;
    text-transform: none;
    font-weight: 400;
    font-size: 0.85em;
    color: var(--text-muted);
    display: block;
    margin-top: 0.25rem;
}

.highlight {
    color: var(--accent);
}

.subtitle {
    font-family: var(--font-lora);
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

.hero-diagram {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: block;
}

/* ─── 6. TRANSFORM GRID ─── */
.transform {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.transform-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
}

.transform-card.after {
    border-color: var(--accent);
}

.transform-label {
    font-family: var(--font-geist-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: #5a7a8a;
}

.transform-card.after .transform-label {
    color: var(--accent);
}

.transform-card ul {
    list-style: none;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.transform-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.transform-card ul li::before {
    content: '•';
    color: #559DA1;
    flex-shrink: 0;
}

.transform-card.after ul li::before {
    color: var(--accent);
}

/* ─── 7. COMMANDS ─── */
.commands {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.commands h2 {
    font-family: var(--font-geist-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    text-align: center;
}

.cmd-item {
    background: var(--card-bg);
    border: 1px solid #559DA1;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cmd-name {
    font-family: var(--font-geist-mono);
    font-size: 0.8rem;
    color: #F4F8FB;
    background: #559DA1;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cmd-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    align-self: center;
}

/* ─── 8. FEATURES ─── */
.features {
    margin-bottom: 2rem;
}

.features h2 {
    font-family: var(--font-geist-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    text-align: center;
}

details {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

details[open] {
    border-color: var(--accent);
}

summary {
    padding: 0.85rem 1rem;
    cursor: pointer;
    font-family: var(--font-geist);
    font-size: 0.95rem;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-family: var(--font-geist-mono);
    color: var(--accent);
    font-size: 1.1rem;
}

details[open] summary::after {
    content: '-';
}

.detail-content {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.detail-content code {
    font-family: var(--font-geist-mono);
    font-size: 0.8rem;
    background: rgba(60, 110, 113, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    color: var(--accent);
}

.detail-content pre {
    background: #0a1218;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem;
    overflow-x: auto;
    margin: 0.5rem 0;
    font-family: var(--font-geist-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ─── 9. GATE / FORM ─── */
.gate-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.gate-box label {
    display: block;
    font-family: var(--font-geist-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-align: left;
}

.gate-box input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    font-family: var(--font-geist);
    font-size: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.gate-box input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
}

.cta-button {
    width: 100%;
    padding: 0.85rem;
    font-family: var(--font-geist);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.cta-button:hover {
    background: var(--hover);
    transform: translateY(-2px);
}

.cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.note {
    font-size: 0.8rem;
    color: #5a7a8a;
    margin-top: 0.5rem;
}

.gate-form.hidden {
    display: none;
}

.success-message {
    display: none;
}

.success-message.visible {
    display: block;
}

/* ─── 10. FOOTER ─── */
.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-family: var(--font-geist-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    border: none;
}

.footer-links a:hover {
    color: var(--accent);
}

/* ─── 11. RESPONSIVE ─── */
@media (max-width: 600px) {
    .container {
        padding: 1.5rem;
    }
    h1 {
        font-size: 1.8rem;
    }
    .transform {
        grid-template-columns: 1fr;
    }
}
