:root {
    --bg: #000000;
    --text: #ffffff;
    --text-muted: #999999;
    --silver-light: #ffffff;
    --silver-mid: #a0a0a0;
    --border: rgba(255, 255, 255, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    opacity: 0.3;
}

/* Nav */
nav {
    position: fixed; top: 0; width: 100%;
    padding: 1.5rem 0;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}
.nav-content {
    max-width: 1400px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}

/* Custom Canva Sans Font Implementation */
@font-face {
    font-family: 'Canva Sans';
    src: local('Canva Sans');
}
.brand-name { 
    font-family: 'Canva Sans', 'Inter', sans-serif;
    font-size: 1.3rem; 
    font-weight: 800; 
    letter-spacing: 1px; 
}

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--silver-mid); }
.nav-links .primary-btn {
    background: var(--text); color: var(--bg);
    padding: 0.7rem 1.4rem; border-radius: 4px; font-weight: 700;
    transition: transform 0.2s, background 0.2s;
}
.nav-links .primary-btn:hover { transform: scale(1.05); background: #ddd; color: #000; }

/* Hero */
.hero {
    max-width: 1400px; margin: 10rem auto 6rem; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
    min-height: 70vh;
}
.hero-content { flex: 1.2; padding-right: 2rem; }
.hero h1 { font-size: 6rem; font-weight: 900; line-height: 1.05; letter-spacing: -0.05em; margin-bottom: 1.5rem; }
.silver-text {
    background: linear-gradient(180deg, var(--silver-light) 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero .subtitle { font-size: 1.3rem; color: var(--text-muted); max-width: 550px; margin-bottom: 3rem; }

/* Install Box */
.install-box { display: inline-flex; align-items: center; background: #0a0a0a; border: 1px solid #333; padding: 1rem 1.5rem; border-radius: 8px; gap: 3rem; }
.install-box code { font-family: monospace; font-size: 1.1rem; }
.install-box button { background: #fff; color: #000; border: none; padding: 0.6rem 1.5rem; font-weight: 700; border-radius: 4px; cursor: pointer; transition: 0.2s; }
.install-box button:hover { background: #ccc; }

/* 3D Container */
.hero-3d-wrapper {
    flex: 0.8; height: 600px; position: relative;
    display: flex; justify-content: center; align-items: center;
}
.hero-3d-wrapper canvas { width: 100%; height: 100%; outline: none; }

/* Contrast Section - Strictly Grayscale Now */
.contrast-section { max-width: 1200px; margin: 8rem auto; padding: 0 2rem; }
.contrast-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.bad-way, .good-way { padding: 3rem; border-radius: 16px; border: 1px solid var(--border); }
.bad-way { background: rgba(20,20,20,0.6); }
.good-way { background: rgba(40,40,40,0.6); box-shadow: 0 0 40px rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); }
.contrast-grid h3 { font-size: 1.5rem; margin-bottom: 2rem; font-weight: 700; }
.contrast-grid ul { list-style: none; }
.contrast-grid li { margin-bottom: 1.5rem; font-size: 1.1rem; color: var(--text-muted); display: flex; gap: 10px; }

/* Benefits Grid */
.benefits { max-width: 1400px; margin: 12rem auto; padding: 0 2rem; }
.benefits h2 { font-size: 4rem; font-weight: 900; text-align: center; margin-bottom: 6rem; letter-spacing: -0.04em; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.benefit-card { padding: 3rem 2rem; background: #080808; border: 1px solid var(--border); border-radius: 12px; transition: transform 0.3s, border-color 0.3s; }
.benefit-card:hover { transform: translateY(-10px); border-color: #fff; }
.benefit-card h3 { font-size: 1.3rem; margin-bottom: 1rem; font-weight: 700; }
.benefit-card p { color: var(--text-muted); font-size: 1rem; }

/* Code Section */
.code-section { text-align: center; margin: 12rem auto; padding: 0 2rem; max-width: 1000px; }
.section-header h2 { font-size: 3.5rem; font-weight: 900; letter-spacing: -0.04em; margin-bottom: 1rem; }
.section-header p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 4rem; }

.code-card-wrapper { position: relative; perspective: 1200px; margin: 0 auto; max-width: 800px; }
.card-glow { position: absolute; top: -15px; left: -15px; right: -15px; bottom: -15px; background: linear-gradient(45deg, #222, #888, #222); z-index: -1; filter: blur(40px); opacity: 0.2; border-radius: 20px; }
.code-card { background: rgba(10,10,10,0.9); border: 1px solid #333; border-radius: 16px; padding: 2.5rem; text-align: left; backdrop-filter: blur(20px); box-shadow: 0 40px 80px rgba(0,0,0,0.9); }
.mac-dots { display: flex; gap: 8px; }
.mac-dots .dot { width: 12px; height: 12px; background: #444; border-radius: 50%; }
.card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #222; padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.filename { font-family: monospace; color: #666; }
pre { font-family: monospace; font-size: 1.15rem; line-height: 1.8; overflow-x: auto; }
.keyword { color: #aaa; font-weight: bold; }
.string { color: #fff; }
.comment { color: #555; font-style: italic; }
.function { color: #ddd; }

/* Metrics */
.metrics { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 8rem 0; background: rgba(255,255,255,0.01); }
.metric-container { display: flex; justify-content: space-around; max-width: 1200px; margin: 0 auto; text-align: center; }
.metric-item h3 { display: inline; font-size: 6rem; font-weight: 900; letter-spacing: -0.05em; }
.percent { font-size: 2.5rem; font-weight: 900; color: #555; vertical-align: top; margin-left: 5px; }
.metric-item p { color: var(--text-muted); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px; margin-top: 1rem; font-weight: 700; }

/* CTA */
.cta { text-align: center; margin: 12rem auto 8rem; padding: 0 2rem;}
.cta h2 { font-size: 4rem; margin-bottom: 1rem; font-weight: 900; letter-spacing: -0.04em;}
.cta p { font-size: 1.3rem; color: var(--text-muted); }

footer { text-align: center; padding: 4rem 0; color: #555; border-top: 1px solid #222; font-size: 0.95rem; font-weight: 500; }

/* Animations */
.reveal { opacity: 0; transform: translateY(50px); transition: all 1s cubic-bezier(0.2, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
    .hero { flex-direction: column; text-align: center; margin-top: 8rem; }
    .hero h1 { font-size: 4rem; }
    .hero-content { padding-right: 0; margin-bottom: 3rem; }
    .hero-3d-wrapper { height: 400px; width: 100%; }
    .contrast-grid, .benefit-grid { grid-template-columns: 1fr; }
    .metric-container { flex-direction: column; gap: 4rem; }
}