/* Premium Editorial Design — Dark Elevated Theme */
/* Design system: Playfair Display + Inter, dark palette with accent gradients */

:root {
    --bg-primary: #0A0A0F;
    --bg-card: rgba(18, 18, 26, 0.5); /* Glass variant */
    --bg-card-hover: rgba(30, 30, 42, 0.7);
    --bg-elevated: rgba(25, 25, 35, 0.6);
    --glass-blur: blur(16px);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    --text-primary: #E8E6E3;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --accent: #3B82F6;
    --accent-light: #60A5FA;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --gradient-accent: linear-gradient(135deg, #3B82F6, #8B5CF6);
    --gradient-warm: linear-gradient(135deg, #F59E0B, #EF4444);
    --gradient-aurora: linear-gradient(100deg, #3B82F6, #8B5CF6, #EC4899, #3B82F6);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(59, 130, 246, 0.3);
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container-width: 720px;
    --radius: 12px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==== Ambient Background ==== */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    top: -200px;
    right: -100px;
    animation: glowFloat1 15s ease-in-out infinite;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%);
    bottom: 30%;
    left: -150px;
    animation: glowFloat2 18s ease-in-out infinite;
}

.glow-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06), transparent 70%);
    bottom: -100px;
    right: 10%;
    animation: glowFloat3 20s ease-in-out infinite;
}

@keyframes glowFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, 60px); }
}
@keyframes glowFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, -30px); }
}
@keyframes glowFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, -50px); }
}

/* ==== Layout ==== */
.content-container {
    position: relative;
    z-index: 1;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
}

.top-accent {
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    margin-bottom: 3rem;
}

/* ==== Header ==== */
.header-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
    padding: 6px 14px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
}

.header-label svg {
    opacity: 0.8;
}

.article-header {
    margin-bottom: 0;
}

h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: transparent;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #dbeafe, #a5b4fc, #ffffff, #dbeafe);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shineText 8s linear infinite;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

@keyframes shineText {
    to { background-position: 200% center; }
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 0;
    line-height: 1.5;
}

/* ==== Dividers ==== */
.divider-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 2.5rem 0;
    color: var(--text-muted);
}

.divider-ornament span {
    display: block;
    height: 1px;
    width: 60px;
    background: var(--border-subtle);
}

.divider-ornament svg {
    opacity: 0.4;
    flex-shrink: 0;
}

.divider-ornament.small {
    margin: 2.5rem 0;
    gap: 8px;
}

.divider-ornament .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

/* ==== Typography ==== */
h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.lead-paragraph {
    font-size: 1.25rem;
    line-height: 1.7;
}

strong, b {
    font-weight: 600;
    color: #fff;
}

em, i {
    font-style: italic;
    color: var(--accent-light);
}

blockquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 1.5rem 2rem 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.05));
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

blockquote p {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--accent-light);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ==== Glassmorphism Base ==== */
.scene-block, .hook-block, .hook-card, .info-card, .feature-item, .video-promo, .urgency-block, .highlight-block {
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

/* Mouse Tracking Glow Effect */
.info-card::before, .hook-card::before, .scene-block::before, .feature-item::before, .video-promo::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.05),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}

.info-card:hover::before, .hook-card:hover::before, .scene-block:hover::before, .feature-item:hover::before, .video-promo:hover::before {
    opacity: 1;
}

.info-card > *, .hook-card > *, .scene-block > *, .feature-item > *, .video-promo > * {
    position: relative;
    z-index: 1;
}

/* ==== Special Blocks ==== */
.scene-block {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
}

.scene-block p:last-child {
    margin-bottom: 0;
}

.highlight-block {
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: var(--radius);
    text-align: center;
}

.highlight-block .emphasis {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0;
    line-height: 1.4;
}

.highlight-block:not(.dark):not(.accent) {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.highlight-block.dark {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.highlight-block.dark h3 {
    color: #F87171;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.highlight-block.dark p {
    margin-bottom: 0;
}

.highlight-block.accent {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.08));
    border: 1px solid var(--border-accent);
}

.highlight-block.accent .emphasis {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
}

/* ==== Hook Block (Paradox Comparison) ==== */
.hook-block {
    margin: 2.5rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

.hook-header {
    padding: 1.5rem 2rem 0;
    text-align: center;
}

.hook-header h3 {
    font-size: 1.4rem;
    margin: 0;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hook-contrast {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem;
    position: relative;
}

.hook-card {
    flex: 1;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.hook-card-red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.06), rgba(239, 68, 68, 0.02));
    border-color: rgba(239, 68, 68, 0.15);
}

.hook-card-green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.06), rgba(34, 197, 94, 0.02));
    border-color: rgba(34, 197, 94, 0.15);
}

.hook-card-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}

.hook-card-red .hook-card-label {
    color: #F87171;
}

.hook-card-green .hook-card-label {
    color: #4ADE80;
}

.hook-card-salary {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
}

.hook-card-red .hook-card-salary {
    color: #F87171;
}

.hook-card-green .hook-card-salary {
    color: #4ADE80;
}

.hook-card-salary span {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.6;
    font-family: var(--font-body);
}

.hook-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 0;
    color: var(--text-secondary);
}

.hook-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    align-self: center;
    margin: 0 -8px;
    z-index: 2;
}

.hook-punchline {
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04), rgba(139, 92, 246, 0.03));
}

.hook-punchline p {
    margin-bottom: 0;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .hook-contrast {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hook-vs {
        margin: 0 auto;
        align-self: center;
    }

    .hook-card-salary {
        font-size: 1.8rem;
    }
}

/* ==== Info Cards ==== */
.card-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2.5rem 0;
}

.info-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), var(--glass-shadow), inset 0 0 20px rgba(59, 130, 246, 0.05);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--accent-glow);
    color: var(--accent-light);
    margin-top: 2px;
}

.card-content {
    flex: 1;
    min-width: 0;
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.info-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ==== Feature List ==== */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-item:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), var(--glass-shadow);
}

.feature-check {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    color: #22C55E;
    margin-top: 2px;
}

.feature-item p {
    margin-bottom: 0;
    font-size: 1rem;
}

.label-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(34, 197, 94, 0.12);
    color: #22C55E;
    vertical-align: middle;
    margin-left: 4px;
}

/* ==== Video Promo ==== */
.video-promo {
    display: flex;
    gap: 1.25rem;
    padding: 2rem;
    margin: 2.5rem 0;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
}

.video-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #fff;
    animation: videoIconPulse 2.5s infinite ease-in-out;
}

@keyframes videoIconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); }
}

.video-text {
    flex: 1;
}

.video-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.video-text p:last-child {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==== Urgency Block ==== */
.urgency-block {
    text-align: center;
    padding: 2rem;
    margin: 2.5rem 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
}

.urgency-block p {
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* ==== CTA Button ==== */
.cta-container {
    margin-top: 3rem;
    text-align: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gradient-accent);
    background-size: 200% auto;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    padding: 1.25rem 2.5rem;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 4px 15px rgba(59, 130, 246, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    animation: ctaPulse 3s infinite ease-in-out;
    cursor: pointer;
    letter-spacing: 0.04em;
}

.cta-arrow {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button:hover .cta-arrow {
    transform: translateX(6px);
}

.cta-button:hover, .cta-button:focus {
    background-image: var(--gradient-aurora);
    background-position: right center;
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 12px 35px rgba(139, 92, 246, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.25);
    outline: none;
    animation-play-state: paused;
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
}

@keyframes ctaPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3), 0 1px 3px rgba(0,0,0,0.2);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 25px 6px rgba(59, 130, 246, 0.35), 0 2px 6px rgba(0,0,0,0.25);
    }
}

@keyframes ctaShine {
    0% { left: -100%; }
    25% { left: 150%; }
    100% { left: 150%; }
}

.mobile-break {
    display: none;
}

.cta-subtext {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* ==== Footer ==== */
.article-footer {
    padding-bottom: 3rem;
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .content-container {
        padding: 2.5rem 1.25rem 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    blockquote {
        padding: 1.25rem 1.5rem;
    }

    blockquote p {
        font-size: 1.2rem;
    }

    .scene-block,
    .highlight-block,
    .info-card,
    .urgency-block {
        padding: 1.5rem;
    }

    /* Info cards: icon centered above text on mobile */
    .info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .card-icon {
        margin-top: 0;
    }

    .card-content {
        width: 100%;
    }

    .info-card h3 {
        text-align: center;
    }

    .info-card p {
        text-align: left;
    }

    /* Feature items: checkmark centered above text on mobile */
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature-item p {
        text-align: left;
        width: 100%;
    }

    .highlight-block .emphasis,
    .highlight-block.accent .emphasis {
        font-size: 1.25rem;
    }

    /* Video promo: icon centered above text on mobile */
    .video-promo {
        flex-direction: column;
        align-items: center;
        padding: 1.5rem;
    }

    .video-text {
        width: 100%;
    }

    .cta-button {
        display: flex;
        width: 100%;
        padding: 1.25rem 1.5rem;
        font-size: 0.95rem;
    }

    .cta-text {
        text-align: center;
        line-height: 1.3;
    }

    .mobile-break {
        display: block;
    }

    /* Mobile Ambient Shimmer for Cards */
    .info-card::after, .hook-card::after, .video-promo::after, .feature-item::after {
        content: '';
        position: absolute;
        top: 0; left: -100%; right: 0; bottom: 0;
        width: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
        animation: mobileSweep 6s infinite ease-in-out;
        z-index: 0;
        pointer-events: none;
    }

    @keyframes mobileSweep {
        0%, 50% { transform: translateX(-100%); }
        100% { transform: translateX(200%); }
    }

    /* Mobile Tactile Feedback */
    .info-card, .hook-card, .feature-item, .video-promo {
        -webkit-tap-highlight-color: transparent;
    }
    
    .info-card:active, .hook-card:active, .feature-item:active, .video-promo:active, .cta-button:active {
        transform: scale(0.96) !important;
        transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    /* Emphasized Mobile CTA Pulse */
    .cta-button {
        animation: ctaMobilePulse 2.5s infinite ease-in-out !important;
    }

    @keyframes ctaMobilePulse {
        0%, 100% {
            transform: scale(1);
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4), 0 1px 3px rgba(0,0,0,0.2);
        }
        50% {
            transform: scale(1.02);
            box-shadow: 0 0 25px 8px rgba(59, 130, 246, 0.4), 0 2px 6px rgba(0,0,0,0.3);
        }
    }

    .glow-1 { width: 300px; height: 300px; }
    .glow-2 { width: 250px; height: 250px; }
    .glow-3 { width: 200px; height: 200px; }
}

/* ==== Animations respect user preferences ==== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
