.scroll-smooth,
body {
    overflow-x: hidden;
}

:root,
.landing-blue-theme {
    /*
       Original Stellar purple palette, kept for quick rollback:
       --landing-primary: #a855f7;
       --landing-primary-soft: #c084fc;
       --landing-primary-pale: #e9d5ff;
       --landing-accent: #a855f7;
       --landing-glow-filter: none;
       --landing-glow-shadow: 0 0 32px rgb(168 85 247 / .45);
       --landing-logo-shadow: 0 10px 28px rgb(168 85 247 / .34);

       Original Stellar glow SVG stops:
       #A855F7, #C084FC, #E9D5FF, #6366F1

       Previous cyan-leaning blue attempt, kept as reference:
       --landing-blue: #2563eb;
       --landing-blue-soft: #60a5fa;
       --landing-blue-pale: #bfdbfe;
       --landing-cyan: #38bdf8;
       SVG stops: #2563EB, #3B82F6, #0EA5E9, #DBEAFE, #93C5FD

       Previous hard-blue glow, kept as reference:
       SVG stops: #DBEAFE, #3B82F6, #1D4ED8
    */
    --landing-blue: #2563eb;
    --landing-blue-soft: #60a5fa;
    --landing-blue-pale: #bfdbfe;
    --landing-blue-ice: #eff6ff;
    --landing-primary: var(--landing-blue);
    --landing-primary-soft: var(--landing-blue-soft);
    --landing-primary-pale: var(--landing-blue-pale);
    --landing-accent: var(--landing-blue-soft);
    --landing-glow-filter: none;
    --landing-glow-shadow: 0 0 26px rgb(37 99 235 / .38);
    --landing-logo-shadow: 0 10px 24px rgb(37 99 235 / .28);
}

.bg-purple-500 {
    background-color: var(--landing-primary) !important;
}

.text-purple-500 {
    color: var(--landing-accent) !important;
}

.shadow-purple-500\/30 {
    box-shadow: var(--landing-logo-shadow) !important;
}

.before\:bg-purple-500::before {
    background-color: var(--landing-primary) !important;
}

.from-purple-500 {
    --tw-gradient-from: var(--landing-primary-soft) var(--tw-gradient-from-position) !important;
    --tw-gradient-to: rgb(96 165 250 / 0) var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.to-purple-200 {
    --tw-gradient-to: var(--landing-primary-pale) var(--tw-gradient-to-position) !important;
}

.landing-beta-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: .25rem .85rem;
    border-radius: 9999px;
    border: 1px solid transparent !important;
    color: #dbeafe !important;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.25rem;
    text-decoration: none;
    background:
        linear-gradient(180deg, rgb(15 23 42 / .98), rgb(15 23 42 / .9)) padding-box,
        linear-gradient(90deg, rgb(96 165 250 / .88), rgb(147 197 253 / .62), rgb(37 99 235 / .55)) border-box !important;
    box-shadow:
        0 0 0 1px rgb(59 130 246 / .1),
        0 10px 28px rgb(37 99 235 / .18) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.landing-beta-cta:hover {
    color: #eff6ff !important;
    background:
        linear-gradient(180deg, rgb(15 23 42 / .96), rgb(23 37 84 / .86)) padding-box,
        linear-gradient(90deg, rgb(147 197 253 / .95), rgb(96 165 250 / .72), rgb(37 99 235 / .62)) border-box !important;
}

.landing-beta-glow::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #3b82f6;
    border-radius: 9999px;
    filter: blur(14px);
    opacity: .28;
}

img[src*="stellar-glow"] {
    filter: var(--landing-glow-filter);
}

.landing-logo-ring {
    color: #2563eb;
    display: block;
    filter: drop-shadow(0 10px 18px rgb(37 99 235 / .18));
}

.landing-logo-ring-shadow {
    fill: #2563eb;
}

.landing-auth-links {
    gap: 1.75rem;
}

.landing-theme-toggle {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.875rem;
    height: 1.875rem;
    border: 1px solid rgb(148 163 184 / .22);
    border-radius: 9999px;
    color: #64748b;
    background: rgb(255 255 255 / .58);
    box-shadow: 0 8px 22px rgb(15 23 42 / .045);
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.landing-theme-toggle:hover {
    color: #1e40af;
    border-color: rgb(96 165 250 / .42);
    background: rgb(255 255 255 / .82);
    box-shadow: 0 10px 26px rgb(37 99 235 / .1);
}

.landing-theme-toggle-mobile {
    width: 100%;
    height: auto;
    justify-content: flex-start;
    padding: .375rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #cbd5e1;
    font-size: .875rem;
    font-weight: 500;
}

.landing-theme-toggle-sun,
.landing-theme-toggle-moon {
    position: absolute;
    transition: opacity .15s ease, transform .15s ease;
}

[data-landing-theme="light"] .landing-theme-toggle-sun,
[data-landing-theme="dark"] .landing-theme-toggle-moon {
    opacity: 1;
    transform: scale(1);
}

[data-landing-theme="light"] .landing-theme-toggle-moon,
[data-landing-theme="dark"] .landing-theme-toggle-sun {
    opacity: 0;
    transform: scale(.75);
}

[data-landing-theme="dark"] .landing-logo-ring {
    color: #60a5fa;
    filter: drop-shadow(0 10px 18px rgb(96 165 250 / .16));
}

[data-landing-theme="dark"] .landing-logo-ring-shadow {
    fill: #3b82f6;
}

[data-landing-theme="dark"] .landing-theme-toggle {
    color: #cbd5e1;
    background: rgb(15 23 42 / .34);
    border-color: rgb(148 163 184 / .24);
    box-shadow: none;
}

[data-landing-theme="dark"] .landing-theme-toggle:hover {
    color: #f8fafc;
    border-color: rgb(147 197 253 / .5);
    background: rgb(30 41 59 / .52);
}

[data-landing-theme="light"] {
    background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%) !important;
    color: #0f172a !important;
}

.landing-hero-section {
    position: relative;
    overflow: hidden;
}

[data-landing-theme="light"] .landing-hero-section {
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
}

[data-landing-theme="light"] .landing-hero-section::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -30rem;
    width: min(112rem, 122vw);
    height: 74rem;
    transform: translateX(-50%);
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 100%,
            rgb(29 78 216 / .72) 0%,
            rgb(37 99 235 / .46) 12%,
            rgb(96 165 250 / .18) 30%,
            rgb(191 219 254 / .055) 50%,
            rgb(239 246 255 / 0) 70%);
    filter: blur(30px);
}

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

[data-landing-theme="light"] header a,
[data-landing-theme="light"] header button {
    color: #1e293b;
}

[data-landing-theme="light"] header a:hover,
[data-landing-theme="light"] header button:hover {
    color: #0f172a;
}

[data-landing-theme="light"] header .text-slate-200 {
    color: #0f172a !important;
}

[data-landing-theme="light"] .landing-auth-links .btn-sm {
    color: #0f172a !important;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        conic-gradient(#93c5fd, #cbd5e1 25%, #cbd5e1 75%, #93c5fd 100%) border-box !important;
    box-shadow: 0 8px 22px rgb(15 23 42 / .05);
}

[data-landing-theme="light"] .landing-auth-links .btn-sm span,
[data-landing-theme="light"] .landing-auth-links .btn-sm .text-purple-500 {
    color: #0f172a !important;
}

[data-landing-theme="light"] .landing-auth-links .btn-sm::before {
    background: rgb(255 255 255 / .72) !important;
}

[data-landing-theme="light"] .hamburger svg {
    color: #334155 !important;
}

[data-landing-theme="light"] #mobile-nav ul {
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        conic-gradient(#93c5fd, #cbd5e1 25%, #cbd5e1 75%, #93c5fd 100%) border-box !important;
    box-shadow: 0 18px 46px rgb(15 23 42 / .08);
}

[data-landing-theme="light"] #mobile-nav a,
[data-landing-theme="light"] #mobile-nav button {
    color: #475569 !important;
}

[data-landing-theme="light"] .landing-hero-title {
    background-image: linear-gradient(90deg, rgb(30 41 59 / .72), #0f172a 46%, rgb(30 41 59 / .66)) !important;
}

[data-landing-theme="light"] .landing-hero-copy {
    color: #334155 !important;
}

[data-landing-theme="light"] .landing-beta-cta {
    color: #1e40af !important;
    background:
        linear-gradient(180deg, rgb(255 255 255 / .9), rgb(239 246 255 / .78)) padding-box,
        linear-gradient(90deg, rgb(37 99 235 / .38), rgb(96 165 250 / .58), rgb(147 197 253 / .45)) border-box !important;
    box-shadow: 0 10px 24px rgb(37 99 235 / .1) !important;
}

[data-landing-theme="light"] .landing-beta-glow::before {
    opacity: .16;
}

[data-landing-theme="light"] .landing-hero-shell::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -17rem;
    width: min(58rem, 68vw);
    height: 40rem;
    transform: translateX(-50%);
    pointer-events: none;
    background:
        radial-gradient(ellipse at center,
            rgb(29 78 216 / .62) 0%,
            rgb(37 99 235 / .42) 20%,
            rgb(96 165 250 / .16) 48%,
            rgb(219 234 254 / 0) 74%);
    filter: blur(36px);
    opacity: .96;
}

[data-landing-theme="light"] .landing-hero-shell > * {
    position: relative;
    z-index: 1;
}

[data-landing-theme="light"] .landing-hero-actions > div:first-child a {
    color: #ffffff !important;
    background: linear-gradient(180deg, #111827, #020617) !important;
    box-shadow: 0 14px 30px rgb(15 23 42 / .22);
}

[data-landing-theme="light"] .landing-hero-actions > div:first-child a span {
    color: #ffffff !important;
}

[data-landing-theme="light"] .landing-hero-actions > div:nth-child(2) a {
    color: #0f172a !important;
    background:
        linear-gradient(rgb(255 255 255 / .58), rgb(255 255 255 / .58)) padding-box,
        conic-gradient(rgb(96 165 250 / .72), rgb(203 213 225 / .86) 25%, rgb(203 213 225 / .72) 75%, rgb(96 165 250 / .72) 100%) border-box !important;
    border: 1px solid rgb(51 65 85 / .1);
    box-shadow: 0 12px 30px rgb(15 23 42 / .06);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

[data-landing-theme="light"] .landing-hero-actions > div:nth-child(2) a::before {
    background: rgb(255 255 255 / .48) !important;
}

[data-landing-theme="light"] .landing-hero-actions > div:nth-child(2) a span {
    color: #0f172a !important;
}

[data-landing-theme="light"] .landing-hero-actions > div:nth-child(2) svg {
    fill: #334155 !important;
}

[data-landing-theme="light"] .landing-learn-more-btn .text-purple-500 {
    color: #2563eb !important;
}

[data-landing-theme="light"] img[src*="stellar-glow-bottom"] {
    opacity: .52;
    filter: saturate(1.04) brightness(1.02);
}

[data-landing-theme="light"] img[src*="stellar-glow-top"] {
    opacity: .16;
    filter: saturate(.82) brightness(1.08);
}

[data-landing-theme="light"] .landing-signal-row .text-slate-500 {
    color: #64748b !important;
    background: transparent !important;
}

[data-landing-theme="light"] .landing-signal-row .before\:from-slate-900::before,
[data-landing-theme="light"] .landing-signal-row .after\:from-slate-900::after {
    display: block !important;
}

[data-landing-theme="light"] .landing-signal-row .before\:from-slate-900::before {
    background: linear-gradient(90deg, #f2f7ff 0%, rgb(242 247 255 / 0) 100%) !important;
}

[data-landing-theme="light"] .landing-signal-row .after\:from-slate-900::after {
    background: linear-gradient(270deg, #f2f7ff 0%, rgb(242 247 255 / 0) 100%) !important;
}

[data-landing-theme="light"] .landing-signal-row .overflow-hidden {
    background: transparent !important;
}

.landing-signal-marquee {
    overflow: hidden;
}

.landing-signal-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 5.25rem;
    animation: landingSignalScroll 42s linear infinite;
    will-change: transform;
}

.landing-signal-track span {
    flex: 0 0 auto;
    white-space: nowrap;
}

.landing-signal-marquee:hover .landing-signal-track {
    animation-play-state: paused;
}

@keyframes landingSignalScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 2.625rem));
    }
}

[data-landing-theme="light"] .landing-signals-section {
    background: #f2f7ff;
}

[data-landing-theme="light"] .landing-signal-track {
    color: #53657a !important;
}

[data-landing-theme="light"] #workflow {
    background:
        radial-gradient(circle at 50% 34%, rgb(96 165 250 / .22), rgb(191 219 254 / .1) 24rem, transparent 44rem),
        radial-gradient(circle at 50% 0%, rgb(147 197 253 / .42), rgb(219 234 254 / .16) 26rem, transparent 46rem),
        linear-gradient(180deg, #e4f0ff 0%, #f1f7ff 66%, #fbfdff 100%);
}

[data-landing-theme="light"] #workflow .h2 {
    background-image: linear-gradient(90deg, rgb(15 23 42 / .62), #0f172a 45%, rgb(15 23 42 / .58)) !important;
}

[data-landing-theme="light"] #workflow p {
    color: #475569 !important;
}

[data-landing-theme="light"] #workflow article {
    background: rgb(96 165 250 / .56) !important;
    box-shadow: 0 22px 56px rgb(30 64 175 / .15);
}

[data-landing-theme="light"] #workflow article > div {
    background: rgb(248 251 255 / .9) !important;
}

[data-landing-theme="light"] #workflow h3 {
    color: #0f172a !important;
}

.landing-hero-shell {
    min-height: min(760px, 92vh);
    display: flex;
    align-items: center;
}

.landing-hero-title {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
    line-height: 1.08;
}

.landing-hero-copy {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: pretty;
}

.landing-hero-actions .btn {
    min-width: 128px;
    justify-content: center;
}

.auth-hero-page {
    position: relative;
    background: #0f172a;
}

.auth-hero-stage {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 6.5rem 1rem 3.25rem;
    overflow: hidden;
}

.auth-hero-glow {
    background:
        radial-gradient(ellipse at 50% 100%, rgb(29 78 216 / .7) 0%, rgb(37 99 235 / .42) 18%, rgb(96 165 250 / .18) 42%, transparent 72%),
        radial-gradient(circle at 50% 48%, rgb(96 165 250 / .16), transparent 34rem);
    filter: blur(12px);
}

.auth-login-card {
    position: relative;
    z-index: 1;
    width: min(100%, 26rem);
    padding: 2.25rem 2.35rem 2rem;
    border: 1px solid rgb(148 163 184 / .22);
    border-radius: 1.35rem;
    background: rgb(15 23 42 / .68);
    box-shadow: 0 32px 90px rgb(2 6 23 / .32);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
}

.auth-login-heading {
    margin-bottom: 2rem;
}

.auth-login-kicker {
    color: #60a5fa;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .7rem;
}

.auth-login-title {
    color: #f8fafc;
    font-size: 1.95rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0;
}

.auth-login-copy {
    color: #cbd5e1;
    font-size: .92rem;
    line-height: 1.7;
    max-width: 21rem;
    margin: .9rem auto 0;
}

.auth-label {
    display: block;
    margin-bottom: .5rem;
    color: #cbd5e1;
    font-size: .875rem;
    font-weight: 600;
}

.auth-input {
    width: 100%;
    min-height: 3rem;
    border: 1px solid rgb(148 163 184 / .22);
    border-radius: .72rem;
    padding: .7rem .95rem;
    color: #f8fafc;
    background: rgb(15 23 42 / .52);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.auth-input::placeholder {
    color: #64748b;
}

.auth-input:focus {
    border-color: rgb(96 165 250 / .72);
    box-shadow: 0 0 0 4px rgb(37 99 235 / .16);
    background: rgb(15 23 42 / .72);
}

.auth-muted-link {
    color: #94a3b8;
    font-size: .875rem;
    font-weight: 600;
    transition: color .15s ease;
}

.auth-muted-link:hover {
    color: #f8fafc;
}

.auth-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
}

.auth-primary-btn {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    min-width: 5.9rem;
    padding: .62rem 1.18rem;
    border-radius: 9999px;
    color: #0f172a;
    font-size: .875rem;
    font-weight: 700;
    background: linear-gradient(90deg, rgb(255 255 255 / .86), #fff, rgb(255 255 255 / .86));
    box-shadow: 0 18px 42px rgb(2 6 23 / .22);
    cursor: pointer;
}

.auth-error {
    margin-top: 1rem;
    border-radius: .75rem;
    padding: .7rem .85rem;
    color: #fecaca;
    background: rgb(220 38 38 / .14);
    font-size: .8125rem;
    font-weight: 700;
}

.auth-login-footer {
    display: flex;
    gap: .35rem;
    justify-content: center;
    margin-top: 1.45rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgb(148 163 184 / .18);
    color: #94a3b8;
    font-size: .875rem;
}

.auth-login-footer a {
    color: #93c5fd;
    font-weight: 700;
}

.auth-test-note {
    margin-top: 1rem;
    border-radius: .75rem;
    padding: .78rem .9rem;
    color: #bfdbfe;
    background: rgb(37 99 235 / .12);
    font-size: .8125rem;
    line-height: 1.5;
    text-align: center;
}

[data-landing-theme="light"] .auth-hero-page {
    background: #f8fbff;
}

[data-landing-theme="light"] .auth-hero-glow {
    background:
        radial-gradient(ellipse at 50% 100%, rgb(29 78 216 / .55) 0%, rgb(37 99 235 / .34) 16%, rgb(96 165 250 / .14) 38%, transparent 68%),
        radial-gradient(circle at 50% 45%, rgb(147 197 253 / .3), transparent 34rem);
}

[data-landing-theme="light"] .auth-login-card {
    border-color: rgb(96 165 250 / .24);
    background: rgb(255 255 255 / .64);
    box-shadow: 0 30px 80px rgb(30 64 175 / .12);
}

[data-landing-theme="light"] .auth-login-title {
    color: #0f172a;
}

[data-landing-theme="light"] .auth-login-copy,
[data-landing-theme="light"] .auth-label {
    color: #334155;
}

[data-landing-theme="light"] .auth-input {
    color: #0f172a;
    border-color: rgb(148 163 184 / .34);
    background: rgb(255 255 255 / .64);
}

[data-landing-theme="light"] .auth-input:focus {
    background: rgb(255 255 255 / .9);
}

[data-landing-theme="light"] .auth-muted-link {
    color: #475569;
}

[data-landing-theme="light"] .auth-muted-link:hover {
    color: #0f172a;
}

[data-landing-theme="light"] .auth-primary-btn {
    color: #fff;
    background: linear-gradient(180deg, #111827, #020617);
    box-shadow: 0 18px 42px rgb(15 23 42 / .2);
}

[data-landing-theme="light"] .auth-error {
    color: #991b1b;
    background: rgb(220 38 38 / .08);
}

[data-landing-theme="light"] .auth-login-footer {
    color: #64748b;
    border-color: rgb(148 163 184 / .24);
}

[data-landing-theme="light"] .auth-login-footer a {
    color: #2563eb;
}

[data-landing-theme="light"] .auth-test-note {
    color: #1e40af;
    background: rgb(37 99 235 / .08);
}

@media (max-width: 1023px) {
    .landing-hero-shell {
        min-height: min(700px, 88vh);
        padding-top: 9rem;
        padding-bottom: 4.5rem;
    }

    .landing-hero-title {
        max-width: 760px;
        font-size: clamp(2.75rem, 8vw, 4.8rem);
    }
}

@media (max-width: 767px) {
    .landing-auth-links {
        display: none;
    }

    .landing-hero-shell {
        min-height: auto;
        padding-top: 7rem;
        padding-bottom: 3.25rem;
        align-items: flex-start;
    }

    .landing-hero-title {
        max-width: 19rem;
        font-size: clamp(2.2rem, 10vw, 2.95rem);
        line-height: 1.1;
        padding-bottom: 1rem;
    }

    .landing-hero-copy {
        max-width: 20.5rem;
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.6rem;
    }

    .landing-hero-actions {
        width: min(100%, 19.5rem);
    }

    .landing-hero-actions .btn {
        min-height: 2.9rem;
    }

    .landing-signal-row {
        padding-top: 2rem;
        padding-bottom: 2.75rem;
    }

    #workflow .pt-16 {
        padding-top: 4.5rem;
    }

    #workflow .h2 {
        max-width: 20rem;
        margin-left: auto;
        margin-right: auto;
        font-size: clamp(2.2rem, 9vw, 3rem);
        line-height: 1.12;
        text-wrap: balance;
    }

    #workflow p.text-lg {
        max-width: 20rem;
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
        line-height: 1.7;
    }

    .auth-hero-stage {
        align-items: start;
        padding-top: 6.5rem;
        padding-bottom: 2rem;
    }

    .auth-login-card {
        width: min(100%, 23.5rem);
        padding: 1.65rem;
        border-radius: 1.1rem;
    }

    .auth-login-heading {
        margin-bottom: 1.65rem;
    }

    .auth-login-title {
        font-size: 1.75rem;
    }

    .auth-form-actions {
        margin-top: 1.15rem;
    }
}

@media (max-width: 420px) {
    .landing-hero-title {
        max-width: 17.25rem;
        font-size: clamp(2rem, 10.4vw, 2.55rem);
    }

    .landing-hero-copy {
        max-width: 17.75rem;
        font-size: .95rem;
    }

    .landing-hero-actions {
        width: min(100%, 18rem);
    }

    .auth-login-card {
        padding: 1.35rem;
    }

    .auth-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .auth-primary-btn {
        width: 100%;
    }

    .auth-muted-link {
        text-align: center;
    }
}
