:root {
    --bg-color: #0d0d0f;
    --bg-secondary: #161618;
    --text-main: #ededed;
    --text-muted: #a1a1aa;
    --accent: #e27d60; /* Subtle orange accent matching the logo prompt */
    --accent-hover: #c96b50;
    --border: rgba(255, 255, 255, 0.1);
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

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

html {
    scroll-behavior: smooth;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 13, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

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

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

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

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

.btn-primary-small {
    background: var(--text-main);
    color: var(--bg-color) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 99px;
    font-weight: 600 !important;
}

.btn-primary-small:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 10rem 2rem 6rem;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.hero-content {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 99px;
    background: rgba(226, 125, 96, 0.1);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(226, 125, 96, 0.2);
}

.hero-text h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

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

.btn-primary, .btn-secondary, .btn-download {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

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

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
}

.btn-download {
    display: inline-block;
    background: var(--accent);
    color: white;
    margin-bottom: 2rem;
}
.btn-download:hover {
    background: var(--accent-hover);
}
.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 1000px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    padding: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(226, 125, 96, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    filter: blur(60px);
}

/* Features */
.features-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

.features-section h2, .docs-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

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

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

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

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

/* Documentation */
.docs-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.docs-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.doc-block h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.doc-block p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

code {
    font-family: var(--font-mono);
    background: rgba(255,255,255,0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Download */
.download-section {
    padding: 8rem 0;
}

.download-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
}

.download-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.download-card > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.os-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.os-tab {
    padding: 0.5rem 1.5rem;
    border-radius: 99px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
    border: 1px solid transparent;
}

.os-tab.active {
    background: rgba(255,255,255,0.1);
    color: var(--text-main);
    border-color: var(--border);
}

.code-snippet {
    background: #000;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: left;
    overflow: hidden;
}

.code-header {
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.code-snippet code {
    display: block;
    padding: 1rem;
    background: transparent;
    color: #e2e8f0;
    line-height: 1.5;
}

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

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

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem;
    }
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem;
    }
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }
    .hero {
        padding: 10rem 1rem 3rem;
        min-height: auto;
    }
    .hero-content {
        gap: 2rem;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-primary, .btn-secondary, .btn-download {
        width: 100%;
        text-align: center;
    }
    .feature-card {
        padding: 1.5rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ---------------------------------
   PyTorch-like Documentation Styles
   --------------------------------- */

.docs-page {
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.docs-navbar {
    position: sticky;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.docs-layout {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding-top: 2rem;
}

/* Left Sidebar */
.docs-sidebar {
    width: 260px;
    padding: 2rem 1.5rem;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
}

.sidebar-section li {
    margin-bottom: 0.5rem;
}

.sidebar-section a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.15s;
}

.sidebar-section a:hover, .sidebar-section a.active {
    color: var(--accent);
}

/* Main Content */
.docs-main {
    flex: 1;
    padding: 2rem 4rem 6rem;
    max-width: 850px;
    overflow-y: auto;
}

.docs-main h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.docs-main .lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.docs-main hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 2.5rem 0;
}

.docs-main h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.docs-main p {
    margin-bottom: 1.5rem;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
}

.docs-image-container {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.docs-hero-img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.docs-main pre {
    background: #0d1117;
    padding: 3rem 1.25rem 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow-x: auto;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.docs-main pre::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
    box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f;
}

.docs-main pre code {
    font-family: var(--font-mono);
    color: #e6edf3;
    font-size: 0.9rem;
    background: transparent;
    padding: 0;
}

.scrollable-code {
    max-height: 500px;
    overflow-y: auto;
}

.callout {
    background: rgba(56, 189, 248, 0.1);
    border-left: 4px solid #38bdf8;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.docs-table th, .docs-table td {
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.75rem 1rem;
    text-align: left;
}

.docs-table th {
    background: rgba(255,255,255,0.05);
    font-weight: 600;
}

/* Right TOC Sidebar */
.docs-toc {
    width: 220px;
    padding: 2.5rem 1rem;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
}

.docs-toc h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.docs-toc ul {
    list-style: none;
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 1rem;
}

.docs-toc li {
    margin-bottom: 0.6rem;
}

.docs-toc a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.docs-toc a:hover {
    color: var(--text-main);
}

@media (max-width: 1024px) {
    .docs-toc { display: none; }
}
@media (max-width: 768px) {
    .docs-layout { flex-direction: column; padding-top: 0; }
    .docs-sidebar { 
        width: 100%; 
        height: auto; 
        position: static; 
        border-right: none; 
        border-bottom: 1px solid rgba(255,255,255,0.1); 
        padding: 1.5rem;
        display: flex;
        overflow-x: auto;
        gap: 2rem;
        background: rgba(0,0,0,0.2);
    }
    .sidebar-section { margin-bottom: 0; flex-shrink: 0; }
    .sidebar-section a { color: var(--text-muted); }
    .docs-main { padding: 2rem 1.5rem; }
}
