:root {
    --bg: #F4F0E6;
    --black: #0F0F0F;
    --white: #FFFFFF;
    --primary: #4ADE80;
    --accent1: #F87171;
    --accent2: #60A5FA;
    --accent3: #FBBF24;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    height: -webkit-fill-available;
}

body {
    background-color: var(--bg);
    color: var(--black);
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100%;
    min-height: 100vh;
    min-height: 100svh;
    height: 100svh;
    max-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-image: radial-gradient(var(--black) 1px, transparent 1px);
    background-size: 24px 24px;
}

h1, h2, h3, .brand {
    font-family: 'Syne', sans-serif;
    text-transform: uppercase;
}

/* Marquee */
.marquee-container {
    flex-shrink: 0;
    background: var(--accent1);
    color: var(--black);
    border-bottom: 3px solid var(--black);
    padding: 6px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    z-index: 10;
}

.marquee-content {
    display: flex;
    animation: scroll 15s linear infinite;
}

.marquee-content span {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Navbar */
header {
    flex-shrink: 0;
    background: var(--white);
    border-bottom: 3px solid var(--black);
    padding: 0.75rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

/* Hero */
main {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem 5%;
    overflow: hidden;
}

.card-wrapper {
    position: relative;
    max-width: 660px;
    width: 100%;    
    z-index: 5;
    animation: slideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    background: var(--white);
    border: 4px solid var(--black);
    box-shadow: 10px 10px 0 var(--black);
    padding: 2.5rem 2rem;
    position: relative;
}

h1 {
    font-size: clamp(1.4rem, 3.5vw, 2.25rem);
    line-height: 1.1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

p.subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 1.25rem;
}

.stay-tuned {
    display: inline-block;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent1);
    margin-bottom: 1rem;
}

.form-container {
    width: 100%;
}

.notify-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.6rem;
}

.form-message {
    margin-top: 1rem;
    font-weight: 700;
    font-size: 1rem;
}

.form-message--success {
    color: #166534;
}

.form-message--error {
    color: #991B1B;
}

input,
.notify-form button {
    height: 2.75rem;
    padding: 0 0.85rem;
    font-size: 0.9rem;
    line-height: 1;
    box-sizing: border-box;
}

input {
    flex: 1;
    min-width: 180px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    border: 3px solid var(--black);
    background: var(--bg);
    outline: none;
}

input:focus {
    background: var(--white);
}

.btn-wrap {
    flex-shrink: 0;
    padding: 0 5px 5px 0;
}

button {
    height: 2.75rem;
    padding: 0 1.25rem;
    font-size: 0.85rem;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    background: var(--primary);
    color: var(--black);
    border: 3px solid var(--black);
    box-shadow: 5px 5px 0 var(--black);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-transform: uppercase;
    white-space: nowrap;
}

button:hover {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--black);
}

button:active {
    transform: translate(5px, 5px);
    box-shadow: none;
}

/* Floating Decorations */
.deco {
    position: absolute;
    z-index: 1;
}

.deco-pill {
    top: 12%;
    left: 6%;
    width: 70px;
    height: 28px;
    background: var(--accent2);
    border: 3px solid var(--black);
    border-radius: 50px;
    box-shadow: 4px 4px 0 var(--black);
    animation: float1 6s ease-in-out infinite;
}

.deco-cross {
    bottom: 18%;
    right: 6%;
    width: 72px;
    height: 72px;
    animation: float2 5s ease-in-out infinite;
}

.deco-star {
    top: 20%;
    right: 14%;
    width: 44px;
    height: 44px;
    animation: spin 12s linear infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(-15deg); }
    50% { transform: translateY(-16px) rotate(-5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(10deg); }
    50% { transform: translateY(-20px) rotate(25deg); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Footer */
footer {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    border-top: 3px solid var(--black);
    background: var(--white);
}

footer .footer-tag {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--black);
    opacity: 0.5;
}

footer .credit {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--black);
    opacity: 0.55;
    letter-spacing: 0.02em;
}

footer .credit .heart {
    color: var(--accent1);
    font-style: normal;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 0.55rem 5%;
    }

    .brand {
        font-size: 1.25rem;
    }

    .marquee-container {
        padding: 5px 0;
    }

    .marquee-content span {
        font-size: 0.75rem;
    }

    main {
        padding: 0.6rem 4%;
        align-items: center;
    }

    .card-wrapper {
        max-width: 100%;
    }

    .card {
        padding: 1.1rem 1.25rem;
        box-shadow: 8px 8px 0 var(--black);
    }

    h1 {
        font-size: clamp(1.15rem, 5vw, 1.5rem);
        margin-bottom: 0.5rem;
    }

    p.subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.85rem;
        line-height: 1.4;
    }

    .stay-tuned {
        margin-bottom: 0.65rem;
    }

    .ceo-badge {
        font-size: 0.55rem;
        top: -11px;
        right: 6px;
        padding: 0.2rem 0.5rem;
    }

    .deco {
        display: none;
    }

    footer {
        padding: 0.35rem 5%;
        padding-bottom: max(0.35rem, env(safe-area-inset-bottom));
    }

    footer .footer-tag,
    footer .credit {
        font-size: 0.6rem;
    }
}

@media (max-width: 768px) and (max-height: 740px) {
    .card {
        padding: 0.9rem 1.1rem;
    }

    h1 {
        font-size: 1.05rem;
    }

    p.subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.65rem;
    }

    input,
    .notify-form button {
        height: 2.5rem;
        font-size: 0.85rem;
    }

    button {
        height: 2.5rem;
        padding: 0 1rem;
        font-size: 0.75rem;
    }
}

@media (max-height: 600px) {
    header {
        padding: 0.5rem 5%;
    }

    .brand {
        font-size: 1.25rem;
    }

    .card {
        padding: 1rem 1.25rem;
    }

    h1 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    p.subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .stay-tuned {
        margin-bottom: 0.6rem;
    }
}
