:root {
    --bg: #050816;
    --bg-soft: #0b1020;
    --accent: #4f46e5;
    --accent-soft: rgba(79, 70, 229, 0.12);
    --accent-strong: #6366f1;
    --accent-strong2: #65eaf6;
    --text-main: #f9fafb;
    --text-muted: #b7bdc8;
    --border-subtle: rgba(156, 163, 175, 0.2);
    --error: #ef4444;
    --radius-xl: 18px;
    --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.7);
    --transition-fast: 0.18s ease-out;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111827 0, var(--bg) 52%, #020617 100%);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    flex: 1;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeInDown 0.55s ease-out forwards;
    animation-delay: 0.1s;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.logo-text span {
    color: var(--accent-strong2);
    animation: softPulseColor 12s ease-in-out infinite;
}

main {
    display: grid;
    gap: 28px;
}

.landing {
    border-radius: 26px;
    padding: 32px 32px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.7s ease-out forwards;
    animation-delay: 0.18s;
}

.landing::before {
    content: "";
    position: absolute;
    inset: -120px;
    opacity: 0.18;
    background: radial-gradient(circle at 10% 20%, rgba(94, 234, 212, 0.18) 0, transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(129, 140, 248, 0.22) 0, transparent 60%),
    radial-gradient(circle at 90% 80%, rgba(244, 114, 182, 0.25) 0, transparent 55%);
    z-index: 0;
    pointer-events: none;
}

.landing-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 22px;
}

.landing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: var(--text-muted);
    font-size: 15px;
    width: fit-content;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.3s;
}

.landing-kicker span {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent-strong);
    font-weight: 600;
}

h1 {
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.42s;
}

.landing-highlight {
    background: linear-gradient(90deg, #a855f7, #22d3ee, #a855f7);
    -webkit-background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 10s ease-in-out infinite;
}

.sub {
    color: var(--text-muted);
    max-width: 540px;
    font-size: 16px;
    padding: 24px 24px 24px 0;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.54s;
}

.sub strong {
    color: #e5e7eb;
    font-weight: 600;
}

.landing-grid {
    display: grid;
    gap: 20px;
}

.waitlist-card {
    background: rgba(15, 23, 42, 0.92);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    backdrop-filter: blur(16px);
    max-width: 540px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.66s;
}

.waitlist-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.waitlist-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.waitlist-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.field-wrapper {
    flex: 1 1 190px;
    min-width: 0;
}

.label {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 4px;
    display: block;
}

.input {
    width: 100%;
    padding: 10px 11px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(15, 23, 42, 0.96);
    color: var(--text-main);
    font-size: 16px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.input::placeholder {
    color: #6b7280;
}

.input:focus {
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.7);
    background: #020617;
}

.input-error {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.5) !important;
}

.btn {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #f9fafb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 18px 35px rgba(79, 70, 229, 0.7);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast), opacity var(--transition-fast);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 55px rgba(79, 70, 229, 0.85);
    filter: brightness(1.02);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 16px 30px rgba(79, 70, 229, 0.7);
}

.btn:disabled {
    cursor: default;
}

.tiny-note {
    margin-top: 16px;
    font-size: 14px;
    color: #9ca3af;
}

.tiny-note a {
    color: #e5e7eb;
    text-decoration: none;
}

.tiny-note a:hover {
    text-decoration: underline;
    text-decoration-style: solid;
}

.form-message {
    margin: 8px 0;
    font-size: 15px;
}

.form-message--error {
    color: var(--error);
}

.form-message--success {
    color: #4ade80;
}

.features {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.features-list {
    background: var(--bg-soft);
    border-radius: 18px;
    padding: 24px 24px 22px;
    border: 1px solid rgba(31, 41, 55, 0.9);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.78s;
}

.features-list h2 {
    font-size: 18px;
    margin-bottom: 6px;
}

.features-list p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.feature-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-pill {
    font-size: 15px;
    padding: 12px 24px 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
    animation: pulseDot 2.4s ease-in-out infinite;
}

.mini-section {
    background: var(--bg-soft);
    border-radius: 18px;
    padding: 24px 24px 22px;
    border: 1px solid rgba(31, 41, 55, 0.9);
    font-size: 15px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.9s;
}

.mini-section h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.mini-section h3.mini-small {
    font-size: 16px;
}

.mini-list {
    list-style: none;
    color: var(--text-muted);
    display: grid;
    gap: 4px;
}

.mini-list li::before {
    content: "•";
    color: var(--accent-strong);
    margin-right: 6px;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.badge {
    font-size: 15px;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--text-muted);
}

.badge i {
    margin-right: 4px;
}

footer {
    padding: 10px 16px 28px;
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: 1.1s;
}

footer .highlight {
    background: linear-gradient(90deg, #a389ff, #a7c6ff);
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 500;
    background-size: 200% 200%;
    animation: gradientShift 11s ease-in-out infinite;
}

footer a.highlight {
    border: 0;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px dotted rgba(156, 163, 175, 0.6);
}

footer a:hover {
    color: #e5e7eb;
    border-bottom-style: solid;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

@keyframes softPulseColor {
    0% {
        color: var(--accent-strong2);
    }
    50% {
        color: #fbbf24;
    }
    100% {
        color: var(--accent-strong2);
    }
}

@keyframes pulseDot {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.25);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 640px) {
    header {
        flex-direction: row;
    }

    .page {
        padding-inline: 18px;
    }

    .landing {
        padding-inline: 18px;
        padding-top: 24px;
    }

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

@media (max-width: 512px) {
    .btn {
        padding: 20px;
    }
}