/* Home Page Specific Styles */

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

.hero-new {
    position: relative;
    width: 100%;
    min-height: 100svh;
    background-color: #030303;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center content vertically */
    color: #EEEAE9;
    padding-top: 80px;
    /* Header space */
    padding-bottom: 38vh;
    /* Space for the mockup overlap */
}

.hero-new::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #030303;
    pointer-events: none;
    z-index: 1;
}

/* ─── Top Content ─── */
.hero-top-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1400px;
    padding: 0 5%;
    margin-bottom: 0;
    /* Remove margin, centering handles it */
    z-index: 10;
}

.hero-left {
    flex: 1;
    max-width: 850px;
}

.hero-right {
    flex: 0 1 450px;
    margin-top: 40px;
}

.hero-new-title {
    margin: 0;
    color: #FFFFFF;
    font-family: 'Switzer', sans-serif;
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.underline-thick {
    position: relative;
    display: inline-block;
}

.underline-thick::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    /* Moved lower */
    width: 100%;
    height: 0.12em;
    background-color: #FFFFFF;
}

.hero-new-subtitle {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 1.3vw, 26px);
    font-weight: 200;
    line-height: 1.4;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    letter-spacing: 0.02em;
}

.hero-new-subtitle p {
    margin: 0;
    text-wrap: balance;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================================
   ROTATING TEXT
   =========================================== */

.rotating-text-wrapper {
    display: inline-flex;
    flex-direction: column;
    height: 1.1em;
    overflow: hidden;
    vertical-align: bottom;
    position: relative;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
}

.rotating-text-words {
    display: flex;
    flex-direction: column;
    animation: rotateWords 10s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.rotating-text-words .word {
    height: 1.05em;
    line-height: 1.05em;
    display: block;
    white-space: nowrap;
    color: #2CD6F6;
    margin-bottom: 0.4em;
}

@keyframes rotateWords {
    0%, 15% { transform: translateY(0); }
    25%, 40% { transform: translateY(-20%); }
    50%, 65% { transform: translateY(-40%); }
    75%, 90% { transform: translateY(-60%); }
    100% { transform: translateY(-80%); }
}

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

.hero-mockup-section {
    background-color: #030303;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -38vh;
    padding-bottom: clamp(64px, 8vw, 128px);
    z-index: 20;
}

.hero-mockup-container {
    position: relative;
    width: 90%;
    max-width: 1250px;
    height: 105vh;
    overflow: hidden;
    border-radius: 24px;
    background-color: #161616;
    background-position: center;
    background-size: cover;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

/* ===========================================
   STOK IA CTA
   =========================================== */

.stokia-cta-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 5% 8%;
    box-sizing: border-box;
    gap: 40px;
}

@media (min-width: 900px) {
    .stokia-cta-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }
}

.stokia-cta-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.stokia-cta-logo {
    width: 260px;
    margin-bottom: 24px;
}

.stokia-cta-text {
    color: #EEEAE9;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 300;
    line-height: 1.5;
    text-align: center;
    margin: 0 0 40px 0;
}

.stokia-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.stokia-cta-btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stokia-cta-btn-primary {
    background-color: #2CD6F6;
    color: #000;
    border: 1px solid #2CD6F6;
}

.stokia-cta-btn-primary:hover {
    background-color: #1ebcdb;
    border-color: #1ebcdb;
}

.stokia-cta-btn-outline {
    background-color: transparent;
    color: #2CD6F6;
    border: 1px solid rgba(44, 214, 246, 0.3);
}

.stokia-cta-btn-outline:hover {
    border-color: #2CD6F6;
    background-color: rgba(44, 214, 246, 0.05);
}

.stokia-cta-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
}

.stokia-cta-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: scale(1.1);
}

/* ===========================================
   RESPONSIVE
   =========================================== */

@media (min-width: 900px) {
    .hero-top-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hero-right {
        margin-top: 0;
        margin-left: 40px;
        padding-bottom: 0;
    }

    .title-first-line {
        white-space: nowrap;
    }
}

@media (min-width: 1600px) {
    .hero-top-content {
        width: 95%;
        max-width: 1800px;
        padding: 0;
    }

    .hero-mockup-container {
        width: 95%;
        max-width: 1800px;
    }
}

@media (max-width: 640px) {
    .hero-new {
        padding-top: 140px;
        padding-bottom: 15vh;
    }

    .hero-mockup-section {
        margin-top: -40vh;
    }

    .hero-mockup-container {
        height: auto;
    }

    .hero-top-content {
        align-items: center;
    }

    .hero-new-title {
        font-size: clamp(28px, 7vw, 36px);
        line-height: 1.15;
        text-align: center;
    }

    .rotating-text-wrapper {
        align-items: center;
    }

    .underline-thick::after {
        bottom: -2px;
    }

    .hero-right {
        margin-top: 20px;
    }

    .hero-new-subtitle {
        text-align: center;
    }

    .stokia-cta-content {
        justify-content: flex-start;
        padding-top: 12vh;
        padding-bottom: 10vh;
        gap: 40px;
    }

    .stokia-cta-left, .stokia-cta-right {
        flex: none;
        width: 100%;
    }

    .stokia-cta-image {
        transform: scale(1);
        max-width: 95%;
        margin: 0 auto;
        margin-right: -10px;
    }
}

@media (max-height: 860px) and (min-width: 900px) {
    .hero-new {
        padding-top: clamp(100px, 12vh, 140px);
    }

    .hero-top-content {
        margin-bottom: clamp(40px, 6vh, 60px);
    }

    .hero-new-title {
        font-size: clamp(36px, 4.5vw, 64px);
    }

    .hero-new-subtitle {
        font-size: clamp(16px, 1.4vw, 24px);
        margin-bottom: 20px;
    }

    .hero-mockup-container {
        height: 105vh;
    }
}

/* Responsive specific max-height overrides */
@media (max-width: 900px) and (max-height: 800px) {
    .hero-new {
        min-height: 100vh;
    }
}

/* ===========================================
   OVERRIDES FOR EXTERNAL COMPONENTS
   =========================================== */

/* Override Privacy Section background specifically for the Home Page */
.privacy-section,
.privacy-bg {
    background-color: #030303 !important;
    background-image: none !important;
}

@media (max-height: 760px) and (min-width: 900px) {
    .hero-new {
        padding-top: 90px;
    }

    .hero-top-content {
        margin-bottom: 30px;
    }

    .hero-new-title {
        font-size: clamp(32px, 4vw, 56px);
    }

    .hero-new-subtitle {
        font-size: clamp(16px, 1.3vw, 22px);
        margin-bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-new-title,
    .hero-new-subtitle,
    .hero-mockup-container {
        animation: none !important;
        opacity: 1 !important;
    }
}

.hero-new-subtitle,

.hero-mockup-container {