:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg: #0f172a;
    --card-bg: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-hover: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    --border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Header & Nav */
header {
    padding: 2rem 5%;
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
}

.links a {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.github-btn {
    background: var(--gradient);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.github-btn:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    padding: 8rem 5% 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.primary-btn,
.secondary-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.primary-btn {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.5);
}

.secondary-btn {
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Features */
.features {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* UsageSection */
.usage {
    padding: 6rem 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.usage h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.terminal-window {
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.usage-note {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.shortcuts {
    padding: 6rem 5%;
    max-width: 800px;
    margin: 0 auto;
}

.shortcuts h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.shortcuts-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
}

.shortcuts-table th,
.shortcuts-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.shortcuts-table th {
    background: rgba(99, 102, 241, 0.1);
    font-weight: 600;
    color: var(--primary);
}

.shortcuts-table tr:last-child td {
    border-bottom: none;
}

.shortcuts-table code {
    background: rgba(99, 102, 241, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    color: var(--primary);
}

kbd {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid var(--primary);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    color: var(--primary);
}

.terminal-header {
    background: #1e293b;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
}

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

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.terminal-body {
    padding: 2rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
    overflow-x: auto;
}

pre {
    color: #cbd5e1;
}

code .comment {
    color: #64748b;
}

/* Footer */
footer {
    padding: 4rem 5%;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

footer p {
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero,
.feature-card,
.terminal-window {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Responsiveness */
@media (max-width: 768px) {
    .links {
        display: none;
    }

    .hero-btns {
        flex-direction: column;
    }

    header {
        padding: 1.5rem 5%;
    }
}