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

:root {
    --primary-color: #b91c1c;
    --primary-dark: #991b1b;
    --primary-light: #dc2626;
    --secondary-color: #ef4444;
    --accent-color: #f87171;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --glow-red: 0 0 5px rgba(185, 28, 28, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Coming Soon Container */
.coming-soon-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
    background: 
        radial-gradient(ellipse 800px 600px at center, rgba(185, 28, 28, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at center, rgba(185, 28, 28, 0.05) 0%, transparent 70%),
        linear-gradient(135deg, #0f0f0f 0%, #0a0a0a 100%);
}

/* Background Animated Shapes */
.bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

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

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    bottom: -250px;
    left: -250px;
    animation-delay: 7s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-dark));
    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(-50px, 50px) scale(0.9);
    }
}

/* Main Content */
.content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
    padding: 0 1rem;
}

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

/* Logo */
.logo-container {
    margin-bottom: 2rem;
    overflow: visible;
    max-width: 100%;
    width: 100%;
}

.logo {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.2;
    margin-bottom: 1rem;
    display: inline-block;
    cursor: pointer;
    padding-bottom: 0.1em;
    white-space: nowrap;
}

/* Individual letter animations */
.letter {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.letter.space {
    background: none;
    -webkit-text-fill-color: unset;
    width: 0.25em;
}

.letter:hover {
    transform: scale(1.2) rotate(-5deg);
    filter: drop-shadow(0 0 3px rgba(185, 28, 28, 0.4));
}

.letter.bounce {
    animation: letterBounce 0.5s ease;
}

@keyframes letterBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-20px) scale(1.1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
    75% {
        transform: translateY(-5px) scale(1.02);
    }
}

.logo-underline {
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-dark) 20%, 
        var(--primary-color) 40%,
        var(--secondary-color) 50%,
        var(--primary-color) 60%, 
        var(--primary-dark) 80%, 
        transparent);
    background-size: 200% 100%;
    margin: 0 auto;
    animation: gradientFlow 3s ease-in-out infinite;
}

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

/* Coming Soon */
.coming-soon {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(90deg, 
        var(--text-primary) 0%, 
        var(--primary-light) 20%,
        var(--primary-color) 40%, 
        var(--secondary-color) 50%, 
        var(--primary-color) 60%,
        var(--primary-light) 80%,
        var(--text-primary) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    animation: textShimmer 4s ease-in-out infinite;
}

/* Slogan */
.slogan {
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: clamp(1.5rem, 4.5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color) 30%, var(--secondary-color) 60%, var(--primary-color) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(185,28,28,0.15), 0 0 40px rgba(185,28,28,0.08);
    letter-spacing: -0.01em;
    transform-origin: center;
    animation: sloganPop 900ms cubic-bezier(.2,.9,.28,1) both;
}

@keyframes sloganPop {
    0% { opacity: 0; transform: translateY(6px) scale(0.98); }
    60% { opacity: 1; transform: translateY(-4px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.sub-slogan {
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    color: var(--text-light);
    opacity: 0.9;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Waitlist Form */
.waitlist-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.waitlist-form .input-group {
    display: flex;
    gap: 0; /* remove the visible gap so the controls touch */
    width: 100%;
    max-width: 520px;
    align-items: center;
    /* allow the group to show a unified focus ring */
}

.waitlist-form input[type="email"] {
    flex: 1 1 auto;
    padding: 0.75rem 1rem;
    /* rounded on the left only so the input and button form a single pill */
    border-radius: 999px 0 0 999px;
    border: 1px solid rgba(255,255,255,0.06);
    border-right: none; /* remove double border between input and button */
    background: rgba(255,255,255,0.02);
    color: var(--text-primary);
    outline: none;
    transition: box-shadow 0.15s ease, transform 0.12s ease;
    min-height: 44px;
}

.waitlist-form input[type="email"]:focus {
    transform: translateY(-1px);
}

/* When any child is focused, show a unified focus ring around the whole group */
.waitlist-form .input-group:focus-within {
    box-shadow: 0 0 0 4px rgba(185,28,28,0.06);
    border-radius: 999px;
}

.waitlist-form .btn {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: 1px solid rgba(255,255,255,0.06);
    border-left: none; /* remove double border between input and button */
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    /* rounded on the right only */
    border-radius: 0 999px 999px 0;
    font-weight: 700;
    cursor: pointer;
    min-width: 120px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.waitlist-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    font-size: 0.95rem;
    color: var(--text-light);
    min-height: 1.2rem;
}

.form-message.success {
    color: #34d399; /* green-400 */
}

.form-message.error {
    color: #fb7185; /* rose-400 */
}

.sr-only {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

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

/* Footer */
.footer {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.story-btn {
    background: none;
    border: 1px solid rgba(185, 28, 28, 0.5);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.story-btn:hover {
    background: rgba(185, 28, 28, 0.1);
    color: var(--text-primary);
    border-color: rgba(185, 28, 28, 0.8);
}

/* Social Links */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(185, 28, 28, 0.5);
    color: var(--text-light);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(185, 28, 28, 0.1);
    color: var(--text-primary);
    border-color: rgba(185, 28, 28, 0.8);
    transform: translateY(-3px);
}

.social-icon {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 750px) {
    .logo {
        font-size: 4rem;
    }
}
@media (max-width: 640px) {
    .coming-soon-container {
        padding: 1.5rem;
    }

    .logo {
        font-size: 3rem;
    }

    .coming-soon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2.25rem;
    }
}

@media (max-width: 360px) {
    .logo {
        font-size: 2rem;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: fadeIn 0.5s ease-in;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid rgba(185, 28, 28, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 60px rgba(185, 28, 28, 0.1);
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-title {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}
