:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #1f2937;
    --accent: #3b82f6;
    --bg: #fdfdfd;
    --surface: #ffffff;
    --text: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --radius: 20px;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --font-main: 'Outfit', 'Noto Sans SC', sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f172a;
        --surface: #1e293b;
        --text: #f1f5f9;
        --text-muted: #94a3b8;
        --border: #334155;
    }
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Nav Bar */
.nav-bar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    background: rgba(var(--surface), 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    padding: 0.75rem 2.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 3rem;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--primary);
    letter-spacing: -0.05em;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero-v3 {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
}

.hero-content {
    max-width: 600px;
}

.badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-size: clamp(3.5rem, 8vw, 5rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.4;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--border);
}

.hero-visual img {
    width: 100%;
    max-width: 500px;
    border-radius: 40px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Sections */
.section {
    padding: 8rem 0;
}

.section-heading {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Guide Cards */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.guide-card {
    background: var(--surface);
    padding: 3.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.guide-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card-icon {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(16, 185, 129, 0.1);
    position: absolute;
    top: 2rem;
    right: 2rem;
}

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

.guide-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

/* Params Section */
.param-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.param-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 0.5rem;
    gap: 0.5rem;
}

.tab-btn {
    flex: 1;
    padding: 1.2rem;
    border: none;
    background: transparent;
    font-family: inherit;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.tab-content {
    display: none;
    padding: 3rem;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.param-row {
    padding: 2.5rem;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 300px 250px 1fr;
    gap: 2rem;
    align-items: baseline;
}

.param-row:last-child { border: none; }

.p-id {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
}

.p-name { font-weight: 800; font-size: 1.1rem; }
.p-desc { color: var(--text-muted); }

/* Footer */
footer {
    padding: 5rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reveals */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .nav-bar { width: 90%; gap: 1rem; padding: 0.75rem 1rem; }
    .nav-links { display: none; }
    .hero-v3 { flex-direction: column; text-align: center; padding-top: 10rem; }
    .hero-visual { margin-top: 4rem; }
    .param-row { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem; }
}
