/* MODERN VARIABLES (The "SaaS" Palette) */
:root {
    --primary: #2563eb;       /* Vivid Blue */
    --primary-dark: #1d4ed8;  /* Deep Blue */
    --accent: #0f172a;        /* Dark Slate */
    --bg: #f1f5f9;            /* Light Gray/Blueish Background */
    --surface: #ffffff;       /* Pure White */
    --text-main: #0f172a;     /* Nearly Black */
    --text-muted: #64748b;    /* Slate Gray */
    --border: #e2e8f0;        /* Light Border */
    --success: #10b981;       /* Green */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* RESET & BASE */
* { 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;
}

/* NAVBAR - Glassmorphism Style */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.35rem;
    text-decoration: none;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    -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); }

/* HERO SECTION - Clean & Centered */
.hero {
    background: white;
    text-align: center;
    padding: 80px 20px 60px;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 15px 0;
    color: var(--accent);
}

.hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* LAYOUT */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* GRID - Modern Spacing */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* CARDS - Hover Lift Effect */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.domain-name {
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
}

.domain-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.badge {
    background: #dcfce7; /* Soft Green */
    color: #166534;      /* Dark Green Text */
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* REPORT PAGE - High End Look */
.report-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    max-width: 750px;
    margin: 0 auto;
}

.report-header {
    background: white; /* Clean White Header */
    padding: 50px 40px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.score-ring {
    width: 90px;
    height: 90px;
    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;
    /* Fancy Conic Gradient Ring */
    border: 6px solid transparent; 
    background-image: linear-gradient(white, white), conic-gradient(#10b981 0%, #3b82f6 100%);
    background-origin: border-box;
    background-clip: content-box, border-box;
    box-shadow: var(--shadow-md);
}

.report-body { padding: 40px; }

/* TABLES & METRICS */
.tech-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tech-table td {
    padding: 16px 10px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.tech-label {
    color: var(--text-muted);
    font-weight: 500;
}

.tech-val {
    font-family: 'SF Mono', 'Roboto Mono', Menlo, monospace;
    color: var(--accent);
    text-align: right;
    font-weight: 600;
}

/* CODE BOX */
.header-box {
    background: #0f172a; /* Dark Navy */
    color: #94a3b8;
    padding: 20px;
    border-radius: 10px;
    font-family: 'SF Mono', 'Roboto Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
    margin-top: 10px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.header-line {
    display: block;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 2px;
    margin-bottom: 2px;
}
.header-line:last-child { border-bottom: none; }

/* BUTTONS */
.btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 35px;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

/* FOOTER */
.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(--text-muted);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s;
}
.footer a:hover { color: var(--primary); }