:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
}

:root {
    --text: #fff;
    --text-light: #ccc;
    --bg: #111;
    --bg-light: #1e1e1e;
    --border: #333;
    --header-bg: #111;
    --header-text: #aaa;
}

:root:has(#dark-mode:checked) {
    --text: #111827;
    --text-light: #4b5563;
    --bg: #ffffff;
    --bg-light: #f9fafb;
    --border: #e5e7eb;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-text: #aaa;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

a:hover {
    text-decoration: underline;
}

.acc {
    color: var(--primary);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:checked~.hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle:checked~.hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle:checked~.hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

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

.nav-menu a {
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s ease;
    position: relative;
    text-decoration: none;
}

.nav-menu label {
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after,
.nav-menu label::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: all 0.3s ease;
}

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

.nav-menu a:hover::after,
.nav-menu label:hover::after {
    transform: scaleX(1);
}

#dark-mode {
    display: none;
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--header-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        border-left: 1px solid var(--border);
    }

    .mobile-menu-toggle:checked~.nav-menu {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }
}

.hero {
    padding: 10rem 2rem 8rem;
    text-align: center;
    background: linear-gradient(to top, var(--bg-light), var(--bg));
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin: 0 0 1.5rem;
    line-height: 1.1;
}

.hero .tagline {
    font-size: 1.75rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

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

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature {
    text-align: center;
}

.feature h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

footer {
    background: #0c0c0c;
    color: #aaa;
    padding: 4rem 2rem 2rem;
    text-align: center;
}

footer a {
    color: #ccc;
}

#hero-text {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto 3rem;
}

#why-zhiva {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
}

#why-zhiva-text {
    text-align: center;
    font-size: 1.4rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 4rem;
}

.status-note {
    background-color: var(--bg-light);
    color: var(--txt);
    padding: 1rem;
    border-radius: 0.5rem;
    max-width: 800px;
    margin: 2rem auto 3rem;
    border: 1px solid var(--primary);
}

.getting-started {
    background: var(--bg-light);
    padding: 6rem 2rem;
    text-align: center;
}

.getting-started h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
}

.step-by-step {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.step {
    background: var(--bg);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.step h4 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary);
}

pre {
    background: #1e1e1e !important;
    color: #ccc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
    text-shadow: none !important;
}

code {
    font-family: 'Fira Code', 'Courier New', monospace;
    text-shadow: none !important;
}

:not(pre)>code {
    background: #f3e8ff;
    color: var(--primary-dark);
    padding: 0.2em 0.4em;
    border-radius: 0.3rem;
    font-size: 0.9em;
}

.code-examples {
    padding: 6rem 2rem;
    background: var(--bg);
}

.code-examples h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.code-examples .tagline {
    text-align: center;
    font-size: 1.4rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 4rem;
}

.code-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.code-block {
    background: #1e1e1e;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.code-header {
    background: #252526;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #333;
    color: #ccc;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-header::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f56;
    box-shadow: 15px 0 0 #ffbd2e, 30px 0 0 #27c93f;
    margin-right: 35px;
}

.code-block pre {
    margin: 0;
    border-radius: 0;
    height: 100%;
    background: #1e1e1e !important;
}

:not(pre)>code[class*="language-"],
pre[class*="language-"] {
    background: #1e1e1e !important;
    text-shadow: none !important;
}

code[class*="language-"],
pre[class*="language-"] {
    text-shadow: none !important;
    font-family: 'Fira Code', 'Courier New', monospace !important;
}

@media (min-width: 1024px) {
    .code-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.comparison {
    padding: 6rem 2rem;
    max-width: 80vw;
    margin: 0 auto;
}

.comparison h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

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

thead {
    background: var(--bg-light);
}

th {
    font-size: 1.2rem;
    font-weight: 600;
}

tbody tr:nth-child(even) {
    background-color: var(--bg-light);
}

td:first-child {
    font-weight: 500;
}

@media (min-width: 768px) {
    .step-by-step {
        grid-template-columns: repeat(2, 1fr);
    }
}

.step-by-step-large {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

@media (min-width: 1024px) {
    .step-by-step-large {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 1000px) {
    .comparison {
        max-width: 100vw;
        width: 100vw;
        overflow-x: auto;
        padding: 0;
    }

    table td {
        min-width: 15rem;
    }
}