/* ==========================================================================
   CompLex News - Landing Page
   Compact, conversion-focused design
   ========================================================================== */

:root {
    --color-magenta: #E91E63;
    --color-yellow: #FFC107;
    --color-green: #4CAF50;
    --color-turquoise: #00BCD4;
    --color-blue: #1976D2;
    --color-linkedin: #0A66C2;

    --color-text: #1a1a2e;
    --color-text-light: #5a5a6a;
    --color-text-muted: #8a8a9a;
    --color-bg: #ffffff;
    --color-bg-soft: #f8f9fc;
    --color-border: rgba(0, 0, 0, 0.08);

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.1);

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

    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Background Chevrons */
.chevrons-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.chevron {
    position: absolute;
    opacity: 0.04;
    animation: float 20s ease-in-out infinite;
}

.chevron::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.chevron-1 { top: 5%; left: -3%; width: 150px; height: 150px; }
.chevron-1::before { background: var(--color-magenta); }

.chevron-2 { top: 30%; right: -5%; width: 200px; height: 200px; animation-delay: -5s; }
.chevron-2::before { background: var(--color-yellow); }

.chevron-3 { bottom: 25%; left: 2%; width: 180px; height: 180px; animation-delay: -10s; }
.chevron-3::before { background: var(--color-green); }

.chevron-4 { bottom: 5%; right: 5%; width: 140px; height: 140px; animation-delay: -15s; }
.chevron-4::before { background: var(--color-turquoise); }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

/* Main */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2rem;
}

section {
    margin-bottom: 2.5rem;
}

h2 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.25rem;
    color: var(--color-text);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    text-align: center;
    padding: 2rem 0 1rem;
}

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

.logo {
    width: 200px;
    height: auto;
}

.logo-text-main {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    fill: var(--color-text);
}

.logo-text-sub {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    fill: var(--color-magenta);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.875rem;
    background: linear-gradient(135deg, var(--color-text), var(--color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--color-text-light);
    max-width: 480px;
    margin: 0 auto 1rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.badge {
    padding: 0.375rem 0.875rem;
    background: var(--color-bg-soft);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
}

/* ==========================================================================
   Subscribe Boxes (TOP & BOTTOM)
   ========================================================================== */

.subscribe-hero,
.subscribe-final {
    margin-bottom: 2.5rem;
}

.subscribe-box,
.subscribe-box-final {
    background: linear-gradient(135deg,
        rgba(233, 30, 99, 0.04),
        rgba(0, 188, 212, 0.04)
    );
    border: 2px solid var(--color-magenta);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.subscribe-box-final {
    border-color: var(--color-turquoise);
    background: linear-gradient(135deg,
        rgba(0, 188, 212, 0.04),
        rgba(76, 175, 80, 0.04)
    );
}

.subscribe-box h2,
.subscribe-box-final h2 {
    font-size: 1.25rem;
    margin-bottom: 0.375rem;
}

.subscribe-box p,
.subscribe-box-final p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.substack-embed {
    max-width: 400px;
    margin: 0 auto;
}

.substack-embed iframe {
    width: 100%;
    min-height: 150px;
}

/* ==========================================================================
   Why Subscribe
   ========================================================================== */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.benefit-card {
    background: var(--color-bg);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.benefit-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(0, 188, 212, 0.1));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-magenta);
}

.benefit-card h3 {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* ==========================================================================
   What You Get
   ========================================================================== */

.what-you-get {
    background: var(--color-bg-soft);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.content-list {
    list-style: none;
    max-width: 500px;
    margin: 0 auto;
}

.content-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.list-icon {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--color-magenta), var(--color-yellow));
    border-radius: 50%;
}

.content-list strong {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-text);
}

.content-list span {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   Topics
   ========================================================================== */

.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.topic-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border-left: 4px solid currentColor;
    background: var(--color-bg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.topic-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.topic-concurrence { color: var(--color-magenta); }
.topic-fdi { color: var(--color-green); }
.topic-fsr { color: var(--color-turquoise); }

.topic-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--color-text);
}

.topic-card p {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    background: var(--color-bg-soft);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem;
    text-align: center;
}

.footer-content {
    max-width: 400px;
    margin: 0 auto;
}

.footer-linkedin {
    margin-bottom: 1rem;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--color-linkedin);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.linkedin-link:hover {
    background: #004182;
    transform: translateY(-1px);
}

.linkedin-link svg {
    width: 18px;
    height: 18px;
}

.footer-contact {
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--color-blue);
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-contact a:hover {
    color: var(--color-magenta);
}

.copyright {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    section {
        margin-bottom: 2rem;
    }

    .hero {
        padding: 1.5rem 0 0.5rem;
    }

    .logo {
        width: 180px;
    }

    .benefits-grid,
    .topics-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .benefit-card,
    .topic-card {
        padding: 1rem;
    }

    .subscribe-box,
    .subscribe-box-final {
        padding: 1.25rem;
    }

    h2 {
        font-size: 1.25rem;
    }
}

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

    .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.625rem;
    }

    .chevron { display: none; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

a:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
}

::selection {
    background: rgba(233, 30, 99, 0.15);
}
