@font-face {
    font-family: "Noto Serif SC";
    src: url("assets/fonts/NotoSerifSC-subset.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

/* base + tokens */
:root {
    --sky-top: #bbfff9;
    --sky-mid: #6fa3fc;
    --aqua: #0a72f9;
    --aqua-deep: #0400ff;
    --grass: #8ce949;
    --grass-deep: #41b100;
    --ink: #0c3d5c;
    --ink-soft: #2e4dff;
    --glass: rgba(255, 255, 255, 0.197);
    --glass-edge: rgba(255, 255, 255, 0.448);
    --pink: #0040ff71;
    --gold: #ffd23f;
    --pill-hi: #c7ffec9b;
    --pill-lo: #0f8fd0;
    --font-body: "Times New Roman", Times, "Noto Serif SC", serif;
    --font-ui: "Times New Roman", Times, "Noto Serif SC", serif;
    --font-title: "Noto Serif SC", serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.4;
    background:
        radial-gradient(120% 60% at 78% -8%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 42%),
        radial-gradient(90% 50% at 12% 4%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 40%),
        linear-gradient(180deg,
            var(--sky-top) 0%, var(--sky-mid) 38%,
            var(--aqua) 64%, var(--aqua-deep) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

.big {
    display: flex;
    align-items: center;
    justify-content: center;
}

.comp {
    height: 150px;
}

.tree {
    height: 120px;
}

/* fish */
.swimmers {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.fish {
    position: absolute;
    left: -16vw;
    animation: swim linear infinite;
}

.fish.left {
    animation-direction: reverse;
}

@keyframes swim {
    to {
        left: 116vw;
    }
}

.s1 {
    top: 30%;
    width: 64px;
    animation-duration: 30s;
    animation-delay: -5s;
}

.s2 {
    top: 55%;
    width: 70px;
    animation-duration: 38s;
    animation-delay: -20s;
}

.s3 {
    top: 35%;
    width: 120px;
    animation-duration: 34s;
    animation-delay: -12s;
}

.s4 {
    top: 62%;
    width: 100px;
    animation-duration: 20s;
    animation-delay: -35s;
}

.s5 {
    top: 32%;
    width: 72px;
    animation-duration: 40s;
    animation-delay: -16s;
}

.s6 {
    top: 66%;
    width: 65px;
    animation-duration: 32s;
    animation-delay: -3s;
}

.s7 {
    top: 42%;
    width: 88px;
    animation-duration: 26s;
    animation-delay: -22s;
}

/* bubbles */
.bubbles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.bub {
    position: absolute;
    bottom: -60px;
    animation: rise linear infinite;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(.85);
        opacity: 0;
    }

    12% {
        opacity: .95;
    }

    88% {
        opacity: .8;
    }

    100% {
        transform: translateY(-112vh) translateX(30px) scale(1.1);
        opacity: 0;
    }
}

/* floaty */
.floaty {
    position: fixed;
    z-index: 4;
    pointer-events: none;
    filter: drop-shadow(1px 3px 2px rgba(10, 60, 90, .2));
    animation: bob 5s ease-in-out infinite;
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-14px) rotate(3deg);
    }
}

.f1 {
    top: 3%;
    left: 8%;
    width: 58px;
    animation-duration: 6s;
}

.f2 {
    top: 20%;
    left: 3%;
    width: 54px;
    animation-duration: 6.4s;
    animation-delay: -1s;
}

.f4 {
    top: 40%;
    left: 6%;
    width: 54px;
    animation-duration: 7.4s;
    animation-delay: -3s;
    opacity: .92;
}

.f5 {
    top: 23%;
    right: 2%;
    width: 60px;
    animation-duration: 5.6s;
    animation-delay: -.5s;
}

.f6 {
    top: 44%;
    right: 3%;
    width: 52px;
    animation-duration: 6.2s;
    animation-delay: -1.5s;
}

.f9 {
    top: 5%;
    right: 7%;
    width: 72px;
    animation-duration: 7s;
    animation-delay: -1s;
    opacity: .92;
}

/* animals */
.meadow {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 190px;
    z-index: 3;
    pointer-events: none;
}

.critter {
    position: absolute;
    filter: drop-shadow(1px 2px 1px rgba(10, 60, 30, .25));
}

.critter.flutter {
    animation: bob 5s ease-in-out infinite;
}

.laptop {
    width: 180px;
}

/* grass ground */
.ground {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    z-index: 2;
    pointer-events: none;
    background: url(assets/aero/grass-tree.png) repeat-x bottom center;
    background-size: auto 100%;
}

/* layout */
.page {
    position: relative;
    z-index: 5;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 18px 180px;
}

/* title */
.hero {
    text-align: center;
    padding: 1rem;
    position: relative;
}

.logo {
    font-family: var(--font-title);
    font-weight: normal;
    font-size: clamp(1.7rem, 6.5vw, 3rem);
    line-height: 1.15;
    letter-spacing: .04rem;
    margin: 0;
    margin-top: 2rem;
}

.logo .word {
    display: inline-block;
    color: #0011ff;
    text-shadow: 1px 1px 10px #76ea78;
    animation: sun-sweep 6s ease-in-out infinite;
}

@keyframes sun-sweep {

    0%,
    22%,
    100% {
        color: #0d00ff;
        text-shadow: 1px 1px 10px #76ea78;
        transform: translateY(0) rotate(0) scale(1);
    }

    6%,
    18% {
        color: #fff;
        text-shadow: 0 0 10px rgba(255, 255, 255, .8), 0 0 26px rgba(255, 255, 255, .6), 0 0 48px rgba(255, 255, 255, .4);
    }

    12% {
        transform: translateY(-4px) rotate(-7deg) scale(1.18);
    }
}

.logo .bloom {
    font-family: 'Courier New', Courier, monospace;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* width: 1em;
    height: 1em; */
    line-height: 1;
    font-size: 90px;
    vertical-align: -0.1em;
    transform-origin: 50% 50%;
    color: #35d11a;
    filter: blur(1.5px);
    text-shadow: 0 0 20px rgba(53, 209, 26, .85), 0 0 45px rgba(53, 209, 26, .5);
    animation: spin 10s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* glass panel */
.panel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--glass);
    backdrop-filter: blur(3px) saturate(1.1);
    -webkit-backdrop-filter: blur(3px) saturate(1.1);
    border: 1px solid var(--glass-edge);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .95) inset,
        0 -22px 30px rgba(255, 255, 255, .25) inset,
        0 10px 22px rgba(4, 30, 110, .22);
}

.panel a {
    color: var(--aqua-deep);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px dotted var(--aqua);
    text-shadow: 1px 1px 4px #5ef961;
}

.panel a:hover {
    color: var(--pink);
    border-bottom-color: var(--pink);
}

/* two-column body: info on the left, signup + pond on the right */
.layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
    gap: 16px;
    margin: 12px 0;
}

.info,
.side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.qa-panel {
    padding: 18px 22px;
}

.q+.q {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(10, 60, 90, .18);
}

.q h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 12px;
    margin: 0 0 5px;
    font-size: 15px;
    font-weight: bold;
    color: var(--aqua-deep);
}

.en {
    text-align: end;
}

.q h3 .en {
    margin-left: auto;
    font-weight: normal;
    color: var(--ink-soft);
}

.q p {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
}

.q p:last-child {
    margin-bottom: 0;
}

.q .inline-pair {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 12px;
}

.q .inline-pair .en {
    margin-left: auto;
}

/* signup */
.signup {
    /* margin: 1rem; */
    padding: 1rem 1.2rem;
}

.signup h2,
.pond h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 12px;
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--aqua-deep);
}

.signup h2 .en,
.pond h2 .en {
    margin-left: auto;
    font-weight: normal;
    color: var(--ink-soft);
}

.signup .row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-top: 8px;
    font-size: 14px;
}

.signup label {
    flex: 1 1 160px;
    font-size: 12px;
    font-weight: bold;
    color: var(--ink);
}

.signup .grow {
    flex: 1 1 240px;
}

.signup input,
.signup select {
    width: 100%;
    margin-top: 3px;
    padding: 7px 10px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--ink);
    border: 1px solid #8fc7e6;
    border-radius: 4px;
    background: linear-gradient(180deg, #f3fbff, #ffffff 30%);
    box-shadow: 0 1px 2px rgba(0, 60, 110, .15) inset, 0 1px 0 rgba(255, 255, 255, .8);
    outline: none;
}

.signup input:focus,
.signup select:focus {
    border-color: var(--aqua);
    box-shadow: 0 0 0 3px rgba(31, 159, 224, .25);
}

.btn {
    flex: 0 0 auto;
    font-family: var(--font-body);
    font-weight: bold;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    padding: 8px 20px;
    border: 1px solid #0d76b8;
    border-radius: 15px;
    background: linear-gradient(180deg, var(--pill-hi) 0%, var(--aqua) 46%, var(--aqua-deep) 100%);
    /* text-shadow: 0 -1px 1px rgba(0, 50, 90, .5); */
    box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 -8px 12px rgba(0, 60, 110, .35) inset, 0 5px 10px rgba(10, 70, 110, .35);
    transition: filter .12s ease, transform .06s ease;
}

.btn:hover {
    filter: brightness(1.08) saturate(1.1);
}

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

.signup-msg {
    display: none;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
    color: var(--grass-deep);
    background: rgba(255, 255, 255, .6);
    border-radius: 1px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .8);
}

.pond {
    padding: 1rem 1.2rem;
}

.pond-grid {
    position: relative;
    overflow: hidden;
    height: 320px;
    border-radius: 8px;
}

.swimmer {
    position: absolute;
    left: var(--x1, 3%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    animation: swim-bounce var(--dur, 9s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    will-change: left;
}

.swimmer .nm,
.grave .nm {
    font-size: 11px;
    line-height: 1;
    padding: 2px 9px;
    color: var(--ink);
    text-decoration: none;
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 10px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset;
    white-space: nowrap;
}

a.nm:hover {
    background: rgba(255, 255, 255, .85);
}

.swimmer .sf {
    font-size: 30px;
    line-height: 1;
    animation: face-dir var(--dur, 9s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

/* can't-come fish: belly-up at the surface, bobbing gently. The 180° flip
   turns the whole unit over — fish at the waterline, name hanging upside down */
.grave {
    position: absolute;
    top: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    transform: rotate(180deg);
    animation: float-bob var(--bdur, 5s) ease-in-out infinite;
    animation-delay: var(--bdelay, 0s);
}

.grave .sf {
    font-size: 30px;
    line-height: 1;
    opacity: .75;
}

@keyframes float-bob {

    0%,
    100% {
        transform: rotate(180deg) translateY(0);
    }

    50% {
        transform: rotate(180deg) translateY(5px);
    }
}

@keyframes swim-bounce {
    0% {
        left: var(--x1, 3%);
    }

    50% {
        left: var(--x2, 80%);
    }

    100% {
        left: var(--x1, 3%);
    }
}

@keyframes face-dir {

    0%,
    49.9% {
        transform: scaleX(-1);
        /* swimming right → face right */
    }

    50%,
    100% {
        transform: scaleX(1);
        /* swimming left → face left */
    }
}

/* bliss grass — full-width banner at the document bottom */
.bottom {
    display: block;
    width: 100%;
    height: auto;
}

/* responsive */
@media(max-width:860px) {
    .layout {
        grid-template-columns: 1fr;
    }
}

@media(max-width:680px) {
    .hero {
        padding: .5rem;
    }

    .logo {
        letter-spacing: 0;
        margin-top: 1.2rem;
    }

    .logo .bloom {
        font-size: 60px;
    }

    .comp {
        height: 96px;
    }

    .tree {
        height: 70px;
    }

    .laptop {
        width: 100px;
    }

    .meadow .critter:nth-child(2),
    .meadow .critter:nth-child(3),
    .meadow .critter:nth-child(4),
    .meadow .critter:nth-child(6),
    .meadow .critter:nth-child(7),
    .meadow .critter:nth-child(11) {
        display: none;
    }

    .floaty.f2,
    .floaty.f4,
    .floaty.f6 {
        display: none;
    }

    .fish.s2,
    .fish.s5 {
        display: none;
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
    }
}