/* 404 page styles matching reference */
:root {
    --bg: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --brand: #2563eb;
    --brand-soft: #eff6ff;
    --border: #e5e7eb;
    --link: #0b63f6;
}

* {
    box-sizing: border-box;
}

/* prevent page scroll */
html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

/* Typography helpers */
.lead {
    color: var(--muted);
}

.a-clean a {
    color: var(--link);
    text-decoration: none;
}

.a-clean a:hover {
    text-decoration: underline;
}

.sep {
    color: #94a3b8;
    opacity: .9;
}

/* Layout framework (kept) */
.wrap {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto;
}

.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 28px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 24px;
    align-items: center;
    position: relative;
}

.left {
    padding: 16px 8px;
}

.heading {
    margin: 0 0 16px 0;
    font-size: 56px;
    line-height: 1.05;
    font-weight: 700;
    color: var(--text);
}

.plus {
    color: var(--brand);
}

/* Gradient animated headline */
.gradient-text {
    background: linear-gradient(90deg, #0ea5e9, #22c55e, #f59e0b, #e11d48, #6366f1, #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: hueSlide 8s linear infinite;
}

@keyframes hueSlide {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Buttons with glow */
.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: all .2s ease;
}

.btn.btn-primary {
    border: 0;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    color: #fff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, .25);
}

.btn.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, .35);
}

.btn.btn-outline-secondary {
    border: 2px solid var(--brand);
    color: var(--brand);
    background: rgba(255, 255, 255, .6);
}

.btn.btn-outline-secondary:hover {
    background: var(--brand-soft);
}

.right {
    display: grid;
    place-items: center;
}

.illustration {
    width: 100%;
    max-width: 520px;
    height: auto;
}

.brand {
    text-align: left;
    max-width: 1100px;
    margin: 0 auto 24px auto;
    padding: 0 28px;
    color: var(--muted);
    font-size: 14px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

/* Badge shine */
.badge.text-bg-primary {
    position: relative;
    overflow: hidden;
}

.badge.text-bg-primary::after {
    content: "";
    position: absolute;
    top: -150%;
    left: -20%;
    width: 40%;
    height: 400%;
    transform: rotate(25deg);
    background: linear-gradient(90deg, rgba(255, 255, 255, .0), rgba(255, 255, 255, .5), rgba(255, 255, 255, .0));
    animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
    0% {
        left: -40%;
    }

    60% {
        left: 120%;
    }

    100% {
        left: 120%;
    }
}

/* Contact box */
.contact-box {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, .65);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, .06);
}

.contact-box .label {
    font-weight: 600;
    color: var(--text);
}

.contact-box .value {
    color: var(--text);
}

/* Small screens */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .right {
        order: -1;
    }

    .heading {
        font-size: 42px;
    }
}

/* Creative background (enhanced) */
.creative-bg {
    position: relative;
    overflow: hidden;
    background: radial-gradient(700px 380px at 10% 5%, #e0f2fe 0%, rgba(224, 242, 254, 0.0) 65%), radial-gradient(600px 320px at 95% -5%, #fff7ed 0%, rgba(255, 247, 237, 0.0) 60%), linear-gradient(180deg, #f0f9ff 0%, #ffffff 60%);
}

.creative-bg::before,
.creative-bg::after {
    content: "";
    position: absolute;
    inset: auto;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .35;
    pointer-events: none;
}

.creative-bg::before {
    width: 620px;
    height: 620px;
    left: -140px;
    top: -120px;
    background: conic-gradient(from 180deg, #60a5fa, #38bdf8, #a5b4fc, #60a5fa);
    animation: floatA 14s ease-in-out infinite alternate;
}

.creative-bg::after {
    width: 520px;
    height: 520px;
    right: -160px;
    bottom: -140px;
    background: conic-gradient(from 0deg, #fde68a, #fca5a5, #fcd34d, #fde68a);
    animation: floatB 16s ease-in-out infinite alternate;
}

/* dotted grid overlay */
.creative-bg .container::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(2, 6, 23, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

@keyframes floatA {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    100% {
        transform: translateY(24px) translateX(12px) rotate(20deg);
    }
}

@keyframes floatB {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    100% {
        transform: translateY(-22px) translateX(-10px) rotate(-16deg);
    }
}

/* Floating geometric shapes */
.shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: .35;
    filter: drop-shadow(0 10px 16px rgba(2, 6, 23, .15));
}

.shape.circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(180deg, #93c5fd, #38bdf8);
    animation: drift 18s ease-in-out infinite alternate;
}

.shape.diamond {
    width: 80px;
    height: 80px;
    background: linear-gradient(180deg, #fcd34d, #fca5a5);
    transform: rotate(45deg);
    animation: drift2 22s ease-in-out infinite alternate;
}

.shape.triangle {
    width: 0;
    height: 0;
    border-left: 44px solid transparent;
    border-right: 44px solid transparent;
    border-bottom: 76px solid #a78bfa;
    animation: drift3 20s ease-in-out infinite alternate;
}

.shape.s1 {
    top: 8%;
    left: 8%;
}

.shape.s2 {
    bottom: 6%;
    left: 20%;
}

.shape.s3 {
    top: 12%;
    right: 12%;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(20px, -14px);
    }
}

@keyframes drift2 {
    0% {
        transform: translate(0, 0) rotate(45deg);
    }

    100% {
        transform: translate(-16px, 18px) rotate(65deg);
    }
}

@keyframes drift3 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(10px, 16px);
    }
}

/* Header / Topbar */
.topbar {
    background: transparent;
    position: relative;
    z-index: 2;
}

.brand-link {
    text-decoration: none;
}

.brand-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(2, 6, 23, .08));
}

@media (max-width: 576px) {
    .brand-logo {
        height: 56px;
    }
}

/* Palette tuned to blue/teal */
:root {
    --brand: #0ea5e9;
    --link: #0ea5e9;
    --brand-soft: #e0f2fe;
}

/* Badge and gradient colors aligned to logo palette */
.badge.text-bg-primary {
    background-color: #de281c !important;
}

.gradient-text {
    background: linear-gradient(90deg, #0ea5e9, #173058, #38bdf8, #0ea5e9);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: hueSlide 8s linear infinite;
}

/* Primary button gradient aligned */
.btn.btn-primary {
    background: linear-gradient(90deg, #0ea5e9, #173058);
    box-shadow: 0 10px 20px rgba(14, 165, 233, .25);
}

.btn.btn-outline-secondary {
    border-color: #0ea5e9;
    color: #0ea5e9;
}

/* ensure logo sits above background shapes */
.logo-overlay {
    position: relative;
    z-index: 3;
    padding-top: 8px;
    margin-bottom: 4px;
}

.logo-overlay .brand-link {
    line-height: 0;
}

.brand-logo {
    display: block;
    width: auto;
    height: auto;
    max-height: 96px;
    max-width: 90vw;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(2, 6, 23, .12));
}

@media (min-width: 992px) {
    .brand-logo {
        max-height: 112px;
    }
}

@media (max-width: 576px) {
    .brand-logo {
        max-height: 84px;
    }
}

/* refined radial glow behind logo */
.logo-overlay::before {
    content: "";
    left: 0;
    transform: none;
    top: 6px;
    width: 520px;
    max-width: 70%;
    height: 140px;
    border-radius: 999px;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .82), rgba(255, 255, 255, .42) 60%, rgba(255, 255, 255, 0) 100%);
    filter: blur(10px);
    z-index: -1;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

/* ensure main section uses full height without adding extra space */
.creative-bg {
    min-height: 100vh;
}

/* left-aligned logo adjustments */
.logo-overlay {
    padding-left: 12px;
}

/* Mobile-specific adjustments */
@media (max-width: 576px) {

    /* allow scrolling so CTA buttons are reachable */
    html,
    body {
        overflow: auto;
    }

    /* center the logo on mobile */
    .logo-overlay {
        display: flex;
        justify-content: center !important;
        padding-left: 0;
    }

    .logo-overlay::before {
        left: 50%;
        transform: translateX(-50%);
        width: 86%;
        max-width: 520px;
    }

    /* give a bit more bottom space inside the section */
    .creative-bg {
        padding-bottom: 24px;
    }
}

/* Oops face illustration (scoped) */
.oops { text-align: center; }
.oops .face { position: relative; width: 180px; height: 180px; margin: 0 auto 12px auto; background: #fff; border-radius: 50%; box-shadow: 0 10px 20px rgba(2,6,23,.08); overflow: hidden; }
.oops .band { position: absolute; top: 54px; left: -10px; width: 200px; height: 30px; transform: rotate(-20deg); display: grid; grid-template-columns: 1fr 1fr 1fr; }
.oops .band .red { background: #ef4444; }
.oops .band .white { background: #f8fafc; }
.oops .band .blue { background: #3b82f6; }
.oops .eyes { position: absolute; top: 84px; left: 50%; width: 90px; height: 18px; transform: translateX(-50%); background: radial-gradient(circle at 20px 9px, #0f172a 4px, transparent 5px), radial-gradient(circle at 70px 9px, #0f172a 4px, transparent 5px); opacity: .9; }
.oops .dimples { position: absolute; top: 116px; left: 50%; width: 120px; height: 12px; transform: translateX(-50%); background: radial-gradient(circle at 28px 6px, rgba(239,68,68,.25) 6px, transparent 7px), radial-gradient(circle at 92px 6px, rgba(239,68,68,.25) 6px, transparent 7px); }
.oops .mouth { position: absolute; top: 126px; left: 50%; width: 70px; height: 36px; transform: translateX(-50%); border: 4px solid #0f172a; border-top: 0; border-bottom-left-radius: 90px 60px; border-bottom-right-radius: 90px 60px; background: transparent; }
.oops .oops-title { margin: 0 0 10px 0; font-size: 20px; color: #0f172a; }
.oops .face-btn { display: inline-block; padding: 10px 16px; border-radius: 999px; background: linear-gradient(90deg, #0ea5e9, #14b8a6); color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 10px 20px rgba(14,165,233,.25); }
.oops .face-btn:hover { filter: brightness(1.05); }