/* ================================
   CSS Reset & Base Styles
   ================================ */

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

:root {
    /* Brand Colors */
    --primary: #1A3A52;     /* Deep Blue - Navigation, main UI */
    --secondary: #4DA8DA;   /* Light Blue - Buttons, links */
    --accent: #F2B95C;      /* Warm Orange - CTAs */
    --background: #F5F5F5;  /* Off-White */
    --white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --border: #E0E0E0;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-sans);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* ================================
   Typography
   ================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
}

/* ================================
   Layout Container
   ================================ */

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

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ================================
   Buttons
   ================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

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

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

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

.btn-secondary:hover {
    background: #3D96C8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

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

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

.btn-full {
    width: 100%;
}

/* ================================
   Navigation
   ================================ */

.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

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

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

.logo-icon {
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-login {
    color: var(--secondary) !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

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

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* ================================
   Hero Section
   ================================ */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2C5F7A 100%);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    font-weight: 800;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--accent);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.hero-login {
    text-align: center;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-login-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
}

.hero-login-link:hover {
    color: #E5A948;
}

.hero-trust {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .hero {
        padding: var(--spacing-lg) 0;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
    }
}

/* ================================
   Features Section
   ================================ */

.features {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--background);
    padding: var(--spacing-md);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.feature-icon {
    margin-bottom: var(--spacing-sm);
    color: var(--secondary);
}

.feature-icon svg {
    display: block;
    stroke: var(--secondary);
}

.feature-title {
    margin-bottom: var(--spacing-sm);
    color: var(--primary);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* ================================
   Pricing Section
   ================================ */

.pricing {
    padding: var(--spacing-xl) 0;
    background: var(--background);
}

.billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: var(--spacing-lg) auto;
    max-width: 400px;
    background: var(--white);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
}

.billing-toggle-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.billing-toggle-btn:hover {
    color: var(--primary);
}

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

.discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: #10b981;
    color: var(--white);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.billing-toggle-btn.active .discount-badge {
    background: #059669;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.pricing-card-featured {
    border-color: var(--accent);
    transform: scale(1.05);
}

.pricing-card-featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border);
}

.pricing-name {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.price-period {
    font-size: 1rem;
    color: var(--text-light);
}

.pricing-features {
    margin-bottom: var(--spacing-md);
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .billing-toggle {
        max-width: 100%;
        margin: var(--spacing-md) auto;
    }

    .billing-toggle-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .discount-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

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

    .pricing-card-featured {
        transform: scale(1);
    }

    .pricing-card-featured:hover {
        transform: translateY(-8px);
    }
}

/* ================================
   Business Section
   ================================ */

.business {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.business-card {
    background: var(--background);
    padding: var(--spacing-md);
    border-radius: 12px;
    border: 2px solid var(--border);
}

.business-card h3 {
    margin-bottom: var(--spacing-sm);
}

.business-card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.business-card-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, #2C5F7A 100%);
    color: var(--white);
    border-color: var(--primary);
}

.business-card-highlight h3,
.business-card-highlight p,
.business-card-highlight li {
    color: var(--white);
}

.business-benefits {
    margin-bottom: var(--spacing-md);
}

.business-benefits li {
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.business-benefits-highlight {
    margin-bottom: var(--spacing-md);
}

.business-benefits-highlight li {
    padding: 0.5rem 0;
    color: var(--white);
}

/* ================================
   FAQ Section
   ================================ */

.faq {
    padding: var(--spacing-xl) 0;
    background: var(--background);
}

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

.faq-item {
    background: var(--white);
    border-radius: 8px;
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--background);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ================================
   CTA Section
   ================================ */

.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--white);
    text-align: center;
}

.cta-title {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.9);
}

.cta-note {
    margin-top: var(--spacing-md);
    font-size: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

/* ================================
   Footer
   ================================ */

.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-title {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

/* ================================
   Utility Classes
   ================================ */

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

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* ================================
   Animations
   ================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ================================
   Print Styles
   ================================ */

@media print {
    .navbar,
    .footer,
    .cta-section {
        display: none;
    }
}
