/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 180px;
    width: auto;
    display: block;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding-top: calc(70px + var(--space-xl));
    padding-bottom: var(--space-xl);
    background-color: transparent;
    overflow: hidden;
    /* For bleeding mockup */
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

@media (min-width: 992px) {
    .hero-container {
        flex-direction: row;
        text-align: left;
        align-items: center;
        justify-content: space-between;
    }
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-title span {
    display: block;
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

@media (min-width: 992px) {
    .hero-subtitle {
        margin-left: 0;
        margin-right: 0;
    }
}

.hero-mockup {
    margin-top: var(--space-xl);
    width: 100%;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .hero-mockup {
        margin-top: 0;
        position: absolute;
        right: -25%;
        top: 50%;
        transform: translateY(-50%);
        width: 65%;
    }
}

.mockup-img {
    width: 100%;
}

/* ==========================================================================
   Trust Badges Section
   ========================================================================== */
.trust-section {
    padding-bottom: var(--space-xl);
    text-align: center;
}

.trust-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    color: #94a3b8;
}

.trust-logos svg {
    height: 32px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.trust-logos svg:hover {
    opacity: 1;
}

/* ==========================================================================
   Bento Box (Performance & Comparison)
   ========================================================================== */
.bento-section {
    background-color: transparent;
    padding-top: var(--space-xl);
}

.bento-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 992px) {
    .bento-container {
        grid-template-columns: 1fr 2fr;
    }
}

.bento-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.score-subtext {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.bento-comparison h2 {
    margin-bottom: var(--space-md);
}

.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-md);
    position: relative;
    overflow: hidden;
}

.score-circle {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto var(--space-sm) auto;
}

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

.score-circle circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.score-circle .bg {
    stroke: #e2e8f0;
}

.score-circle .progress {
    stroke: var(--color-success);
    stroke-dasharray: 283;
    /* 2 * pi * 45 */
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-circle.animated .progress {
    stroke-dashoffset: 0;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-success);
}

.score-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.tags-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
}

.tag-success {
    color: var(--color-success);
    background-color: #ecfdf5;
    border-color: #d1fae5;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.comparison-col {
    position: relative;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.3);
}

.comparison-highlight {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.recommended-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--color-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.card-header h3 {
    margin: 0;
    line-height: 1.2;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-red {
    background-color: #fee2e2;
    color: var(--color-danger);
}

.icon-blue {
    background-color: #dbeafe;
    color: var(--color-primary);
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #374151;
    font-size: 1.05rem;
    font-weight: 500;
}

.comparison-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}

.list-bad li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

.list-good li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

/* ==========================================================================
   About Section (Split-Screen)
   ========================================================================== */
.about-split {
    display: flex;
    flex-direction: column;
    min-height: 80vh;
    background-color: var(--color-bg-dark);
    /* Dark background */
    margin-top: var(--space-xl);
}

@media (min-width: 992px) {
    .about-split {
        flex-direction: row;
    }
}

.split-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl) 5%;
    color: var(--color-bg-white);
}

.split-content {
    max-width: 500px;
    margin-left: auto;
}

.split-left h2 {
    color: var(--color-bg-white);
}

.split-left p {
    color: #94a3b8;
}

.split-right {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.split-right img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Overlapping Features */
.overlapping-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: relative;
    z-index: 10;
    margin-top: -60px;
    /* Less overlap on mobile to avoid breaking */
}

@media (min-width: 768px) {
    .overlapping-features {
        flex-direction: row;
        justify-content: center;
        margin-top: -100px;
        /* Full overlap on desktop */
    }
}

.overlapping-features .feature-card {
    flex: 1;
    max-width: 350px;
    margin: 0 auto;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.overlapping-features .feature-card p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: #e0e7ff;
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm) auto;
}

/* ==========================================================================
   Final CTA Section
   ========================================================================== */
.final-cta {
    padding: var(--space-lg) var(--space-md);
}

.cta-container {
    background-color: var(--color-bg-dark);
    color: var(--color-bg-white);
    text-align: center;
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-md);
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 50%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.cta-container h2,
.cta-container p,
.cta-container button {
    position: relative;
    z-index: 1;
}

.cta-microcopy {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: var(--space-md);
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.cta-container h2 {
    color: var(--color-bg-white);
}

.cta-container p {
    color: #94a3b8;
    max-width: 500px;
    margin: 0 auto var(--space-lg) auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: transparent;
    padding: var(--space-md) 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.footer-logo .logo-img {
    height: 20px;
    width: auto;
    opacity: 0.8;
}

.copyright {
    font-size: 0.875rem;
    margin-bottom: var(--space-sm);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

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