:root {
    --bg-color: #0a0a0a;
    --card-bg: #121212;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-color: #ff3333;
    /* Redhawk Red */
    --accent-hover: #cc0000;
    --white: #ffffff;

    --font-main: 'Outfit', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3 {
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
}

.accent {
    color: var(--accent-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 51, 51, 0.3);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header */
.header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a:not(.btn) {
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-list a:not(.btn):hover {
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 70%);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Services */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 50px 0;
    background-color: var(--card-bg);
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px;
        gap: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        align-items: center;
    }

    .nav-list.active {
        transform: translateY(0);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

.service-card {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.service-card:nth-child(1) {
    animation-delay: 0.2s;
}

.service-card:nth-child(2) {
    animation-delay: 0.4s;
}

.service-card:nth-child(3) {
    animation-delay: 0.6s;
}

/* ==========================================================================
   SEO Scanner Tool Styles
   ========================================================================== */

.seo-scanner-section {
    position: relative;
    overflow: hidden;
}

.scanner-container {
    max-width: 800px;
    margin: 0 auto;
}

.scanner-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: -2rem auto 0;
}

.scanner-card {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 380px;
    margin-bottom: 3rem;
}

/* Form Styles */
.scanner-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
}

.form-group label .required {
    color: var(--accent-color);
    margin-left: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition);
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 10px 14px 10px 42px;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(10, 10, 10, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 51, 51, 0.15);
}

.form-group input:focus + .input-icon {
    color: var(--white);
}

.field-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.error-msg {
    display: none;
    color: #ff4d4d;
    font-size: 0.8rem;
    font-weight: 500;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    animation: slideDown 0.2s ease-out;
}

/* User-invalid and fallback CSS Validation styling */
.form-group input:user-invalid,
.form-group input[aria-invalid="true"] {
    border-color: #ff4d4d;
    background: rgba(255, 77, 77, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.1);
}

.form-group:has(input:user-invalid) .error-msg,
.form-group:has(input[aria-invalid="true"]) .error-msg,
.form-group.has-error .error-msg {
    display: flex;
}

.form-group:has(input:user-invalid) .field-hint,
.form-group:has(input[aria-invalid="true"]) .field-hint,
.form-group.has-error .field-hint {
    display: none;
}

.btn-block {
    width: 100%;
}

/* Loading Screen Styles */
.scanner-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.5s ease-out;
}

.spinner-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 2rem;
}

.spinner {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 51, 51, 0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.scanner-beam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    box-shadow: 0 0 12px var(--accent-color);
    border-radius: 2px;
    animation: scanBeam 2s ease-in-out infinite;
}

.scanner-loading h2 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.scanner-loading p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 450px;
}

.progress-bar-container {
    width: 250px;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-hover), var(--accent-color));
    border-radius: 3px;
    box-shadow: 0 0 8px var(--accent-color);
    animation: progressBarPulse 2.5s ease-in-out forwards;
}

/* Results Screen Styles */
.scanner-results {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.results-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .results-layout {
        grid-template-columns: 220px 1fr;
        align-items: center;
    }
}

.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.score-ring {
    position: relative;
    width: 160px;
    height: 160px;
}

.score-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.score-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.score-ring-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.score-total {
    font-size: 1rem;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.score-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Score Severity Classes */
.score-low .score-ring-fill {
    stroke: #ff4d4d;
    filter: drop-shadow(0 0 8px #ff4d4d);
}
.score-low .score-badge {
    background-color: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.3);
}

.score-medium .score-ring-fill {
    stroke: #ff9f43;
    filter: drop-shadow(0 0 8px #ff9f43);
}
.score-medium .score-badge {
    background-color: rgba(255, 159, 67, 0.15);
    color: #ff9f43;
    border: 1px solid rgba(255, 159, 67, 0.3);
}

.score-high .score-ring-fill {
    stroke: #2ed573;
    filter: drop-shadow(0 0 8px #2ed573);
}
.score-high .score-badge {
    background-color: rgba(46, 213, 115, 0.15);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.feedback-display {
    text-align: left;
}

.feedback-display h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.5rem;
}

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feedback-list li {
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    animation: slideRight 0.4s ease-out forwards;
    opacity: 0;
}

.feedback-list li.check-success i {
    color: #2ed573;
}
.feedback-list li.check-fail i {
    color: #ff4d4d;
}

.results-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 576px) {
    .results-actions {
        flex-direction: row;
    }
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes scanBeam {
    0%, 100% { top: 0%; opacity: 0.3; }
    50% { top: 100%; opacity: 1; }
}

@keyframes progressBarPulse {
    0% { width: 0%; }
    30% { width: 45%; }
    70% { width: 85%; }
    100% { width: 100%; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Legal / Policy Page Styles */
.legal-section {
    padding: 100px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.legal-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.legal-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.5rem;
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Footer Link Styles */
.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-muted);
    margin: 0 15px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}