/* Ziglana - Static Website Styles */
/* Modeled after ziglang.org with dark theme */

html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

body {
    line-height: 1.45;
    margin: 0;
    background-color: #111;
    color: #bbb;
}

/* Navigation */
header {
    background-color: rgba(13, 13, 18, 0.85);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-top: 4px solid #f7a41d;
    transition: background 0.3s ease;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-brand .logo {
    font-size: 1.5rem;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #f7a41d;
}

/* Main sections */
section {
    padding: 60px 0;
}

.container {
    margin: 0 auto;
    position: relative;
    max-width: 1000px;
    padding: 0 0.2em;
}

h1, h2, h3, h4 {
    margin: 0.8em 0 0.5em;
    line-height: 1.2;
    font-weight: bold;
    color: #ccc;
}

h1 {
    font-size: 2.0em;
}

h2 {
    font-size: 1.5em;
}

h3 {
    font-size: 1.25em;
}

p {
    margin: 0.8em 0;
}

a {
    color: #88f;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.section-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 40px;
}

/* Hero Section */
#hero {
    padding: 140px 20px 100px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(247, 164, 29, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(136, 136, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(247, 164, 29, 0.2);
    border: 1px solid #f7a41d;
    color: #f7a41d;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

#hero h1 {
    font-size: 3em;
    color: #eee;
    margin: 0.3em 0 0.5em;
    position: relative;
}

.hero-tagline {
    font-size: 1.2em;
    color: #aaa;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.button {
    background-color: transparent;
    border: 2px solid #737475;
    color: #ccc;
    padding: 12px 24px;
    display: inline-block;
    margin: 10px 0;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.button:hover {
    background-color: #383838;
    text-decoration: none;
}

.button.main {
    background-color: #737475;
    color: #fff;
}

.button.main:hover {
    background-color: #7f7f7f;
    border-color: #7f7f7f;
}

/* Features Section */
.alt-background {
    background-color: #292929;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(247, 164, 29, 0.15);
    border-color: #f7a41d;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    color: #eee;
    margin-top: 0;
}

.feature-card p {
    color: #999;
    font-size: 0.95rem;
}

/* Code Example Section */
#code-example {
    padding: 80px 0;
}

.slogan-message {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.features {
    max-width: 480px;
    flex: 1;
}

.title-box {
    margin-bottom: 24px;
}

.title-box h3 {
    color: #f7a41d;
    font-size: 1.3em;
    margin-bottom: 8px;
}

.title-box h3::before {
    content: '⚡ ';
}

.title-box p {
    color: #999;
    line-height: 1.6;
}

.codesample {
    flex: 1;
    min-width: 0;
}

figure {
    margin: 0 0 15px 0;
}

figcaption {
    padding: 8px 16px;
    font-size: 0.9em;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

figcaption.zig-cap {
    background: #333;
    color: #bbb;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

figcaption.shell-cap {
    background: #2a2a2a;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

pre > code {
    display: block;
    overflow: auto;
    padding: 16px;
    background: #1e1e1e;
    color: #ccc;
    line-height: 1.5;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* Code syntax highlighting */
code.zig .keyword {
    color: #c678dd;
    font-weight: bold;
}

code.zig .keyword_function {
    color: #c678dd;
}

code.zig .string {
    color: #98c379;
}

code.zig .builtin {
    color: #e5c07b;
}

code.zig .function {
    color: #61afef;
}

code.zig .type {
    color: #e06c75;
}

code.zig .number {
    color: #d19a66;
}

code.shell .sgr-32m {
    color: #98c379;
}

code.shell .sgr-32_1m {
    color: #98c379;
}

/* Getting Started Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.step {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 24px;
    position: relative;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-4px);
    border-color: #f7a41d;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #f7a41d;
    color: #111;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.step h3 {
    color: #eee;
    margin-top: 10px;
}

.step p {
    color: #999;
    font-size: 0.95rem;
}

.step code {
    display: block;
    margin-top: 15px;
    padding: 10px;
    background: #111;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #98c379;
}

/* Community Section */
#community {
    padding: 80px 0;
}

.community-message {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 40px;
    color: #999;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.community-card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    display: block;
}

.community-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(136, 136, 255, 0.15);
    border-color: #88f;
    text-decoration: none;
}

.community-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.community-card h3 {
    color: #eee;
    margin: 0 0 10px 0;
}

.community-card p {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

.main-development-message {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #333;
}

.main-development-message h3 {
    color: #f7a41d;
}

.main-development-message p {
    color: #999;
}

/* Footer */
footer {
    background: #0a0a0f;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #222;
}

footer p {
    color: #666;
    margin: 0;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* External link indicator */
.external-link::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath fill='%2388f' d='M5.5 0l.5.5v3h3l-.5.5H6v3.5l-.5.5-3-3 3-3 .5-.5z'/%3E%3C/svg%3E");
    background-size: 10px 10px;
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-inline-start: 5px;
}

/* Responsive */
@media only screen and (max-width: 1000px) {
    .container {
        padding-right: 1rem;
        padding-left: 1rem;
    }
    
    .feature-grid,
    .steps-grid,
    .community-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .slogan-message {
        flex-direction: column;
    }
    
    .features {
        max-width: none;
    }
    
    .codesample {
        margin-top: 30px;
    }
    
    #hero h1 {
        font-size: 2em;
    }
    
    .nav-links {
        display: none;
    }
    
    nav {
        justify-content: center;
    }
}
