:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #334155;
    --code-bg: #1e1e2e;
    --terminal-bg: #0d1117;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-width: 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.logo {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    font-size: 0.9rem;
}

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

.github-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--surface);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.github-link:hover {
    background: var(--surface-light);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--background) 0%, #1e293b 100%);
}

.hero-content {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Development Notice */
.development-notice {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1.5rem auto;
    max-width: 600px;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.notice-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.notice-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.notice-content strong {
    color: #ffc107;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-light);
    transform: translateY(-2px);
}

/* Terminal Demo */
.hero-demo {
    display: flex;
    justify-content: center;
}

.terminal {
    background: var(--terminal-bg);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    min-width: 0;
}

.terminal-header {
    background: #21262d;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #ff5f57; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #28ca42; }

.terminal-title {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.terminal-body {
    padding: 1rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    overflow-x: auto;
    min-width: 0;
}

.terminal-line {
    margin-bottom: 0.5rem;
    white-space: nowrap;
    min-width: 0;
}

.prompt {
    color: var(--secondary-color);
    font-weight: 500;
}

.code {
    color: var(--text-primary);
}

.terminal-output {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.terminal-cursor {
    color: var(--secondary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features */
.features {
    padding: 4rem 0;
    background: var(--surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Examples */
.examples {
    padding: 4rem 0;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 2rem;
}

.example-card {
    background: var(--surface);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.example-card h3 {
    padding: 1.5rem;
    background: var(--surface-light);
    margin: 0;
    border-bottom: 1px solid var(--border);
}

.code-block {
    background: var(--code-bg);
    margin: 0;
    overflow-x: auto;
}

.code-block pre {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    white-space: pre;
    word-wrap: normal;
    min-width: 0;
}

.code-block code {
    color: var(--text-primary);
}

/* Documentation */
.documentation {
    padding: 4rem 0;
    background: var(--surface);
}

.docs-content {
    display: grid;
    gap: 3rem;
}

.install-section h3,
.usage-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Testing */
.testing {
    padding: 4rem 0;
}

.testing-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.test-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--surface);
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.test-info h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.test-info ul {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.test-info li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.test-info li:before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Footer */
.footer {
    background: var(--terminal-bg);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

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

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.footer-right {
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-right a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .nav-container {
        padding: 0.5rem 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-brand {
        font-size: 1.1rem;
    }
    
    .nav-links {
        gap: 0.75rem;
        font-size: 0.8rem;
        justify-content: center;
    }
    
    .nav-links a {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .github-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    
    .hero {
        padding: 4.5rem 0 2.5rem;
    }
    
    .hero-title {
        font-size: 1.7rem;
        line-height: 1.05;
        margin-top: 3rem;
        margin-bottom: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding: 0 0.25rem;
    }
    
    .development-notice {
        margin: 0.75rem auto 1rem;
        padding: 0.6rem;
        font-size: 0.8rem;
        max-width: 95%;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        margin-top: 0.75rem;
    }
    
    .btn {
        padding: 0.55rem 1.25rem;
        font-size: 0.85rem;
        width: 100%;
        max-width: 240px;
        justify-content: center;
    }
    
    .terminal {
        max-width: 100%;
        margin: 0 0.25rem;
        border-radius: 0.5rem;
    }
    
    .terminal-header {
        padding: 0.6rem;
    }
    
    .terminal-body {
        padding: 0.6rem;
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .features {
        padding: 2.5rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        font-size: 2.25rem;
        margin-bottom: 0.6rem;
    }
    
    .examples {
        padding: 2.5rem 0;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .example-card h3 {
        padding: 0.85rem;
        font-size: 1rem;
    }
    
    .code-block pre {
        padding: 0.85rem;
        font-size: 0.75rem;
        overflow-x: auto;
    }
    
    .documentation {
        padding: 2.5rem 0;
    }
    
    .docs-content {
        gap: 1.5rem;
    }
    
    .testing {
        padding: 2.5rem 0;
    }
    
    .testing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .test-stats {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .stat {
        padding: 1.25rem 0.75rem;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .footer {
        padding: 1.25rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .nav-container {
        padding: 0.4rem 0.5rem;
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .nav-brand {
        font-size: 1rem;
    }
    
    .nav-links {
        gap: 0.5rem;
        font-size: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        padding: 0.15rem 0.3rem;
        font-size: 0.75rem;
    }
    
    .github-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        gap: 0.25rem;
    }
    
    .hero {
        padding: 4rem 0 2rem;
    }
    
    .hero-title {
        font-size: 1.35rem;
        line-height: 1.05;
        margin-top: 3rem;
        margin-bottom: 0.4rem;
        padding: 0 0.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 0.1rem;
        margin-bottom: 0.75rem;
    }
    
    .development-notice {
        padding: 0.4rem;
        font-size: 0.7rem;
        gap: 0.4rem;
        margin: 0.5rem auto 0.75rem;
        max-width: 98%;
    }
    
    .notice-icon {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        margin-top: 0.75rem;
        gap: 0.4rem;
    }
    
    .btn {
        padding: 0.45rem 1rem;
        font-size: 0.8rem;
        width: 100%;
        max-width: 200px;
    }
    
    .terminal {
        margin: 0 0.1rem;
        border-radius: 0.4rem;
    }
    
    .terminal-header {
        padding: 0.5rem;
    }
    
    .terminal-title {
        font-size: 0.75rem;
    }
    
    .terminal-body {
        padding: 0.4rem;
        font-size: 0.65rem;
        line-height: 1.3;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .features,
    .examples,
    .documentation,
    .testing {
        padding: 2rem 0;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .example-card h3 {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .code-block pre {
        padding: 0.6rem;
        font-size: 0.65rem;
        line-height: 1.3;
    }
    
    .test-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .stat {
        padding: 1rem 0.6rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 0.25rem;
    }
    
    .nav-container {
        padding: 0.3rem 0.25rem;
    }
    
    .nav-brand {
        font-size: 0.95rem;
    }
    
    .nav-links {
        gap: 0.4rem;
        font-size: 0.7rem;
    }
    
    .nav-links a {
        padding: 0.1rem 0.25rem;
        font-size: 0.7rem;
    }
    
    .github-link {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
    }
    
    .hero {
        padding: 3.5rem 0 1.5rem;
    }
    
    .hero-title {
        font-size: 1.2rem;
        line-height: 1.05;
        margin-top: 3rem;
        margin-bottom: 0.3rem;
        padding: 0 0.1rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .development-notice {
        padding: 0.3rem;
        font-size: 0.65rem;
        margin: 0.4rem auto 0.6rem;
    }
    
    .notice-icon {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        max-width: 180px;
    }
    
    .terminal {
        margin: 0;
        border-radius: 0.3rem;
    }
    
    .terminal-header {
        padding: 0.4rem;
    }
    
    .terminal-buttons span {
        width: 10px;
        height: 10px;
    }
    
    .terminal-title {
        font-size: 0.7rem;
    }
    
    .terminal-body {
        padding: 0.3rem;
        font-size: 0.6rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .features,
    .examples,
    .documentation,
    .testing {
        padding: 1.5rem 0;
    }
    
    .feature-card,
    .stat {
        padding: 0.8rem;
    }
    
    .feature-icon {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }
    
    .feature-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-card p {
        font-size: 0.8rem;
    }
    
    .example-card h3 {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .code-block pre {
        padding: 0.4rem;
        font-size: 0.6rem;
        line-height: 1.2;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .footer {
        padding: 1rem 0;
    }
    
    .footer-left {
        font-size: 0.9rem;
    }
    
    .footer-right {
        font-size: 0.75rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 0.15rem;
    }
    
    .nav-container {
        padding: 0.25rem 0.15rem;
    }
    
    .nav-brand {
        font-size: 0.9rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-links {
        gap: 0.3rem;
        font-size: 0.65rem;
    }
    
    .nav-links a {
        padding: 0.08rem 0.2rem;
        font-size: 0.65rem;
    }
    
    .github-link {
        padding: 0.15rem 0.3rem;
        font-size: 0.6rem;
        gap: 0.15rem;
    }
    
    .hero {
        padding: 3rem 0 1.25rem;
    }
    
    .hero-title {
        font-size: 1.1rem;
        line-height: 1.05;
        margin-top: 3rem;
        margin-bottom: 0.25rem;
        padding: 0;
        word-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .development-notice {
        padding: 0.25rem;
        font-size: 0.6rem;
        margin: 0.3rem auto 0.5rem;
        gap: 0.3rem;
    }
    
    .notice-icon {
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
        max-width: 160px;
    }
    
    .terminal {
        border-radius: 0.25rem;
    }
    
    .terminal-header {
        padding: 0.3rem;
        gap: 0.5rem;
    }
    
    .terminal-buttons {
        gap: 0.3rem;
    }
    
    .terminal-buttons span {
        width: 8px;
        height: 8px;
    }
    
    .terminal-title {
        font-size: 0.65rem;
    }
    
    .terminal-body {
        padding: 0.25rem;
        font-size: 0.55rem;
        line-height: 1.15;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .features,
    .examples,
    .documentation,
    .testing {
        padding: 1.25rem 0;
    }
    
    .feature-card,
    .stat {
        padding: 0.6rem;
    }
    
    .feature-icon {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
    }
    
    .feature-card h3 {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .feature-card p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .example-card h3 {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
    
    .code-block pre {
        padding: 0.3rem;
        font-size: 0.55rem;
        line-height: 1.15;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .footer {
        padding: 0.8rem 0;
    }
    
    .footer-left {
        font-size: 0.85rem;
    }
    
    .footer-right {
        font-size: 0.7rem;
    }
    
    .footer-content {
        gap: 0.5rem;
    }
}

/* Syntax Highlighting */
.language-lisp .comment { color: #6a9955; }
.language-lisp .string { color: #ce9178; }
.language-lisp .number { color: #b5cea8; }
.language-lisp .keyword { color: #569cd6; }
.language-lisp .function { color: #dcdcaa; }
.language-bash .comment { color: #6a9955; }
.language-bash .string { color: #ce9178; }
.language-bash .command { color: #569cd6; }
