@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Montserrat:wght@800&display=swap");

:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #ff3e00;
    --max-width: 600px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.logo {
    width: min(280px, 80%);
    margin-bottom: 20px;
}

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

.title-group {
    text-align: center;
    margin-bottom: 30px;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 12px 0;
    color: var(--text-secondary);
}

.subtitle.highlight {
    color: var(--accent-color);
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    letter-spacing: -0.02em;
}

.signup {
    width: 100%;
    text-align: center;
}

.beehiiv-embed {
    display: block;
    width: 480px;
    max-width: 100%;
    height: 220px;
    margin: 0 auto;
}

.direct-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 15px;
}

.direct-link a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #111;
    margin: 15vh auto;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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

.modal h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.5rem;
}

.modal p {
    margin-bottom: 12px;
}

footer {
    width: 100%;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #1a1a1a;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
}

footer a:hover {
    color: var(--text-primary);
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .logo {
        width: min(220px, 80%);
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .beehiiv-embed {
        max-width: 100%;
    }

    .modal-content {
        margin: 10vh auto;
        padding: 30px 20px;
    }
}
