/* --- 1. MODERN COLOR PALETTE --- */
:root {
    --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%); 
    --brand-gradient-hover: linear-gradient(135deg, #4338ca 0%, #db2777 100%);
    --primary: #4f46e5;       
    --secondary: #ec4899;     
    --accent-dark: #0f172a;   
    --bg: #f8fafc;            
    --surface: #ffffff;       
    --surface-tint: #e0e7ff;  
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --success-bg: #dcfce7;
    --success-text: #166534;
    --shadow-color: rgba(79, 70, 229, 0.15);
    --shadow-card: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 25px -5px var(--shadow-color), 0 8px 10px -6px var(--shadow-color);
}

/* --- 2. BASE STYLES --- */
* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg); color: var(--text-main);
    margin: 0; padding: 0; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- 3. NAVBAR --- */
.navbar {
    background: rgba(255, 255, 255, 0.85); border-bottom: 1px solid var(--border);
    padding: 1rem 0; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px);
}
.nav-container {
    max-width: 1050px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-weight: 900; font-size: 1.4rem; text-decoration: none; color: var(--accent-dark); letter-spacing: -0.5px; }
.logo span { background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links a { color: var(--text-muted); text-decoration: none; margin-left: 25px; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }

/* --- 4. HERO SECTION --- */
.hero {
    background: var(--accent-dark); position: relative;
    text-align: center; padding: 90px 20px 140px; 
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; left: 50%; width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(79,70,229,0.2) 0%, rgba(236,72,153,0.05) 40%, transparent 70%);
    transform: translateX(-50%); pointer-events: none;
}
.hero h1 { font-size: 3.2rem; line-height: 1.1; font-weight: 800; letter-spacing: -1px; margin: 0 0 15px 0; color: white; position: relative; z-index: 2; }
.hero p { color: #94a3b8; font-size: 1.25rem; max-width: 600px; margin: 0 auto; position: relative; z-index: 2; }

/* --- 5. LAYOUT & CARDS --- */
.container { max-width: 1050px; margin: 50px auto; padding: 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; justify-content: space-between; align-items: center;
    box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--brand-gradient); opacity: 0; transition: opacity 0.3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.card:hover::before { opacity: 1; }
.domain-name { font-weight: 800; color: var(--text-main); text-decoration: none; font-size: 1.15rem; display: block; }
.domain-meta { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.badge {
    background: var(--success-bg); color: var(--success-text); padding: 6px 14px; border-radius: 99px;
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
}

/* --- 6. REPORT PAGE --- */
.report-card { background: white; border-radius: 20px; box-shadow: var(--shadow-hover); border: 1px solid var(--border); overflow: hidden; max-width: 750px; margin: 0 auto; }
.report-header { background: linear-gradient(to bottom, #f8fafc, white); padding: 50px 40px; text-align: center; border-bottom: 1px solid var(--border); }
.score-ring { width: 96px; height: 96px; background: white; color: var(--text-main); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 800; margin: 0 auto 20px; border: 6px solid transparent; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.report-body { padding: 40px; }
.tech-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.tech-table tr:nth-child(odd) td { background-color: #f8fafc; }
.tech-table tr:nth-child(even) td { background-color: white; }
.tech-table td { padding: 16px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.tech-table tr:first-child td { border-top: 1px solid var(--border); }
.tech-label { color: var(--text-muted); font-weight: 600; border-right: 1px solid var(--border); width: 40%; }
.tech-val { font-family: 'SF Mono', 'Roboto Mono', Menlo, monospace; color: var(--primary); text-align: right; font-weight: 700; }
.header-box { background: var(--accent-dark); color: #38bdf8; padding: 24px; border-radius: 12px; font-family: 'SF Mono', 'Roboto Mono', monospace; font-size: 0.85rem; line-height: 1.8; margin-top: 15px; box-shadow: inset 0 2px 10px rgba(0,0,0,0.5); border: 1px solid #1e293b; }
.header-line { display: block; border-bottom: 1px solid #1e293b; padding-bottom: 4px; margin-bottom: 4px; }
.header-line:last-child { border-bottom: none; }

/* --- 7. BUTTONS & FOOTER --- */
.btn-primary { display: block; width: 100%; text-align: center; background: var(--brand-gradient); color: white; padding: 18px; border-radius: 12px; text-decoration: none; font-weight: 800; font-size: 1.1rem; margin-top: 40px; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4); transition: all 0.3s ease; }
.btn-primary:hover { background: var(--brand-gradient-hover); transform: translateY(-3px) scale(1.01); box-shadow: 0 20px 25px -5px rgba(236, 72, 153, 0.4); }
.footer { text-align: center; padding: 60px 0 40px; color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid var(--border); margin-top: 80px; background: white; }
.footer a { color: var(--primary); text-decoration: none; margin: 0 10px; font-weight: 600; transition: color 0.2s; }
.footer a:hover { color: var(--secondary); }

/* --- 8. HUGE INTERACTIVE SCANNER (DARK MODE UI) --- */
.scanner-section {
    position: relative;
    z-index: 10;
    margin-top: -100px; 
    padding: 0 20px;
}

.scanner-widget {
    background: linear-gradient(145deg, #0f172a, #1e293b); 
    max-width: 900px; 
    margin: 0 auto;
    padding: 50px 40px; 
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.05);
    text-align: center;
}

.scanner-widget h2 {
    color: #ffffff;
    font-size: 2.4rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.scanner-widget p.subtitle {
    color: #94a3b8;
    font-size: 1.15rem;
    margin-bottom: 35px;
}

.scan-form {
    display: flex;
    gap: 15px;
    max-width: 750px;
    margin: 0 auto;
}

/* Giant Neon Input */
.scan-form input {
    flex: 1;
    padding: 22px 25px;
    font-size: 1.3rem;
    border: 2px solid #334155;
    border-radius: 14px;
    background: #0b1120; 
    color: #38bdf8; 
    outline: none;
    transition: all 0.3s;
    font-family: 'SF Mono', 'Roboto Mono', monospace;
}

.scan-form input::placeholder { color: #475569; }

.scan-form input:focus {
    border-color: var(--secondary); 
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.25);
}

/* Giant Scan Button */
.btn-scan {
    background: var(--brand-gradient);
    color: white;
    border: none;
    padding: 0 45px;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-scan:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.5);
}

/* Loading & Progress Bar */
.scan-loading { text-align: center; padding: 20px 0; }
.spinner {
    width: 50px; height: 50px;
    border: 4px solid #1e293b;
    border-top: 4px solid var(--secondary); 
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.loading-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: #38bdf8; 
    margin-bottom: 25px;
    font-family: 'SF Mono', 'Roboto Mono', monospace;
}

.progress-bar-container {
    background: #0b1120;
    height: 12px; border-radius: 10px; overflow: hidden;
    max-width: 600px; margin: 0 auto;
    border: 1px solid #334155;
}
.progress-bar {
    height: 100%; width: 0%;
    background: var(--brand-gradient);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.6); 
    transition: width 0.5s ease;
}

/* Success Messages inside dark UI */
.scan-email h3, .scan-success h3 { color: #ffffff !important; font-size: 2rem; }
.scan-email p, .scan-success p { color: #94a3b8 !important; font-size: 1.1rem; }
.scan-success { padding: 30px 0; }