/* ========================================
   Gosiki OS - Blueprint Theme
   ======================================== */

/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    /* Colors - Blueprint Palette */
    --primary: #005fcc; /* Blueprint Blue */
    --primary-dark: #004c99;
    --primary-light: #3b82f6; 
    
    --bg-primary: #f8f9fa; /* Light Gray Paper */
    --bg-secondary: #ffffff; /* White */
    --bg-tertiary: #e9ecef; /* Lighter Gray */
    
    --text-primary: #212529; /* Near Black */
    --text-secondary: #495057; /* Dark Gray */
    --text-muted: #6c757d; /* Muted Gray */
    
    --border: #dee2e6;
    --border-hover: #adb5bd;
    
    --warning: #fca311;
    --danger: #d90429;
    --success: #008000;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    background-image: 
        linear-gradient(rgba(0, 95, 204, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 95, 204, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   Header
   ======================================== */
.header {
    background: rgba(248, 249, 250, 0.8);
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.938rem;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

.nav a:not(.github-link):hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.github-link {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--primary);
    transition: all 0.2s;
}

.github-link:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: var(--spacing-2xl) 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 500px;
}

.hero-subtitle strong {
    color: var(--primary);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.hero-badge {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

.badge {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid var(--primary);
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

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

.btn-secondary:hover {
    background: rgba(0, 95, 204, 0.05);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ========================================
   Shared Section Styles
   ======================================== */
.problem, .features, .install, .roadmap, .cta {
    padding: var(--spacing-2xl) 0;
    border-top: 1px solid var(--border);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-size: 1.125rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Problem Section
   ======================================== */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.problem-card {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.problem-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary);
}

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

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

/* ========================================
   Features Section
   ======================================== */
.features {
    background-color: var(--bg-secondary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    background: var(--bg-secondary);
}

.feature-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.938rem;
}

.feature-card code {
    background: var(--bg-tertiary);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--text-primary);
    border: 1px solid var(--border);
}


/* ========================================
   Install Section
   ======================================== */
.install-box {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.install-box h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.code-examples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.code-example {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.code-example h3 {
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    background: var(--bg-tertiary);
    text-align: left;
}

pre {
    background: #fdfdfd;
    padding: var(--spacing-md);
    overflow-x: auto;
    text-align: left;
    margin: 0;
    font-size: 0.9rem;
}

code {
    font-family: var(--font-mono);
    color: #333;
    line-height: 1.6;
}

.install-box code,
.install-command code {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 500;
}

/* ========================================
   Execution Warning
   ======================================== */
.execution-warning {
    background: #fffbe6;
    border: 1px solid var(--warning);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

.execution-warning h3 {
    color: var(--warning);
    margin-bottom: var(--spacing-md);
}

.warning-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.warning-section h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.warning-section ul {
    list-style: none;
}

.warning-section li {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.warning-note {
    background: rgba(217, 4, 41, 0.05);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--danger);
    color: var(--text-secondary);
}

.warning-note strong {
    color: var(--danger);
}


/* ========================================
   Roadmap Section
   ======================================== */
.roadmap-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    position: relative;
}

.roadmap-item {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.roadmap-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.roadmap-item.current {
    border-color: var(--primary);
    border-width: 2px;
}

.roadmap-badge {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
}

.roadmap-item.current .roadmap-badge {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.roadmap-item h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-size: 1.25rem;
}

.roadmap-item p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

.roadmap-item ul {
    list-style: none;
    padding-left: 0;
}

.roadmap-item li {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    font-size: 0.938rem;
}

.roadmap-item li:before {
    content: "✓ ";
    color: var(--success);
    margin-right: var(--spacing-xs);
}

.roadmap-item:not(.current) li:before {
    content: "○ ";
    color: var(--text-muted);
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    background: var(--bg-secondary);
    text-align: center;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 700;
}

.cta p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.install-command {
    background: var(--bg-primary);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    display: inline-block;
    border: 1px solid var(--border);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-tertiary);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-weight: 600;
}

.footer-section p, .footer-section a {
    color: var(--text-muted);
}

.footer-section a {
    display: block;
    text-decoration: none;
    margin-bottom: var(--spacing-xs);
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    .hero-text {
        text-align: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons, .hero-badge {
        justify-content: center;
    }
    .hero-image {
        margin-top: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .header .container { justify-content: center; }
    .hero-title { font-size: 2.5rem; }
    .code-examples { grid-template-columns: 1fr; }
    .warning-content { grid-template-columns: 1fr; }
}