/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animation Classes */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end);
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.counter {
    font-weight: 700;
    color: #059669;
}

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}

/* Page transition */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

/* Utility Classes */
.text-center { text-align: center; }
.text-blue { color: #2563eb; }
.text-green { color: #059669; }
.text-purple { color: #7c3aed; }
.text-orange { color: #ea580c; }
.text-red { color: #dc2626; }

.bg-blue { background-color: #dbeafe; }
.bg-green { background-color: #d1fae5; }
.bg-purple { background-color: #e9d5ff; }
.bg-orange { background-color: #fed7aa; }
.bg-red { background-color: #fecaca; }
.bg-indigo { background-color: #e0e7ff; }

.bg-blue-light { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.bg-green-light { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.bg-purple-light { background: linear-gradient(135deg, #e9d5ff, #ddd6fe); }
.bg-orange-light { background: linear-gradient(135deg, #fed7aa, #fdba74); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.btn-secondary {
    border: 2px solid #2563eb;
    color: #2563eb;
    background-color: transparent;
}

.btn-secondary:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1f2937;
}

.logo-icon {
    background-color: #2563eb;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

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

.nav-link {
    color: #6b7280;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: #1f2937;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #1f2937;
    transition: all 0.3s;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.hamburger.active {
    background-color: transparent;
}

.hamburger.active::before {
    transform: rotate(45deg);
    top: 0;
}

.hamburger.active::after {
    transform: rotate(-45deg);
    top: 0;
}

.mobile-menu {
    display: none;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 0;
    transform: translateY(-100%);
    transition: all 0.3s ease;
}

.mobile-menu.active {
    display: block;
    transform: translateY(0);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    color: #6b7280;
    font-weight: 500;
    padding: 0.5rem 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="90" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.example-box {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.example-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 0.5rem;
}

.example-text {
    color: #047857;
    margin-bottom: 0;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-text {
    color: #6b7280;
    margin-bottom: 0;
}

/* Results Section */
.results-section {
    padding: 4rem 0;
    background-color: white;
}

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

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid;
    text-align: center;
}

.result-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.result-description {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Links Section */
.links-section {
    padding: 4rem 0;
    background-color: #f9fafb;
}

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

.link-card {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: block;
    position: relative;
    overflow: hidden;
}

.link-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.link-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.link-card:hover::after {
    opacity: 1;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.link-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.link-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.link-description {
    color: #6b7280;
    margin-bottom: 1rem;
}

.link-cta {
    color: #2563eb;
    font-weight: 600;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    font-weight: 600;
}

.link-blue {
    color: #2563eb;
}

.link-blue:hover {
    text-decoration: underline;
}

.link-hover:hover {
    text-decoration: underline;
}

/* Page Content */
.page-content {
    padding: 5rem 0;
    background-color: #f9fafb;
    min-height: 100vh;
}

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

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.page-description {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 64rem;
    margin: 0 auto 2rem;
}

.page-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.recommendation-box {
    background-color: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 48rem;
    margin: 0 auto;
}

.recommendation-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.recommendation-text {
    color: #1e40af;
    margin-bottom: 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.service-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.service-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.service-potential {
    text-align: right;
}

.potential-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
}

.potential-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.service-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 2rem 2rem;
}

.metric {
    text-align: center;
    padding: 0.75rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.metric-value {
    font-weight: 600;
}

.metric-label {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Service Detail */
.service-detail-header {
    text-align: center;
    margin-bottom: 4rem;
}

.service-detail-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-detail-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 2rem;
}

.service-detail-name {
    font-size: 3rem;
    font-weight: 700;
}

.service-detail-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
}

.service-detail-tagline {
    font-size: 1.5rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 1rem;
}

.service-detail-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 64rem;
    margin: 0 auto;
}

.service-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 4rem;
}

.metric-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.metric-card .metric-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.metric-card .metric-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.service-cta {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    color: white;
    margin-bottom: 4rem;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Internal Links */
.internal-links {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 4rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-main {
    max-width: 24rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    background-color: #2563eb;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.social-link:hover {
    background-color: #1d4ed8;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #9ca3af;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.copyright {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.legal-link {
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.legal-link:hover {
    color: white;
}

.disclaimer {
    background-color: #374151;
    border-radius: 0.5rem;
    padding: 1rem;
}

.disclaimer-text {
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Tooltips */
.tooltip {
    position: absolute;
    background-color: #1f2937;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

/* Loading animations */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    border-top-color: #2563eb;
    animation: spin 1s ease-in-out infinite;
}

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

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .service-detail-name {
        font-size: 2rem;
    }
    
    .service-detail-info {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom-content {
        text-align: center;
    }
    
    .legal-links {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .legal-links {
        flex-direction: row;
    }
}