:root {
    --bg-dark: #09090b;
    --bg-panel: #18181b;
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --secondary: #6366f1;
    --text-main: #f8fafc;
    --text-muted: #a1a1aa;
    --border-color: #27272a;
    --radius: 16px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

.app-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5%;
    background-color: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 500;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 900;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}

.logo span strong {
    color: var(--primary);
    font-weight: 900;
}

/* Mobile Menu Button */
.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.menu-btn span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: 0.3s;
}

/* Dropdown Menu (Mobile Default) */
.dropdown-menu {
    position: absolute;
    top: 72px;
    right: 5%;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    width: 200px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    z-index: 49;
    overflow: hidden;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.2s;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    padding-left: 22px;
}

main {
    flex: 1;
    width: 100%;
}

.hero {
    padding: 60px 5% 50px;
    text-align: center;
    background: radial-gradient(circle at top, #1e293b 0%, var(--bg-dark) 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

.hero h1 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 480px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.btn {
    display: inline-block;
    padding: 15px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.45);
    filter: brightness(1.1);
}

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

.btn-secondary:hover {
    background: rgba(14, 165, 233, 0.08);
}

.btn-download {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 10px auto 0;
    background: var(--bg-panel);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-download:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.content-section {
    padding: 40px 5%;
    max-width: 900px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border-color);
}

.content-section h2 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-section h2::before {
    content: '';
    display: block;
    width: 5px;
    height: 24px;
    background: var(--primary);
    border-radius: 4px;
}

.content-section h3 {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.content-section p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

/* Grids for desktop */
@media (min-width: 768px) {
    .step-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.toc-list {
    list-style: none;
    padding: 0;
    counter-reset: toc;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 600px) {
    .toc-list {
        grid-template-columns: 1fr 1fr;
    }
}

.toc-list li {
    counter-increment: toc;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.95rem;
}

.toc-list li::before {
    content: counter(toc);
    min-width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 800;
}

.toc-list a {
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}

.toc-list a:hover {
    color: var(--primary);
}

.feature-list, .step-list {
    padding-left: 0;
    list-style: none;
}

.feature-list li {
    background: var(--bg-panel);
    margin-bottom: 12px;
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.feature-list li strong {
    color: var(--primary);
}

.step-list {
    counter-reset: step;
}

.step-list li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.step-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: -2px;
    width: 32px;
    height: 32px;
    background: rgba(14, 165, 233, 0.15);
    color: var(--primary);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.step-list li strong {
    color: var(--text-main);
}

.step-card {
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.2);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    height: 100%;
}

.step-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.badge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.table-container {
    background: var(--bg-panel);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    text-align: left;
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

td {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-muted);
}

td:last-child {
    color: var(--primary);
    font-weight: 600;
}

.note-box {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.note-box strong {
    color: var(--secondary);
}

.faq-item {
    background: var(--bg-panel);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    transition: 0.2s;
}

.faq-item:hover {
    border-color: rgba(14, 165, 233, 0.4);
}

.faq-item h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: 600;
}

footer {
    width: 100%;
    background: var(--bg-panel);
    text-align: center;
    padding: 30px 5%;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: auto;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin: 0 10px;
}

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

/* DESKTOP NAVBAR */
@media (min-width: 850px) {
    .menu-btn {
        display: none;
    }
    
    .dropdown-menu {
        position: static;
        flex-direction: row;
        width: auto;
        background: transparent;
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .dropdown-menu a {
        padding: 10px 15px;
        border: none;
        font-size: 0.95rem;
    }
    
    .dropdown-menu a:hover {
        background: transparent;
        color: var(--primary);
        padding-left: 15px;
    }
}

.split-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

@media (min-width: 768px) {
    .split-layout {
        flex-direction: row;
        align-items: center;
    }
    .split-layout > div {
        flex: 1;
    }
}

.section-image {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    display: block;
    margin: 0 auto;
}

.hero-image {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
    border: 1px solid var(--border-color);
    margin-top: 40px;
}
