:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --primary-color: #e91e63;
    --primary-hover: #c2185b;
    --text-main: #ffffff;
    --text-sec: #b0b0b0;
    --nav-height: 64px;
    --header-bg: rgba(18, 18, 18, 0.8);
    --btn-secondary-bg: #2c2c2c;
    --btn-secondary-text: #ffffff;
    --btn-secondary-hover: #363636;
}

[data-theme="light"] {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #121212;
    --text-sec: #5f6368;
    --primary-color: #e91e63;
    --primary-hover: #ad1457;
    --header-bg: rgba(255, 255, 255, 0.85);
    --btn-secondary-bg: #ffffff;
    --btn-secondary-text: #121212;
    --btn-secondary-hover: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--text-sec);
    border-bottom-color: rgba(128, 128, 128, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
    text-decoration: none;
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-sec);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: rgba(128, 128, 128, 0.1);
}


/* Hero Section */
.hero {
    padding: 120px 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    min-height: 60vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-sec);
    margin-bottom: 48px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 1px solid rgba(128, 128, 128, 0.2);
}

.btn-secondary:hover {
    background-color: var(--btn-secondary-hover);
    transform: translateY(-2px);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
    padding: 8px 0;
    margin-top: 8px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.dropdown-menu a:hover {
    background-color: rgba(233, 30, 99, 0.1);
    color: var(--primary-color);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-orb {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.2) 0%, rgba(18, 18, 18, 0) 70%);
    position: absolute;
    z-index: -1;
    border-radius: 50%;
}

.hero-img-inner {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--card-bg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background-color: var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Features Grid */
.features {
    padding: 40px 0 80px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background-color: var(--card-bg);
    padding: 32px;
    border-radius: 16px;
    transition: transform 0.2s;
    border: 1px solid rgba(128, 128, 128, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.card-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(233, 30, 99, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-sec);
    font-size: 0.95rem;
}

/* Documentation Page */
.docs-container {
    display: flex;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 48px;
    min-height: calc(100vh - var(--nav-height) - 200px);
}

.docs-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    align-self: flex-start;
}

.docs-sidebar h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-sec);
    margin-bottom: 16px;
}

.docs-sidebar ul {
    list-style: none;
}

.docs-sidebar li {
    margin-bottom: 8px;
}

.docs-sidebar a {
    color: var(--text-sec);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
    color: var(--primary-color);
    background-color: rgba(233, 30, 99, 0.1);
}

.docs-content {
    flex: 1;
    max-width: 800px;
}

/* Tab Panel Visibility */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.docs-content h1 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.docs-content h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(128, 128, 128, 0.1);
}

.docs-content h3 {
    font-size: 1.25rem;
    margin: 24px 0 12px;
}

.docs-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.docs-content p {
    color: var(--text-sec);
    margin-bottom: 16px;
    line-height: 1.8;
}

.docs-content ol,
.docs-content ul {
    margin-left: 24px;
    margin-bottom: 16px;
    color: var(--text-sec);
}

.docs-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.docs-content code {
    background-color: rgba(128, 128, 128, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

.docs-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.docs-content a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.docs-note {
    background-color: rgba(233, 30, 99, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.feature-item {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(128, 128, 128, 0.1);
}

.feature-item h4 {
    margin-bottom: 8px;
}

.feature-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.faq-item {
    margin-bottom: 24px;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(128, 128, 128, 0.1);
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.faq-item p {
    margin-bottom: 0;
}

.nav-links a.active {
    color: var(--primary-color);
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 80px;
    text-align: center;
    color: var(--text-sec);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-content {
        margin-top: 40px;
    }
}