/* Base Styles & Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --accent: #10b981;
    --accent-light: #d1fae5;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --error: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 5rem 0;
}

.bg-light {
    background: var(--light);
}

.bg-dark {
    background: var(--dark);
}

.bg-accent {
    background: var(--accent);
}

.text-white {
    color: var(--white);
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-accent:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-dark:hover {
    background: #000;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.logo i {
    animation: bounce 2s infinite;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 8rem;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('public/assets/images/hero-bg.png') center/cover no-repeat;
    opacity: 0.15;
    filter: blur(2px);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.h1-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.hero-form {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto;
    gap: 1rem;
    background: var(--white);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-indicators span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-indicators i {
    color: var(--accent);
}

/* How It Works */
.section-header {
    margin-bottom: 4rem;
}

.h2-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.step-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

/* Loading Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 1.5rem;
    text-align: center;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
}

.loader-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-top: 2rem;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease;
}

/* Audit Results Dashboard */
.grid-2-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.score-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.score-main {
    position: relative;
    width: 250px;
    height: 250px;
}

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

.score-value span {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--dark);
    display: block;
    line-height: 1;
}

.score-value small {
    color: var(--text-muted);
    font-size: 1.25rem;
}

.score-label {
    margin-top: 2rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.metrics-grid {
    display: grid;
    gap: 1.5rem;
}

.metric-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    border-left: 5px solid transparent;
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-info span:first-child {
    font-weight: 700;
    font-size: 1.125rem;
}

.status-indicator {
    font-size: 0.875rem;
    font-weight: 600;
}

.status-green {
    color: var(--success);
}

.status-yellow {
    color: var(--warning);
}

.status-red {
    color: var(--error);
}

.status-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.status-dot.green {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.status-dot.yellow {
    background: var(--warning);
    box-shadow: 0 0 10px var(--warning);
}

.status-dot.red {
    background: var(--error);
    box-shadow: 0 0 10px var(--error);
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* What We Check */
.checks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.check-col {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
}

.check-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.check-header i {
    font-size: 1.75rem;
    color: var(--primary);
}

.check-col ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.check-col ul li i {
    color: var(--accent);
}

/* Recommendations Accordion */
.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.15);
}

.priority {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 1.5rem;
}

.priority.high {
    color: #fca5a5;
}

.priority.medium {
    color: #fde047;
}

.priority.low {
    color: #86efac;
}

.count {
    background: var(--white);
    color: var(--dark);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
    margin-right: auto;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.recommendation-list {
    padding: 2rem;
    display: grid;
    gap: 1.5rem;
}

.rec-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--accent);
}

.rec-item.critical {
    border-left-color: var(--error);
}

.rec-item.warning {
    border-left-color: var(--warning);
}

.rec-item.success {
    border-left-color: var(--success);
}

.rec-item h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.rec-item p {
    font-size: 0.9375rem;
    color: #cbd5e1;
}

/* Final CTA */
.cta-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-text h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-text p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.share-icons {
    display: flex;
    gap: 1rem;
}

.share-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.share-icons a:hover {
    background: var(--white);
    color: var(--accent);
}

.cta-form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.cta-form input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    outline: none;
}

.cta-form small {
    display: block;
    margin-top: 1rem;
    color: var(--text-muted);
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0rem;
}

.form-row input {
    width: 100%;
    margin-bottom: 1.5rem;
}

#form-status.success {
    color: var(--success);
}

#form-status.error {
    color: var(--error);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.link-group a {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.link-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.badge {
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.heart {
    color: var(--error);
}

/* Tooltip */
.tooltip {
    position: fixed;
    background: var(--dark);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    z-index: 3000;
    pointer-events: none;
}

/* Animations */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-form {
        grid-template-columns: 1fr auto;
    }

    .hero-form .form-group:nth-child(2) {
        grid-column: 1 / 2;
    }

    .h1-title {
        font-size: 3rem;
    }

    .steps-grid,
    .checks-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .grid-2-1 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .h1-title {
        font-size: 2.5rem;
    }

    .steps-grid,
    .checks-grid {
        grid-template-columns: 1fr;
    }

    .hero-form {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 3rem;
    }
}