:root {
    color-scheme: dark;
    --bg: #030712;
    --fg: #f8fafc;
    --muted: #94a3b8;
    --primary: #38bdf8;
    --secondary: #22d3ee;
    --danger: #f87171;
    --card: #0f172a;
    --border: rgba(148, 163, 184, 0.2);
    --shadow: 0 25px 50px rgba(15, 23, 42, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

.section {
    padding: 3rem 0 3.75rem;
    position: relative;
    scroll-margin-top: 72px;
    isolation: isolate;
    transform: translateY(28px);
    opacity: 0.88;
    transition:
        transform 500ms cubic-bezier(0.33, 0.08, 0.15, 1),
        opacity 450ms ease;
}

.section > * {
    position: relative;
    z-index: 1;
}

.section + .section {
    margin-top: -2.25rem;
}

.section:not(:last-of-type)::after {
    content: "";
    position: absolute;
    bottom: -120px;
    left: 50%;
    transform: translate(-50%, 0);
    width: min(1100px, 95vw);
    height: 200px;
    background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.2), transparent 55%),
                radial-gradient(circle at 50% 80%, rgba(124, 58, 237, 0.16), transparent 70%);
    filter: blur(34px);
    opacity: 0.65;
    pointer-events: none;
    transition: transform 0.45s ease, opacity 0.45s ease;
    z-index: 0;
}

.section.is-active:not(:last-of-type)::after {
    transform: translate(-50%, -32px);
    opacity: 0.9;
}

.section.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.section,
.hero {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.hero {
    min-height: 92vh;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.15), transparent 55%),
                radial-gradient(circle at bottom left, rgba(124, 58, 237, 0.15), transparent 60%),
                var(--bg);
}

.shell {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

nav.shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
}

.btn {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--fg);
    background: rgba(56, 189, 248, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn.primary {
    background: var(--primary);
    color: #02121f;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.35);
}

.btn.secondary {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.5);
}

.btn.ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.hero-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: center;
    padding-bottom: 4rem;
}

.copy h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.1;
    margin: 0.5rem 0 1.5rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: var(--secondary);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0;
}

.badges span {
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    color: var(--primary);
}

.note {
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 46ch;
}

.note-highlight {
    color: #e34a4a;
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem;
}

.tiny {
    font-size: 0.85rem;
    color: var(--muted);
}

.hero-panel figure {
    margin: 0;
    background: rgba(15, 23, 42, 0.75);
    border-radius: 24px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.hero-panel img {
    width: 100%;
    border-radius: 14px;
    display: block;
}
.hero-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
}
.hero-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dots .dot.active {
    background: #2563eb;
    transform: scale(1.05);
}

.tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 300;
}

.tour-overlay.is-visible {
    display: flex;
}

.tour-modal {
    position: relative;
    background: #030712;
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
    max-width: min(1200px, 95vw);
    width: 100%;
}

.tour-modal img {
    width: 100%;
    border-radius: 16px;
}

.tour-close {
    position: absolute;
    top: 16px;
    right: 18px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.95);
    color: #f8fafc;
    padding: 6px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.5);
}

.tour-close:hover,
.tour-close:focus-visible {
    background: rgba(31, 41, 55, 0.96);
    border-color: rgba(226, 232, 240, 0.9);
    outline: none;
}

.hero-panel figcaption {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.75rem;
}

.features {
    background: #020817;
}

.features .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.features article {
    padding: 1.5rem;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.showcase {
}

.showcase .dual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.showcase ul {
    padding-left: 1.4rem;
    color: var(--muted);
}

.card {
    background: var(--card);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: var(--shadow);
}

.card .stat {
    font-size: 3rem;
    margin: 0.5rem 0;
    font-weight: 600;
}

.card .alert {
    color: var(--danger);
}

.card .success {
    color: #22c55e;
}

.pricing {
    background: #050b1a;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.price-card {
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 1.75rem;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: var(--shadow);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.price-card.is-clickable {
    cursor: pointer;
}

.price-card.is-clickable:hover,
.price-card.is-clickable:focus-visible,
.price-card.is-hovered {
    border-color: rgba(167, 139, 250, 0.9);
    box-shadow: 0 20px 45px rgba(99, 102, 241, 0.25);
    transform: translateY(-4px);
}

.price-card.is-selected {
    border-color: #a855f7;
    box-shadow: 0 25px 55px rgba(168, 85, 247, 0.35);
    transform: translateY(-6px);
}

.price-card.is-clickable:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 4px;
}

.price-card.coming {
    border-style: dashed;
    opacity: 0.8;
}

.plan-facts {
    list-style: disc;
    margin: 1rem 0 0.5rem 1rem;
    color: var(--muted);
    font-size: 0.95rem;
    padding-left: 1.1rem;
}

.plan-facts li + li {
    margin-top: 0.25rem;
}

.price-card header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.price-card .tier {
    font-weight: 600;
}

.price-card .price {
    font-size: 2rem;
    margin: 0;
}

.price-card .price span {
    font-size: 1rem;
    color: var(--muted);
}

.price-card .soon {
    color: var(--secondary);
}

.forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

form {
    background: rgba(2, 6, 23, 0.75);
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.login-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1.25rem;
}

.login-actions .btn {
    flex: 1 1 45%;
    text-align: center;
}

label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin: 1rem 0 0.4rem;
}

.terms {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: normal;
    text-transform: none;
}

.terms input {
    width: auto;
    margin: 0;
}

.terms a {
    color: var(--primary);
}

input, select {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.8);
    color: var(--fg);
    font-size: 1rem;
}

.tier-hint {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: var(--muted);
    min-height: 1.2rem;
}

.form-status {
    min-height: 1.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.75rem;
}

.form-status.success {
    color: #34d399;
}

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

.alert {
    color: var(--danger);
    font-weight: 600;
}

.waitlist {
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.15), rgba(56, 189, 248, 0.05));
}

.waitlist form {
    max-width: 720px;
    margin: 1.5rem auto 0;
}

.roadmap {
    background: #020712;
}

.footer {
    padding: 2rem 0 3rem;
    background: #01060f;
}

.footer .tiny {
    margin-top: 0.5rem;
}

@media (max-width: 720px) {
    nav.shell {
        flex-direction: column;
        gap: 1rem;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .section {
        padding: 3rem 0 3.5rem;
        scroll-margin-top: 56px;
        transform: translateY(18px);
    }
    .section + .section {
        margin-top: -1.4rem;
    }
}

body.modal-open {
    overflow: hidden;
    scroll-snap-type: none;
}

@media (prefers-reduced-motion: reduce) {
    body {
        scroll-behavior: auto;
        scroll-snap-type: none;
    }
    .section {
        transform: none !important;
        opacity: 1 !important;
    }
}

.terms-link {
    color: var(--primary);
    text-decoration: underline;
}

.terms-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
}

.terms-modal.is-visible {
    display: flex;
}

.terms-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 23, 0.85);
}

.terms-modal__dialog {
    position: relative;
    background: rgba(3, 7, 18, 0.95);
    border-radius: 32px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--shadow);
    width: min(800px, 92vw);
    max-height: 92vh;
    overflow: hidden;
    outline: none;
    justify-content: space-between;
}

.terms-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 0;
    background: rgba(15, 23, 42, 0.8);
    color: var(--fg);
    font-size: 1.5rem;
    cursor: pointer;
}

.terms-modal__scroll {
    max-height: 92vh;
    overflow-y: auto;
    padding: 2.75rem;
}

.terms-modal__content {
    color: var(--fg);
}

.terms-copy h2 {
    margin-top: 0;
    font-size: 1.85rem;
    letter-spacing: 0.02em;
}

.terms-copy p {
    color: var(--muted);
}

.terms-list {
    padding-left: 1.35rem;
    color: var(--fg);
}

.terms-list li + li {
    margin-top: 0.35rem;
}

.terms-signoff {
    margin-top: 1.75rem;
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
