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

:root {
    --bg: #0a0e12;
    --bg-card: #111821;
    --bg-card-hover: #1a2330;
    --text: #e0e6ed;
    --text-muted: #7a8b9a;
    --accent: #58d6a0;
    --accent-dim: #3a8f6d;
    --border: #1e293b;
    --terminal-bg: #080c10;
}

[data-theme="light"] {
    --bg: #f0f4f8;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --accent: #059669;
    --accent-dim: #10b981;
    --border: #e2e8f0;
    --terminal-bg: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 1.5rem);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 880px;
    width: 100%;
    text-align: center;
}

.label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-dim);
    margin-bottom: 1.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--accent-dim);
    border-radius: 999px;
}

h1 {
    font-size: clamp(1.6rem, 7vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
    word-break: break-word;
}

.subtitle {
    color: var(--text-muted);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: clamp(1.75rem, 5vw, 2.5rem);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.terminal {
    background: var(--terminal-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03) inset;
    margin-bottom: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 520px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.terminal:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 70px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.04) inset;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Fira Code', monospace;
}

.terminal-body {
    padding: clamp(1rem, 4vw, 1.5rem);
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Fira Code', monospace;
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    text-align: left;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-break: break-word;
    min-height: 256px;
}

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

.prompt-symbol {
    color: var(--accent-dim);
}

.command {
    color: var(--text);
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background: var(--accent);
    vertical-align: text-bottom;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    border-radius: 1px;
}

@keyframes blink {
    50% { opacity: 0; }
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    user-select: none;
    min-height: 44px;
}

.copy-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-dim);
}

.copy-btn:active {
    transform: scale(0.97);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.copy-btn.copied {
    color: var(--accent);
    border-color: var(--accent-dim);
}

.copy-btn.copied svg {
    opacity: 1;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
    text-align: left;
}

.feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-dim);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cards-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: clamp(2rem, 6vw, 3rem);
    text-align: left;
}

.card {
    flex: 1 1 240px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-dim);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 1.5rem;
}

.card h3 {
    font-size: 1rem;
    font-weight: 600;
}

.card ul {
    list-style: disc;
    padding-left: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.card ul li {
    margin-bottom: 0.35rem;
}

.card ul li code {
    background: var(--terminal-bg);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Fira Code', monospace;
    font-size: 0.8em;
    color: var(--text);
}

footer {
    margin-top: clamp(2rem, 6vw, 3rem);
    color: var(--text-muted);
    font-size: 0.8rem;
}

footer a {
    color: var(--accent-dim);
    text-decoration: none;
}

footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.theme-toggle {
    position: fixed;
    top: clamp(0.75rem, 3vw, 1.5rem);
    right: clamp(0.75rem, 3vw, 1.5rem);
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100;
    padding: 0;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-dim);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.theme-toggle:hover svg {
    color: var(--accent);
}

.theme-toggle .sun-icon { display: block; }
.theme-toggle .moon-icon { display: none; }
[data-theme="light"] .theme-toggle .sun-icon { display: none; }
[data-theme="light"] .theme-toggle .moon-icon { display: block; }

@media (max-width: 768px) {
    .cards-section {
        flex-direction: column;
        gap: 1rem;
    }
    .card {
        flex: 1 1 auto;
        padding: 1.25rem;
    }
    .copy-btn {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .features {
        grid-template-columns: 1fr;
    }
    .terminal-body {
        padding: 1rem;
    }
    .terminal-header {
        padding: 0.6rem 0.85rem;
    }
    .cards-section {
        gap: 0.85rem;
    }
    .card {
        padding: 1.1rem;
    }
    .card-header {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    .card ul {
        font-size: 0.8rem;
    }
    .theme-toggle {
        width: 38px;
        height: 38px;
    }
    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 360px) {
    .terminal-title {
        display: none;
    }
    .copy-btn {
        max-width: 100%;
    }
}
