@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700;800&family=Roboto:wght@400;500&display=swap');

/* ==================== Global Styles ==================== */
:root {
    --beige-bg: #e8e4d9;
    --dark-brown: #3d2817;
    --light-green: #c8d4a0;
    --olive-bg: #d4d5a5;
    --light-beige: #e8e8d8;
    --white: #ffffff;
    --dark-purple: #2d2438;
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ==================== Section 1: Navigation & Hero ==================== */
.navbar {
    background-color: var(--beige-bg) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.brand-icon {
    font-size: 1.8rem;
    color: var(--dark-brown);
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-brown);
}

.nav-link {
    color: var(--dark-brown) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-link.active {
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: #5a3a28;
}

.btn-auth {
    border-color: #5a3a28;
    color: #5a3a28;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-auth:hover {
    background-color: #5a3a28;
    color: var(--white);
}

.btn-register {
    background-color: #5a3a28;
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    border: 2px solid #5a3a28;
    transition: all 0.3s;
}

.btn-register:hover {
    background-color: #4a2a18;
    border-color: #4a2a18;
}

.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 80px;
    background-color: var(--beige-bg);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: #5a3a28;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #5a3a28;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.btn-cta {
    background-color: #5a3a28;
    border: 2px solid #5a3a28;
    color: var(--white);
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-cta:hover {
    background-color: #4a2a18;
    border-color: #4a2a18;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 58, 40, 0.3);
}

.btn-cta:focus,
.btn-cta:active {
    background-color: #4a2a18 !important;
    border-color: #4a2a18 !important;
    box-shadow: 0 4px 12px rgba(90, 58, 40, 0.3) !important;
    outline: none !important;
}

.btn-cta-secondary {
    border-color: #5a3a28;
    color: #5a3a28;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    border: 2px solid #5a3a28;
    transition: all 0.3s;
}

.btn-cta-secondary:hover {
    background-color: #4a2a18;
    border-color: #4a2a18;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-cta-secondary:focus,
.btn-cta-secondary:active {
    background-color: #4a2a18 !important;
    border-color: #4a2a18 !important;
    color: var(--white) !important;
    outline: none !important;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--light-green);
    border-radius: var(--border-radius);
}

.feature-card {
    background-color: #f0eee6;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: #5a3a28;
    margin-bottom: 1rem;
}

.feature-icon img {
    width: 40px;
    height: 41px;
    object-fit: contain;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #5a3a28;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.feature-text {
    font-size: 0.9rem;
    color: #5a3a28;
    opacity: 0.8;
    margin-bottom: 0;
    line-height: 1.4;
}

/* ==================== Section 2: Risks ==================== */
.risks-section {
    background-color: var(--olive-bg);
    padding: 80px 20px;
}

.section-title {
    font-family: 'Roboto Slab', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #5a3a28;
    margin-bottom: 30px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #5a3a28;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

.risk-card {
    background-color: #f5f5f0;
    border: none;
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.risk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.icon-red {
    color: #d32f2f;
}

.icon-orange {
    color: #f57c00;
}

.icon-purple {
    color: #7b1fa2;
}

.card-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #5a3a28;
    margin-bottom: 20px;
    line-height: 1.3;
}

.card-text {
    font-size: 1rem;
    color: #5a3a28;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 25px;
}

.card-footer-text {
    font-size: 1rem;
    font-weight: 700;
    color: #c62828;
    margin-top: auto;
    background-color: #fce4e4;
    padding: 10px 20px;
    border-radius: 6px;
    width: fit-content;
    border: none;
}

.card-footer-block {
    font-size: 1rem;
    font-weight: 700;
    margin-top: auto;
    padding: 10px 20px;
    border-radius: 6px;
    width: fit-content;
    border: none;
}

.card-footer-orange {
    background-color: #fce4d6;
    color: #d84315;
}

.card-footer-purple {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

/* ==================== Section 3: Services ==================== */
.services-section {
    padding: 80px 20px;
    background-color: var(--light-beige);
}

.service-card {
    background-color: var(--olive-bg);
    border: none;
    border-radius: 20px;
    padding: 40px 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 32px;
}

.icon-brown {
    background-color: #5a3a28;
    color: var(--olive-bg);
}

.service-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #5a3a28;
    margin-bottom: 20px;
    line-height: 1.3;
}

.service-text {
    font-size: 1rem;
    color: #5a3a28;
    line-height: 1.7;
    flex-grow: 1;
}

/* ==================== Section 4: Site Check ==================== */
.check-section {
    padding: 80px 20px;
    background-color: #c1bba1;
}

.check-card {
    background-color: #f5f5f0;
    border: 2px solid #e0e0d0;
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.check-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.check-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.check-globe-icon {
    width: 80px;
    height: 80px;
    padding: 18px;
    background-color: #5a3a28;
    color: #ffffff;
    border-radius: 50%;
}

.check-form {
    margin-bottom: 30px;
}

.check-form-label {
    font-family: 'Roboto Slab', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #5a3a28;
    margin-bottom: 12px;
    display: block;
}

.check-input-group {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
}

.check-site-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 1rem;
    color: #5a3a28;
    background-color: #ffffff;
    border: 2px solid #d0d0c0;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 0;
}

.check-site-input:focus {
    outline: none;
    border-color: #5a3a28;
    box-shadow: 0 0 0 3px rgba(90, 58, 40, 0.1);
}

.check-site-input::placeholder {
    color: #999;
}

.check-site-input:-webkit-autofill,
.check-site-input:-webkit-autofill:hover,
.check-site-input:-webkit-autofill:focus,
.check-site-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #5a3a28 !important;
    transition: all 0.3s ease, background-color 5000s ease-in-out 0s;
}

.check-site-input.input-error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.check-site-input.input-error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.url-error-message {
    display: flex;
    align-items: center;
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    animation: slideDown 0.3s ease-out;
}

.url-error-message i {
    margin-right: 6px;
    font-size: 16px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.check-site-button {
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    background-color: #5a3a28;
    color: #ffffff;
    border: 2px solid #5a3a28;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.check-site-button i {
    margin-right: 8px;
}

.check-site-button:hover {
    background-color: #4a2a18;
    border-color: #4a2a18;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 58, 40, 0.3);
}

.check-site-button.success {
    background-color: #5a3a28;
    border-color: #5a3a28;
}

.check-site-button.success:hover {
    background-color: #4a2a18;
    border-color: #4a2a18;
}

.check-info {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e0e0d0;
}

.check-info-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #5a3a28;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.check-info-title i {
    color: #5a3a28;
    font-size: 1.3rem;
}

.check-item {
    display: flex;
    align-items: center;
    color: #5a3a28;
    margin-bottom: 10px;
    font-size: 1rem;
}

.check-item i {
    color: #5a3a28;
    font-size: 1.5rem;
    margin-right: 8px;
}

.check-note {
    text-align: center;
    font-size: 0.95rem;
    color: #7a6a5a;
    font-style: italic;
    line-height: 1.6;
}

/* ==================== Section 5: Pricing ==================== */
.pricing-section {
    padding: 80px 20px;
    background-color: var(--olive-bg);
}

.pricing-card {
    background-color: #f5f5e8;
    border: 2px solid #e0e0d0;
    border-radius: 20px;
    padding: 40px 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.pricing-card-popular {
    border: 2px solid #5a3a28;
    background-color: #f5f5e8;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #5a3a28;
    color: #f5f5e8;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.plan-name {
    font-family: 'Roboto Slab', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #5a3a28;
    margin-bottom: 25px;
    text-align: center;
}

.price-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.price {
    font-family: 'Roboto Slab', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #5a3a28;
    line-height: 1;
}

.currency {
    font-size: 1.2rem;
    font-weight: 500;
    color: #5a3a28;
    margin-left: 8px;
}

.plan-description {
    font-size: 1rem;
    color: #5a3a28;
    line-height: 1.7;
    text-align: center;
    flex-grow: 1;
    margin-bottom: 30px;
}

.btn-subscribe {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #5a3a28;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-light-pricing {
    background-color: var(--olive-bg);
    color: #5a3a28;
}

.btn-light-pricing:hover {
    background-color: #c4c595;
    transform: scale(1.02);
}

.btn-dark-pricing {
    background-color: #5a3a28;
    color: #f5f5e8;
}

.btn-dark-pricing:hover {
    background-color: #4a2a18;
    transform: scale(1.02);
}

/* ==================== Section 6: Footer ==================== */
.footer {
    background-color: var(--dark-purple);
    color: #b8b3c0;
    padding: 60px 0 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand-icon {
    color: #ffffff;
    width: 32px;
    height: 32px;
}

.footer-brand-name {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #b8b3c0;
    margin: 0;
}

.footer-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-item {
    margin-bottom: 12px;
}

.footer-label {
    color: #b8b3c0;
    margin-right: 5px;
}

.footer-link {
    color: #b8b3c0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(184, 179, 192, 0.2);
    color: #8a8593;
    font-size: 0.9rem;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid {
        margin-top: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .btn-cta,
    .btn-cta-secondary {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .risk-card,
    .service-card,
    .pricing-card {
        padding: 30px 25px;
    }
    
    .check-card {
        padding: 35px 25px;
    }
    
    .check-globe-icon {
        width: 70px;
        height: 70px;
        padding: 15px;
    }
    
    .check-input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .check-site-button {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .d-flex.gap-2 {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-auth,
    .btn-register {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .icon-wrapper,
    .icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .icon-wrapper svg {
        width: 36px;
        height: 36px;
    }
    
    .icon-circle {
        font-size: 28px;
    }
}

/* ==================== Modal Styles ==================== */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e8dfd5;
    padding: 24px;
}

.modal-title {
    color: #5a3a28;
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    color: #6b5a4a;
    margin-bottom: 20px;
}

.modal-info-box {
    background-color: #faf8f5;
    border: 2px solid #e8dfd5;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.modal-info-title {
    color: #5a3a28;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

#selectedPlan {
    color: #8b6f47;
}

.modal-info-text {
    color: #6b5a4a;
    font-size: 0.9rem;
}

.modal-body .form-label {
    color: #5a3a28;
    font-weight: 500;
}

.modal-body .form-control {
    border: 2px solid #e8dfd5;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
}

.modal-body .form-control:focus {
    border-color: #5a3a28;
    box-shadow: 0 0 0 3px rgba(90, 58, 40, 0.1);
}

.modal-body .form-control.is-invalid {
    border-color: #dc3545;
}

.modal-body .form-control:-webkit-autofill,
.modal-body .form-control:-webkit-autofill:hover,
.modal-body .form-control:-webkit-autofill:focus,
.modal-body .form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #5a3a28 !important;
    transition: all 0.3s ease, background-color 5000s ease-in-out 0s;
}

.modal-error {
    display: none;
    color: #dc3545;
    margin-top: 8px;
    font-size: 14px;
}

.modal-footer {
    border-top: 1px solid #e8dfd5;
    padding: 20px 24px;
}

.modal-footer .btn-secondary {
    background-color: #e8dfd5;
    color: #5a3a28;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
}

.modal-footer .btn-secondary:hover {
    background-color: #d8cfc5;
}

.modal-footer .btn-primary {
    background-color: #5a3a28;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
}

.modal-footer .btn-primary:hover {
    background-color: #4a2a18;
}
