/* --- 1. VARIABLES & RESET --- */
:root {
    --bg-deep: #080B1B;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-gold: #D4AF37;
    --glass-surface: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --container-width: 1100px;
    --section-padding: 6rem 0;
    --radius-md: 20px;
}

html { 
    scroll-behavior: smooth; 
    background-color: var(--bg-deep); 
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.no-scroll { overflow: hidden; height: 100vh; }

body {
    background-color: transparent; 
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { width: 88%; max-width: var(--container-width); margin: 0 auto; position: relative; z-index: 2; }

.text-accent { color: var(--accent-gold); }

/* --- INTRO SCREEN --- */
#intro-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-deep);
    z-index: 9999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

#intro-overlay.hidden {
    opacity: 0; visibility: hidden; pointer-events: none;
}

.intro-content { text-align: center; opacity: 0; transform: translateY(20px); animation: appearUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: 0.3s; }

.intro-title {
    font-size: 5rem; font-family: 'Playfair Display', serif; color: #fff; margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.intro-slogan {
    font-family: 'Inter', sans-serif; font-size: 0.85rem; letter-spacing: 4px; text-transform: uppercase;
    color: var(--accent-gold); font-weight: 500; opacity: 0;
    animation: fadeInSlogan 1.5s ease forwards; animation-delay: 1s;
}

@keyframes appearUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInSlogan { to { opacity: 0.9; } }

/* --- BACKGROUNDS --- */
.fixed-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background-image: 
        linear-gradient(90deg, var(--bg-deep) 0%, var(--bg-deep) 35%, rgba(8, 11, 27, 0.4) 50%, var(--bg-deep) 65%, var(--bg-deep) 100%),
        linear-gradient(180deg, rgba(8, 11, 27, 0.9) 0%, rgba(8, 11, 27, 0.3) 30%, rgba(8, 11, 27, 0.2) 60%, var(--bg-deep) 100%),
        url('https://ihero.carrd.co/assets/images/bg.jpg?v=ee12ba5b');
    background-size: cover, cover, auto 100%;
    background-position: center, center, top center;
    background-repeat: no-repeat;
}
.noise {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.04; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
.hero-stars-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 95vh; 
    pointer-events: none; z-index: 0;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}
.star {
    position: absolute; width: 2px; height: 2px; background: var(--accent-gold); 
    border-radius: 50%; opacity: 0; animation: softFall linear infinite;
}
@keyframes softFall {
    0% { transform: translateY(-5vh); opacity: 0; } 
    20% { opacity: var(--star-opacity, 1); } 
    80% { opacity: var(--star-opacity, 1); } 
    100% { transform: translateY(100vh); opacity: 0; }
}
.mobile-bg { display: none; }

/* --- UI & BUTTONS --- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2.5rem; border-radius: 50px; font-weight: 500; font-size: 1rem; cursor: pointer; transition: 0.3s; }

.btn-primary { 
    background: rgba(212, 175, 55, 0.1); 
    color: var(--accent-gold); 
    border: 1px solid var(--accent-gold); 
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}
.btn-primary:hover { 
    background-color: var(--accent-gold); 
    border-color: var(--accent-gold);
    color: #080B1B; 
    transform: translateY(-3px); 
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5); 
}

.btn-outline { background: transparent; color: #ffffff; border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(5px); }
.btn-outline:hover { border-color: #ffffff; background: rgba(255,255,255,0.1); }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 3px; color: var(--accent-gold); text-transform: uppercase; margin-bottom: 1.5rem; opacity: 0.9; }
section { padding: var(--section-padding); }
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; }

/* SECTIONS */
.hero { min-height: 90vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem 0; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); margin-bottom: 1.5rem; text-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.hero p { font-size: clamp(1.1rem, 2.5vw, 1.4rem); color: var(--text-secondary); max-width: 700px; margin: 0 auto 1rem auto; font-weight: 300; }
.hero-sub { display: block; font-size: 0.95rem; opacity: 0.7; margin-bottom: 2.5rem; font-family: 'Inter', sans-serif; }
.hero-btns { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

.glass-panel { background: var(--glass-surface); border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: 3.5rem; backdrop-filter: blur(20px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.founders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
blockquote { font-family: 'Playfair Display', serif; font-size: 2rem; font-style: italic; margin-bottom: 1.5rem; color: #f8fafc; line-height: 1.3; }
.video-box { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 16px; box-shadow: 0 15px 40px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); }
.video-box iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.step-item { padding: 2.5rem; background: rgba(255,255,255,0.02); border: 1px solid transparent; border-radius: var(--radius-md); transition: 0.4s; }
.step-item:hover { background: rgba(255,255,255,0.05); border-color: var(--glass-border); transform: translateY(-8px); }
.num { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--accent-gold); opacity: 0.6; display: block; margin-bottom: 1rem; }
.step-item h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.step-item p { color: var(--text-secondary); }

.learn-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-top: 3rem; }
.learn-card { flex: 1 1 300px; max-width: 350px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%); border: 1px solid var(--glass-border); padding: 2.5rem 2rem; border-radius: 20px; transition: 0.3s ease; position: relative; }
.learn-card:hover { transform: translateY(-8px); border-color: var(--accent-gold); background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%); }
.learn-icon { width: 45px; height: 45px; background: rgba(212, 175, 55, 0.1); color: var(--accent-gold); border: 1px solid var(--accent-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-bottom: 1.5rem; font-family: 'Playfair Display', serif; font-size: 1.2rem; transition: 0.3s; }
.learn-card:hover .learn-icon { background: var(--accent-gold); color: #000; box-shadow: 0 0 15px rgba(212, 175, 55, 0.6); }
.learn-card h4 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.learn-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }

.cta-center { text-align: center; max-width: 800px; margin: 0 auto; }
.join-form { margin-top: 2.5rem; display: flex; gap: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); padding: 8px; border-radius: 100px; backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.join-form input { flex: 1; background: transparent; border: none; padding: 0 1.5rem; color: #fff; font-family: inherit; font-size: 1rem; outline: none; }

.join-form button { 
    border: 1px solid var(--accent-gold);
    padding: 1rem 2.5rem; 
    border-radius: 50px; 
    background: rgba(212, 175, 55, 0.15); 
    color: var(--accent-gold); 
    font-weight: 600; 
    cursor: pointer; 
    transition: 0.3s; 
    white-space: nowrap; 
}
.join-form button:hover { 
    background-color: var(--accent-gold);
    color: #080B1B; 
    transform: translateY(-2px); 
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.features-list { margin-top: 3rem; text-align: left; display: inline-block; color: var(--text-secondary); font-size: 0.95rem; }
.features-list div { margin-bottom: 10px; display: flex; align-items: center; }
.features-list i { color: var(--accent-gold); margin-right: 12px; }
footer { margin-top: 4rem; padding: 3rem 0; border-top: 1px solid var(--glass-border); text-align: center; color: var(--text-secondary); font-size: 0.9rem; }

@media (max-width: 768px) {
    .fixed-bg, .noise { display: none; }
    body { background: transparent; }
    .mobile-bg {
        display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -5; background-color: var(--bg-deep);
        background-image: radial-gradient(circle at center, rgba(8, 11, 27, 0.5) 0%, var(--bg-deep) 90%), url('https://ihero.carrd.co/assets/images/bg.jpg?v=ee12ba5b');
        background-size: cover; background-position: center top; background-repeat: no-repeat;
    }
    .container { width: 90%; }
    .hero h1 { font-size: 3.2rem; }
    .hero-btns { flex-direction: column; width: 100%; gap: 15px; }
    .btn { width: 100%; }
    .founders-grid { grid-template-columns: 1fr; gap: 3rem; }
    .glass-panel { padding: 2rem; }
    blockquote { font-size: 1.5rem; }
    .steps-grid { grid-template-columns: 1fr; gap: 2rem; }
    .join-form { flex-direction: column; background: transparent; border: none; padding: 0; gap: 15px; border-radius: 0; }
    .join-form input { background: rgba(0,0,0,0.5); border: 1px solid var(--glass-border); padding: 1.2rem; border-radius: 12px; width: 100%; }
    .join-form button { width: 100%; padding: 1.2rem; }
    
    .intro-title { font-size: 3.5rem; }
    .intro-slogan { font-size: 0.7rem; letter-spacing: 2px; }
}