/* ==========================================================================
   French Designers Club - Styles
   ========================================================================== */

/* Webfonts */
@font-face {
    font-family: 'Suisse Intl';
    src: url('../assets/fonts/SuisseIntl-Book.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Suisse Intl';
    src: url('../assets/fonts/SuisseIntl-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Variables */
:root {
    --animation-fade-duration: 600ms;
    --animation-start-delay: 1500ms;
    
    --color-black: #000;
    --color-white: #fff;
    --color-card-bg: rgba(0, 0, 0, 0.02);
    --color-avatar-border: rgba(0, 0, 0, 0.06);
    
    --opacity-muted: 0.4;
    --opacity-author: 0.5;
    
    --font-base: 'Suisse Intl', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    
    --font-size-headline: 52px;
    --font-size-body: 14px;
    --font-size-footer: 11px;
    
    --line-height-headline: 56px;
    --line-height-body: 20px;
    
    --letter-spacing-headline: -1.04px;
    
    --gap-page: 48px;
    --gap-hero: 32px;
    --gap-logotype: 12px;
    --gap-card: 12px;
    --gap-card-content: 4px;
    
    --padding-page-x: 24px;
    --padding-page-y: 48px;
    --padding-card: 24px;
    --padding-button-x: 20px;
    
    --container-width: 600px;
    --logo-size: 16px;
    --avatar-size: 36px;
    
    --radius-card: 30px;
    --radius-avatar: 6px;
    --radius-button: 999px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-base);
    font-size: var(--font-size-body);
    color: var(--color-black);
    background-color: var(--color-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--padding-page-y) var(--padding-page-x);
    position: relative;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.93);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInMuted {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.93);
    }
    to {
        opacity: var(--opacity-muted);
        transform: translateY(0) scale(1);
    }
}

@keyframes drawLine {
    from {
        stroke-dashoffset: 6000;
        stroke-opacity: 0.06;
    }
    to {
        stroke-dashoffset: 0;
        stroke-opacity: 0.06;
    }
}

@keyframes shine {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

/* Background Logo */
.bg-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100dvh;
    height: 100dvh;
    pointer-events: none;
    z-index: 0;
}

.lined-logo {
    width: 100%;
    height: 100%;
}

.lined-logo path {
    stroke-dasharray: 6000;
    stroke-dashoffset: 6000;
    stroke-opacity: 0;
    animation: drawLine 8s ease-in-out forwards;
}

/* Container */
.container {
    width: var(--container-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-page);
    position: relative;
    z-index: 1;
}

/* Hero */
.hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-hero);
}

.logotype {
    display: flex;
    align-items: center;
    gap: var(--gap-logotype);
    opacity: 0;
    animation: fadeIn var(--animation-fade-duration) ease-out forwards;
    animation-delay: var(--animation-start-delay);
}

.logo {
    width: var(--logo-size);
    height: var(--logo-size);
    flex-shrink: 0;
}

.logotype-text {
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transform: translateY(0.1em);
}

.headline {
    font-size: var(--font-size-headline);
    font-weight: 400;
    line-height: var(--line-height-headline);
    letter-spacing: var(--letter-spacing-headline);
    text-align: center;
    opacity: 0;
    animation: fadeIn var(--animation-fade-duration) ease-out forwards;
    animation-delay: calc(var(--animation-start-delay) + 200ms);
}

.subtitle {
    white-space: nowrap;
    opacity: 0;
    animation: fadeInMuted var(--animation-fade-duration) ease-out forwards;
    animation-delay: calc(var(--animation-start-delay) + 400ms);
}

/* Card */
.card {
    width: 100%;
    background-color: var(--color-card-bg);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: var(--padding-card);
    border-radius: var(--radius-card);
    display: flex;
    align-items: flex-start;
    gap: var(--gap-card);
    opacity: 0;
    animation: fadeIn var(--animation-fade-duration) ease-out forwards;
    animation-delay: calc(var(--animation-start-delay) + 600ms);
}

.card-avatar {
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: var(--radius-avatar);
    border: 0.5px solid var(--color-avatar-border);
    object-fit: cover;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--gap-card-content);
}

.card-author {
    line-height: var(--line-height-body);
    opacity: var(--opacity-author);
    white-space: nowrap;
}

.card-message {
    line-height: var(--line-height-body);
}

.card-message p + p {
    margin-top: var(--line-height-body);
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 var(--padding-button-x);
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-base);
    font-size: var(--font-size-body);
    border-radius: var(--radius-button);
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    animation: fadeIn var(--animation-fade-duration) ease-out forwards;
    animation-delay: calc(var(--animation-start-delay) + 800ms);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button:hover span {
    background: linear-gradient(90deg, var(--color-white) 0%, var(--color-white) 40%, rgba(255, 255, 255, 0.5) 50%, var(--color-white) 60%, var(--color-white) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 1.5s ease-out infinite;
}

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

/* Footer */
.footer {
    font-size: var(--font-size-footer);
    opacity: 0;
    animation: fadeInMuted var(--animation-fade-duration) ease-out forwards;
    animation-delay: calc(var(--animation-start-delay) + 1000ms);
}

.footer a {
    transition: opacity 0.2s ease;
}

.footer a:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 680px) {
    :root {
        --font-size-headline: 36px;
        --line-height-headline: 40px;
        --letter-spacing-headline: -0.72px;
        --gap-page: 32px;
        --gap-hero: 24px;
    }
    
    .container {
        width: 100%;
    }
    
    .subtitle {
        white-space: normal;
        text-align: center;
    }
    
    .bg-logo {
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-headline: 28px;
        --line-height-headline: 32px;
        --padding-card: 16px;
        --radius-card: 20px;
    }
}
