/* CSS Reset & Variable Tokens */
:root {
    --bg-left: #ffffff;
    --bg-right: #139bb0;
    /* Premium Teal/Cyan */
    --bg-right-hover: #0f8294;
    --text-primary: #111827;
    /* Near black */
    --text-secondary: #4b5563;
    /* Cool gray */
    --text-muted: #9ca3af;
    --input-bg: #f9fafb;
    --input-border: #e5e7eb;

    --font-display: 'Space Grotesk', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Smoke Custom Properties */
    --smoke-scale: 3.5;
    --smoke-y: 250%;
    --smoke-blur: 15px;
}

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

body {
    font-family: var(--font-display);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    transform: translate(0, 0) rotate(0deg);
}

/* Page Structure */
.page-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Right Column (Main content & Features) */
.right-section {
    width: 60%;
    height: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered layout within the right column */
    padding: 4.5rem 5.5rem 3.5rem;
    position: relative;
    z-index: 5;
}

.right-content-inner {
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Header & Brand Logo */
.header {
    margin-bottom: clamp(1.5rem, 4vh, 3rem);
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.logo span {
    color: var(--bg-right);
}

/* Hero Content Area */
.hero-container {
    width: 100%;
    margin-bottom: clamp(1.5rem, 4vh, 3rem);
}

/* COMING SOON Balloon Header */
.coming-balloon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centered internally */
    margin-bottom: 1.5rem;
    width: 100%;
}

.sub-header-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 290px;
    /* Aligns with the width of the balloon below */
    margin-bottom: 0.5rem;
}

.sub-header-line .line {
    flex-grow: 1;
    height: 2px;
    background-color: var(--text-primary);
    opacity: 0.35;
}

.sub-title-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.coming-badge-text {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: -1rem;
    margin-right: 0.2em;
    /* visual alignment compensation for letter spacing */
}

.balloon-soon-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    animation: balloon-float-img 2s ease-in-out infinite alternate;
}

@keyframes balloon-float-img {
    0% {
        transform: translateY(0px) rotate(-1.2deg);
    }

    100% {
        transform: translateY(-7px) rotate(1.2deg);
    }
}

.main-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.main-title span {
    color: var(--bg-right);
}

.description-text {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-left: auto;
    margin-right: auto;
}

/* Subscription Form Area */
.subscription-container {
    width: 100%;
    max-width: 500px;
    margin-bottom: 0;
    position: relative;
}

.subscribe-form {
    width: 100%;
}

.input-group {
    display: flex;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 50px;
    padding: 0.35rem 0.35rem 0.35rem 1.5rem;
    transition: var(--transition);
}

.input-group:focus-within {
    border-color: var(--bg-right);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(19, 155, 176, 0.1);
}

.email-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    flex-grow: 1;
    width: 100%;
}

.email-input::placeholder {
    color: #9ca3af;
}

.subscribe-btn {
    background-color: var(--bg-right);
    color: #ffffff;
    border: none;
    outline: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(19, 155, 176, 0.2);
}

.subscribe-btn:hover {
    background-color: var(--bg-right-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(19, 155, 176, 0.3);
}

.btn-arrow {
    transition: transform 0.2s ease;
}

.subscribe-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* Button Loading State */
.subscribe-btn.loading {
    cursor: not-allowed;
    opacity: 0.8;
}

.subscribe-btn.loading span {
    opacity: 0.6;
}

.subscribe-btn.loading .btn-arrow {
    animation: rotate-loading 1s linear infinite;
}

@keyframes rotate-loading {
    100% {
        transform: rotate(360deg);
    }
}

/* Feedback Messages */
.form-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(-8px);
    transition: var(--transition);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    text-align: center;
    pointer-events: none;
    margin-top: 0.75rem;
}

.form-message.active {
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    color: #10b981;
    font-weight: 600;
}

/* Features Highlights Grid (Replacing Timer) */
.features-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    margin-bottom: 4rem;
    border-top: 1px solid #f3f4f6;
    padding-top: 2.5rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-num {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bg-right);
    opacity: 0.8;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.feature-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Footer Section */
.footer {
    width: 100%;
}

.social-links-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    justify-content: center;
}

.stay-in-touch-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-link-item {
    color: var(--text-secondary);
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transition: var(--transition);
}

.social-link-item:hover {
    color: #ffffff;
    background-color: var(--bg-right);
    transform: translateY(-2px);
}

.social-svg-icon {
    width: 16px;
    height: 16px;
}


/* Left Column (Slanted Background cover & Illustration) */
.left-section {
    width: 40%;
    height: 100%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4.5rem 3rem;
    position: relative;
}

.illustration-container {
    width: 100%;
    max-width: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
}

.illustration-img {
    width: 100%;
    height: auto;
    pointer-events: none;
    animation: rocket-fly 3s ease-in-out infinite alternate;
}

@keyframes rocket-fly {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-22px);
    }
}

/* Rocket Smoke Exhaust Effect */
.rocket-smoke {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    /* Synchronized exactly with the rocket's 3s flight animation duration */
    animation: rocket-fly 3s ease-in-out infinite alternate;
}

.smoke-bubble {
    position: absolute;
    border-radius: 50%;
    /* Radial gradient for soft cloud bubble look */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 70%);
    filter: blur(var(--smoke-blur));
    opacity: 0;
}

/* Continuous floating/scaling exhaust puff animation */
@keyframes smoke-puff {
    0% {
        transform: translateY(0px) translateX(0px) scale(0.2);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        /* Pushes smoke straight down vertically and grows very large */
        transform: translateY(var(--smoke-y)) translateX(0px) scale(var(--smoke-scale));
        opacity: 0;
    }
}

/* Different sizes and staggering delay to make it a continuous, dense stream */
.s-1 {
    width: 22%;
    height: 22%;
    left: 30%;
    bottom: 8%;
    animation: smoke-puff 2s infinite linear;
    animation-delay: 0s;
}

.s-2 {
    width: 28%;
    height: 28%;
    left: 33%;
    bottom: 6%;
    animation: smoke-puff 2.4s infinite linear;
    animation-delay: 0.2s;
}

.s-3 {
    width: 20%;
    height: 20%;
    left: 28%;
    bottom: 9%;
    animation: smoke-puff 1.8s infinite linear;
    animation-delay: 0.4s;
}

.s-4 {
    width: 32%;
    height: 32%;
    left: 32%;
    bottom: 5%;
    animation: smoke-puff 2.8s infinite linear;
    animation-delay: 0.6s;
}

.s-5 {
    width: 24%;
    height: 24%;
    left: 35%;
    bottom: 11%;
    animation: smoke-puff 2.2s infinite linear;
    animation-delay: 0.8s;
}

.s-6 {
    width: 26%;
    height: 26%;
    left: 31%;
    bottom: 7%;
    animation: smoke-puff 2.3s infinite linear;
    animation-delay: 1.0s;
}

.s-7 {
    width: 21%;
    height: 21%;
    left: 29%;
    bottom: 9%;
    animation: smoke-puff 1.9s infinite linear;
    animation-delay: 1.2s;
}

.s-8 {
    width: 30%;
    height: 30%;
    left: 33%;
    bottom: 6%;
    animation: smoke-puff 2.6s infinite linear;
    animation-delay: 1.4s;
}

.s-9 {
    width: 23%;
    height: 23%;
    left: 34%;
    bottom: 10%;
    animation: smoke-puff 2.1s infinite linear;
    animation-delay: 1.6s;
}

.s-10 {
    width: 27%;
    height: 27%;
    left: 30%;
    bottom: 8%;
    animation: smoke-puff 2.5s infinite linear;
    animation-delay: 1.8s;
}

.s-11 {
    width: 18%;
    height: 18%;
    left: 27%;
    bottom: 11%;
    animation: smoke-puff 1.7s infinite linear;
    animation-delay: 2.0s;
}

.s-12 {
    width: 29%;
    height: 29%;
    left: 34%;
    bottom: 5%;
    animation: smoke-puff 2.7s infinite linear;
    animation-delay: 2.2s;
}


/* RESPONSIVE MEDIA QUERIES */

/* Small Desktops & Tablets (Landscape) */
@media (max-width: 1200px) {
    .right-section {
        padding: 4rem 4rem 3rem;
    }

    .main-title {
        font-size: 3rem;
    }

    .features-section {
        gap: 1.5rem;
    }
}

/* Tablets (Portrait) */
@media (max-width: 1024px) {
    :root {
        --smoke-scale: 2.2;
        --smoke-y: 220%;
        --smoke-blur: 7px;
    }

    body {
        height: auto;
        overflow-y: auto;
    }

    body::before {
        width: 100vh;
        height: 100vw;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .page-wrapper {
        flex-direction: column;
        /* Stacks illustration on top for mobile/tablet */
        height: auto;
        min-height: 100vh;
        overflow: visible;
        justify-content: center;
    }

    .right-section {
        width: 100%;
        height: auto;
        padding: 2.5rem 3rem;
    }

    .right-content-inner {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .coming-balloon-wrapper {
        align-items: center;
    }

    .header {
        justify-content: center;
        margin-bottom: 2rem;
    }

    .logo {
        font-size: 1.6rem;
    }

    .hero-container {
        width: 100%;
        margin-bottom: 2rem;
    }

    .coming-badge-text {
        font-size: 2.5rem;
        margin-bottom: -0.5rem;
    }

    .balloon-soon-img {
        max-width: 180px;
    }

    .main-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .description-text {
        font-size: 1rem;
    }

    .subscription-container {
        margin-bottom: 2rem;
    }

    .features-section {
        gap: 1.5rem;
        margin-bottom: 2rem;
        padding-top: 1.5rem;
    }

    .left-section {
        width: 100%;
        height: auto;
        min-height: 260px;
        padding: 3rem 2rem 1.5rem;
    }

    .illustration-container {
        max-width: 100px;
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    :root {
        --smoke-scale: 1.4;
        --smoke-y: 180%;
        --smoke-blur: 4px;
    }

    .right-section {
        padding: 2rem 1.5rem;
    }

    .left-section {
        min-height: 180px;
        padding: 2rem 1.5rem 1rem;
    }

    .illustration-container {
        max-width: 70px;
    }

    .header {
        margin-bottom: 1.25rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero-container {
        margin-bottom: 1.25rem;
    }

    .coming-badge-text {
        font-size: 3rem;
        margin-bottom: -0.4rem;
    }

    .balloon-soon-img {
        max-width: 200px;
    }

    .main-title {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .sub-title-text {
        font-size: 1rem;
    }

    .description-text {
        font-size: 0.85rem;
    }

    .subscription-container {
        margin-bottom: 1.25rem;
    }

    .input-group {
        flex-direction: column;
        background-color: transparent;
        border: none;
        padding: 0;
        gap: 0.75rem;
    }

    .email-input {
        background-color: var(--input-bg);
        border: 1px solid var(--input-border);
        border-radius: 50px;
        padding: 1rem 1.5rem;
        font-size: 0.85rem;
    }

    .subscribe-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 0.85rem;
    }

    .features-section {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .social-links-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}