/* ========================================
   SOMNIA - Main Styles
   ======================================== */

@font-face {
    font-family: 'Unbounded';
    src: url('../fonts/Unbounded-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #628ecb;
    --secondary-color: #b1c9ef;
    --sky-light: #e3f2fd;
    --sky-lighter: #f5f9ff;
    --dark-color: #4a4a4a;
    --light-color: #f0f3fa;
    --accent-blue: #395886;
}

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

body {
    font-family: 'Unbounded', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    overflow-x: hidden;
    opacity: 0;
    animation: pageLoadFade 0.8s ease-out forwards;
}

@keyframes pageLoadFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f9ff 0%, #e3f2fd 60%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #333333;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(227,242,253,0) 0%, #fff 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
}

.logo {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(74, 144, 226, 0.3);
    color: var(--primary-color);
    animation: fadeInUp 0.8s ease-out;
}

.slogan {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-arrow {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    opacity: 0.85;
    animation: arrowBounce 2s infinite;
}

.hero-arrow--hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(.4,2,.3,1);
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(12px); }
}

@media (max-width: 768px) {
    .hero-arrow svg {
        width: 36px;
        height: 36px;
    }
    .hero-arrow {
        bottom: 12px;
    }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.4);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--primary-color);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.4);
}

.btn-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* ========================================
   SECTIONS - COMMON STYLES
   ======================================== */

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
    padding: 6rem 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.about-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #f5f9ff 100%);
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow:
        0 0 30px rgba(74, 144, 226, 0.4),
        0 0 60px rgba(74, 144, 226, 0.25),
        0 0 90px rgba(123, 179, 232, 0.15);
    filter: drop-shadow(0 0 40px rgba(74, 144, 226, 0.3));
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features-section {
    padding: 6rem 0;
    background-color: #f5f9ff;
    position: relative;
    overflow: hidden;
}

.features-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(245,249,255,0) 0%, #fff 100%);
}

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

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.2);
}

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

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

/* ========================================
   TABS SECTION
   ======================================== */

.tabs-section {
    padding: 6rem 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.tabs-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #f5f9ff 100%);
}

.nav-tabs {
    border: none;
    justify-content: center;
    margin-bottom: 3rem;
}

.nav-tabs .nav-link {
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 1rem 2rem;
    margin: 0 0.5rem;
    color: #666;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

.tab-content {
    padding: 2rem;
}

.tab-image {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
}

/* ========================================
   MOCKUP STYLING
   ======================================== */

.mockup-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
}

.mockup-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: top;
}

.mockup-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
    z-index: 10;
}

/* ========================================
   FUNCTIONS SECTION
   ======================================== */

.functions-section {
    padding: 6rem 0;
    background-color: #f5f9ff;
    position: relative;
    overflow: hidden;
}

.functions-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(245,249,255,0) 0%, #fff 100%);
}

.functions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.function-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.function-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.15);
}

.function-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.function-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* ========================================
   PRICING SECTION
   ======================================== */

.pricing-section {
    padding: 6rem 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.pricing-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #f5f9ff 100%);
}

.pricing-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    overflow: hidden;
}

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

.pricing-card.featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1.5rem;
    text-align: center;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5rem 0;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.features-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

/* ========================================
   COMPARISON TABLE
   ======================================== */

.comparison-table-wrapper {
    overflow-x: auto;
    margin: 3rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: block;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.comparison-table thead {
    background: linear-gradient(135deg, #f5f9ff, #e3f2fd);
}

.comparison-table th {
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
}

.comparison-table .feature-column {
    text-align: left;
    width: 35%;
    color: var(--dark-color);
    font-size: 1rem;
}

.comparison-table .plan-column {
    width: 21.5%;
    vertical-align: top;
}

.comparison-table .featured-plan {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(123, 179, 232, 0.05));
    border-left: 3px solid var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

.comparison-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.comparison-table tbody tr:hover {
    background-color: #f9f9ff;
}

.comparison-table tbody tr.divider-row {
    height: 10px;
    background: transparent;
    border: none;
}

.comparison-table td {
    padding: 1.2rem 1.5rem;
    text-align: center;
}

.comparison-table .feature-name {
    text-align: left;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.comparison-table .feature-cell {
    vertical-align: middle;
}

.comparison-table .featured-cell {
    background: rgba(74, 144, 226, 0.03);
}

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

.plan-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.plan-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.plan-price span {
    font-size: 0.9rem;
    font-weight: 500;
}

.plan-yearly {
    font-size: 0.9rem;
    color: #999;
    margin-top: 0.3rem;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.1rem;
}

.cross-icon {
    color: #ccc;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ========================================
   MOBILE PRICING CARDS
   ======================================== */

.mobile-pricing-cards {
    display: none;
}

.pricing-card-mobile {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.pricing-card-mobile.featured {
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.pricing-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.pricing-card-header .plan-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-card-header .plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.pricing-card-header .plan-price {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.pricing-card-header .plan-yearly {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.3rem;
}

.pricing-card-body {
    padding: 1.5rem;
}

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

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

.pricing-features-list .check-icon {
    flex-shrink: 0;
}

.pricing-features-list .cross-icon {
    flex-shrink: 0;
}

.pricing-card-button {
    width: 100%;
    margin-top: 1.5rem;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section {
    padding: 6rem 0;
    background-color: #f5f9ff;
    position: relative;
    overflow: hidden;
}

.faq-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(245,249,255,0) 0%, #b3d9f2 100%);
}

.accordion-button {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    background-color: white;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--sky-light), white);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

/* ========================================
   MARQUEE SECTION
   ======================================== */

.marquee-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
    margin-top: -3rem;
    z-index: 10;
}

.marquee {
    display: flex;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    gap: 3rem;
    padding: 0 3rem;
}

.marquee-item {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    background: linear-gradient(135deg, #b3d9f2 0%, #90caf9 100%);
    padding: 6rem 0;
    color: #333333;
    position: relative;
    overflow: hidden;
}

.contact-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.form-control {
    border-radius: 10px;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.15);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ========================================
   RESPONSIVE - TABLETS (768px and below)
   ======================================== */

@media (max-width: 768px) {
    .logo {
        font-size: 3rem;
    }

    .slogan {
        font-size: 1.2rem;
    }

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

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

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

    .nav-tabs {
        flex-wrap: wrap;
    }

    .nav-tabs .nav-link {
        margin: 0.5rem;
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Functions grid on tablet */
    .functions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hide table on mobile */
    .comparison-table-wrapper {
        display: none;
    }

    /* Show mobile cards */
    .mobile-pricing-cards {
        display: block;
    }

    /* Hide buttons row on mobile */
    .pricing-section > .container > .row.mt-5 {
        display: none;
    }

    /* Mobile card styling */
    .pricing-card-mobile .plan-name {
        color: white !important;
    }

    .pricing-card-mobile .plan-price {
        color: white !important;
    }

    .pricing-card-mobile .plan-yearly {
        color: white !important;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (480px and below)
   ======================================== */

@media (max-width: 480px) {
    .btn-primary-custom {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        width: 100%;
    }

    .pricing-section::after {
        height: 60px;
    }

    .plan-name {
        font-size: 0.95rem;
    }

    .plan-price {
        font-size: 1.3rem;
    }

    .plan-yearly {
        font-size: 0.75rem;
    }

    .check-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    /* Functions grid on mobile */
    .functions-grid {
        grid-template-columns: 1fr;
    }
}
