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

:root {
    --primary: #4dd131;
    --primary-hover: #3db823;
    --primary-rgb: 77, 209, 49;
    --bg-dark: #040b0d;
    --bg-navbar: rgba(4, 11, 13, 0.8);
    --bg-surface: #0b1518;
    --bg-surface-hover: #122127;
    --bg-surface-active: #182c34;
    --border-color: #172d35;
    --border-focus: #4dd131;
    --text-primary: #ffffff;
    --text-secondary: #9db2ba;
    --text-muted: #5e7781;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background-color: var(--bg-navbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.logo img {
    height: 36px;
    width: 36px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

/* Navbar CTA Button */
.nav-cta {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-cta:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 4px 14px rgba(77, 209, 49, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 209, 49, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--bg-surface-hover);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.btn-windows {
    background-color: #ffffff;
    color: #000000;
    box-shadow: var(--shadow-md);
}

.btn-windows:hover {
    background-color: #f3f3f3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #000000;
}

.btn-windows svg {
    fill: currentColor;
    width: 18px;
    height: 18px;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at top, rgba(77, 209, 49, 0.08) 0%, rgba(4, 11, 13, 0) 60%),
                linear-gradient(180deg, var(--bg-dark) 0%, #061013 100%);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

/* Decorative Matrix-like background effect for Hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
    margin-bottom: 48px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 60%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-weight: 400;
    line-height: 1.5;
}

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

.version-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.version-info a {
    color: var(--text-muted);
    text-decoration: underline;
}

.version-info a:hover {
    color: var(--primary);
}

/* Editor Preview Mockup */
.hero-image {
    width: 100%;
    max-width: 900px;
    padding: 0 24px;
    z-index: 10;
}

.editor-preview {
    background-color: #060e10;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(77, 209, 49, 0.05);
    overflow: hidden;
    text-align: left;
}

.editor-header {
    height: 40px;
    background-color: #03080a;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.editor-tabs {
    display: flex;
    margin-left: 20px;
    height: 100%;
    align-items: flex-end;
}

.editor-tab {
    padding: 8px 16px;
    background-color: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.editor-tab.active {
    background-color: #060e10;
    color: var(--text-primary);
    border-top: 1px solid var(--primary);
    height: calc(100% + 1px);
}

.editor-body {
    display: flex;
    font-family: var(--font-code);
    font-size: 0.9rem;
    min-height: 280px;
}

.editor-sidebar-mock {
    width: 48px;
    background-color: #03080a;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 20px;
    color: var(--text-muted);
}

.sidebar-icon-active {
    color: var(--primary);
    border-left: 2px solid var(--primary);
    padding-left: 4px;
    width: 100%;
    text-align: center;
}

.editor-lines {
    padding: 16px 12px;
    text-align: right;
    color: var(--text-muted);
    background-color: #050b0d;
    user-select: none;
    border-right: 1px solid rgba(23, 45, 53, 0.5);
    min-width: 45px;
}

.editor-code {
    padding: 16px 20px;
    flex-grow: 1;
    overflow-x: auto;
    background-color: #060e10;
    color: #a5b7c0;
}

/* Syntax Highlighting */
.code-keyword { color: #f97583; font-weight: 500; }
.code-function { color: var(--primary); }
.code-string { color: #9ecbff; }
.code-comment { color: #6a737d; font-style: italic; }
.code-tag { color: #79b8ff; }
.code-attr { color: #ffab70; }

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 36px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(77, 209, 49, 0.05);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 24px;
    color: var(--primary);
    background: rgba(77, 209, 49, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid rgba(77, 209, 49, 0.1);
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Languages Section */
.languages-section {
    padding: 80px 0;
    background-color: #061013;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.languages-section h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.languages-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.language-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.language-item:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background-color: var(--bg-surface-hover);
    transform: scale(1.05);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(circle at bottom, rgba(77, 209, 49, 0.06) 0%, rgba(4, 11, 13, 0) 50%),
                var(--bg-dark);
}

.cta-section h2 {
    font-size: 2.6rem;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Download Page Layout */
.download-page {
    padding: 140px 0 100px;
    min-height: 80vh;
}

.download-page-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.download-page-header h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.download-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

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

.download-card .os-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.download-card h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.download-card .btn {
    width: 100%;
    margin-bottom: 24px;
}

.download-options {
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.option-row span {
    font-weight: 500;
}

.option-links {
    display: flex;
    gap: 12px;
}

.option-links a {
    color: var(--primary);
    font-weight: 600;
}

.option-links a:hover {
    text-decoration: underline;
}

/* System Requirements Box */
.requirements-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.requirements-box h3 {
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.requirements-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    font-size: 0.9rem;
}

.requirements-list li {
    display: flex;
    gap: 8px;
}

.requirements-list li strong {
    color: var(--text-primary);
}

/* Documentation Layout (3 columns) */
.docs-page {
    padding-top: 72px; /* Offset navbar */
    min-height: 100vh;
    display: flex;
}

/* Left Sidebar (Navigation) */
.docs-sidebar {
    width: 280px;
    background-color: #03080a;
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 72px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 30px 20px;
}

.docs-search {
    position: relative;
    margin-bottom: 24px;
}

.docs-search input {
    width: 100%;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 14px 10px 36px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.docs-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(77, 209, 49, 0.15);
}

.docs-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.docs-menu {
    list-style: none;
}

.docs-menu-category {
    margin-bottom: 24px;
}

.docs-menu-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-left: 10px;
}

.docs-menu-items {
    list-style: none;
}

.docs-menu-items li a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 2px solid transparent;
}

.docs-menu-items li a:hover {
    color: var(--primary);
    background-color: var(--bg-surface);
}

.docs-menu-items li a.active {
    color: var(--primary);
    background-color: var(--bg-surface-hover);
    border-left-color: var(--primary);
    font-weight: 600;
}

/* Center Content Area */
.docs-main {
    flex-grow: 1;
    margin-left: 280px; /* Offset sidebar */
    margin-right: 280px; /* Offset right outline */
    padding: 40px 60px;
    background-color: var(--bg-dark);
}

.docs-article {
    max-width: 760px;
    margin: 0 auto;
}

.docs-article h1 {
    font-size: 2.8rem;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.docs-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.docs-article h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(23, 45, 53, 0.4);
}

.docs-article h3 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 14px;
}

.docs-article p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.docs-article ul, .docs-article ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.docs-article li {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.docs-article strong {
    color: var(--text-primary);
}

/* Tip/Important Alerts in Docs */
.docs-alert {
    background-color: var(--bg-surface);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px;
    margin: 30px 0;
}

.docs-alert-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.docs-alert p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.docs-alert.info {
    border-left-color: #3b82f6;
}
.docs-alert.warning {
    border-left-color: #f59e0b;
}

/* Code Blocks in Docs */
.docs-code-container {
    background-color: #060e10;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin: 24px 0;
    overflow: hidden;
}

.docs-code-header {
    background-color: #03080a;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.docs-code-lang {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.docs-code-copy {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.docs-code-copy:hover {
    color: var(--primary);
}

.docs-code-container pre {
    padding: 20px;
    margin: 0;
    overflow-x: auto;
    font-family: var(--font-code);
    font-size: 0.9rem;
}

/* Shortcut Box */
kbd {
    background-color: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.2), inset 0 2px 0 0 rgba(255,255,255,0.05);
    color: var(--text-primary);
    display: inline-block;
    font-family: var(--font-code);
    font-size: 0.85em;
    font-weight: 500;
    line-height: 1;
    padding: 4px 6px;
    white-space: nowrap;
}

/* Table styling in docs */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.docs-table th, .docs-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.docs-table th {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    font-weight: 600;
}

.docs-table tr:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

/* Right Sidebar (Outline) */
.docs-outline {
    width: 280px;
    background-color: var(--bg-dark);
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 30px 20px;
}

.docs-outline-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.docs-outline-items {
    list-style: none;
}

.docs-outline-items li {
    margin-bottom: 10px;
}

.docs-outline-items a {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
}

.docs-outline-items a:hover {
    color: var(--text-primary);
}

.docs-outline-items a.active {
    color: var(--primary);
    font-weight: 500;
}

/* Footer styling */
.footer {
    background-color: #03080a;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 4px;
}

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

/* Mobile responsive menu hamburger icon */
.menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .docs-outline {
        display: none; /* Hide right sidebar on tablets and small viewports */
    }
    .docs-main {
        margin-right: 0;
    }
}

@media (max-width: 1024px) {
    .download-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.15rem;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background-color: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition);
        z-index: 999;
    }
    .nav-menu.open {
        left: 0;
    }
    .docs-sidebar {
        left: -280px;
        z-index: 998;
        transition: var(--transition);
    }
    .docs-sidebar.open {
        left: 0;
        box-shadow: var(--shadow-lg);
    }
    .docs-main {
        margin-left: 0;
        padding: 30px 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .requirements-list {
        grid-template-columns: 1fr;
    }
}
