/* ============================================
   AffVision — Professional Affiliate Landing Page
   Clean, serious, corporate design
   ============================================ */

:root {
    --rose-50: #fff1f5;
    --rose-100: #ffe4ed;
    --rose-200: #ffc9db;
    --rose-300: #ffa0bf;
    --rose-400: #ff6b9d;
    --rose-500: #f43f7a;
    --rose-600: #d6245e;
    --lavender-50: #f5f0ff;
    --lavender-100: #ede5ff;
    --lavender-200: #ddd0fc;
    --lavender-300: #c4adf7;
    --lavender-400: #a87ef0;
    --gradient-primary: linear-gradient(135deg, #f43f7a 0%, #a87ef0 100%);
    --gradient-light: linear-gradient(160deg, #fff1f5 0%, #f5f0ff 100%);
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #9ca3af;
    --white: #ffffff;
    --bg: #fafafa;
    --bg-alt: #f9f5fc;
    --border: #e5e7eb;
    --border-rose: #ffc9db;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

a { text-decoration: none; color: inherit; transition: var(--transition); }

img { max-width: 100%; height: auto; display: block; }

/* ============================================
   SCREENS — Flow Control
   ============================================ */
.screen { display: none; }
.screen.active { display: block; }

/* ============================================
   SCREEN 1: PASSWORD GATE
   ============================================ */
.gate-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-light);
    padding: 24px;
}

.gate-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.gate-card .brand-name {
    margin-bottom: 8px;
}

.gate-logo-img {
    max-width: 200px;
    margin: 0 auto 20px;
    display: block;
}

.gate-marquee {
    overflow: hidden;
    margin-bottom: 24px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.gate-marquee-track {
    display: flex;
    width: max-content;
    animation: gate-marquee 18s linear infinite;
}

.gate-marquee-track span {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

@keyframes gate-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.gate-subtitle {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 36px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.gate-card input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    margin-bottom: 16px;
    background: var(--bg);
}

.gate-card input:focus {
    border-color: var(--rose-400);
    box-shadow: 0 0 0 3px rgba(244, 63, 122, 0.1);
    background: var(--white);
}

.gate-contact {
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.gate-contact a {
    color: var(--rose-500);
    font-weight: 600;
}

.gate-contact a:hover { color: var(--rose-600); }

.error-msg {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 12px;
    display: none;
    font-weight: 500;
}

.error-msg.show {
    display: block;
    animation: shake 0.35s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* ============================================
   SCREEN 2: ANIMATED WELCOME
   ============================================ */
.welcome-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 24px;
}

.welcome-content { text-align: center; }

.welcome-title {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    line-height: 1.2;
}

.welcome-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.welcome-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.line-1 { font-size: 2.8rem; font-weight: 400; color: var(--text-secondary); }
.line-2 {
    font-size: 3.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-sub {
    color: var(--text-tertiary);
    font-size: 1.2rem;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 1s, transform 0.8s ease 1s;
}

.welcome-sub.visible {
    opacity: 1;
    transform: translateY(0);
}

.welcome-logo {
    display: block;
    max-width: 140px;
    margin: 32px auto 0;
    opacity: 0;
    transition: opacity 1s ease 1.5s;
}

.welcome-logo.visible { opacity: 1; }

.welcome-loader {
    margin-top: 32px;
    width: 200px;
    height: 2px;
    background: var(--border);
    margin-left: auto;
    margin-right: auto;
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 3s linear;
}

.loader-bar.active { width: 100%; }

/* ============================================
   SCREEN 3: LANGUAGE SELECTION
   ============================================ */
.lang-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-light);
    padding: 24px;
}

.lang-card {
    text-align: center;
    max-width: 440px;
    width: 100%;
}

.lang-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.lang-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.lang-options { display: flex; flex-direction: column; gap: 16px; }

.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.lang-option:hover {
    border-color: var(--rose-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.lang-arrow {
    color: var(--text-tertiary);
    font-size: 1.4rem;
    transition: var(--transition);
}

.lang-option:hover .lang-arrow {
    color: var(--rose-500);
    transform: translateX(4px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-align: center;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Haptic press effect for all interactive elements */
.btn-primary:active,
.btn-outline:active,
.btn-outline-light:active,
.btn-lg:active,
.btn-access:active,
.btn-partner-login:active,
.btn-login:active,
.btn-logout:active,
.lang-btn:active,
.lang-option:active,
.filter-btn:active,
button:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
}

.btn-lg { padding: 16px 44px; font-size: 1rem; }
.btn-full { width: 100%; }

.btn-secondary {
    display: inline-block;
    padding: 14px 36px;
    background: var(--white);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-align: center;
}

.btn-secondary:hover {
    border-color: var(--rose-300);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo-img {
    height: 48px;
    width: auto;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-img {
    display: none;
}

.nav-links { display: flex; gap: 4px; }

.nav-link {
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover { color: var(--rose-500); background: var(--rose-50); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.lang-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    transition: var(--transition);
    font-family: inherit;
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-logout {
    padding: 7px 18px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-logout:hover { border-color: var(--rose-300); color: var(--rose-500); }

.btn-partner-login {
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-partner-login:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-outline {
    display: inline-block;
    padding: 14px 36px;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-align: center;
}

.btn-outline:hover { border-color: var(--rose-400); color: var(--rose-500); }

.hero-section .btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.hero-section .btn-outline:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.btn-outline-light {
    display: inline-block;
    padding: 14px 36px;
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-align: center;
}

.btn-outline-light:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.1); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 12px 24px 20px;
    border-top: 1px solid var(--border);
}

.mobile-menu.active { display: flex; }
.mobile-menu .nav-link { padding: 12px 16px; font-size: 1rem; }

.mobile-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.mobile-lang-row {
    display: flex;
    gap: 8px;
    padding: 8px 16px;
}

.mobile-lang-row .lang-btn {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.mobile-lang-row .lang-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

.mobile-login-link {
    color: var(--rose-500) !important;
    font-weight: 600 !important;
}

/* ============================================
   HERO
   ============================================ */
.hero-section {
    padding: 160px 0 100px;
    background: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(17,24,39,0.7) 0%, rgba(17,24,39,0.85) 100%);
    z-index: 1;
}

.hero-content-centered {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rose-300);
    margin-bottom: 20px;
}

.hero-content-centered h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 28px;
    color: #fff;
}

.hero-content-centered .brand-inline {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    color: rgba(255,255,255,0.7);
    font-size: 1.08rem;
    line-height: 1.85;
    margin-bottom: 40px;
}

.brand-inline {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Content with image (side by side) */
.content-with-image {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: center;
}

.content-with-image.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.content-with-image.reverse .content-text { order: 2; }
.content-with-image.reverse .content-image { order: 1; }

.content-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.content-text p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Longform steps */
.longform-steps {
    max-width: 760px;
    margin: 48px auto 0;
}

.longform-step {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.longform-step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.longform-step-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--rose-400);
    flex-shrink: 0;
    width: 48px;
    padding-top: 2px;
}

.longform-step h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.longform-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Full-width video/image break */
.section-video-break {
    overflow: hidden;
    max-height: 420px;
    background: #000;
}

.section-video-break video,
.section-video-break img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* Commission detail blocks */
.comm-detail {
    max-width: 760px;
    margin: 0 auto 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.comm-detail:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.comm-detail h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.comm-detail-range {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--rose-500);
    margin-bottom: 16px;
}

.comm-detail p:last-child {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.section-intro {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
}

.cta-lead {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 56px;
    font-size: 1rem;
    line-height: 1.7;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    padding: 36px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.step-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: block;
}

.step-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.benefit-card {
    padding: 36px 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.benefit-card:hover { box-shadow: var(--shadow-md); }

.benefit-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Showcase */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.showcase-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Commissions */
.commission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.commission-card {
    padding: 40px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.commission-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.commission-card.featured { border-color: var(--rose-300); box-shadow: var(--shadow-sm); }

.comm-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comm-header {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.comm-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.comm-per {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-bottom: 28px;
}

.comm-list {
    list-style: none;
    text-align: left;
}

.comm-list li {
    padding: 9px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    padding-left: 20px;
    position: relative;
}

.comm-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rose-400);
    transform: translateY(-50%);
}

.comm-list li:last-child { border-bottom: none; }

/* Stats */
.stats-section {
    padding: 72px 0;
    background: var(--text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
}

.stat-label { color: rgba(255,255,255,0.6); font-size: 0.9rem; font-weight: 500; }

/* Support */
.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.support-item {
    padding: 36px 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.support-item h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.support-item p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* CTA */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.cta-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: rgba(255,255,255,0.6);
    padding: 56px 0 0;
}

.footer-minimal { padding: 0; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo .brand-name {
    color: var(--white);
}

.footer-col p { font-size: 0.88rem; line-height: 1.7; }

.footer-col h4 {
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-col a:hover { color: var(--rose-300); }

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}

/* ============================================
   REGISTER PAGE
   ============================================ */
.register-section { padding: 120px 0 60px; }

.register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.register-info h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.register-info > p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.reg-features { display: flex; flex-direction: column; gap: 24px; }

.reg-feature {
    display: flex;
    gap: 18px;
    align-items: start;
}

.reg-feature-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    padding-top: 2px;
}

.reg-feature strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.reg-feature p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.register-form-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
}

.register-form h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 28px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    background: var(--bg);
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--rose-400);
    box-shadow: 0 0 0 3px rgba(244, 63, 122, 0.1);
    background: var(--white);
}

.reg-disclaimer {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-2 .form-group-sm {
    max-width: 100px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 16px;
}

.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.reg-success { text-align: center; padding: 40px 0; }

.success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.reg-success h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.reg-success p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ============================================
   GATE ORBS — animated background blobs
   ============================================ */
.gate-bg, .welcome-bg, .cta-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.gate-orb, .welcome-orb, .cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: orbFloat 15s ease-in-out infinite;
}

.gate-orb-1 { width: 400px; height: 400px; background: var(--rose-300); top: -120px; right: -80px; }
.gate-orb-2 { width: 300px; height: 300px; background: var(--lavender-300); bottom: -100px; left: -60px; animation-delay: -5s; }
.gate-orb-3 { width: 200px; height: 200px; background: var(--rose-400); top: 50%; left: 60%; animation-delay: -10s; }

.welcome-orb-1 { width: 500px; height: 500px; background: var(--rose-200); top: -150px; left: -100px; opacity: 0.4; }
.welcome-orb-2 { width: 400px; height: 400px; background: var(--lavender-200); bottom: -150px; right: -100px; opacity: 0.4; animation-delay: -7s; }

.cta-orb-1 { width: 350px; height: 350px; background: var(--rose-300); top: -100px; right: -50px; opacity: 0.2; }
.cta-orb-2 { width: 250px; height: 250px; background: var(--lavender-300); bottom: -80px; left: -30px; opacity: 0.2; animation-delay: -8s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(25px, -25px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

.gate-wrapper { position: relative; }
.welcome-wrapper { position: relative; }
.cta-section { position: relative; overflow: hidden; }

/* Gate divider */
.gate-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
    color: var(--text-tertiary);
    font-size: 0.82rem;
}

.gate-divider::before, .gate-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.gate-partner-login {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.gate-partner-login a {
    color: var(--rose-500);
    font-weight: 600;
}

.gate-partner-login a:hover { color: var(--rose-600); }

/* Language page logo */
.lang-logo-img {
    max-width: 120px;
    margin: 0 auto 28px;
    display: block;
}

/* Section 3D decorations */
.section-decorated {
    position: relative;
    overflow: hidden;
}

.section-deco {
    position: absolute;
    pointer-events: none;
    width: 140px;
    opacity: 0.12;
    z-index: 0;
    animation: decoFloat 8s ease-in-out infinite;
}

.deco-right {
    right: -20px;
    top: 20%;
}

.deco-left {
    left: -20px;
    top: 15%;
    animation-delay: -3s;
}

@keyframes decoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(4deg); }
}

@media (max-width: 768px) {
    .section-deco { width: 80px; opacity: 0.08; }
}

/* Earn Modal */
.earn-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.earn-modal-overlay.active { display: flex; }

.earn-modal {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    max-width: 440px;
    width: 100%;
    position: relative;
    animation: earnIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

@keyframes earnIn {
    from { opacity:0; transform:scale(0.9) translateY(20px); }
    to { opacity:1; transform:scale(1) translateY(0); }
}

.earn-modal h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}

.earn-modal p {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.earn-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-tertiary);
    cursor: pointer;
}

/* Hero actions */
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================
   MODAL — Partner Login
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover { color: var(--text-primary); }

.modal-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-subtitle {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.modal-card .form-group { margin-bottom: 18px; }

.modal-card .error-msg {
    margin-top: 0;
    margin-bottom: 16px;
}

.modal-footer-text {
    margin-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.modal-footer-text a {
    color: var(--rose-500);
    font-weight: 600;
}

.modal-footer-text a:hover { color: var(--rose-600); }

/* ============================================
   CTA SECTION (enhanced)
   ============================================ */
.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

/* ============================================
   DARK SECTION + VIDEO HERO
   ============================================ */
.section-dark {
    padding: 60px 0;
    background: var(--text-primary);
}

.visual-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 7;
}

.visual-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.visual-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.65) 100%);
    display: flex;
    align-items: flex-end;
    padding: 48px;
}

.visual-hero-overlay h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    max-width: 560px;
    line-height: 1.3;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* 3-column showcase grid */
.showcase-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.showcase-grid-3 .showcase-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
}

.showcase-grid-3 .showcase-item.showcase-tall {
    aspect-ratio: 3 / 4;
}

.showcase-grid-3 .showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.showcase-grid-3 .showcase-item:hover img {
    transform: scale(1.03);
}

/* ============================================
   STAT COUNTER ANIMATION
   ============================================ */
.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-image { max-width: 560px; }
    .commission-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
    .support-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .register-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .btn-partner-login { display: none; }
    .btn-logout { display: none; }
    #screenMain .lang-toggle { display: none; }

    .mobile-menu .nav-link:last-child {
        margin-top: 8px;
        padding-top: 16px;
        border-top: 1px solid var(--border);
    }

    .nav-logo-img { height: 36px; }
    .brand-name { font-size: 1rem; }

    .line-1 { font-size: 1.6rem; }
    .line-2 { font-size: 2.2rem; }
    .welcome-sub { font-size: 1rem; }

    .hero-section { padding: 110px 0 60px; }
    .hero-content-centered h1 { font-size: 1.8rem; }
    .hero-lead { font-size: 0.95rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn-lg { width: 100%; max-width: 320px; text-align: center; }
    .content-with-image,
    .content-with-image.reverse { grid-template-columns: 1fr; gap: 32px; }
    .content-with-image.reverse .content-text { order: 1; }
    .content-with-image.reverse .content-image { order: 2; }
    .longform-step { flex-direction: column; gap: 12px; }
    .longform-step-num { width: auto; }
    .section-video-break { max-height: 220px; }
    .section-video-break video, .section-video-break img { height: 220px; }

    .section { padding: 72px 0; }
    .section-title { font-size: 1.6rem; }

    .steps-grid { grid-template-columns: 1fr; }
    .showcase-grid { grid-template-columns: 1fr; }
    .showcase-grid-3 { grid-template-columns: 1fr; }
    .showcase-grid-3 .showcase-item,
    .showcase-grid-3 .showcase-item.showcase-tall { aspect-ratio: 16 / 9; }
    .visual-hero { aspect-ratio: 16 / 9; }
    .visual-hero-overlay { padding: 24px; }
    .visual-hero-overlay h2 { font-size: 1.3rem; }
    .section-dark { padding: 40px 0; }
    .stats-section .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .stats-section .stat-value { font-size: 2rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }

    .register-form-wrapper { padding: 28px 24px; }
    .register-grid { gap: 32px; }
    .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
    .form-row-2 .form-group-sm { max-width: none; }
    .register-section { padding: 90px 0 40px; }

    .gate-card { padding: 40px 24px; max-width: 100%; }
    .gate-logo-img { max-width: 160px; }

    .cta-actions { flex-direction: column; }
    .cta-actions .btn-lg { width: 100%; max-width: 320px; text-align: center; }

    .marquee-section { padding: 12px 0; }
    .marquee-track-full span { font-size: 0.78rem; }
}

@media (max-width: 480px) {
    .line-1 { font-size: 1.3rem; }
    .line-2 { font-size: 1.7rem; }
    .hero-content-centered h1 { font-size: 1.5rem; }
    .hero-lead { font-size: 0.9rem; }
    .section-title { font-size: 1.4rem; }
    .stats-section .stats-grid { grid-template-columns: 1fr; }
    .cta-section h2 { font-size: 1.5rem; }
    .nav-container { height: 56px; }
    .brand-name { font-size: 0.95rem; }
    .nav-logo-img { height: 32px; }
    .gate-card { padding: 32px 20px; }
    .gate-logo-img { max-width: 130px; }
    .lang-card h2 { font-size: 1.4rem; }
    .lang-logo-img { max-width: 100px; }
}
