/* =====================================================
   OltreCorsi.it - Coming Soon Landing Page
   Design System based on Oltrematica brand
   ===================================================== */

/* CSS Custom Properties */
:root {
    /* Colors - Oltrematica Palette */
    --color-primary: #003D7C;
    --color-primary-dark: #002a56;
    --color-primary-light: #0056a8;
    --color-accent: #FF6600;
    --color-accent-light: #ff8533;
    --color-accent-dark: #cc5200;
    --color-dark: #20211F;
    --color-dark-soft: #2a2b29;
    --color-text: #333333;
    --color-text-muted: #666666;
    --color-text-light: #999999;
    --color-white: #FFFFFF;
    --color-gray-50: #F8F9FA;
    --color-gray-100: #F0F0F0;
    --color-gray-200: #E5E5E5;
    --color-gray-300: #D4D4D4;

    /* Typography */
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Nunito Sans', sans-serif;
    --font-accent: 'Lato', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(255, 102, 0, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-white);
    background: var(--color-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--color-dark) 0%,
        var(--color-dark-soft) 50%,
        var(--color-primary-dark) 100%
    );
}

.bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    top: -20%;
    right: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--color-accent);
    bottom: -10%;
    left: -5%;
    animation-delay: -5s;
    opacity: 0.25;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--color-primary-light);
    top: 50%;
    left: 30%;
    animation-delay: -10s;
    opacity: 0.2;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: var(--color-accent-light);
    top: 20%;
    left: 10%;
    animation-delay: -15s;
    opacity: 0.15;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(-30px, -20px) scale(1.02);
    }
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
}

/* Header / Logo */
.header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.logo-oltre {
    color: var(--color-white);
}

.logo-corsi {
    color: var(--color-accent);
}

.logo-dot {
    color: var(--color-text-muted);
    font-weight: 500;
}

.logo-subtitle {
    font-family: var(--font-accent);
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--color-text-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: var(--space-sm);
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: var(--space-3xl);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 102, 0, 0.15);
    border: 1px solid rgba(255, 102, 0, 0.3);
    color: var(--color-accent);
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xl);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 10vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
}

.title-line {
    display: block;
}

.title-accent {
    color: var(--color-accent);
    position: relative;
}

.hero-description {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--color-text-light);
    max-width: 540px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
}

.hero-description strong {
    color: var(--color-white);
    font-weight: 600;
}

/* Features Preview */
.features-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--color-text-light);
    transition: var(--transition-base);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    transform: translateY(-2px);
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

/* Newsletter Section */
.newsletter {
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.newsletter-text {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.newsletter-form {
    max-width: 480px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xs);
    transition: var(--transition-base);
}

.form-group:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.form-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-white);
    outline: none;
    min-width: 0;
}

.form-group input::placeholder {
    color: var(--color-text-muted);
}

.btn-submit {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

.btn-submit:hover {
    background: var(--color-accent-light);
    transform: translateX(2px);
}

.btn-email {
    text-decoration: none;
    display: inline-flex;
    padding: var(--space-md) var(--space-2xl);
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: var(--transition-base);
}

.btn-submit:hover .btn-icon {
    transform: translateX(4px);
}

.btn-icon svg {
    width: 100%;
    height: 100%;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: var(--space-md);
}

/* Form Success State */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: var(--radius-lg);
    animation: scaleIn 0.4s var(--transition-bounce);
}

.form-success.show {
    display: flex;
}

.newsletter-form.hidden {
    display: none;
}

.success-icon {
    width: 48px;
    height: 48px;
    color: var(--color-accent);
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.form-success p {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-white);
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: var(--space-3xl);
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.footer-brand {
    margin-bottom: var(--space-lg);
}

.footer-brand > p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.oltrematica-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-base);
}

.oltrematica-link:hover {
    transform: translateY(-2px);
}

.oltrematica-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    transition: var(--transition-base);
}

.oltrematica-link:hover .oltrematica-logo {
    color: var(--color-accent);
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-accent);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Tablet */
@media (max-width: 768px) {
    .main-container {
        padding: var(--space-lg);
    }

    .header {
        margin-bottom: var(--space-2xl);
    }

    .hero {
        margin-bottom: var(--space-2xl);
    }

    .hero-title {
        margin-bottom: var(--space-lg);
    }

    .hero-description {
        margin-bottom: var(--space-xl);
    }

    .features-preview {
        gap: var(--space-md);
    }

    .feature-item {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.8125rem;
    }

    .form-group {
        flex-direction: column;
        padding: var(--space-sm);
        gap: var(--space-sm);
    }

    .form-group input {
        text-align: center;
        padding: var(--space-md);
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: var(--space-md);
    }
}

/* Mobile */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .main-container {
        padding: var(--space-md);
        justify-content: flex-start;
        padding-top: var(--space-3xl);
    }

    .logo {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: 0.6875rem;
        padding: var(--space-xs) var(--space-md);
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 0.9375rem;
    }

    .features-preview {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .newsletter-title {
        font-size: 1.25rem;
    }

    .newsletter-text {
        font-size: 0.9375rem;
    }

    .footer {
        padding-top: var(--space-2xl);
    }

    .shape-1 {
        width: 300px;
        height: 300px;
    }

    .shape-2 {
        width: 200px;
        height: 200px;
    }

    .shape-3,
    .shape-4 {
        display: none;
    }
}

/* Large Screens */
@media (min-width: 1200px) {
    .main-container {
        max-width: 900px;
    }

    .hero-title {
        font-size: 4.5rem;
    }
}

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

    .shape {
        animation: none;
    }

    .badge-dot {
        animation: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --color-text-muted: #888888;
        --color-text-light: #aaaaaa;
    }

    .feature-item,
    .form-group {
        border-width: 2px;
    }
}
