/* ===================================
   CSS Custom Properties (Design Tokens)
   =================================== */
:root {
    /* Colors - Based on PagineAuto brand */
    --color-primary: #F09E0F;
    --color-primary-light: #FFB84D;
    --color-primary-dark: #D68A00;
    --color-secondary: #0F172B;
    --color-accent: #FF6B35;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #F09E0F 0%, #FFB84D 50%, #FF6B35 100%);
    --gradient-dark: linear-gradient(135deg, #0F172B 0%, #1E293B 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(240, 158, 15, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 48px;
    --font-size-4xl: 64px;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 96px;

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

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(240, 158, 15, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--gradient-dark);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

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

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

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    bottom: -250px;
    right: -250px;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--color-primary-light) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
}

/* ===================================
   Logo Section
   =================================== */
.logo-container {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(240, 158, 15, 0.3));
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
}

/* ===================================
   Content Section
   =================================== */
.content {
    text-align: center;
    max-width: 900px;
}

.main-heading {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.tagline {
    font-size: var(--font-size-large);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

/* ===================================
   Launch Message & Status Badge
   =================================== */
.launch-message {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-3xl);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--font-size-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    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);
    }
}

/* ===================================
   Subscription Section
   =================================== */
.subscription-section {
    width: 100%;
    max-width: 600px;
    text-align: center;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.subscription-heading {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: #ffffff;
}

.subscription-text {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-lg);
}

.subscription-form {
    width: 100%;
}

.form-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.form-group input[type="email"] {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: #ffffff;
    outline: none;
    transition: all var(--transition-base);
}

.form-group input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(240, 158, 15, 0.2);
}

.submit-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    font-family: var(--font-family);
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 20px;
    transition: transform var(--transition-base);
}

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

.form-message {
    min-height: 24px;
    font-size: var(--font-size-small);
    margin-top: var(--spacing-xs);
}

.form-message.success {
    color: #4ade80;
}

.form-message.error {
    color: #f87171;
}

/* ===================================
   Social Section
   =================================== */
.social-section {
    text-align: center;
}

.social-text {
    font-size: var(--font-size-small);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-base);
    text-decoration: none;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* ===================================
   Footer
   =================================== */
.footer {
    text-align: center;
    padding: var(--spacing-md) 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--font-size-small);
}

/* ===================================
   Animations
   =================================== */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-delay-1 {
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeIn 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.fade-in-delay-4 {
    animation: fadeIn 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Mobile (default styles above) */

/* Tablet - 768px and up */
@media (min-width: 768px) {
    :root {
        --font-size-base: 18px;
        --font-size-2xl: 40px;
        --font-size-3xl: 56px;
    }

    .container {
        padding: var(--spacing-lg);
        gap: var(--spacing-2xl);
    }

    .logo {
        max-width: 400px;
    }

    .main-heading {
        font-size: var(--font-size-3xl);
    }

    .tagline {
        font-size: var(--font-size-xl);
    }

    .subscription-section {
        padding: var(--spacing-2xl);
    }
}

/* Desktop - 1024px and up */
@media (min-width: 1024px) {
    :root {
        --font-size-2xl: 48px;
        --font-size-3xl: 64px;
    }

    .container {
        padding: var(--spacing-xl);
    }

    .logo {
        max-width: 500px;
    }

    .main-heading {
        font-size: var(--font-size-4xl);
    }

    .orb-1 {
        width: 600px;
        height: 600px;
    }

    .orb-2 {
        width: 700px;
        height: 700px;
    }

    .orb-3 {
        width: 500px;
        height: 500px;
    }
}

/* Large Desktop - 1440px and up */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* Mobile - Adjust form layout for small screens */
@media (max-width: 480px) {
    .form-group {
        flex-direction: column;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    .main-heading {
        font-size: var(--font-size-xl);
    }

    .logo {
        max-width: 250px;
    }
}