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

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

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

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

/* ===========================
   Navbar
   =========================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-private {
    color: #2563eb;
}

.logo-msp {
    color: #1e40af;
}

.nav-menu {
    display: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
    transform: translateY(-2px);
}

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

.cta-button {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    padding: 8px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #1f2937;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Desktop Navbar */
@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }

    .hamburger {
        display: none;
    }
}

/* ===========================
   Mobile Menu
   =========================== */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 2001;
}

.mobile-menu-overlay.active .mobile-menu {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    font-size: 2rem;
    color: #6b7280;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    transition: color 0.3s ease;
}

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

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

.hero {
    margin-top: 0;
    padding: 5rem 1.5rem 3rem;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    text-align: center;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8rem;
    box-sizing: border-box;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero-intro {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0.95;
    line-height: 1.3;
}

.hero-title {
    font-size: 8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1;
}

.hero-title-line1 {
    display: inline-block;
    border-bottom: 8px solid white;
    padding-bottom: 0.1em;
}

.hero-title-line2 {
    font-size: 1.2em;
    display: block;
    letter-spacing: 0.02em;
}

.hero-title-line3 {
    font-size: 1.4em;
    font-weight: 900;
    display: block;
}

.hero-terms {
    font-size: 0.85rem;
    margin: 0.5rem 0 0.5rem 0;
    opacity: 0.8;
    font-style: italic;
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.95;
    font-weight: 600;
}

.hero-disclaimer {
    font-size: 0.9rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.85;
    font-style: italic;
    line-height: 1.6;
}

/* Forms */
.eligibility-form {
    margin-top: 2rem;
}

.form-group-inline {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    max-width: 700px;
    margin: 0 auto;
}

.hero-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    color: #1f2937;
}

.hero-input:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
}

.hero-cta-button {
    padding: 1rem 2.5rem;
    background-color: #1e3a8a;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-cta-button:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.form-hint {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Full Form (Stage 2) */
.eligibility-form-full {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
    color: #1f2937;
    animation: fadeInUp 0.5s ease;
}

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

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

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
}

.form-input:readonly {
    background-color: #f3f4f6;
}

.hero-cta-button-full {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.hero-cta-button-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 3rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

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

/* Result Message */
.result-message {
    background-color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    color: #1f2937;
    animation: fadeInUp 0.5s ease;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.result-message h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.result-message p {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #4b5563;
}

.result-subtext {
    font-size: 0.95rem;
    color: #6b7280;
    margin-top: 1.5rem;
}

/* ===========================
   Modal Styles
   =========================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-content .loading-state {
    padding: 3rem 1rem;
}

.modal-content .spinner {
    border-color: rgba(37, 99, 235, 0.3);
    border-top-color: #2563eb;
}

.modal-content .loading-state p {
    color: #1f2937;
}

.modal-content .result-message {
    background: transparent;
    padding: 2rem 0;
}

/* ===========================
   Why Section (Testimonials)
   =========================== */

.why-section {
    padding: 5rem 2rem;
    background-color: white;
}

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

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

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

.testimonial-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.testimonial-title {
    font-size: 0.9rem;
    color: #6b7280;
}

/* ===========================
   Benefits Section
   =========================== */

.benefits-section {
    padding: 5rem 2rem;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.benefit-item {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.benefit-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.benefit-description {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-more {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
}

.benefit-more .benefit-title,
.benefit-more .benefit-description {
    color: white;
}

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

.pricing-section {
    padding: 5rem 2rem;
    background-color: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background-color: #f8f9fa;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card-featured {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-color: transparent;
    color: white;
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e40af;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.plan-price {
    text-align: center;
    margin-bottom: 1rem;
}

.price-currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
}

.price-period {
    font-size: 1.2rem;
    color: #6b7280;
}

.price-note {
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
    margin: 0 0 1.5rem 0;
}

.pricing-card-featured .price-period {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-card-featured .price-note {
    color: rgba(255, 255, 255, 0.9);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.pricing-card-featured .plan-features li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.plan-features li::before {
    content: '✓ ';
    color: #2563eb;
    font-weight: bold;
    margin-right: 0.5rem;
}

.pricing-card-featured .plan-features li::before {
    color: white;
}

.plan-button {
    width: 100%;
    padding: 1rem;
    background-color: #2563eb;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.plan-button:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
}

.plan-button-featured {
    background-color: white;
    color: #667eea;
}

.plan-button-featured:hover {
    background-color: #f8f9fa;
}

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

.footer {
    background-color: white;
    padding: 3rem 2rem 2rem;
}

.footer-divider {
    max-width: 1200px;
    margin: 0 auto 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb 50%, transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
}

.footer-content a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* ===========================
   Responsive Design
   =========================== */

/* Mobile - Better spacing */
@media (max-width: 767px) {
    .hero-container {
        max-width: 600px;
    }

    .hero {
        padding: 2.5rem 1.25rem 2.5rem;
        padding-top: 6rem;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-intro {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .hero-title {
        font-size: 4.5rem;
        line-height: 1;
        margin-bottom: 0.75rem;
    }

    .hero-title-line1 {
        border-bottom: 5px solid white;
    }

    .hero-title-line2 {
        word-spacing: 0.15em;
        letter-spacing: 0.03em;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-disclaimer {
        font-size: 0.75rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .modal-content {
        padding: 1.5rem;
        max-height: 95vh;
    }

    .modal-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
}

/* Small mobile devices */
@media (max-width: 400px) {
    .hero {
        padding: 2rem 1rem 2rem;
        padding-top: 5.5rem;
    }

    .hero-intro {
        font-size: 1.25rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-title-line1 {
        border-bottom: 4px solid white;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-disclaimer {
        font-size: 0.7rem;
    }

    .modal-content {
        padding: 1rem;
        border-radius: 12px;
    }

    .modal-title {
        font-size: 1.35rem;
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* Tablets */
@media (min-width: 640px) {
    .form-group-inline {
        flex-direction: row;
    }

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

    .form-row .form-group:first-child:last-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 768px) {
    .hero-container {
        max-width: 1100px;
    }

    .hero {
        padding: 5rem 2rem 5rem;
        padding-top: 7rem;
    }

    .hero-intro {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }

    .hero-title {
        font-size: 7.5rem;
        line-height: 1;
        margin-bottom: 1.25rem;
    }

    .hero-title-line1 {
        border-bottom: 8px solid white;
    }

    .hero-title-line2 {
        font-size: 1.3em;
        letter-spacing: 0;
    }

    .hero-title-line3 {
        font-size: 1.5em;
    }

    .hero-subtitle {
        font-size: 2.25rem;
        margin-bottom: 0.75rem;
    }

    .hero-disclaimer {
        font-size: 1rem;
        margin-top: 1.75rem;
        margin-bottom: 1.75rem;
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero {
        padding: 10rem 2rem 6rem;
    }

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

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