/* Isorion - Universal Infrastructure Compiler - World-class Stylesheet */

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

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --bg: #0f172a;
    --bg-light: #1e293b;
    --text: #f8fafc;
    --text-muted: #cbd5e1;
    --accent: #06b6d4;
    --border: #334155;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

/* Header & Navigation */
header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

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

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.hero-subtitle code {
    background: var(--bg-light);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--accent);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2rem;
}

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

.btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

/* Code Block */
.hero-code {
    max-width: 700px;
    margin: 0 auto 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.code-header {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.code-lang {
    color: var(--accent);
    font-weight: 600;
}

.hero-code pre {
    padding: 1.5rem;
    overflow-x: auto;
}

.hero-code code {
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.compile-arrows {
    text-align: center;
    margin: 2rem 0;
}

.arrow {
    font-size: 2rem;
    color: var(--accent);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.compile-arrows p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Target Badges */
.targets-preview {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.target-badge {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--bg);
}

.features h2, .targets h2, .install h2, .docs-section h2, .community h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

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

.feature-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

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

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

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

/* Targets Section */
.targets {
    padding: 6rem 0;
    background: var(--bg-light);
}

.targets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.target-item {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.target-name {
    font-weight: 600;
    color: var(--text);
}

.target-status {
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-note {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(37, 99, 235, 0.1);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
}

.pricing-note p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Install Section */
.install {
    padding: 6rem 0;
    background: var(--bg);
}

.install-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.install-method h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.code-block {
    background: var(--bg-light);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

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

.quick-example {
    margin-top: 4rem;
}

.quick-example h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.step {
    display: flex;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.75rem;
    color: var(--text);
}

/* Docs Section */
.docs-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.doc-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s;
}

.doc-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.doc-card h3 {
    color: var(--text);
    margin-bottom: 0.75rem;
}

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

/* Community Section */
.community {
    padding: 6rem 0;
    background: var(--bg);
}

.community-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.community-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.community-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: all 0.3s;
}

.community-link:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

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

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
}

.footer-tagline {
    font-style: italic;
    color: var(--accent);
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .install-grid {
        grid-template-columns: 1fr;
    }
}
