*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #151515;
    --text: #ffffff;
    --muted: #9b9b9b;
    --line: #2b2b2b;
    --accent: #3f3f3f;
    --green: #1db954;
}

html {
    scroll-behavior: smooth;
}

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

@keyframes floatSlow {
    0%   { transform: translateY(0) rotate(-7deg); }
    50%  { transform: translateY(-10px) rotate(-7deg); }
    100% { transform: translateY(0) rotate(-7deg); }
}
@keyframes floatSlow2 {
    0%   { transform: translateY(0) rotate(5deg); }
    50%  { transform: translateY(-10px) rotate(5deg); }
    100% { transform: translateY(0) rotate(5deg); }
}

@keyframes spin {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
}

body {
    margin: 0;
    font-family: "Work Sans", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

.intro,
.about-wrapper,
.end {
    max-width: 1300px;
    margin: 0 auto;
}

.hero {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(21,21,21,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 0 3rem;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.logo { 
    width: 2.25rem; height: 2.25rem;
    animation: spin 20s linear infinite;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-links { display: flex; gap: 1.5rem; }

.brand {
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.04em;
}

.nav-button {
    font-weight: 600;
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    color: #c8c8c8;
    text-decoration: none;
    transition: color 0.18s ease;
}
.nav-button:hover { color: var(--text); }

.intro {
    width: 100%;
    background-color: var(--bg);
    padding: 0 3rem;
    display: flex;
    align-items: center;
}

.intro-text {
    width: 44%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.35rem;
    padding-bottom: 4vh;
}

.intro-text > * {
    animation: fadeUp 0.7s ease forwards;
    opacity: 0;
}
.intro-text > *:nth-child(1) { animation-delay: 0.05s; }
.intro-text > *:nth-child(2) { animation-delay: 0.18s; }
.intro-text > *:nth-child(3) { animation-delay: 0.31s; }

.intro-heading {
    font-weight: 600;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    line-height: 1.08;
    color: var(--text);
    margin: 0;
}

.lead {
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    color: var(--muted);
    line-height: 1.6;
    max-width: 36ch;
    margin: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 0.85rem 2rem;
    color: var(--text);
    background: #1a1a1a;
    font-weight: 700;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    font-family: "Work Sans", sans-serif;
    cursor: pointer;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
    text-decoration: none;
    width: fit-content;
    min-width: 200px;
    letter-spacing: 0.01em;
}
.button:hover {
    transform: translateY(-2px);
    background: #222;
    border-color: rgba(255,255,255,0.32);
}
.button:active { transform: translateY(0); }

.hero-app-store-link {
    display: inline-flex;
    width: fit-content;
    transition: transform 140ms ease, opacity 140ms ease;
}

.hero-app-store-link:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.hero-app-store-badge {
    display: block;
    width: min(240px, 72vw);
    height: auto;
}

.showcase {
    position: relative;
    flex: 1;
    min-height: 565px;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.phone-grey {
    position: absolute;
    width: clamp(160px, 20vw, 270px);
    left: 20%;
    top: 13%;
    transform: rotate(-7deg);
    border-radius: 26px;
    box-shadow: 0 24px 50px rgba(0,0,0,0.5);
}
.phone-green {
    position: absolute;
    width: clamp(160px, 20vw, 270px);
    left: 45%;
    top: 8%;
    transform: rotate(5deg);
    border-radius: 26px;
    box-shadow: 0 24px 50px rgba(0,0,0,0.5);
}

.phone-create {
    width: clamp(160px, 20vw, 270px);
    border-radius: 26px;
    box-shadow: 0 24px 50px rgba(0,0,0,0.5);
}

.about {
    width: 100%;
    background-color: black;
}

.about-wrapper {
    width: 100%;
    background-color: black;
    padding: 6rem 3rem;
    display: flex;
    align-items: center;
    gap: 5rem;
}

.showcase2 {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.desc {
    font-weight: 400;
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

.sources {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.source-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--bg);
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.source-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(0,0,0,0.4);
    border-color: var(--accent);
}

.prompt-box {
    background-color: #252525;
    border-radius: 10px;
    padding: 0.85rem;
    min-height: 90px;
    width: 100%;
    height: 100%;
}

.song-box {
    background-color: #252525;
    border-radius: 10px;
    padding: 0.85rem;
    width: 100%;
    min-height: 48px;
    border: none;
    color: var(--muted);
    font-family: "Work Sans", sans-serif;
    font-size: clamp(0.75rem, 1.1vw, 0.88rem);
    display: flex;
    align-items: center;
}

input.song-box {
    height: 48px;
    color: var(--text);
}
input.song-box::placeholder { color: var(--muted); }
input.song-box:focus {
    outline: none;
    background-color: #1e1e1e;
    box-shadow: 0 0 0 1px var(--accent);
}

.taste-container {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.taste-box {
    background-color: #252525;
    border-radius: 10px;
    padding: 0.85rem;
    width: 100%;
    display: flex;
    align-items: center;
}

.source-heading {
    font-weight: 600;
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    color: var(--text);
    margin: 0;
}

.desc2 {
    font-weight: 400;
    font-size: clamp(0.72rem, 1vw, 0.88rem);
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
}

.prompt-text {
    font-weight: 400;
    font-size: clamp(0.72rem, 1vw, 0.88rem);
    color: var(--muted);
}

.end {
    width: 100%;
    background-color: var(--bg);
    padding: 5rem 3rem;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.waitlist {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    width: min(820px, 100%);
    padding: 3.5rem 3rem;
    position: relative;
    align-items: center;
    background-color: black;
    border-radius: 28px;
    border: 1px solid var(--line);
    overflow: hidden;
}
.waitlistForm {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    position: relative;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

/* shared spindle preview page */
.share-preview {
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    text-align: center;
    min-height: 60vh;
}
.share-preview img {
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.share-preview ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 600px;
}
.share-preview li {
    background-color: #252525;
    border-radius: 8px;
    padding: 0.85rem;
    margin: 0.35rem 0;
    color: var(--muted);
    font-size: clamp(0.8rem, 1.1vw, 0.95rem);
}

.logo2 {
    position: absolute;
    width: auto;
    height: 100%;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
    top: 0;
}

.waitlist > *:not(.logo2) { position: relative; z-index: 1; }

.waitlist-heading {
    font-weight: 600;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.1;
    color: var(--text);
    margin: 0;
    text-align: center;
}

.download-copy {
    max-width: 40ch;
    text-align: center;
}

.app-store-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    transition: transform 140ms ease, opacity 140ms ease;
}

.app-store-link:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.app-store-badge {
    display: block;
    width: min(240px, 72vw);
    height: auto;
}

.sign-ups {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.sign-box {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
}

.sign-box .desc {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.check .box {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 5px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.2);
    display: grid;
    place-items: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.check .box::after {
    content: "";
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) scale(0) translate(-1px,-1px);
    opacity: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.check.has-error .desc {
  color: #e53e3e;
}

.check.has-error .box {
  border-color: #e53e3e;
}

.check input:checked ~ .box {
    background: #2a2a2a;
    border-color: rgba(255,255,255,0.5);
}

.check input:checked ~ .box::after {
    transform: rotate(45deg) scale(1) translate(-1px,-1px);
    opacity: 1;
}

.check:hover .box { border-color: rgba(255,255,255,0.5); }

.success-msg {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    padding: 1.5rem 2rem;
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    border-radius: 14px;
    width: 100%;
}

.success-msg .checkmark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a2a1a;
    border: 1.5px solid rgba(29,185,84,0.4);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
}

.success-msg p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}

.success-msg strong {
    color: var(--text);
}

.site-footer {
    width: 100%;
    border-top: 1px solid var(--line);
    padding: 1.75rem 3rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.footer-left { justify-self: start; }
.footer-brand { font-size: 0.88rem; font-weight: 500; color: var(--muted); }

.footer-center { display: flex; gap: 1.35rem; justify-self: center; }

.social-link {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    transition: color 0.18s ease, transform 0.18s ease;
}
.social-link svg { width: 100%; height: 100%; fill: currentColor; }
.social-link:hover { color: rgba(255,255,255,0.85); transform: translateY(-2px); }

.footer-right { display: flex; gap: 1.25rem; justify-self: end; }

.footer-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.18s ease;
}
.footer-link:hover { color: var(--text); }

.field-error {
    font-size: 0.78rem;
    color: #ff6b6b;
    margin-top: 0.2rem;
    display: none;
}
.sign-box.has-error input { box-shadow: 0 0 0 1px #ff6b6b; }
.sign-box.has-error .field-error { display: block; }

@media (max-width: 900px) {
    .hero {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .intro {
        min-height: auto;
        padding: 3rem 1.25rem 2rem;
        flex-direction: column;
        gap: 3rem;
        justify-content: center;
    }

    .intro-text {
        width: 100%;
        max-width: 100%;
        padding-bottom: 0;
        text-align: center;
        align-items: center;
    }

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

    .showcase {
        width: 100%;
        min-height: 280px;
        position: relative;
    }

    .phone-grey {
        width: clamp(130px, 38vw, 200px);
        left: 10%;
        top: 0;
    }

    .phone-green {
        width: clamp(130px, 38vw, 200px);
        left: 52%;
        top: -5%;
    }

    .about-wrapper {
        flex-direction: column;
        padding: 4rem 1.25rem;
        gap: 2.5rem;
    }

    .about-text {
        display: contents;
    }

    .about-text > .intro-heading {
        order: 1;
    }

    .about-text > .desc {
        order: 2;
    }

    .showcase2 {
        width: 100%;
        order: 3;
    }

    .about-text > .sources {
        order: 4;
    }

    .phone-create { width: clamp(160px, 50vw, 240px); }

    .sources {
        grid-template-columns: 1fr;
    }

    .end {
        padding: 3.5rem 1.25rem;
        padding-bottom: 0;
    }

    .waitlist {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }

    .sign-ups {
        flex-direction: column;
        align-items: stretch;
    }

    .sign-box {
        max-width: 100%;
    }

    .site-footer { padding: 1.5rem 1.25rem; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        text-align: center;
    }

    .footer-left,
    .footer-right,
    .footer-center {
        justify-self: center;
    }
}

@media (min-width: 450px) and (max-width: 900px) {
    .intro {
        padding-bottom: 3rem;
    }

    .showcase {
        min-height: 360px;
        overflow: hidden;
    }

    .phone-grey {
        top: 4%;
    }

    .phone-green {
        top: 2%;
    }
}

@media (max-width: 480px) {
    .brand { font-size: 1.4rem; }
    .waitlist-heading { font-size: 1.65rem; }
    .sources { grid-template-columns: 1fr; }
}
