:root {
    --bg-dark: #070707;
    --bg-light: #ffffff;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --gold: #d4af37;
    --gold-light: #f8e5a5;
    --gold-dark: #997a00;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(212, 175, 55, 0.2);
    --glass-glow: rgba(212, 175, 55, 0.1);
}

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

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

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

.text-center { text-align: center; }
.text-gold { color: var(--gold); }

/* Typography */
h1, h2, h3, h4 { font-weight: 600; margin-bottom: 15px; }
.title { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; font-weight: 800; }
.subtitle { color: var(--gold); font-size: 1.2rem; letter-spacing: 2px; text-transform: uppercase; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 10px; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 1.2rem; max-width: 700px; margin: 0 auto 50px auto; }

/* Scroll Progress Bar */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    width: 0%;
    z-index: 1000;
    box-shadow: 0 0 10px var(--gold);
    transition: width 0.1s ease;
}

/* Side Navigation */
.side-nav {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 100;
}
.side-nav ul { list-style: none; }
.side-nav li { margin: 15px 0; }
.side-nav a {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gold);
    opacity: 0.3;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}
.side-nav a:hover, .side-nav a.active {
    opacity: 1;
    transform: scale(1.5);
    box-shadow: 0 0 10px var(--gold);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(7, 7, 7, 0.8);
    backdrop-filter: blur(10px);
    z-index: 999;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header .container {
    display: flex;
    justify-content: center;
}
.logo { height: 50px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}
.large-btn { font-size: 1.2rem; padding: 15px 40px; }
.btn-icon { width: 16px; height: 16px; }

/* Sections */
.section-dark { background-color: var(--bg-dark); padding: 100px 0; }
.section-light { background-color: var(--bg-light); padding: 100px 0; color: #111; }
.section-light .section-title { color: #111; }
.section-light .section-subtitle { color: #666; }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: left;
}
.hero-content .title, .hero-content .subtitle, .hero-content .description {
    max-width: 800px;
}
.hero-content .description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Glass Panel Base */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-panel:hover {
    box-shadow: 0 0 20px var(--glass-glow);
    transform: translateY(-5px);
}
.section-light .glass-panel, .section-light .install-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.section-light .glass-panel:hover, .section-light .install-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Agents Grid */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.agent-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.agent-card:hover {
    border-color: var(--gold);
    background: #fafafa;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.agent-card .icon {
    margin-bottom: 15px;
    color: var(--gold);
}
.agent-card .icon svg { width: 40px; height: 40px; }
.agent-card h3 { color: #111; }
.agent-card p { color: #666; font-size: 0.95rem; }
.orchestrator-card {
    grid-column: 1 / -1;
    text-align: center;
    border: 1px solid var(--gold);
    background: #fdfbf5;
}
.orchestrator-card p { color: #444; }

/* Prompts Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(212, 175, 55, 0.3);
}
.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 60px;
}
.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 0 15px var(--gold);
}
.prompt-box {
    position: relative;
    background: #000;
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid #333;
    overflow: hidden;
}
.prompt-box pre {
    padding: 40px 20px 20px 20px;
    margin: 0;
    overflow-x: auto;
    color: #e0e0e0;
    font-family: monospace;
    font-size: 0.95rem;
    white-space: pre-wrap;
    line-height: 1.5;
}
.btn-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold);
    color: #000;
    border: none;
    padding: 6px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-copy:hover {
    background: var(--gold-light);
}
.btn-copy.copied {
    background: #4CAF50;
    color: white;
}
.result-label {
    color: var(--gold-light);
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Install Grid */
.install-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.install-card {
    padding: 40px;
    border-radius: 15px;
}
.install-card h3 { color: #111; }
.install-card ul, .install-card ol {
    margin-left: 20px;
    color: #555;
}
.install-card li { margin-bottom: 10px; }
.install-card .icon { color: var(--gold); margin-bottom: 20px; }
.install-card .icon svg { width: 48px; height: 48px; }

/* Integrations Table */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #eaeaea;
    border-radius: 10px;
    overflow: hidden;
}
.custom-table th, .custom-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
    color: #444;
}
.custom-table th {
    background-color: #111;
    color: var(--gold);
    font-weight: 600;
}
.custom-table tr:last-child td { border-bottom: none; }
.custom-table tr:hover { background-color: #fdfaf0; }

/* Alert Box */
.alert-box {
    background: rgba(212, 175, 55, 0.08);
    border-left: 4px solid var(--gold);
    padding: 30px;
    border-radius: 4px;
}
.alert-box h4 {
    margin-bottom: 10px;
    color: #111;
}

/* Principles */
.principles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}
.principle-item {
    display: flex;
    align-items: center;
    border-left: 4px solid var(--gold);
    transition: transform 0.2s;
    padding: 20px 30px;
}
.principle-item:hover { transform: translateX(10px); background: rgba(212, 175, 55, 0.05); }
.p-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold);
    opacity: 0.5;
    margin-right: 30px;
}
.p-text h4 { margin-bottom: 5px; color: var(--gold-light); }
.p-text p { color: var(--text-muted); margin: 0; }

/* CTA */
.cta { padding: 120px 0; }
.cta p { margin-bottom: 40px; font-size: 1.2rem; color: #555; }

/* Disclaimer */
.disclaimer {
    background-color: #050505;
    padding: 40px 0;
    border-top: 1px solid #222;
}
.disclaimer h4 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.disclaimer p {
    color: #666;
    font-size: 0.75rem;
    margin-bottom: 10px;
    line-height: 1.5;
    text-align: justify;
}

/* Footer */
.footer {
    background-color: #000;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #111;
}
.footer-links {
    margin-bottom: 20px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.copyright { color: #444; font-size: 0.8rem; }

/* Responsive */
@media (max-width: 768px) {
    .header { flex-direction: column; padding: 15px; }
    .nav-links { margin-top: 10px; flex-wrap: wrap; justify-content: center; }
    
    .title, .hero-content .title { font-size: 2rem; word-break: break-word; hyphens: auto; }
    .hero-content .subtitle { font-size: 1.2rem; }
    .section-title { font-size: 2rem; word-break: break-word; hyphens: auto; }
    
    .side-nav { display: none; }
    
    .timeline::before { left: 15px; }
    .timeline-dot { width: 30px; height: 30px; font-size: 1rem; }
    .timeline-item { padding-left: 45px; }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gold);
    color: #111;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
}
.back-to-top.visible {
    opacity: 0.9;
    visibility: visible;
}
.back-to-top:active {
    transform: scale(0.9);
}
@media (min-width: 769px) {
    .back-to-top { display: none !important; }
}
