/* ==========================================
   ABSOLUT!GLOBAL - LANDING PAGE CSS
   Premium v4.0 — Full-Viewport · Legibility-First
   ========================================== */

/* CSS Variables */
:root {
    /* Brand Colors */
    --color-primary: #0B2227;
    --color-primary-light: #12353C;
    --color-primary-dark: #071519;
    --color-primary-mid: #0E2A30;
    --color-gold: #E8A96E;
    --color-gold-light: #F4BD92;
    --color-gold-dark: #D4934E;
    --color-gold-muted: rgba(232, 169, 110, 0.15);
    --color-teal: #5E8686;
    --color-teal-light: #7AA3A3;
    --color-white: #ffffff;
    --color-cream: #FAFAF7;
    --color-warm-white: #F7F5F2;

    /* Neutrals */
    --color-gray-50: #f8f9fa;
    --color-gray-100: #f1f3f5;
    --color-gray-200: #e2e6ea;
    --color-gray-300: #c8cfd6;
    --color-gray-400: #8b95a2;
    --color-gray-500: #5f6b7a;
    --color-gray-600: #44505e;
    --color-gray-700: #2d3748;
    --color-gray-800: #1a2332;
    --color-gray-900: #0d1420;

    /* Semantic */
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-whatsapp: #25d366;

    /* Typography — Legibility-first sizing */
    --font-display: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --fs-body: clamp(1.05rem, 0.95rem + 0.5vw, 1.2rem);
    --fs-body-lg: clamp(1.125rem, 1rem + 0.6vw, 1.3rem);
    --fs-small: clamp(0.875rem, 0.82rem + 0.25vw, 0.95rem);
    --fs-h1: clamp(2.1rem, 1.6rem + 2.5vw, 3.5rem);
    --fs-h2: clamp(1.7rem, 1.3rem + 2vw, 2.8rem);
    --lh-body: 1.85;
    --lh-heading: 1.2;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.06);
    --shadow-md: 0 4px 12px rgb(0 0 0 / 0.08);
    --shadow-lg: 0 12px 32px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 24px 48px rgb(0 0 0 / 0.12);
    --shadow-2xl: 0 32px 64px rgb(0 0 0 / 0.18);
    --shadow-gold: 0 8px 32px rgba(232, 169, 110, 0.25);
    --shadow-gold-lg: 0 12px 40px rgba(232, 169, 110, 0.35);
    --shadow-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.06);

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.625rem;
    --radius-lg: 0.875rem;
    --radius-xl: 1.125rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.2s var(--ease-out-expo);
    --transition-smooth: 0.4s var(--ease-out-expo);
    --transition-slow: 0.6s var(--ease-out-quint);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    color: var(--color-gray-700);
    background-color: var(--color-cream);
    line-height: var(--lh-body);
    font-size: var(--fs-body);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ==========================================
   LAYOUT
   ========================================== */
.container { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.container-sm { max-width: 640px; margin: 0 auto; }

/* ==========================================
   TYPOGRAPHY UTILITIES
   ========================================== */
.text-gold { color: var(--color-gold); }
.text-gradient-gold {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-white { color: white; }
.text-white-muted { color: rgba(255,255,255,0.7); }
.text-center { text-align: center; }

/* ==========================================
   HERO SECTION — Full viewport
   ========================================== */
.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45) contrast(1.1);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(175deg,
            rgba(11, 34, 39, 0.93) 0%,
            rgba(11, 34, 39, 0.72) 40%,
            rgba(7, 21, 25, 0.9) 100%
        );
}
/* Subtle noise texture */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
}
/* Ambient glow */
.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    left: -15%;
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, rgba(94,134,134,0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 44rem;
    padding: 0;
}

.hero-logo-wrapper { margin-bottom: 2rem; }
.hero-logo { height: 2.5rem; margin: 0 auto; opacity: 0.9; }
@media (min-width: 768px) { .hero-logo { height: 3rem; } }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(232, 169, 110, 0.08);
    border: 1px solid rgba(232, 169, 110, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--color-gold-light);
    margin-bottom: 1.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hero-badge svg { width: 1rem; height: 1rem; opacity: 0.7; }

.hero-title {
    font-family: var(--font-display);
    font-size: var(--fs-h1);
    font-weight: 700;
    color: var(--color-white);
    line-height: var(--lh-heading);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-divider {
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    border-radius: 2px;
    margin: 0 auto 1.5rem;
    opacity: 0.7;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: var(--fs-body-lg);
    color: rgba(255, 255, 255, 0.78);
    max-width: 36rem;
    margin: 0 auto 2.5rem;
    line-height: var(--lh-body);
    font-weight: 400;
}

.hero-cta { margin-bottom: 0.75rem; }
.hero-subcopy {
    font-size: var(--fs-small);
    color: rgba(255,255,255,0.45);
    margin-top: 0.75rem;
    letter-spacing: 0.02em;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: gentleBounce 2.5s ease-in-out infinite;
    color: rgba(255, 255, 255, 0.3);
}

@keyframes gentleBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.3; }
    50% { transform: translateX(-50%) translateY(-8px); opacity: 0.6; }
}

/* ==========================================
   SECTIONS — Full-viewport pages, centered
   ========================================== */
.section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    padding: clamp(3rem, 6vh, 5rem) 0;
}

.section-light {
    background-color: var(--color-cream);
}

.section-dark {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    overflow: hidden;
}
/* Noise + ambient glow for dark sections */
.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}
.section-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 15% 50%, rgba(94, 134, 134, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 85% 50%, rgba(232, 169, 110, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* Section inner — full width centering */
.section > .container {
    width: 100%;
}

.section-header {
    text-align: center;
    margin: 0 auto 2.5rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 700;
    color: var(--color-primary);
    line-height: var(--lh-heading);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}
.section-dark .section-title { color: white; }

.section-divider {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    border-radius: 2px;
    margin: 1rem auto;
    opacity: 0.6;
}

.section-subtitle {
    font-size: var(--fs-body);
    color: var(--color-gray-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--lh-body);
}

/* Body text inside sections — maximum legibility */
.section-body {
    font-size: var(--fs-body-lg);
    line-height: var(--lh-body);
    text-align: center;
}
.section-light .section-body { color: var(--color-gray-600); }
.section-dark .section-body { color: rgba(255,255,255,0.78); }

.section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--color-gold-muted);
    border: 1px solid rgba(232, 169, 110, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--color-gold-dark);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-smooth);
    cursor: pointer;
    border: none;
    text-decoration: none;
    letter-spacing: 0.01em;
}
.btn-lg { padding: 1.1rem 2.5rem; font-size: var(--fs-body); }
.btn-xl { padding: 1.25rem 3rem; font-size: var(--fs-body-lg); }

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);
    color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(232, 169, 110, 0.3), var(--shadow-inner-glow);
    position: relative;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-dark));
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: opacity var(--transition-smooth);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-lg);
}
.btn-primary:hover::after { opacity: 0.5; }

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
    background: #20bd5a;
}

/* CTA Button pulse animation */
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(232, 169, 110, 0.3); }
    50% { box-shadow: 0 4px 32px rgba(232, 169, 110, 0.5); }
}
.hero-cta .btn-primary { animation: ctaPulse 3s ease-in-out infinite; }
.hero-cta .btn-primary:hover { animation: none; }

/* ==========================================
   SALARY CARDS
   ========================================== */
.salary-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}
@media (min-width: 768px) {
    .salary-cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.salary-card {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: 2.25rem 1.75rem;
    text-align: center;
    transition: all var(--transition-smooth);
}
.salary-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(232, 169, 110, 0.25);
    transform: translateY(-4px);
}

.salary-card.featured {
    background: linear-gradient(135deg, rgba(232, 169, 110, 0.12) 0%, rgba(232, 169, 110, 0.06) 100%);
    border-color: rgba(232, 169, 110, 0.3);
    transform: scale(1.04);
}
.salary-card.featured:hover {
    transform: scale(1.04) translateY(-4px);
    border-color: rgba(232, 169, 110, 0.5);
}

.salary-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.salary-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.5rem + 2.5vw, 2.75rem);
    font-weight: 700;
    color: var(--color-gold-light);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.salary-card h3 {
    color: white;
    font-size: var(--fs-body);
    font-weight: 600;
    margin-bottom: 0.375rem;
}
.salary-card p {
    color: rgba(255, 255, 255, 0.55);
    font-size: var(--fs-small);
    line-height: 1.6;
}

/* ==========================================
   PROCESS STEPS
   ========================================== */
.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}
@media (min-width: 640px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-steps { grid-template-columns: repeat(4, 1fr); } }

.process-step {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: 2.25rem 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-100);
    transition: all var(--transition-smooth);
}
.process-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(232, 169, 110, 0.2);
}

.step-number {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold-dark) 100%);
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    box-shadow: var(--shadow-gold);
}

.process-step h3 {
    font-size: var(--fs-body);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
}
.process-step p {
    font-size: var(--fs-small);
    color: var(--color-gray-500);
    line-height: var(--lh-body);
}

/* ==========================================
   CONTENT BLOCKS (used in motivation, realism, etc.)
   ========================================== */
.content-block {
    position: relative;
    z-index: 2;
}

/* Glass highlight boxes on dark sections */
.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 2rem 2.25rem;
    font-size: var(--fs-body-lg);
    line-height: var(--lh-body);
}

/* Highlight card on light sections */
.highlight-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--radius-xl);
    padding: 2rem 2.25rem;
    color: white;
    position: relative;
    overflow: hidden;
    font-size: var(--fs-body-lg);
    line-height: var(--lh-body);
}
.highlight-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(232, 169, 110, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Check items */
.check-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition-fast);
}
.check-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
}
.check-icon {
    color: var(--color-success);
    flex-shrink: 0;
    font-size: 1.1rem;
}
.check-item span, .check-item p { color: rgba(255, 255, 255, 0.9); font-size: var(--fs-body); line-height: 1.6; }

/* Light section check items */
.check-list-light {
    list-style: none;
    padding: 0;
    margin: 0;
}
.check-list-light li {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--color-gray-100);
    color: var(--color-gray-700);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--fs-body);
    line-height: 1.6;
}
.check-list-light li:last-child { border-bottom: none; }

/* ==========================================
   PARALLAX DIVIDERS
   ========================================== */
.parallax-divider {
    position: relative;
    height: 40vh;
    min-height: 240px;
    max-height: 420px;
    overflow: hidden;
}
.parallax-divider img {
    position: absolute;
    inset: -20% 0;
    width: 100%;
    height: 140%;
    object-fit: cover;
    will-change: transform;
}
.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(7, 21, 25, 0.55) 0%,
        rgba(7, 21, 25, 0.25) 40%,
        rgba(7, 21, 25, 0.55) 100%
    );
    pointer-events: none;
}

/* ==========================================
   SECTION CTA (per-screen button)
   ========================================== */
.section-cta {
    text-align: center;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.5);
    padding: 3.5rem 1.5rem 2rem;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 169, 110, 0.2), transparent);
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}
.footer-logo {
    height: 2.25rem;
    margin: 0 auto 1.25rem;
    opacity: 0.7;
}
.footer-text {
    color: rgba(255, 255, 255, 0.45);
    max-width: 28rem;
    margin: 0 auto;
    font-size: var(--fs-small);
    line-height: 1.7;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
    text-align: center;
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.3);
}

/* ==========================================
   WHATSAPP FLOAT BUTTON
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--color-whatsapp);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all var(--transition-fast);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* ==========================================
   ANIMATIONS — Scroll-triggered reveals
   ========================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeInUp 0.7s var(--ease-out-quint) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Reveal on scroll (JS adds .revealed) */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out-quint), transform 0.7s var(--ease-out-quint);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ==========================================
   EBOOK POPUP STYLES
   ========================================== */
.ebook-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.ebook-popup-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.ebook-popup-content {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    max-width: 460px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}
.ebook-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-gray-100);
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--color-gray-500);
    z-index: 10;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}
.ebook-popup-close:hover { background: var(--color-gray-200); color: var(--color-gray-700); }
.ebook-popup-body { padding: 2rem; }
.ebook-popup-cover { text-align: center; margin-bottom: 1.5rem; }
.ebook-popup-cover img { max-width: 140px; margin: 0 auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.ebook-popup-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-success), #16a34a);
    color: var(--color-white);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
}
.ebook-popup-info h3 { font-size: 1.3rem; font-weight: 700; color: var(--color-gray-900); margin-bottom: 0.5rem; }
.ebook-popup-info p { color: var(--color-gray-500); font-size: 0.9rem; margin-bottom: 1.25rem; line-height: 1.6; }
.ebook-popup-form { display: flex; flex-direction: column; gap: 0.625rem; }
.ebook-popup-form input {
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all var(--transition-fast);
    background: var(--color-gray-50);
}
.ebook-popup-form input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px var(--color-gold-muted);
    background: white;
}
.ebook-popup-btn {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: var(--color-primary);
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}
.ebook-popup-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.ebook-popup-privacy { font-size: 0.72rem; color: var(--color-gray-400); text-align: center; margin-top: 0.75rem; }
.ebook-popup-success { padding: 2.5rem; text-align: center; }
.ebook-popup-success .success-icon { font-size: 3rem; margin-bottom: 1rem; }
.ebook-popup-success h3 { font-size: 1.4rem; font-weight: 700; color: var(--color-success); margin-bottom: 0.5rem; }
.ebook-popup-success p { color: var(--color-gray-500); margin-bottom: 1.5rem; }
.ebook-popup-link { background: none; border: none; color: var(--color-gray-500); cursor: pointer; text-decoration: underline; margin-top: 1rem; font-family: var(--font-body); }
.spinner { width: 1.25rem; height: 1.25rem; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================
   RESPONSIVE — Advanced
   ========================================== */

/* Tablet */
@media (max-width: 768px) {
    .section-header { margin-bottom: 2rem; }
    .salary-card.featured { transform: none; order: -1; }
    .salary-card.featured:hover { transform: translateY(-4px); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 640px) {
    .hero { padding: 1.5rem 1.25rem; }
    .hero-content { max-width: 100%; }
    .hero-logo { height: 2.25rem; }
    .hero-badge { font-size: 0.78rem; }
    .hero-trust { flex-direction: column; gap: 0.75rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }

    .section { min-height: auto; padding: clamp(3rem, 8vh, 4.5rem) 0; }
    .salary-cards { gap: 1rem; }
    .process-steps { grid-template-columns: 1fr; gap: 1rem; }

    .glass-card, .highlight-card { padding: 1.5rem 1.25rem; }
    .check-item { padding: 0.85rem 1rem; }

    .btn-lg { padding: 1rem 2rem; width: 100%; justify-content: center; }
}

/* Very small screens — ensure legibility floor */
@media (max-width: 380px) {
    :root {
        --fs-body: 1rem;
        --fs-body-lg: 1.05rem;
        --fs-h1: 1.85rem;
        --fs-h2: 1.55rem;
    }
}

/* Large screens — cap readability width */
@media (min-width: 1200px) {
    .container { max-width: 720px; }
    .hero-content { max-width: 42rem; }
}

/* Respect user motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
