:root {
    --bg-color: #0a0a0b;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent-color: #007aff;
    --accent-gradient: linear-gradient(135deg, #007aff, #bf5af2);
    --glass-blur: blur(20px);
    --container-width: 1100px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.lang-switch {
    position: relative;
}

.lang-switch select {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    text-align: center;
    background: radial-gradient(circle at 50% 30%, rgba(0, 122, 255, 0.1) 0%, transparent 70%);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.3);
}

/* Features Grid */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.feature-card p {
    color: var(--text-secondary);
}

/* Security Section */
.security-banner {
    background: linear-gradient(90deg, rgba(0, 122, 255, 0.05), rgba(191, 90, 242, 0.05));
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 4rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.security-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--card-border);
    text-align: center;
}

.footer-links {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

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

.copyright {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Documentation Pages */
.docs-layout {
    display: flex;
    gap: 4rem;
    padding-top: 8rem;
    padding-bottom: 6rem;
}

.sidebar {
    width: 250px;
    position: sticky;
    top: 8rem;
    height: fit-content;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.75rem;
}

.sidebar a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.docs-content {
    flex: 1;
    max-width: 800px;
}

.docs-content section {
    margin-bottom: 5rem;
    scroll-margin-top: 10rem;
}

.docs-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.docs-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.5rem;
}

.docs-content h3 {
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
    color: var(--accent-color);
}

.docs-content p {
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    opacity: 0.9;
}

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

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

/* Tables in Docs */
.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

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

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

.docs-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, SF Pro HT, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
}

/* Mobile Responsive Docs */
@media (max-width: 992px) {
    .docs-layout {
        flex-direction: column;
        gap: 2rem;
    }
    .sidebar {
        width: 100%;
        position: static;
        border-bottom: 1px solid var(--card-border);
        padding-bottom: 1rem;
    }
    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
}
