@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --background: #09090b;
    --background-accent: #18181b;
    --surface: rgba(24, 24, 27, 0.7);
    --surface-strong: #27272a;
    --text: #fafafa;
    --muted: #a1a1aa;
    --line: rgba(255, 255, 255, 0.1);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.2);
    --accent: #3b82f6;
    --accent-strong: #60a5fa;
    --accent-soft: rgba(59, 130, 246, 0.15);
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.15);
    --error: #ef4444;
    --error-soft: rgba(239, 68, 68, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: 
        radial-gradient(circle at 15% 50px, rgba(59, 130, 246, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.15), transparent 25%),
        var(--background);
    line-height: 1.6;
}

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

button {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 9, 11, 0.6);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-logo {
    display: block;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ffffff;
    padding: 3px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--text);
}

.github-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    transition: all 0.3s ease;
}

.github-link:hover {
    background: var(--surface-strong);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.hero {
    padding: 100px 0 80px;
}

.hero-panel {
    text-align: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero-title {
    margin: 24px auto;
    max-width: 900px;
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy {
    margin: 0 auto 40px;
    max-width: 700px;
    color: var(--muted);
    font-size: clamp(1.1rem, 2vw, 1.25rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 24px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 32px;
    border-radius: 999px;
    background: var(--text);
    color: var(--background);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255,255,255,0.15);
    background: #e4e4e7;
}

.primary-button svg {
    margin-right: 12px;
}

.command-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 56px;
    padding: 0 24px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.command-button:hover {
    border-color: rgba(255,255,255,0.2);
    background: var(--surface-strong);
    transform: translateY(-2px);
}

.command-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.command-text {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 0.9rem;
    color: #e4e4e7;
}

.command-prefix {
    color: var(--muted);
}

.command-icon {
    color: var(--muted);
}

.command-tooltip {
    position: absolute;
    top: -46px;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--text);
    color: var(--background);
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.command-button:hover .command-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.copy-status {
    min-height: 24px;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}
.copy-status.is-success { color: var(--success); }
.copy-status.is-error { color: var(--error); }

.video-shell {
    position: relative;
    overflow: hidden;
    max-width: 1040px;
    margin: 60px auto 0;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #000;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

.video-shell-showcase {
    margin-top: 80px;
}

.video-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
    border-radius: 24px;
}

.video-overlay-showcase {
    border-radius: 24px;
}

.video-player {
    display: block;
    width: 100%;
    height: auto;
}

.video-player-showcase {
    border-radius: 24px;
    object-fit: cover;
}

.section {
    padding: 100px 0;
    border-top: 1px solid var(--line);
}

.section-alt {
    background: rgba(255,255,255,0.02);
}

.section-header {
    max-width: 640px;
    margin: 0 auto 64px;
    text-align: center;
}

.section-title {
    margin: 0 0 16px;
    font-size: clamp(2rem, 3vw, 2.5rem);
    letter-spacing: -0.03em;
}

.section-copy {
    color: var(--muted);
    font-size: 1.1rem;
}

/* Base grid for everything */
.comparison-grid, .resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Modern Bento Grid for Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
}

/* Make features beautiful cards */
.feature-card, .comparison-card, .resource-card, .content-card {
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover, .resource-card:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Specific Bento alignments for 6 features */
.feature-card:nth-child(1) { grid-column: span 2; }
.feature-card:nth-child(2) { grid-column: span 1; }
.feature-card:nth-child(3) { grid-column: span 1; }
.feature-card:nth-child(4) { grid-column: span 2; }
.feature-card:nth-child(5) { grid-column: span 2; }
.feature-card:nth-child(6) { grid-column: span 1; }

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.05);
}

.feature-icon.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.feature-icon.teal { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; }
.feature-icon.green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.feature-icon.orange { background: rgba(249, 115, 22, 0.15); color: #fb923c; }

.feature-title {
    margin: 0 0 12px;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.feature-copy {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    flex-grow: 1;
}

.comparison-title, .resource-title {
    font-size: 1.25rem;
    margin: 0 0 16px;
    font-weight: 600;
}

.comparison-copy, .resource-copy {
    color: var(--muted);
    margin: 0;
}

.seo-copy-block {
    max-width: 800px;
    margin: 64px auto 0;
    color: var(--muted);
    font-size: 1.05rem;
    text-align: center;
}

.content-shell {
    max-width: 840px;
    margin: 0 auto;
}

.content-card h2 { margin: 0 0 20px; font-size: 1.8rem; }
.content-card h3 { margin: 32px 0 16px; font-size: 1.4rem; }
.content-card p, .content-card li { margin-bottom: 16px; color: var(--muted); font-size: 1.05rem; }
.content-card ul { margin-bottom: 24px; padding-left: 20px; }
.content-card li { margin-bottom: 8px; }

.cta-panel {
    margin-top: 40px;
    padding: 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(255,255,255,0.05);
}

.cta-panel h3 { margin: 0 0 12px; }

.compact-actions { margin-bottom: 0; justify-content: flex-start; }

.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 28px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    transition: all 0.3s ease;
}

.secondary-link:hover {
    background: var(--surface-strong);
    border-color: rgba(255,255,255,0.2);
}

.footer {
    padding: 60px 0;
    border-top: 1px solid var(--line);
    background: var(--background);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a { color: var(--muted); font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* Responsive adjustments */
@media (max-width: 900px) {
    .feature-grid, .comparison-grid, .resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .feature-card:nth-child(1) { grid-column: span 2; }
    .feature-card:nth-child(2) { grid-column: span 1; }
    .feature-card:nth-child(3) { grid-column: span 1; }
    .feature-card:nth-child(4) { grid-column: span 2; }
    .feature-card:nth-child(5) { grid-column: span 2; }
    .feature-card:nth-child(6) { grid-column: span 2; }
}

@media (max-width: 640px) {
    .hero-title { font-size: 2.5rem; }
    .feature-grid, .comparison-grid, .resource-grid {
        grid-template-columns: 1fr;
    }
    .feature-card:nth-child(n) { grid-column: span 1; }
    .footer-inner { flex-direction: column; gap: 24px; }
}
