/* ====== CSS Variables & Base ====== */
:root {
    --bg-main: #F0F7FF; /* Ice White */
    --bg-surface: #FFFFFF; 
    --bg-card: #FFFFFF; 
    --border-color: rgba(144, 202, 249, 0.4); /* Sky Blue opacity */
    
    --text-primary: #1565C0; /* Deep Blue */
    --text-secondary: #415A77; /* Muted Deep Blue (Darker for contrast) */
    
    --accent-color: #C2185B; /* Rose Deep (CTA) */
    --accent-hover: #9e144a;
    --accent-glow: rgba(194, 24, 91, 0.3);
    
    --brand-main: #90CAF9; /* Sky Blue */
    --brand-secondary: #F48FB1; /* Blush Pink */
    --warm-gold: #FFD54F; /* Warm Gold */
    
    --danger-color: #C2185B; /* Using Rose Deep for danger/highlight */
    --danger-bg: rgba(244, 143, 177, 0.2); /* Blush Pink opacity */
    
    --font-sans: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background Effects */
.glow-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 15% 30%, rgba(144, 202, 249, 0.3), transparent 30%),
        radial-gradient(circle at 85% 60%, rgba(244, 143, 177, 0.2), transparent 30%);
    pointer-events: none;
}

/* ====== Typography & Utilities ====== */
h1, h2, h3, h4 { color: var(--text-primary); line-height: 1.2; font-weight: 700; margin-bottom: 1rem; }
h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { color: var(--text-secondary); margin-bottom: 1rem; }
strong { color: var(--text-primary); }
em { font-style: italic; color: #C2185B; }
code { background: var(--bg-surface); padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.9em; font-family: monospace; border: 1px solid var(--border-color); color: var(--text-primary); }

.text-accent { color: var(--accent-color); }
.accent-text { 
    background: linear-gradient(135deg, #1565C0, #C2185B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-danger { color: var(--danger-color); }
.text-white { color: var(--text-primary); }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 900px; }

.section { padding: 6rem 0; }
.bg-surface { background-color: var(--bg-surface); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }

/* ====== Components ====== */
.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px var(--accent-glow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-large { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-submit { width: 100%; margin-top: 1rem; padding: 1rem; }
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.btn-outline:hover { background: var(--bg-main); border-color: var(--text-primary); }

/* Navbar */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(240, 247, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 0.5rem; }

/* Cards & Grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(21, 101, 192, 0.05);
}
.card:hover { border-color: var(--brand-main); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(144, 202, 249, 0.3); }
.cta-card { background: linear-gradient(145deg, var(--bg-surface), rgba(244, 143, 177, 0.1)); border-color: rgba(194, 24, 91, 0.3); }

/* Icons */
.icon-box {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
}
.icon-danger { background: var(--danger-bg); color: var(--danger-color); }
.icon-accent { background: rgba(144, 202, 249, 0.2); color: var(--text-primary); }

/* ====== Layout Modules ====== */

/* 1. Hero Section */
.hero { padding: 4rem 0 8rem; }
.hero-container { display: flex; align-items: center; gap: 4rem; }
.hero-text { flex: 1; }
.hero-text h2 { font-size: 1.125rem; font-weight: 400; color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.7; }
.hero-cta-group { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.cta-note { font-size: 0.875rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.5rem; }

.hero-visual { flex: 1; position: relative; perspective: 1000px; display: flex; justify-content: flex-end; }

/* Mockup Art - Dashboard */
.mockup-dash {
    width: 460px; height: 320px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px -12px rgba(21, 101, 192, 0.2);
    display: flex; flex-direction: column; overflow: hidden;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}
.mockup-dash:hover { transform: rotateY(-5deg) rotateX(2deg); }
.dash-head { height: 24px; background: #F0F7FF; display: flex; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--border-color); }
.dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; opacity: 0.8; }
.d1 { background: var(--accent-color); } .d2 { background: var(--warm-gold); } .d3 { background: #10b981; }
.dash-body { display: flex; flex: 1; }
.dash-sidebar { width: 50px; background: #F0F7FF; padding: 12px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--border-color); }
.sb-item { width: 100%; height: 20px; border-radius: 4px; background: rgba(21, 101, 192, 0.1); }
.sb-item.active { background: var(--brand-main); opacity: 0.9; }
.dash-content { flex: 1; padding: 20px; background: #FFFFFF; display: flex; flex-direction: column; gap: 16px; }
.dash-header-bar { height: 24px; background: #F0F7FF; border-radius: 4px; display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--border-color); }
.db-title { font-size: 10px; color: var(--text-secondary); font-family: monospace; }
.dash-charts { display: flex; gap: 12px; }
.chart-box { flex: 1; height: 60px; background: #F0F7FF; border-radius: 6px; border: 1px solid var(--border-color); padding: 10px; display: flex; flex-direction: column; justify-content: center; }
.cb-val { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.cb-label { font-size: 8px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.dash-list { display: flex; flex-direction: column; gap: 8px; }
.dl-item { height: 24px; background: #F0F7FF; border-radius: 4px; border: 1px solid var(--border-color); }

/* Mockup Art - Phone */
.mockup-phone {
    position: absolute; right: -20px; bottom: -40px;
    width: 160px; height: 320px;
    background: #1565C0;
    border: 4px solid #90CAF9;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(21, 101, 192, 0.4);
    display: flex; flex-direction: column;
    transform: rotateY(-15deg) translateZ(50px);
    overflow: hidden;
}
.notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 16px; background: #90CAF9; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; z-index: 2; }
.phone-screen { flex: 1; background: #FFFFFF; padding: 24px 12px 12px; display: flex; justify-content: center; align-items: center; }
.invite-preview { width: 100%; height: 80%; background: linear-gradient(to bottom, #F0F7FF, #FFFFFF); border-radius: 8px; border: 1px solid var(--border-color); padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ip-img { width: 100%; height: 80px; background: rgba(244, 143, 177, 0.3); border-radius: 4px; }
.ip-text { font-family: serif; font-size: 14px; color: var(--text-primary); text-align: center; font-weight: 600; }
.ip-btn { width: 80%; height: 20px; background: var(--accent-color); border: none; border-radius: 10px; opacity: 0.9; }

/* 4. How It Works (Steps) */
.steps-container { position: relative; max-width: 600px; margin: 0 auto; }
.step-row { display: flex; gap: 1.5rem; align-items: flex-start; z-index: 2; position: relative; }
.step-num { width: 40px; height: 40px; background: var(--accent-color); color: white; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 15px var(--accent-glow); }
.step-desc { padding-bottom: 2rem; }
.step-desc h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.step-connector { width: 2px; height: 40px; background: var(--border-color); margin-left: 19px; margin-top: -30px; margin-bottom: 10px; z-index: 1; }

/* ====== Animations ====== */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(194, 24, 91, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(194, 24, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(194, 24, 91, 0); } }
.pulse { animation: pulse 2s infinite; border-color: var(--accent-color) !important; }

/* ====== Fake Door Modal ====== */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1000; display: none; justify-content: center; align-items: center;
    padding: 1rem;
}
.modal.active { display: flex; }
.modal-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(6px); }
.modal-box {
    position: relative; width: 100%; max-width: 480px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(21, 101, 192, 0.2);
    transform: scale(0.95); opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal.active .modal-box { transform: scale(1); opacity: 1; }
.close-btn { position: absolute; top: 1rem; right: 1.5rem; font-size: 1.5rem; background: none; border: none; color: var(--text-secondary); cursor: pointer; transition: color 0.2s; }
.close-btn:hover { color: var(--accent-color); }
.modal-header { text-align: center; margin-bottom: 2rem; }
.badge { display: inline-block; background: rgba(244, 143, 177, 0.15); color: var(--accent-color); font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 12px; margin-bottom: 1rem; border: 1px solid rgba(244, 143, 177, 0.4); }

.form-group { margin-bottom: 1.25rem; text-align: left; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-primary); }
.form-group input {
    width: 100%; padding: 0.75rem 1rem;
    background: #FFFFFF; border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-sans); outline: none; transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--brand-main); box-shadow: 0 0 0 3px rgba(144, 202, 249, 0.2); }
.success-circle { width: 64px; height: 64px; background: rgba(16, 185, 129, 0.1); color: #10b981; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto; }

/* reCAPTCHA v3 Overrides */
.grecaptcha-badge { visibility: hidden !important; }
.recaptcha-terms { font-size: 0.7rem; color: var(--text-secondary); text-align: center; margin-top: 1.2rem; }
.recaptcha-terms a { color: var(--text-primary); text-decoration: none; transition: var(--transition); }
.recaptcha-terms a:hover { text-decoration: underline; color: var(--accent-color); }

/* ====== Responsive ====== */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: 1fr; }
    .hero-container { flex-direction: column; text-align: center; gap: 3rem; }
    h1 { font-size: 2.5rem; }
    .hero-text h2 { font-size: 1.125rem; }
    .hero-cta-group { align-items: center; margin: 0 auto; }
    .hero-visual { justify-content: center; width: 100%; padding-bottom: 2rem; }
    .mockup-dash { transform: scale(0.9) rotateY(-5deg) rotateX(2deg); margin: 0 auto; }
    .mockup-phone { transform: scale(0.8) translateZ(30px); right: 0; bottom: -30px; }
    .modal-box { max-height: 90vh; overflow-y: auto; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    .hero-text h2 { font-size: 1rem; }
    .section { padding: 3rem 0; }
    .hero { padding-top: 2rem; }
    .btn-large { padding: 0.875rem 1rem; font-size: 1rem; width: 100%; text-align: center; }
    .container { padding: 0 1.5rem; }
    
    /* Scale down hero visual proportionally */
    .hero-visual { transform: scale(0.65); transform-origin: top center; margin-bottom: -100px; }
    .mockup-dash { transform: rotateY(0) rotateX(0); margin-left: -20px; }
    .mockup-phone { right: -40px; }
    
    .modal-box { padding: 1.5rem; max-height: 90vh; overflow-y: auto; }
    
    .step-row { gap: 1rem; }
    .step-num { width: 32px; height: 32px; font-size: 0.875rem; }
    .step-connector { margin-left: 15px; height: 30px; margin-top: -20px; }
    .step-desc h3 { font-size: 1.125rem; }
}
