:root {
    --bg-primary: #000000;
    --bg-secondary: #080808;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
    --transition-smooth: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* --- BACKGROUND --- */
.noise {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.04; pointer-events: none; z-index: 10;
}

.gradient-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -1; overflow: hidden; background: var(--bg-primary);
}

.gradient-blob {
    position: absolute; width: clamp(300px, 50vw, 500px); height: clamp(300px, 50vw, 500px);
    border-radius: 50%; opacity: 0.4; animation: move 8s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
    z-index: -2; box-shadow: 0 0 100px rgba(255, 255, 255, 0.03); will-change: transform;
}

.blob-1 { background: radial-gradient(circle at 30% 30%, #666 0%, #444 30%, transparent 70%); top: 10%; left: 20%; }
.blob-2 { background: radial-gradient(circle at 30% 30%, #555 0%, #333 30%, transparent 70%); bottom: 20%; right: 15%; animation-delay: -1s; animation-duration: 6s; }
.blob-3 { background: radial-gradient(circle at 30% 30%, #444 0%, #222 30%, transparent 70%); top: 60%; left: 40%; animation-delay: -2s; animation-duration: 4s; }

.glass-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    backdrop-filter: blur(30px) saturate(120%); -webkit-backdrop-filter: blur(30px) saturate(120%);
    background: rgba(0, 0, 0, 0.6); z-index: -1; pointer-events: none;
}

@keyframes move {
    0% { transform: translate(-10%, -10%) rotate(0deg) scale(1); border-radius: 50%; }
    50% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: translate(5%, 5%) scale(1.05); }
    100% { transform: translate(15%, 15%) rotate(15deg) scale(0.95); border-radius: 50%; }
}

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

/* --- COMPONENTS --- */
.container { width: 90%; max-width: 1200px; margin: auto; position: relative; z-index: 10; }

header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border); background: rgba(0, 0, 0, 0.4);
}

nav { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 1rem; font-weight: 800; letter-spacing: 0.4em; text-transform: uppercase; text-decoration: none; color: var(--text-primary); }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; margin-left: 32px; transition: var(--transition-smooth); }
.nav-links a:hover { color: var(--text-primary); }

.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 100px 0 60px; position: relative; }
.hero h1 { font-size: clamp(3rem, 10vw, 6.5rem); font-weight: 900; line-height: 0.9; letter-spacing: -0.05em; margin-bottom: 24px; animation: reveal 1s cubic-bezier(0.23, 1, 0.32, 1) forwards 0.2s; text-shadow: 0 0 60px rgba(255, 255, 255, 0.05); }
.hero p { font-size: clamp(1.125rem, 2.5vw, 1.5rem); color: var(--text-secondary); max-width: 600px; margin-bottom: 48px; line-height: 1.4; animation: reveal 1s cubic-bezier(0.23, 1, 0.32, 1) forwards 0.4s; }

.cta-group { display: flex; gap: 16px; opacity: 0; transform: translateY(20px); animation: reveal 1s forwards 0.6s; }
.btn { display: inline-block; padding: 18px 36px; border-radius: 100px; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: var(--transition-smooth); cursor: pointer; border: none; outline: none; }
.btn-primary { background: var(--text-primary); color: var(--bg-primary); border: 1px solid var(--text-primary); }
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 0 40px rgba(255, 255, 255, 0.2); }
.btn-secondary { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); border: 1px solid var(--glass-border); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }

.slab { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 48px; border-radius: 40px; backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); transition: var(--transition-smooth); cursor: default; box-shadow: 0 15px 35px -12px rgba(0, 0, 0, 0.3); }
.slab:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); transform: translateY(-12px) scale(1.02); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.section { padding: 160px 0; }
.label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3em; color: var(--text-secondary); margin-bottom: 24px; display: block; }
.section-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 80px; }

/* --- MODAL --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: var(--transition-smooth); }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content { background: var(--bg-secondary); border: 1px solid var(--glass-border); padding: 64px; border-radius: 40px; max-width: 500px; width: 90%; text-align: center; transform: translateY(20px); transition: var(--transition-smooth); }
.modal-overlay.active .modal-content { transform: translateY(0); }

.input-group { position: relative; margin-bottom: 24px; text-align: left; }
.input-group label { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 8px; margin-left: 12px; }
input, select, textarea { width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); padding: 18px 24px; border-radius: 16px; color: #fff; font-family: var(--font-main); font-size: 1rem; transition: var(--transition-smooth); }
input:focus, select:focus, textarea:focus { outline: none; border-color: white; background: rgba(255, 255, 255, 0.08); }

.status-msg { font-size: 0.9rem; margin-top: 16px; min-height: 24px; }
.status-success { color: #4ade80; }
.status-error { color: #f87171; }

footer { padding: 120px 0 60px; border-top: 1px solid var(--glass-border); text-align: center; }
.footer-logo { font-size: 1.25rem; font-weight: 900; letter-spacing: 0.5em; opacity: 0.3; margin-bottom: 24px; }
.copyright { font-size: 0.75rem; color: #444; letter-spacing: 0.1em; }

@media (max-width: 768px) {
    .grid { grid-template-columns: 1fr; }
    .hero { align-items: center; text-align: center; padding-top: 100px; }
    .hero p { margin: 0 auto 48px; }
    .nav-links { display: none; }
}
