/* ============================================================
   Under construction — dark aurora + glass
   ============================================================ */

:root{
    --bg: #08071a;
    --ink: #f3f2ff;
    --muted: rgba(243, 242, 255, .62);
    --accent: #6c63ff;
    --accent-soft: #a79cff;
    --pink: #e92949;
    --radius: 34px;
    --maxw: 1180px;
}

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

body{
    min-height: 100vh;
    min-height: 100dvh;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 400;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        radial-gradient(1100px 700px at 78% -8%, rgba(108, 99, 255, .38), transparent 60%),
        radial-gradient(900px 700px at 8% 108%, rgba(233, 41, 73, .26), transparent 60%);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ---------- ambient background ---------- */

.aurora{
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob{
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    will-change: transform;
}

.blob-1{
    width: 62vmax;
    height: 62vmax;
    left: -20vmax;
    top: -25vmax;
    background: radial-gradient(circle at 35% 35%, rgba(108, 99, 255, .85), transparent 62%);
    animation: drift-a 26s ease-in-out infinite alternate;
}

.blob-2{
    width: 52vmax;
    height: 52vmax;
    right: -18vmax;
    top: 8vmax;
    background: radial-gradient(circle at 60% 45%, rgba(233, 41, 73, .5), transparent 62%);
    animation: drift-b 32s ease-in-out infinite alternate;
}

.blob-3{
    width: 46vmax;
    height: 46vmax;
    left: 32vmax;
    bottom: -22vmax;
    background: radial-gradient(circle at 50% 50%, rgba(58, 160, 255, .6), transparent 62%);
    animation: drift-c 29s ease-in-out infinite alternate;
}

@keyframes drift-a{
    from{ transform: translate3d(0, 0, 0) scale(1); }
    to{ transform: translate3d(8vmax, 6vmax, 0) scale(1.12); }
}

@keyframes drift-b{
    from{ transform: translate3d(0, 0, 0) scale(1.1); }
    to{ transform: translate3d(-10vmax, 8vmax, 0) scale(.95); }
}

@keyframes drift-c{
    from{ transform: translate3d(0, 0, 0) scale(.95); }
    to{ transform: translate3d(6vmax, -8vmax, 0) scale(1.15); }
}

.grain{
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .045;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

/* ---------- layout ---------- */

.page{
    position: relative;
    z-index: 2;
    flex: 1 0 auto;
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(4rem, 9vh, 7rem) clamp(1.5rem, 5vw, 3rem) clamp(2rem, 5vh, 4rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr); /* minmax(0,..) stops the SVG's intrinsic width blowing out the track */
    gap: clamp(2.5rem, 6vw, 4rem);
    align-items: center;
}

@media (min-width: 960px){
    .page{ grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); }
}

/* ---------- copy ---------- */

.copy{ max-width: 34rem; min-width: 0; }

.badge{
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    padding: .75rem 1.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(243, 242, 255, .8);
}

.dot{
    width: .75rem;
    height: .75rem;
    border-radius: 50%;
    background: #6ace66;
    animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse{
    0%{ box-shadow: 0 0 0 0 rgba(106, 206, 102, .55); }
    70%{ box-shadow: 0 0 0 1.2rem rgba(106, 206, 102, 0); }
    100%{ box-shadow: 0 0 0 0 rgba(106, 206, 102, 0); }
}

.title{
    margin: 2.6rem 0 1.2rem;
    font-size: clamp(3.8rem, 8.5vw, 8rem);
    line-height: .92;
    font-weight: 800;
    letter-spacing: -.045em;
    text-wrap: balance;
    color: var(--ink);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)){
    .title{
        background: linear-gradient(170deg, #ffffff 30%, var(--accent-soft) 95%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.subtitle{
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: rgba(243, 242, 255, .72);
}

.subtitle::after{
    content: "";
    display: block;
    width: 4.5rem;
    height: .35rem;
    margin-top: 1.4rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--pink));
}

.lede{
    margin-top: 2.2rem;
    font-size: clamp(1.5rem, 1.6vw, 1.8rem);
    font-weight: 300;
    line-height: 1.75;
    text-wrap: balance;
    color: var(--muted);
    max-width: 46ch;
}

::selection{
    background: var(--accent);
    color: #fff;
}

/* ---------- illustration card ---------- */

.art{
    position: relative;
    min-width: 0;
    padding: clamp(1.2rem, 2.2vw, 2rem);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .65);
    animation: float 7s ease-in-out infinite;
}

.art svg{
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

@keyframes float{
    0%, 100%{ transform: translateY(0); }
    50%{ transform: translateY(-12px); }
}

/* ---------- footer ---------- */

.footer{
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    padding: 2rem 1.5rem 2.6rem;
    font-size: 1.35rem;
    letter-spacing: .06em;
    color: rgba(243, 242, 255, .45);
}

.footer-mark{
    display: block;
    border-radius: 7px;
}

/* ---------- illustration animations ---------- */

#clock-hand{
    animation: clockHand 5s infinite linear;
    transform-box: view-box;
    transform-origin: 111.41px 139.96px; /* clock face centre, in SVG user units */
}

#leftTree, #righTree{
    animation: tree 2s ease-in-out infinite alternate;
    transform-box: fill-box;
    transform-origin: bottom;
}

#man{
    animation: manBody 1s ease-in-out infinite alternate;
    transform-box: fill-box;
    transform-origin: bottom;
}

#pc-circle{
    fill: #6ace66;
    stroke-width: 4;
    animation: change-light 4s linear infinite alternate;
}

@keyframes clockHand{
    from{ transform: rotateZ(0deg); }
    to{ transform: rotateZ(-360deg); }
}

@keyframes manBody{
    from{ transform: rotateX(0deg); }
    to{ transform: rotateX(10deg); }
}

@keyframes tree{
    from{ transform: rotateZ(10deg); }
    to{ transform: rotateZ(-20deg); }
}

@keyframes change-light{
    0%{ stroke: #cd61f8; }
    25%{ stroke: #6ace66; }
    75%{ stroke: #4fb0e6; }
    100%{ stroke: #e92949; }
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce){
    .blob, .dot, .art, #clock-hand, #leftTree, #righTree, #man, #pc-circle{
        animation: none;
    }
}
