/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* Variables */
:root {
    /* American flag colors */
    --blue: #002868;
    --red: #BF0A30;
    --white: #ffffff;
    
    /* Supporting colors */
    --dark-blue: #001845;
    --light-blue: #275FD5;
    --light-red: #E63946;
    --dark: #121212;
    --gray: #f8f9fa;
    --gray-dark: #6c757d;
    
    /* UI variables */
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --border-radius: 10px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
    --shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    margin-bottom: 1.25rem;
    color: var(--dark);
    font-weight: 700;
}

h1 {
    font-size: 2.75rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--light-blue);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    color: var(--dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--red));
    border-radius: 2px;
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.75rem;
    color: var(--gray-dark);
    font-size: 1.1rem;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-primary);
}

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

.btn-primary:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--blue);
    border: 2px solid var(--blue);
}

.btn-secondary:hover {
    background-color: var(--blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-cta {
    background-color: var(--red);
    color: var(--white);
    font-size: 1.1rem;
    padding: 0.875rem 1.75rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.btn-cta:hover {
    background-color: var(--light-red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    transition: var(--transition);
}

.site-header.scrolled {
    padding: 0.75rem 0;
    background-color: rgba(255, 255, 255, 0.98);
}

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

.logo a {
    display: flex;
    align-items: center;
    color: var(--blue);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo a svg {
    margin-right: 0.625rem;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin: 0 0.9375rem;
}

.main-nav ul li a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--red);
    transition: var(--transition);
}

.main-nav ul li a:hover {
    color: var(--red);
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--blue);
    transition: var(--transition);
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.no-scroll {
    overflow: hidden;
}

/* Hero Section */
.hero {
    padding: 10rem 0 6.25rem;
    background: linear-gradient(135deg, rgba(0, 40, 104, 0.05) 0%, rgba(191, 10, 48, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23BF0A30' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    color: var(--blue);
    margin-bottom: 0.625rem;
    font-weight: 800;
}

.hero-content h2 {
    margin-bottom: 1.5625rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--gray-dark);
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
}

.hero-graphic {
    max-width: 400px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Features Section */
.features {
    padding: 6.25rem 0;
    background-color: var(--white);
}

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

.feature-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.875rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 40, 104, 0.1);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--red));
}

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

.feature-icon {
    margin: 0 auto 1.25rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 40, 104, 0.05);
    border-radius: 50%;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background-color: rgba(0, 40, 104, 0.1);
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-item p {
    color: var(--gray-dark);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* How It Works Section */
.how-it-works {
    padding: 6.25rem 0;
    background-color: var(--gray);
    position: relative;
}

.steps-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3.125rem 0;
}

.step-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.875rem;
    text-align: center;
    box-shadow: var(--shadow);
    flex: 1;
    max-width: 300px;
    margin: 0 0.625rem;
    position: relative;
    transition: var(--transition);
}

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

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1.25rem;
}

.step-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.step-card p {
    color: var(--gray-dark);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.step-icon {
    margin-top: 0.625rem;
}

.step-arrow {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
}

.action-center {
    text-align: center;
    margin-top: 2.5rem;
}

/* FAQ Section */
.faq-section {
    padding: 6.25rem 0;
    background-color: var(--white);
}

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

.accordion-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 40, 104, 0.1);
}

.accordion-header {
    padding: 1.25rem 1.5625rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: rgba(0, 40, 104, 0.02);
}

.accordion-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--dark);
}

.accordion-icon {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--red);
    transition: var(--transition);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5625rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    padding-bottom: 1.25rem;
}

.accordion-content p {
    color: var(--gray-dark);
    margin: 0;
    padding-top: 0.625rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background-color: var(--gray);
}

.cta-box {
    background: linear-gradient(120deg, var(--blue), var(--dark-blue));
    border-radius: var(--border-radius-lg);
    padding: 3.75rem 2.5rem;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30l30 30-30-30L30 0 0 30z' fill='%23BF0A30' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    animation: ctaBackground 30s linear infinite;
    z-index: 0;
}

@keyframes ctaBackground {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.cta-box h2 {
    color: var(--white);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 1.875rem;
    position: relative;
    z-index: 1;
}

/* Footer */
.site-footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 5rem 0 1.25rem;
}

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

.footer-brand {
    display: flex;
    margin-bottom: 1.875rem;
    max-width: 350px;
}

.footer-logo {
    margin-right: 0.9375rem;
}

.footer-brand-text h3 {
    color: var(--white);
    margin-bottom: 0.625rem;
}

.footer-brand-text p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-size: 0.9rem;
}

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

.footer-column h4 {
    color: var(--white);
    margin-bottom: 1.25rem;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--red);
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--red);
    padding-left: 0.3125rem;
}

.keywords li {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Animation classes */
.feature-item, .step-card, .cta-box {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-item.visible, .step-card.visible, .cta-box.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .steps-wrapper {
        flex-direction: column;
        gap: 1.875rem;
    }
    
    .step-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 0.625rem 0;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        margin-top: 1.875rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 1.9rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 7.5rem 0 5rem;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 3.125rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        z-index: 1000;
        padding: 5rem 1.875rem 1.875rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav ul li {
        margin: 0 0 1.25rem;
        width: 100%;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 0.625rem 0;
        font-size: 1.1rem;
    }
    
    .cta-nav a {
        display: block;
        text-align: center;
        margin-top: 0.625rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
    
    .cta-box {
        padding: 2.5rem 1.25rem;
    }
    
    .accordion-header {
        padding: 1rem 1.25rem;
    }
    
    .accordion-header h3 {
        font-size: 1rem;
        max-width: 80%;
    }
    
    .footer-column {
        width: 100%;
        margin-bottom: 1.875rem;
    }
    
    .footer-links {
        gap: 1.25rem;
    }
}
