:root {
    /* These colors will be replaced by logo-based colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #60a5fa;
    --background: #ffffff;
    --text: #1f2937;
    --text-light: #6b7280;
    --success: #10b981;
    --error: #ef4444;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --max-width: 32rem;
}

[data-theme="dark"] {
    --background: #0f172a;
    --text: #f3f4f6;
    --text-light: #9ca3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.logo-container {
    margin-bottom: 2.5rem;
}

.logo {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(var(--shadow-sm));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 0.8s ease-out;
}

.tagline {
    font-size: clamp(1rem, 4vw, 1.25rem);
    color: var(--text-light);
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.subscribe-form {
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

.input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 0.875rem 1.25rem;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    background-color: var(--background);
    color: var(--text);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.cta-button:active {
    transform: translateY(0);
}

.arrow-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.2s ease;
}

.cta-button:hover .arrow-icon {
    transform: translateX(4px);
}

.form-message {
    font-size: 0.875rem;
    min-height: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.success {
    color: var(--success);
    opacity: 1;
}

.form-message.error {
    color: var(--error);
    opacity: 1;
}

.social-links {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-light);
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.social-link svg {
    width: 1.5rem;
    height: 1.5rem;
}

.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
}

#themeToggle {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

#themeToggle:hover {
    color: var(--primary);
    transform: rotate(15deg);
}

#themeToggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: radial-gradient(circle at 50% 50%,
            var(--primary) 0%,
            transparent 70%);
    opacity: 0.05;
    filter: blur(80px);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@media (max-width: 640px) {
    .input-group {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }
}