/* CoreDynamics site styles (moved out of the static page) */
:root {
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    background: #ffffff;
    color: #0f172a;
    font-family: Geist, Inter, ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ---------- atmosphere ---------- */
.mesh {
    background: radial-gradient(40rem 26rem at 8% 0%, rgba(59, 130, 246, .14), transparent 70%), radial-gradient(34rem 24rem at 92% 10%, rgba(99, 102, 241, .12), transparent 70%), radial-gradient(26rem 18rem at 60% 70%, rgba(139, 92, 246, .06), transparent 70%);
}

.grid-fade {
    background-image: linear-gradient(rgba(37, 99, 235, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}

.lavender-wash {
    background: radial-gradient(36rem 20rem at 90% 0%, rgba(99, 102, 241, .08), transparent 70%), linear-gradient(180deg, #f8faff 0%, #f5f7ff 100%);
}

.glass {
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
}

/* ---------- elevation ---------- */
.elev-1 {
    box-shadow: 0 1px 1px rgba(15, 23, 42, .04), 0 2px 4px rgba(15, 23, 42, .04), 0 8px 16px -8px rgba(15, 23, 42, .08);
}

.elev-2 {
    box-shadow: 0 1px 1px rgba(15, 23, 42, .03), 0 4px 8px rgba(15, 23, 42, .04), 0 16px 32px -12px rgba(15, 23, 42, .12), 0 32px 64px -32px rgba(37, 99, 235, .20);
}

.elev-3 {
    box-shadow: 0 2px 2px rgba(15, 23, 42, .03), 0 8px 16px rgba(15, 23, 42, .05), 0 30px 60px -20px rgba(15, 23, 42, .22), 0 60px 120px -40px rgba(37, 99, 235, .32);
}

.gradient-text {
    background: linear-gradient(95deg, #2563eb 0%, #4f46e5 60%, #7c3aed 110%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 999px;
    padding: .9rem 1.4rem;
    font-weight: 600;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}

    .btn:hover {
        transform: translateY(-1px);
    }

    .btn:active {
        transform: translateY(0) scale(.99);
    }

    .btn svg {
        transition: transform .35s ease;
    }

    .btn:hover svg {
        transform: translateX(2px);
    }

.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(15, 23, 42, .12), 0 10px 22px -8px rgba(37, 99, 235, .6);
}

    .btn-primary:hover {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(15, 23, 42, .12), 0 16px 30px -10px rgba(37, 99, 235, .7);
    }

.btn-secondary {
    color: #0f172a;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

    .btn-secondary:hover {
        border-color: #93c5fd;
        color: #1d4ed8;
    }

/* ---------- cards ---------- */
.premium-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

    .premium-card::before {
        content: "";
        pointer-events: none;
        position: absolute;
        inset: -1px;
        border-radius: inherit;
        background: radial-gradient(420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, .10), transparent 45%);
        opacity: 0;
        transition: opacity .35s ease;
    }

    .premium-card:hover {
        transform: translateY(-4px);
        border-color: #bfdbfe;
    }

        .premium-card:hover::before {
            opacity: 1;
        }

/* clay badges */
.clay {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(150deg, #ffffff 0%, #eaf1ff 100%);
    box-shadow: inset 0 2px 1px #fff, inset 0 -4px 8px rgba(37, 99, 235, .12), 0 1px 2px rgba(15, 23, 42, .06), 0 10px 20px -10px rgba(37, 99, 235, .55);
    color: #2563eb;
}

.clay-solid {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(160deg, #60a5fa 0%, #2563eb 58%, #1d4ed8 100%);
    box-shadow: inset 0 2px 1px rgba(255, 255, 255, .45), inset 0 -4px 8px rgba(23, 37, 84, .3), 0 12px 22px -10px rgba(37, 99, 235, .75);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border-radius: 999px;
    border: 1px solid #dbeafe;
    background: rgba(239, 246, 255, .8);
    padding: .35rem .85rem .35rem .45rem;
    font-size: .8rem;
    font-weight: 600;
    color: #1d4ed8;
}

    .eyebrow .dot {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.35rem;
        height: 1.35rem;
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(37, 99, 235, .25);
    }

        .eyebrow .dot::after {
            content: "";
            width: .5rem;
            height: .5rem;
            border-radius: 999px;
            background: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
        }

/* ---------- imagery ---------- */
.photo {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
}

    .photo img {
        transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
    }

    .group:hover .photo img,
    .photo.zoom:hover img {
        transform: scale(1.05);
    }

.tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: .35rem .75rem;
    font-size: .75rem;
    font-weight: 600;
    color: #0f172a;
    box-shadow: 0 4px 14px -6px rgba(15, 23, 42, .25);
}

.tilt {
    transform: perspective(1400px) rotateY(-8deg) rotateX(4deg) rotateZ(-3deg);
    transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

    .tilt:hover {
        transform: perspective(1400px) rotateY(-3deg) rotateX(2deg) rotateZ(-2deg);
    }

/* ---------- workflow timeline ---------- */
.track-fill {
    transform-origin: left center;
    transform: scaleX(1);
    transition: transform 1.6s cubic-bezier(.2, .7, .2, 1);
}

.js .track-fill.pending {
    transform: scaleX(0);
}

.track-v-fill {
    transform-origin: top center;
    transform: scaleY(1);
    transition: transform 1.6s cubic-bezier(.2, .7, .2, 1);
}

.js .track-v-fill.pending {
    transform: scaleY(0);
}

/* ---------- reveal (only below-fold elements are hidden, by script) ---------- */
.js .reveal.pre {
    opacity: 0;
    transform: translateY(24px);
}

.js .reveal.in {
    opacity: 1;
    transform: none;
    transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--d, 0s);
}

.js .reveal-img.pre img {
    transform: scale(1.08);
}

.js .reveal-img.in img {
    transform: scale(1);
    transition: transform 1.4s cubic-bezier(.2, .7, .2, 1);
}

/* ---------- form ---------- */
.field {
    width: 100%;
    max-width: 100%;
    min-width: 0; /* lets fields shrink inside grid columns on phones */
    box-sizing: border-box;
    font-size: 16px; /* 16px+ stops iPhone Safari zooming in on tap */
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: .85rem 1rem;
    color: #0f172a;
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

    .field::placeholder {
        color: #94a3b8;
    }

    .field:hover {
        border-color: #cbd5e1;
    }

    .field:focus {
        border-color: #3b82f6;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, .15);
    }

.input-validation-error {
    border-color: #f87171 !important;
    background: #fef2f2 !important;
}

select.field {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.75rem;
    text-overflow: ellipsis; /* long option text cuts off instead of widening the form */
    white-space: nowrap;
    overflow: hidden;
}

/* Cloudflare Turnstile never wider than the form */
.cf-turnstile {
    max-width: 100%;
    overflow: hidden;
}

:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .45);
    outline-offset: 2px;
}

#site-header.scrolled {
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.nav-link {
    position: relative;
}

    .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -6px;
        height: 2px;
        border-radius: 2px;
        background: #2563eb;
        transform: scaleX(0);
        transition: transform .3s ease;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        transform: scaleX(1);
    }

    .nav-link.active {
        color: #1d4ed8;
    }

@media (max-width: 1023px) {
    .tilt,
    .tilt:hover {
        transform: rotateZ(-4deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .js .reveal.pre,
    .js .reveal-img.pre img {
        opacity: 1;
        transform: none;
    }

    .js .track-fill.pending,
    .js .track-v-fill.pending {
        transform: none;
    }
}

/* ---------- ASP.NET validation states ---------- */
.field.input-validation-error {
    border-color: #f87171;
    background: #fef2f2;
}

.validation-summary-valid {
    display: none;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 1.1rem;
    list-style: disc;
}
