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

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #ffffff;
    --border-light: #eee;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* DARK MODE */
body.dark-mode {
    --text-dark: #e0e0e0;
    --text-light: #b0b0b0;
    --bg-light: #1a1a2e;
    --border-light: #333;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
}

/* NAVBAR */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

body.dark-mode .navbar {
    background: rgba(26, 26, 46, 0.95);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
}

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

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.dark-mode-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0.5rem;
}

.dark-mode-toggle:hover {
    transform: scale(1.2);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* MOBILE NAV */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    body.dark-mode .nav-links {
        background: rgba(26, 26, 46, 0.98);
    }
    
    .nav-links.active { max-height: 800px; }
    
    .nav-links li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    body.dark-mode .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 2rem;
    }
}

/* MAIN */
main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

.hero {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 500;
}

.content {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode .content {
    color: var(--text-dark);
}

.content h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.content h2:first-child { margin-top: 0; }

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

/* TABLES */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.comparison-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.comparison-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
    background: var(--bg-light);
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode .comparison-table td {
    background: #252540;
}

.comparison-table tbody tr:hover {
    background: #f8f9ff !important;
}

body.dark-mode .comparison-table tbody tr:hover {
    background: #2d2d4a !important;
}

/* BOXES */
.info-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 5px solid #667eea;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    font-size: 1.05rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

body.dark-mode .info-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.warning-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-left: 5px solid #ffc107;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

body.dark-mode .warning-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
}

.warning-box p, .warning-box ul {
    color: #856404;
    margin: 0.5rem 0;
}

body.dark-mode .warning-box p, body.dark-mode .warning-box ul {
    color: #ffc107;
}

/* CARDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 2rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

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

.card p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

/* BUTTON */
.btn {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

/* CODE */
code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #d63384;
}

body.dark-mode code {
    background: #2d2d4a;
    color: #ff79c6;
}

pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Monaco', 'Courier New', monospace;
    line-height: 1.5;
}

pre code {
    background: none;
    padding: 0;
    color: #d4d4d4;
}

.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    overflow-x: auto;
    border: 1px solid #444;
}

.code-block pre {
    background: none;
    margin: 0;
    padding: 0;
    color: inherit;
}

.diagram {
    background: #1e1e1e;
    color: #00ff00;
    padding: 2rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    border: 1px solid #444;
}

.diagram pre {
    background: none;
    color: inherit;
    padding: 0;
    margin: 0;
}

/* LISTS */
.step-list {
    list-style: none;
    counter-reset: step-counter;
    margin: 1.5rem 0;
}

.step-list li {
    counter-increment: step-counter;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9ff;
    border-left: 4px solid #667eea;
    border-radius: 6px;
    position: relative;
    transition: background 0.3s ease;
}

body.dark-mode .step-list li {
    background: #252540;
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: -20px;
    top: 0;
    background: #667eea;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

ol, ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

ol li, ul li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* HEADINGS */
h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h2 {
    font-size: 1.8rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h3 {
    font-size: 1.4rem;
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* FOOTER */
footer {
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

body.dark-mode footer {
    background: rgba(26, 26, 46, 0.95);
}

footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

footer p {
    color: var(--text-light);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    main { padding: 1.5rem; }
    .hero h1 { font-size: 1.8rem; }
    .tagline { font-size: 1rem; }
    .content { padding: 1.5rem; }
    .content h2 { font-size: 1.5rem; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
}
