:root {
    --bg-primary: #08080a;
    --bg-secondary: #111114;
    --bg-card: rgba(18, 18, 22, 0.6);
    --text-main: #e2e2e9;
    --text-muted: #8e8e9f;
    --accent-gold: #d4af37;
    --accent-gold-dark: #aa841c;
    --border-color: rgba(212, 175, 55, 0.15);
    --border-highlight: rgba(212, 175, 55, 0.4);
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: linear-gradient(to right, #ffe699, #d4af37, #ffe699);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background: var(--accent-gold);
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffe699;
}

strong {
    color: var(--text-main);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(8, 8, 10, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
}

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

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(214, 175, 55, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(214, 175, 55, 0.05);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-body {
    flex-grow: 1;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-align: center;
    border-radius: 2px;
}

.btn:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    box-shadow: 0 0 15px rgba(214, 175, 55, 0.2);
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-gold);
}

/* Tutorial Layout (Article Mode) */
.tutorial-layout {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.tutorial-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tutorial-body section {
    margin-bottom: 3.5rem;
}

.tutorial-body h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.tutorial-body h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.tutorial-body p {
    color: var(--text-main);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.tutorial-body ul, .tutorial-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--text-main);
}

.tutorial-body li {
    margin-bottom: 0.75rem;
}

.tutorial-body ul li::marker {
    color: var(--accent-gold);
}

/* Badges */
.badge {
    background: rgba(214, 175, 55, 0.08);
    color: var(--accent-gold);
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--border-color);
    display: inline-block;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 6rem;
}
