/* Professional Style Overrides for SecurePass360 */

:root {
    /* Refined Color Palette */
    --primary-color: #3b82f6; /* Blue 500 */
    --primary-hover: #2563eb; /* Blue 600 */
    --secondary-color: #10b981; /* Emerald 500 */
    --danger-color: #ef4444; /* Red 500 */
    
    --bg-dark: #0f172a; /* Slate 900 */
    --bg-card: #1e293b; /* Slate 800 */
    --bg-card-hover: #334155; /* Slate 700 */
    
    --text-primary: #f8fafc; /* Slate 50 */
    --text-secondary: #94a3b8; /* Slate 400 */
    --text-muted: #64748b; /* Slate 500 */
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    /* Spacing System (4px baseline) */
    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-6: 1.5rem;   /* 24px */
    --space-8: 2rem;     /* 32px */
    --space-12: 3rem;    /* 48px */
    --space-16: 4rem;    /* 64px */
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base Improvements */
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

/* Navbar Precision */
.navbar {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-4) 0;
}

.nav-links a {
    font-size: 0.9375rem; /* 15px */
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.btn-nav {
    font-size: 0.9375rem;
    padding: var(--space-2) var(--space-4);
    border-radius: 6px; /* Slightly tighter radius */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Hero Section Refinements */
.hero {
    padding-top: 8rem; /* More breathing room */
}

.hero-badge {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    font-size: 0.8125rem; /* 13px */
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 6px 12px;
    border-radius: 9999px;
}

.hero-title {
    font-size: 4rem; /* Larger impact */
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 640px;
    margin-bottom: var(--space-12);
}

/* Scan Box Precision */
.scan-box {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 16px; /* Consistent radius */
    padding: var(--space-2); /* Tighter padding for the wrapper */
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 20px 40px -12px rgba(0, 0, 0, 0.5);
}

.input-group {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px; /* Inner padding for the input/button group */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.input-group input {
    font-size: 1.125rem;
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.btn-scan {
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    padding: 0 var(--space-6);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.01em;
}

/* Trust Badges */
.trust-badges {
    margin-top: var(--space-6);
    gap: var(--space-8);
}

.badge-item {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.badge-item svg {
    width: 18px;
    height: 18px;
    color: var(--secondary-color);
}

/* Feature Cards Linearity */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--space-8);
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.feature-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Section Headers */
.section-header {
    margin-bottom: var(--space-12);
}

.section-title {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Footer Precision */
footer {
    border-top: 1px solid var(--border-color);
    padding: var(--space-12) 0;
    margin-top: var(--space-16);
}

/* Spinner & Results Precision */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.scan-results {
    margin-top: var(--space-6);
    border-radius: 16px;
    overflow: hidden;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-safe {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: var(--space-6);
    color: #d1fae5;
}

.result-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: var(--space-6);
    color: #fee2e2;
}

.result-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.result-safe .result-header { color: #34d399; }
.result-danger .result-header { color: #f87171; }

.result-details {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: var(--space-4);
    margin-top: var(--space-4);
}

/* Features Detail Precision */
.page-header {
    padding: var(--space-16) 0 var(--space-12);
    text-align: center;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-6);
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: var(--space-16);
    margin-bottom: var(--space-16);
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.feature-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    font-weight: 500;
    color: var(--text-primary);
}

.feature-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.feature-image {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: var(--space-8);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.ui-mockup {
    background: var(--bg-dark);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: var(--space-4);
}

.mockup-header {
    display: flex;
    gap: 6px;
    margin-bottom: var(--space-4);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-card-hover);
}

.mock-row {
    height: 12px;
    background: var(--bg-card-hover);
    border-radius: 4px;
    margin-bottom: var(--space-3);
    width: 100%;
}

.mock-row.short {
    width: 60%;
}

/* Buttons Precision */
.btn-large {
    padding: var(--space-4) var(--space-12);
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-large:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Verification Modal Precision */
.verification-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.verification-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: var(--space-8);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease-out;
}

.verify-shield-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    color: var(--primary-color);
}

.verify-shield-bg {
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(20px);
}

.verify-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.verify-desc {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.verify-btn {
    width: 100%;
    padding: var(--space-3);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.verify-btn:hover {
    background: var(--primary-hover);
}

/* Radar Animation Precision */
.scan-overlay {
    padding: var(--space-8);
    text-align: center;
}

.radar-container {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    position: relative;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.05);
    overflow: hidden;
}

.radar-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(59, 130, 246, 0.5) 360deg);
    animation: radarSpin 2s linear infinite;
}

.scan-status-text {
    font-weight: 600;
    color: var(--text-primary);
    animation: pulse 2s infinite;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes radarSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Desktop Preview Precision */
.desktop-preview {
    padding-top: 0;
    padding-bottom: var(--space-16);
    text-align: center;
    perspective: 1000px;
}

.preview-container-3d {
    position: relative;
    margin-top: var(--space-8);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.preview-container-3d:hover {
    transform: translateY(-10px) rotateX(2deg);
}

.glow-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.app-window-frame {
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.2),
        0 20px 50px -12px rgba(0, 0, 0, 0.7),
        0 0 100px -20px rgba(59, 130, 246, 0.15);
    overflow: hidden;
    position: relative;
}

.window-header {
    background: #1e293b;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ef4444; }
.control.yellow { background: #f59e0b; }
.control.green { background: #10b981; }

.window-title {
    flex: 1;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-right: 52px; /* Balance controls width */
}

.window-content img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0 0 12px 12px;
}
