:root {
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --radius-pill: 999px;
    --ink: #ffffff;
    --ink-soft: rgba(255, 255, 255, 0.85);
}

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

html, body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: #3a5a8a;
    overflow: hidden;
    overscroll-behavior: none;
}

.sky-video::-webkit-media-controls,
.sky-video::-webkit-media-controls-panel,
.sky-video::-webkit-media-controls-start-playback-button,
.sky-video::-webkit-media-controls-overlay-play-button,
.sky-video::-webkit-media-controls-play-button {
    display: none !important;
    -webkit-appearance: none;
    appearance: none;
    opacity: 0 !important;
}

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

/* ---------- Sky background ---------- */
.sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100lvh;
    z-index: 0;
    overflow: hidden;
}

.content { position: relative; z-index: 1; }

.sky-video,
.sky-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sky-image { display: none; }

@media (hover: none) and (pointer: coarse) {
    .sky-video { display: none; }
    .sky-image { display: block; }
}

.sky-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 101, 0.40) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(0deg, rgba(0, 0, 60, 0.25) 0%, rgba(0, 0, 0, 0) 40%);
    pointer-events: none;
}

/* ---------- Content ---------- */
.content {
    position: relative;
    height: 100vh;
    height: 100dvh;
    padding: max(var(--space-md), env(safe-area-inset-top)) max(var(--space-md), env(safe-area-inset-right)) max(var(--space-md), env(safe-area-inset-bottom)) max(var(--space-md), env(safe-area-inset-left));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
}

/* ---------- Rainbow pill logo ---------- */
.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-pill {
    width: 266px;
    height: 104px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-pill-text {
    font-family: "Arial Rounded MT Bold", "Arial Rounded MT", "Helvetica Rounded", system-ui, sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 30px;
    color: #fff;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 2;
}

/* ---------- Value props ---------- */
.value-props {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    width: 100%;
    max-width: 1000px;
}

.prop {
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    padding: var(--space-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    box-shadow: 0 8px 30px rgba(0, 0, 60, 0.18);
}

.prop-emoji {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.prop h2 {
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--ink);
}

.prop p {
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--ink-soft);
}

/* ---------- Signup ---------- */
.signup {
    width: 100%;
    max-width: 520px;
}

.signup-pill {
    position: relative;
    border-radius: var(--radius-pill);
    padding: 0.4rem 0.4rem 0.4rem 1.5rem;
    min-height: 3.75rem;
    display: flex;
    align-items: center;
}

.signup-cta {
    flex: 1;
    background: transparent;
    border: 0;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.9rem 0;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    transition: opacity 0.2s ease;
}

.signup-cta:hover { opacity: 0.85; }

.signup-form {
    display: none;
    flex: 1;
    align-items: center;
    gap: 0;
}

.signup-pill[data-state="open"] .signup-cta { display: none; }
.signup-pill[data-state="open"] .signup-form { display: flex; }

.signup-form input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    font-size: 1rem;
    padding: 0.9rem 0.5rem;
    font-family: inherit;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.signup-form input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.signup-form input:-webkit-autofill,
.signup-form input:-webkit-autofill:hover,
.signup-form input:-webkit-autofill:focus,
.signup-form input:-webkit-autofill:active {
    -webkit-text-fill-color: rgba(255, 255, 255, 0.75);
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    box-shadow: 0 0 0 1000px transparent inset;
    transition: background-color 9999s ease-in-out 0s;
    caret-color: #fff;
}

.signup-form button {
    width: 3rem; height: 3rem;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.signup-form button svg {
    width: 1.1rem;
    height: 1.1rem;
}

.signup-form button:hover {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.12);
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .content { gap: var(--space-md); padding: var(--space-md); }
}
