:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9fa;
    --text-primary: #18181b;
    --text-secondary: #71717a;
    --accent: #2563eb;
    --border: #e4e4e7;
    --font-heading: 'Manrope', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-heading);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Accessibility - Skip to Content */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 1rem 1.5rem;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 0 0 0.5rem 0;
    font-weight: 600;
    transition: left 0.3s;
}

.skip-to-content:focus {
    left: 0;
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Enhanced Focus Indicators */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

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

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

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

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

.nav-cta {
    background: var(--text-primary);
    color: var(--bg-primary) !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

.nav-cta:hover {
    opacity: 0.9;
    background: #000;
}

/* Hero */
.hero {
    padding: 180px 5% 60px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    gap: 0.2em;
}

.typed-word {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    min-width: 2.5em;
    /* Increased slightly to prevent 'Code' from shifting layout */
    /* Ensures "with Focus" stays stationary */
    text-align: right;
}

.typed-word::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 10%;
    height: 80%;
    width: 3px;
    background: var(--accent);
    animation: blink 0.8s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

/* Download Buttons */
.download-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.6rem;
}

.btn-mac,
.btn-win,
.btn-linux {
    width: 100%;
    background: #000;
    color: white;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-mac:hover,
.btn-win:hover,
.btn-linux:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    background: #18181b;
}

.secondary-downloads {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.btn-secondary {
    flex: 1;
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border);
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: #d4d4d8;
    transform: translateY(-1px);
}

/* Hero Graphic */
/* Hero Graphic */
.hero-image-container {
    margin-top: 8rem;
    perspective: 1000px;
}

.hero-graphic {
    width: 100%;
    height: auto;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

.hero-image-container:hover .hero-graphic {
    transform: translateY(-5px);
}

/* Features */
.features {
    padding: 40px 5% 120px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.features-grid {
    display: grid;
    /* 3x2 Grid as requested */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 40px -10px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

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

/* Target Audience Section */
.target-audience {
    padding: 4rem 5%;
    background: var(--bg-secondary);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

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

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.audience-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
}

.audience-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA */
.cta-section {
    text-align: center;
    padding: 120px 5%;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.btn-large {
    background: #000;
    color: white;
    padding: 1.2rem 3.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-large:hover {
    background: #18181b;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}



/* Footer */
footer {
    padding: 100px 5% 40px;
    background: var(--bg-primary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-col p {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.2s;
    font-weight: 500;
}

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

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}


/* Responsive Design */

/* Tablet (Landscape) & Small Laptops */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .features-grid {
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* Tablet (Portrait) & Large Phones */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem 5%;
        background: rgba(255, 255, 255, 0.95);
    }

    .nav-links {
        display: flex;
        /* Show links on mobile */
        gap: 1rem;
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .hero {
        padding-top: 140px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        /* 1 column for readability on narrow screens */
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-col p,
    .footer-col a {
        margin-left: auto;
        margin-right: auto;
    }

    .secondary-downloads {
        flex-direction: column;
    }
}

/* Mobile (Small) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .nav-links {
        gap: 0.8rem;
        font-size: 0.9rem;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    .btn-large {
        padding: 1rem 2rem;
        width: 100%;
    }
}

/* Documentation Page Layout */
.docs-container {
    display: flex;
    max-width: 1200px;
    margin: 320px auto 0;
    padding: 0 5%;
    min-height: calc(100vh - 200px);
}

.docs-sidebar {
    width: 250px;
    flex-shrink: 0;
    margin-right: 4rem;
    padding-top: 5rem;
    border-right: 1px solid var(--border);
}

.sidebar-sticky {
    position: sticky;
    top: 240px;
}

.docs-sidebar h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    padding-left: 1rem;
}

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

.docs-nav li {
    margin-bottom: 0.5rem;
}

.docs-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s;
    display: block;
    padding: 0.6rem 1rem;
    border-left: 3px solid transparent;
}

.docs-nav a:hover,
.docs-nav a.active {
    color: var(--accent);
    background: rgba(37, 99, 235, 0.05);
    border-left-color: var(--accent);
}

.docs-content {
    flex-grow: 1;
    padding-top: 5rem;
    padding-bottom: 5rem;
    max-width: 800px;
}

/* Docs Typography */
.docs-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.docs-content h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.02em;
}

.docs-content h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.docs-content p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.docs-content .lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.info-box {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

/* Feature Items */
.feature-item {
    margin-bottom: 2rem;
}

.feature-item ul {
    margin-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.feature-item li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Shortcuts Table */
.shortcuts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.shortcuts-table th,
.shortcuts-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.shortcuts-table th {
    background: var(--bg-secondary);
    font-weight: 600;
}

.shortcuts-table tr:last-child td {
    border-bottom: none;
}

kbd {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--text-primary);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Responsive Docs */
@media (max-width: 768px) {
    .docs-container {
        flex-direction: column;
    }

    .docs-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        margin-right: 0;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    .sidebar-sticky {
        position: static;
    }
}

/* Updated Docs Layout - Wider & Tabbed */
.docs-container {
    max-width: 1400px;
    /* Increased from 1200px */
    margin: 100px auto 0;
    padding: 0 40px;
    /* Fixed padding */
    gap: 60px;
    /* More space between sidebar and content */
}

.docs-sidebar {
    width: 280px;
    /* Slightly wider sidebar */
    padding-top: 0;
    /* Align with top of content */
    border-right: 1px solid var(--border);
    height: fit-content;
}

.docs-content {
    max-width: 900px;
    /* Keep reading measure comfortable but allow more room */
    padding-top: 0;
}

/* Tabbed Interface Styles */
.doc-section {
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.3s ease;
}

.doc-section.active {
    display: block;
    /* Show active section */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.docs-nav a {
    border-left: 2px solid transparent;
    /* Left border marker */
    padding-left: 1rem;
    margin-bottom: 0.2rem;
    color: var(--text-secondary);
}

.docs-nav a:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-radius: 0 4px 4px 0;
}

.docs-nav a.active {
    color: var(--accent);
    border-left-color: var(--accent);
    background: linear-gradient(to right, rgba(37, 99, 235, 0.05), transparent);
    font-weight: 600;
    padding-left: 1rem;
    /* Keep padding consistent */
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.feature-list li::before {
    content: "\2713";
    /* Standard checkmark */
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.docs-content ul,
.docs-content ol {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.docs-content li {
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #333;
}

/* Changelog Styles */
.changelog-container {
    max-width: 1000px;
    margin: 120px auto 100px;
    padding: 0 5%;
}

.changelog-container h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
}

.changelog-container .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.release-entry {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.release-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.version-tag {
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.release-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.release-entry h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.release-entry>p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.change-group {
    margin-bottom: 2rem;
}

.change-group h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.change-list {
    list-style: none;
}

.change-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.change-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Downloads Page */
.downloads-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 5% 4rem;
}

.downloads-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.downloads-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.downloads-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.version-section {
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.version-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.platform-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.platform-row {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    padding: 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    transition: box-shadow 0.2s;
}

.platform-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.platform-info {
    flex-shrink: 0;
    min-width: 200px;
}

.platform-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.platform-icon {
    font-size: 1.8rem;
    display: inline-block;
}

.platform-downloads {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    flex: 1;
}

.btn-download {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.75rem;
    background: var(--text-primary);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: background 0.2s, transform 0.1s;
    width: auto;
    min-width: 320px;
    border: 2px solid var(--text-primary);
}

.btn-download:hover {
    background: #27272a;
    border-color: #27272a;
    transform: translateY(-2px);
}

.btn-download:active {
    transform: translateY(0);
}

.download-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.btn-label {
    font-size: 1rem;
    font-weight: 500;
}

.file-info {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.9;
}

.platform-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

.version-notes {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.version-notes a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.version-notes a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Version Badge for future releases */
.version-badge.latest {
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .downloads-hero h1 {
        font-size: 2.25rem;
    }

    .platform-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .platform-info {
        min-width: auto;
        width: 100%;
    }

    .platform-downloads {
        width: 100%;
    }

    .btn-download {
        width: 100%;
        min-width: auto;
        justify-content: flex-start;
    }

    .version-header {
        flex-direction: column;
        align-items: flex-start;
    }
}