:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #1F2937;
    --bg-dark: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --shelf-bg: rgba(30, 41, 59, 0.85);
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

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

h1, h2, h3 {
    user-select: none; 
    -webkit-user-select: none; 
    cursor: default; 
}

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

.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.text-muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }

/* NAVBAR */
.navbar {
    padding: 24px 0;
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-size: 1.5rem; font-weight: 800; color: white; text-decoration: none;
    display: flex; align-items: center; gap: 8px;
}

.nav-links { display: flex; gap: 32px; }
.nav-links a {
    color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: white; }

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; text-decoration: none; border-radius: 8px;
    transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-secondary { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 14px 28px; font-size: 1.125rem; }

/* HERO */
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
}

/* Fading Hero Backgrounds (Mac & Windows) */
.hero-os-float {
    position: absolute;
    width: 700px; height: 500px;
    border-radius: 16px;
    z-index: 0; opacity: 0.15; filter: blur(3px);
    background-size: cover;
    background-position: center;
    pointer-events: none;
}
.win-float {
    top: 50px; left: -200px;
    background-image: url('https://images.unsplash.com/photo-1618477388954-7ea42bc43eb8?auto=format&fit=crop&w=1200&q=80');
    transform: rotate(-15deg);
    mask-image: radial-gradient(circle, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
}
.mac-float {
    top: 50px; right: -200px;
    background-image: url('https://images.unsplash.com/photo-1611186871348-b1ce696e52c9?auto=format&fit=crop&w=1200&q=80');
    transform: rotate(15deg);
    mask-image: radial-gradient(circle, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
}

.hero-container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
    position: relative; z-index: 2;
}

.badge {
    display: inline-block; padding: 6px 12px; background: rgba(79, 70, 229, 0.2);
    color: #818cf8; border-radius: 20px; font-size: 0.875rem; font-weight: 600;
    margin-bottom: 24px; border: 1px solid rgba(79, 70, 229, 0.3);
}

.hero-title {
    font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 24px;
}
.text-gradient {
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.hero-trust { display: flex; gap: 16px; color: var(--text-muted); font-size: 0.875rem; }

/* HERO DEMO ANIMATION */
.animation-window {
    background: #1e293b; border-radius: 12px; border: 1px solid var(--border);
    overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    height: 400px; position: relative;
}
.mac-header {
    background: #0f172a; padding: 12px; border-bottom: 1px solid var(--border);
}
.dots { display: flex; gap: 6px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; background: #475569; }
.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #f59e0b; }
.dots span:nth-child(3) { background: #10b981; }

.demo-area { position: relative; height: calc(100% - 37px); overflow: hidden; }

.demo-folder, .demo-mail {
    position: absolute; width: 80%; height: 80%; top: 10%; left: 10%;
    background: #334155; border-radius: 8px; border: 1px solid var(--border);
    transition: opacity 0.5s;
}
.demo-folder { z-index: 2; padding: 20px; }
.demo-mail { z-index: 1; opacity: 0; }

.demo-file {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
    background: white; color: black; border-radius: 6px; font-weight: 500;
    position: absolute; top: 80px; left: 80px; z-index: 10;
}

.demo-shelf {
    position: absolute; right: -150px; top: 10%; height: 80%; width: 120px;
    background: rgba(15, 23, 42, 0.95); border-left: 2px solid var(--primary);
    border-radius: 12px 0 0 12px; padding: 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: right 0.3s; z-index: 5;
}
.shelf-label { font-size: 0.75rem; color: var(--text-muted); position: absolute; top: 16px; }
.shelf-dropzone {
    width: 100%; height: 100px; border: 2px dashed var(--border); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; color: var(--text-muted);
}

.mail-header { background: #1e293b; padding: 12px; font-size: 0.875rem; border-bottom: 1px solid var(--border); }
.mail-body { padding: 40px; text-align: center; color: var(--text-muted); border: 2px dashed transparent; height: calc(100% - 45px); }

.demo-cursor {
    position: absolute; top: 200px; left: 200px; z-index: 20;
    transition: transform 0.1s;
}

/* STEPS */
.section { padding: 100px 0; }
.section-header { margin-bottom: 64px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; }

.steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.step-card {
    background: #1e293b; padding: 40px; border-radius: 16px; border: 1px solid var(--border);
    position: relative;
}
.step-number {
    position: absolute; top: -20px; left: 40px; width: 48px; height: 48px;
    background: var(--primary); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800;
}
.step-card h3 { font-size: 1.5rem; margin: 16px 0; }
.step-card p { color: var(--text-muted); }

/* FEATURES */
.bg-light { background: #151f32; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.features-text h2 { font-size: 2.5rem; margin-bottom: 16px; line-height: 1.2; }
.features-text > p { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 40px; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 32px; }
.feature-list li { display: flex; gap: 16px; }
.feature-icon {
    width: 48px; height: 48px; flex-shrink: 0; background: rgba(79, 70, 229, 0.1);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--primary); border: 1px solid rgba(79, 70, 229, 0.2);
}
.feature-list h4 { font-size: 1.25rem; margin-bottom: 8px; }
.feature-list p { color: var(--text-muted); }

.feature-mockup {
    position: relative; height: 500px; background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    border-radius: 24px; border: 1px solid var(--border); overflow: hidden;
    display: flex; align-items: center; justify-content: flex-end; padding-right: 20px;
}
.mockup-shelf {
    width: 250px; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 16px;
    box-shadow: -10px 10px 40px rgba(0,0,0,0.5); border-right: 4px solid var(--primary);
}
.mockup-header { padding: 16px; border-bottom: 1px solid var(--border); font-weight: 600; text-align: center; }
.mockup-items { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.m-item {
    background: rgba(255,255,255,0.05); padding: 12px; border-radius: 8px;
    display: flex; align-items: center; gap: 12px; border: 1px solid var(--border);
}
.mockup-footer { padding: 16px; text-align: center; color: var(--primary); font-weight: 600; border-top: 1px solid var(--border); cursor: pointer; transition: all 0.2s;}
.mockup-footer:hover { background: rgba(255,255,255,0.05); }

/* ADS */
.ad-slot {
    background: rgba(0,0,0,0.2); border: 1px dashed var(--border);
    display: flex; align-items: center; justify-content: center; color: var(--text-muted);
}
/* Advertisement Styles */
.ad-container {
    width: 100%;
    text-align: center;
    margin: 40px auto;
}

/* OMNIFORGE STUDIO - PROJECT GRID */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.project-card {
    background: #1e293b;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.project-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.project-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 12px;
}
.project-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; background: #0b1120; }
.footer-flex { display: flex; justify-content: space-between; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); margin-top: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-copyright { text-align: center; color: var(--text-muted); font-size: 0.875rem; border-top: 1px solid var(--border); padding-top: 32px; }

svg { vertical-align: middle; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 3rem; }
    .hero-cta { justify-content: center; }
    .hero-trust { justify-content: center; }
    .features-split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .steps-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero-cta { flex-direction: column; }
    .footer-flex { flex-direction: column; gap: 32px; text-align: center; }
}
