/* ======================= DESIGN SYSTEM & VARIABLES ======================= */
:root {
    --bg-gradient-start: #0a0a1a;
    --bg-gradient-mid: #0f1629;
    --bg-gradient-end: #0a0a1a;

    --text-primary: #ffffff;
    --text-secondary: #8b9dc3;
    --text-muted: #5a6a8a;

    --accent-cyan: #00d4ff;
    --accent-blue: #0066ff;
    --accent-purple: #7c3aed;
    --accent-orange: #ff6b35;
    --accent-pink: #ff0080;

    --card-bg: rgba(15, 22, 41, 0.8);
    --card-border: rgba(0, 212, 255, 0.15);
    --card-glow: rgba(0, 212, 255, 0.1);

    --form-bg: rgba(10, 15, 30, 0.9);
    --form-border: #0099cc;
    --input-bg: rgba(20, 30, 50, 0.8);
    --input-border: rgba(100, 120, 160, 0.3);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ======================= RESET & BASE ======================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ======================= PARTICLES BACKGROUND ======================= */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

/* ======================= LANGUAGE TOGGLE ======================= */
.lang-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    background: rgba(15, 22, 41, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.85rem;
    color: var(--accent-cyan);
    font-size: 1.5rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-toggle:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

/* ======================= MAIN CONTAINER ======================= */
.landing-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3.5rem;
}

/* ======================= HEADER SECTION ======================= */
.header-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
}

.header-content {
    max-width: 900px;
}

.main-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 50%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

.header-image {
    flex-shrink: 0;
    position: relative;
}

.brain-image {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.5));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ======================= SECTION TITLES ======================= */
.section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

/* ======================= THREE-STEP PROCESS ======================= */
.process-section {
    margin-bottom: 1.5rem;
}

.steps-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    flex: 1;
    min-width: 200px;
    flex: 1;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 212, 255, 0.3);
}

.step-card:hover::before {
    opacity: 1;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.step-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0.15;
}

.upload-icon {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 102, 255, 0.2));
    color: var(--accent-cyan);
}

.upload-icon::before {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
}

.ai-icon {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(255, 0, 128, 0.2));
    color: var(--accent-purple);
}

.ai-icon::before {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
}

.linkedin-icon {
    background: linear-gradient(135deg, rgba(0, 119, 181, 0.2), rgba(0, 212, 255, 0.2));
    color: #0077b5;
}

.linkedin-icon::before {
    background: linear-gradient(135deg, #0077b5, var(--accent-cyan));
}

.step-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-arrow {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ======================= MAIN CONTENT GRID ======================= */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

/* ======================= BENEFITS SECTION ======================= */
.benefits-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
}

.benefits-section .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    flex: 1;
    justify-content: space-between;
}

.benefit-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.rocket-icon {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 0, 128, 0.15));
    color: var(--accent-orange);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.clock-icon {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 102, 255, 0.15));
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.personalized-icon {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(0, 212, 255, 0.15));
    color: var(--accent-purple);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.ai-glow-icon {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.15));
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.target-icon {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.15), rgba(255, 107, 53, 0.15));
    color: var(--accent-pink);
    border: 1px solid rgba(255, 0, 128, 0.3);
}

.benefit-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.benefit-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ======================= FORM SECTION ======================= */
.form-section {
    background: var(--form-bg);
    border: 1px solid rgba(0, 153, 204, 0.4);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(0, 153, 204, 0.05),
        0 0 30px rgba(0, 153, 204, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.form-section::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-xl) + 2px);
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 50%, var(--accent-cyan) 100%);
    z-index: -1;
    opacity: 0.2;
    filter: blur(25px);
}

.form-title {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.required {
    color: var(--accent-pink);
    margin-left: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

input[type="email"],
select {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    height: 48px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

input[type="email"]::placeholder {
    color: var(--text-muted);
}

input[type="email"]:focus,
select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238b9dc3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

select option {
    background: var(--bg-gradient-mid);
    color: var(--text-primary);
}

#post-lang {
    font-size: 1.1rem;
}

/* File Upload Area */
.file-upload-group {
    position: relative;
}

.file-upload-area {
    background: var(--input-bg);
    border: 1px dashed var(--input-border);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.file-upload-area:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.05);
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-icon-wrapper {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.file-upload-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.file-name {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    margin-top: 0.25rem;
}

/* Checkbox */
.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-group-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-cyan);
    cursor: pointer;
}

.form-group-checkbox label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-group-checkbox a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

.form-group-checkbox a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    background: linear-gradient(90deg, var(--accent-cyan) 0%, #00b894 100%);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 2rem;
    height: 48px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:active {
    transform: translateY(0);
}

#form-feedback {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* ======================= FOOTER ======================= */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    text-align: center;
    padding: 0.75rem 1.5rem;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--card-border);
}

.footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.footer a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--accent-blue);
}

/* ======================= POPUP ======================= */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--form-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    width: 90%;
    max-width: 450px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-card);
}

.popup-overlay:not(.hidden) .popup-content {
    transform: scale(1) translateY(0);
}

.popup-icon {
    margin-bottom: 1.5rem;
}

.popup-icon svg {
    color: #50fa7b;
    width: 60px;
    height: 60px;
}

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

.popup-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

.popup-overlay.hidden {
    display: flex !important;
    opacity: 0;
    visibility: hidden;
}

/* ======================= ANIMATIONS ======================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.header-section {
    animation: fadeInUp 0.8s ease-out;
}

.process-section {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.benefits-section {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.form-section {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ======================= RESPONSIVE ======================= */
@media (max-width: 1024px) {
    .landing-container {
        padding-top: 2.5rem;
    }

    .lang-toggle {
        top: 1rem;
        right: 1rem;
    }

    .header-section {
        flex-direction: column;
        text-align: center;
    }

    .header-content {
        max-width: 100%;
    }

    .main-subtitle {
        max-width: 100%;
    }

    .header-image {
        order: -1;
    }

    .brain-image {
        width: 150px;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .benefits-section .section-title {
        text-align: center;
    }

    .benefits-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .benefit-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 0 0 calc(33.333% - 1rem);
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .landing-container {
        padding: 1.5rem 1rem 2rem;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step-card {
        max-width: 100%;
        width: 100%;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        flex: 0 0 100%;
        flex-direction: row;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.75rem;
    }

    .main-subtitle {
        font-size: 1rem;
    }

    .brain-image {
        width: 120px;
    }

    .step-card {
        padding: 1.25rem;
    }

    .form-section {
        padding: 1.5rem;
    }

    .benefits-section {
        padding: 1.5rem;
    }
}