/* --- Variables & Reset --- */
:root {
    --primary-color: #ea0a2a;
    /* PowerStar Red */
    --primary-dark: #ea0a2a;
    --accent-color: #212121;
    /* Dark Grey */

    --bg-black: #FFFFFF;
    /* Changed to White */
    --bg-dark: #F4F4F4;
    /* Changed to Light Grey */
    --bg-card: #FFFFFF;
    /* Changed to White */
    --bg-light: #fff;
    --bg-white: #FFFFFF;

    --text-white: #333333;
    /* Changed to Dark Grey */
    --text-dark: #111111;
    --text-grey: #666666;
    /* Changed to Medium Grey */
    --text-grey-dark: #555555;

    --header-footer-bg: #333e48;
    /* New Variable */

    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.1;
    overflow-x: hidden;
    /* -webkit-font-smoothing: antialiased; */
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    text-transform: uppercase;
    font-weight: 900 !important;
    letter-spacing: -0.5px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-subtitle {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 5px;
    display: block;
}

/* Light Theme Text Overrides */
.light-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.light-section .section-subtitle {
    color: var(--text-dark);
}

.light-section .section-title {
    color: var(--primary-color);
}

.light-section p {
    color: var(--text-grey-dark);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 35px;
    border-radius: 5px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(213, 0, 0, 0.6);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 700;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-submit {
    background-color: #333e48;
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: black;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

/* --- Header --- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--header-footer-bg);
    /* Updated */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    font-style: italic;
    color: white;
    /* Force White */
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: white;
    /* Force White */
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle,
.nav-close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    /* Force White */
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 750px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgb(222 222 222 / 90%) 0%, rgb(255 255 255 / 90%) 50%, rgb(255 255 255 / 68%) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 650px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-style: italic;
    color: #333e48;
}

.hero-subtitle-text {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text {
    font-size: 1.1rem;
    color: #333e48;
    margin-bottom: 30px;
    max-width: 500px;
}

/* Hero Requirements Style */
.hero-requirements {
    margin-top: 10px;
    text-align: left;
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    max-width: 500px;
    backdrop-filter: blur(5px);
}

.req-list-title {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.req-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.req-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #333e48;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.req-list li i {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .hero-requirements {
        margin: 0 auto;
        text-align: left;
    }
}

/* Registration Form (Hero) */
.hero-form-card {
    background-color: white;
    padding: 0;
    border-radius: 24px;
    width: 100%;
    max-width: 550px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.15);
    min-height: 720px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #fdfdfd 0%, #f4f4f4 100%);
    padding: 60px 40px 40px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.form-subtitle {
    display: block;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.form-title {
    color: #1a1a1a;
    font-size: 2.6rem;
    font-weight: 950;
    line-height: 1;
    margin: 0;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -1.5px;
}

.form-title span {
    color: var(--primary-color);
    display: block;
    font-size: 2.2rem;
}

.clientify-form-container {
    padding: 20px 40px 40px;
    position: relative;
    min-height: 500px;
}

.form-skeleton {
    padding: 20px 0;
}

.skeleton-item {
    height: 50px;
    background: #f5f5f5;
    margin-bottom: 15px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.skeleton-item::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.form-loading-placeholder {
    display: none;
}


.form-title {
    color: #333e48;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-top: 150px;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    z-index: 1;
    transition: var(--transition);
}

.form-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 2px solid transparent;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 1);
    font-family: var(--font-main);
    font-weight: 600;
    color: #333;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    background-color: white;
    border-color: #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.form-input:focus+i {
    color: var(--primary-color);
}

/* --- Value Props (Redesigned - Light Cards) --- */
.value-props {
    background-color: var(--bg-white);
    padding: 100px 0;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.value-card {
    background-color: #FFFFFF;
    /* Light Card */
    padding: 0;
    text-align: center;
    transition: var(--transition);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    border-top: 5px solid var(--primary-color);
    border: 1px solid #eee;
}

.value-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(213, 0, 0, 0.2);
}

.value-header {
    background-color: transparent;
    padding: 40px 20px 10px;
}

.value-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    background: rgba(213, 0, 0, 0.1);
    /* Light Red BG */
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
}

.value-body {
    padding: 20px 30px 40px;
}

.value-body h3 {
    color: var(--text-dark);
    /* Dark Text */
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.value-body p {
    color: var(--text-grey);
    /* Grey Text */
    font-size: 1rem;
}

.value-card.red {
    background-color: #FFFFFF;
}

.value-card.red .value-icon {
    color: var(--primary-color);
    background-color: rgba(213, 0, 0, 0.1);
}

/* --- Problems Section --- */
.problems {
    background-color: var(--bg-dark);
    padding-top: 0;
    padding-bottom: 100px;
    position: relative;
}

.diagonal-header {
    background-color: var(--primary-color);
    padding: 40px 0;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
    width: 60%;
    margin-bottom: 60px;
    position: relative;
    top: -30px;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.diagonal-header h2 {
    color: white;
    margin-left: 10%;
    font-size: 2rem;
}

.diagonal-header span {
    font-weight: 500;
}

.section-intro {
    text-align: center;
    margin-bottom: 60px;
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
    /* Dark Text */
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.problem-card {
    background-color: #FFFFFF;
    /* Light Card */
    padding: 40px 30px;
    border-radius: 5px;
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.problem-card:hover {
    transform: translateY(-10px);
    border-bottom-width: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.problem-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border: 2px solid var(--primary-color);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.problem-card:hover .problem-icon {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.problem-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.problem-card p {
    font-size: 1rem;
    color: var(--text-grey);
}

/* --- Products Section (3x3 Grid) --- */
.products {
    background-color: var(--bg-black);
    padding: 100px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns */
    gap: 30px;
}

.product-card {
    background-color: #FFFFFF !important;
    /* Light Card */
    padding: 10px 10px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.product-card:hover {

    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(213, 0, 0, 0.15);
    background-color: #FFFFFF;
}

.product-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    /* Dark Text */
}

.product-card p {
    color: var(--text-grey);
    font-size: 1rem;
}

/* --- Products Carousel --- */
.products-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.2, 1);
    will-change: transform;
    align-items: stretch;
}

.carousel-track .product-card,
.carousel-track .product-card-link {
    flex: 0 0 23.5%;
    /* 5 items visible */
    min-height: 320px;
    text-decoration: none;
    color: inherit;
}

.product-card-link {
    display: block;
}

.product-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: var(--transition);
}

.carousel-btn:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
}

.carousel-btn.prev {
    order: 0;
}

.carousel-btn.next {
    order: 2;
}

/* Responsive slides per view */
@media (max-width: 1200px) {

    .carousel-track .product-card,
    .carousel-track .product-card-link {
        flex: 0 0 23%;
        /* 4 items */
    }
}

@media (max-width: 992px) {

    .carousel-track .product-card,
    .carousel-track .product-card-link {
        flex: 0 0 31%;
        /* 3 items */
    }

    .form-title {

        margin-top: 20px !important;
    }

}

@media (max-width: 768px) {

    .carousel-track .product-card,
    .carousel-track .product-card-link {
        flex: 0 0 47%;
        /* 2 items */
    }
}

@media (max-width: 480px) {

    .carousel-track .product-card,
    .carousel-track .product-card-link {
        flex: 0 0 100%;
        /* 1 item */
    }

    .carousel-btn {
        display: none;
    }
}

/* --- Catalog Section --- */
.catalog-section {
    background-color: var(--bg-light);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.marquee-container {
    background-color: #333e48;
    padding: 15px 0;
    margin-bottom: 60px;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.marquee-content span {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 40px;
    text-transform: uppercase;
    opacity: 0.7;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.catalog-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.catalog-text {
    flex: 1;
}

.catalog-visual {
    flex: 1;
    position: relative;
}

.device-mockup {
    width: 100%;
    background-color: white;
    overflow: hidden;
}

.device-mockup img {
    width: 100%;
    display: block;
}

/* --- Testimonials --- */
.testimonials {
    background-color: var(--bg-white);
    padding: 100px 0;
}

.testimonials .section-title {
    color: var(--primary-color);
}

.testimonials .section-subtitle {
    color: var(--text-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    position: relative;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.quote-icon {
    font-size: 2rem;
    color: #ddd;
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-grey-dark);
    margin-bottom: 20px;
}

.testimonial-author h4 {
    color: var(--primary-color);
    font-size: 1rem;
}

/* --- Requirements --- */
.requirements {
    background-color: var(--bg-dark);
    padding: 100px 0;
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.req-item {
    display: flex;
    gap: 20px;
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    align-items: flex-start;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.req-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.req-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.req-item p {
    color: var(--text-grey);
    font-size: 1rem;
}

/* --- Benefits Section (Arrows) --- */
.benefits {
    background-color: white;
    color: #333;
    padding: 100px 0;
}

.benefits .section-title {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefits-arrows {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.arrow-card {
    background-color: #333e48;
    /* Use Header/Footer Color for Dark Cards */
    color: white;
    width: 380px;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%, 15% 50%);
    margin-left: -30px;
    transition: var(--transition);
}

.arrow-card:first-child {
    margin-left: 0;
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
}

.arrow-card:last-child {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 15% 50%);
}

.arrow-card.red {
    background-color: var(--primary-color);
}

.arrow-card:hover {
    transform: scale(1.05);
    z-index: 5;
}

.arrow-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.arrow-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.arrow-card p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-grey);
    text-decoration: none;
}

.scroll-link p {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.scroll-link i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* --- CTA Banner --- */
.cta-banner {
    background-color: var(--primary-color);
    padding: 60px 0;
    color: white;
}

.cta-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
}

.cta-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-action .btn-outline-white {
    border: 2px solid white;
    color: white;
    background: transparent;
    padding: 15px 40px;
    font-weight: 800;
}

.cta-action .btn-outline-white:hover {
    background-color: white;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .cta-flex {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cta-text h2 {
        font-size: 1.5rem;
    }

    .cta-text p {
        font-size: 1rem;
    }

    .cta-action {
        width: 100%;
    }

    .cta-action .btn {
        width: 100%;
    }
}

/* --- Final Form Section --- */
.final-form-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1619768228224-42b78917865a?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    padding: 100px 0;
    overflow: hidden;
}

.final-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgb(222 222 222 / 90%) 0%, rgb(255 255 255 / 90%) 50%, rgb(255 255 255 / 68%) 100%);
    z-index: 1;
}

.final-form-section .container {
    position: relative;
    z-index: 2;
}

.final-form-intro {
    font-size: 1.1rem;
    color: var(--text-grey-dark);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
}

.final-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.05);

}


/* --- Footer --- */
.footer {
    background-color: var(--header-footer-bg);
    /* Updated */
    padding: 80px 0 30px;
    border-top: 4px solid var(--primary-color);
    color: #ccc;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-about p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 1rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--header-footer-bg);
        /* Updated */
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.show {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 40px;
    }

    .nav-toggle {
        display: block;
        z-index: 1000;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 140px;
        /* Aumentado para dar aire respecto al header fijo */
        padding-bottom: 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        /* Reducido de 50px para juntar más los elementos */
    }

    .hero-content {
        width: 100%;
        margin-bottom: 0;
        /* Eliminado el margen inferior extra */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-form-card {
        width: 100%;
        max-width: 450px;
        min-height: 600px;
    }

    .form-header {
        padding: 40px 20px 20px;
    }

    .form-title {
        font-size: 1.8rem;
    }

    .form-title span {
        font-size: 1.5rem;
    }

    .clientify-form-container {
        padding: 10px 10px 10px;
    }


    .diagonal-header {
        width: 100% !important;
        clip-path: none !important;
        text-align: center;
        padding: 30px 15px;
        top: 0;
        margin: 0 0 30px 0;
        border-radius: 0;
        left: 0;
    }

    .diagonal-header h2 {
        margin-left: 0;
        font-size: 1.8rem;
        width: 100%;
    }

    .req-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .req-item {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .req-item i {
        margin: 0 auto 15px;
        font-size: 2.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .benefits-arrows {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .arrow-card,
    .arrow-card:first-child,
    .arrow-card:last-child {
        width: 100%;
        max-width: 350px;
        margin-left: 0;
        clip-path: none;
        border-radius: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-about {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-socials {
        justify-content: center;
        width: 100%;
    }
}

/* Mobile Optimization & Font Fixes - FINAL */

/* 1. Prevent IOS font inflation */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* 2. Force Montserrat everywhere */
body,
h1,
h2,
h3,
h4,
p,
span,
a,
li,
input,
button {
    font-family: "Montserrat", sans-serif !important;
}

/* 3. Mobile Performance & Typography */
@media (max-width: 768px) {

    /* Disable heavy video */
    .hero-video {
        display: none !important;
    }

    /* Use optimized static background */
    .hero {
        background-image: url("fondo.jpeg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* Force thick typography on mobile */
    h1,
    h2,
    h3,
    h4,
    .hero-title,
    .section-title,
    .form-title,
    .form-title span,
    .highlight {
        font-weight: 900 !important;
        text-rendering: optimizeLegibility;
        text-shadow: 0 0 1px rgba(0, 0, 0, 0.05);
        /* Enhance thickness */
    }

    /* Ensure regular text isn't too thin */
    p,
    li,
    span,
    a {
        font-weight: 500 !important;
    }
}