.text-nowrap { white-space: nowrap; }

/* 2. Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
}

.hero-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-left: clamp(40px, 5vw, 100px);
    padding-right: clamp(40px, 5vw, 100px);
    gap: clamp(40px, 4vw, 100px);
}

.hero-content {
    flex: 1;
    max-width: 640px; /* Keep the hero copy tighter on desktop */
    text-align: justify;
    hyphens: auto;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 0.95;
    margin-bottom: 20px;
}

/* === Hero Entrance Animation === */
@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}



.hero-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(13px, 1.1vw, 16px);
    font-weight: 300; /* Increased to 500 for better grounded feel */
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
    animation: heroSlideIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

@keyframes draw-highlight {
    from { transform: rotate(-1.5deg) skewX(-10deg) translateY(5px) scaleX(0); }
    to { transform: rotate(-1.5deg) skewX(-10deg) translateY(5px) scaleX(1); }
}

.text-highlight {
    position: relative;
    display: inline-block;
    padding: 0 4px;
    z-index: 1;
}

.text-highlight::after {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    top: 70%;
    bottom: 15%;
    background-color: #BDFF00; /* Vibrant Lime/Yellow */
    z-index: -1;
    transform: rotate(-1.5deg) skewX(-10deg) translateY(5px);
    transform-origin: left;
    border-radius: 4px;
    pointer-events: none;
    animation: draw-highlight 1.5s ease-in-out forwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    flex: 0 1 auto;
    width: clamp(280px, 45vw, 650px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 68vh;
    object-fit: contain;
    border: none;
    outline: none;
    -webkit-mask-image: linear-gradient(to bottom, black 89%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 89%, transparent 100%);
}



.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.feature-icon {
    margin-bottom: 16px;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
}

.feature-item:hover .feature-icon {
    transform: rotate(8deg) scale(1.1);
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-main);
}

.info-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Responsive */


@media (max-width: 1200px) {
    .hero-content {
        max-width: 540px;
    }
}

/* Tablet Portrait (iPad) - Follow Desktop side-by-side layout but with height auto */
@media (max-width: 1024px) and (orientation: portrait) {
    .hero {
        height: auto;
        min-height: auto;
        padding: 100px 0;
    }
    .hero-image {
        width: clamp(240px, 38vw, 400px);
    }
    .hero-image img {
        max-height: min(480px, 50vh);
    }
}


@media (max-width: 600px), (max-width: 950px) and (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 60px 0;
    }
    .hero-container {
        flex-direction: column;
        gap: 32px;
    }
    .hero-content {
        padding: 0 10px;
        max-width: none; /* Reset max-width to allow full width for stacked layout */
    }

    .hero-content p {
        font-size: 15px;
        margin-bottom: 16px;
    }
    .hero-title {
        font-size: 30px;
        margin-bottom: 18px;
    }
    .hero-image {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 10px;
        box-sizing: border-box;
        justify-content: center;
    }
}

/* Global Hover Disable for Touch */
@media (max-width: 1024px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    .btn:hover, 
    button:hover, 
    a:hover {
        transform: none !important;
        transition: none !important;
    }
}
