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

:root {
    --primary-color: #FFD700;
    --primary-dark: #FFC107;
    --secondary-color: #FFEB3B;
    --text-color: #FFFFFF;
    --text-light: #CCCCCC;
    --bg-color: #000000;
    --bg-light: #1A1A1A;
    --border-color: #333333;
    --shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
    --shadow-lg: 0 4px 20px rgba(255, 215, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
}

/* Header */
header {
    background: linear-gradient(135deg, #1A1A1A, #000000);
    color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

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

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

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

.logo img {
    width: 40px;
    height: 40px;
    display: block;
    flex-shrink: 0;
}

.logo span {
    white-space: nowrap;
}

/* Hamburger - hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    color: var(--primary-color);
    transition: background 0.2s, color 0.2s;
}

.hamburger:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

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

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

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

.nav-close-item {
    display: none;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1A1A1A 0%, #000000 100%);
    border-radius: 10px;
    margin-bottom: 3rem;
    border: 2px solid var(--primary-color);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    margin: 0.5rem;
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: #000000;
}

/* Sections */
.section {
    margin-bottom: 3rem;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.section h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--primary-color);
}

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

.card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.card a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* General content links */
main a:not(.cta-button):not(.logo) {
    color: var(--primary-color);
    transition: color 0.3s;
}

main a:not(.cta-button):not(.logo):hover {
    color: var(--secondary-color);
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
    color: var(--text-color);
}

.features-list li::before {
    content: "✓ ";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Code Blocks */
.code-block {
    background: #1A1A1A;
    color: var(--primary-color);
    padding: 1.5rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    border: 1px solid var(--border-color);
}

/* Links */
.content-links {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.content-links h3 {
    margin-top: 0;
}

.content-links ul {
    list-style: none;
    padding: 0;
}

.content-links li {
    margin: 0.5rem 0;
}

.content-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.content-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Footer */
footer {
    background: #000000;
    color: var(--text-color);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 2px solid var(--primary-color);
}

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

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

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

table th {
    background: var(--bg-light);
    font-weight: bold;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

table td {
    color: var(--text-color);
}

table {
    border: 1px solid var(--border-color);
}

/* Mobile: hamburger menu */
@media (max-width: 900px) {
    header {
        position: relative;
        z-index: 1000;
    }

    .hamburger {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(280px, 85vw);
        height: 100vh;
        background: var(--bg-light);
        border-left: 2px solid var(--primary-color);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 1.5rem 2rem;
        gap: 0;
        z-index: 999;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .nav-links.nav-open {
        transform: translateX(0);
    }

    .nav-close-item {
        display: block;
        list-style: none;
        border-bottom: 2px solid var(--primary-color);
        margin-bottom: 0.5rem;
    }

    .nav-close-btn {
        display: block;
        width: 100%;
        padding: 1rem 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--primary-color);
        background: transparent;
        border: none;
        cursor: pointer;
        text-align: left;
        transition: color 0.2s, background 0.2s;
    }

    .nav-close-btn:hover {
        color: var(--bg-color);
        background: var(--primary-color);
    }

    .nav-links li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    body.nav-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
}

/* Responsive layout */
@media (max-width: 768px) {
    .hero {
        padding: 2.5rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        display: block;
        margin: 0.5rem auto;
        text-align: center;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    main {
        padding: 1rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .footer-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
    }

    .logo {
        font-size: 1.25rem;
    }

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

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.breadcrumb a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}
