:root {
    --bg: #f3f8ff;
    --ink: #07101d;
    --text: #ffffff;
    --muted: #d8e0ee;
    --dark: #08111f;
    --panel: rgba(7, 14, 28, 0.78);
    --panel-soft: rgba(255, 255, 255, 0.86);
    --line: rgba(255, 255, 255, 0.26);
    --line-dark: rgba(8, 17, 31, 0.16);
    --cyan: #25e4f2;
    --pink: #ff2f91;
    --purple: #9a5cff;
    --violet: #6a3dff;
    --shadow: 0 24px 70px rgba(9, 10, 23, 0.16);
    --glow-cyan: 0 0 28px rgba(37, 228, 242, 0.34);
    --glow-pink: 0 0 28px rgba(255, 47, 145, 0.3);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #162337;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 10% 5%, rgba(37, 228, 242, 0.44), transparent 26%),
        radial-gradient(circle at 86% 12%, rgba(255, 47, 145, 0.34), transparent 29%),
        radial-gradient(circle at 50% 98%, rgba(154, 92, 255, 0.24), transparent 35%),
        linear-gradient(180deg, #fbfdff 0%, #eef6ff 42%, #f8fbff 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(8, 17, 31, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 17, 31, 0.03) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, black, transparent 76%);
}

.page-shell {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 32px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 4px 26px;
}

.brand {
    color: #162337;
    text-decoration: none;
    font-weight: 900;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    letter-spacing: -0.045em;
    white-space: nowrap;
}

.brand span,
.gradient-text {
    background: linear-gradient(100deg, var(--cyan) 0%, var(--violet) 48%, var(--pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}



.lead-gradient-text {
    background: linear-gradient(100deg, #46e9ff 0%, #7aa8ff 34%, #b66eff 68%, #ff63be 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.brand small {
    font-size: 0.66em;
    letter-spacing: -0.03em;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 0.98rem;
    font-weight: 740;
}

.top-nav a {
    color: #1a2435;
    text-decoration: none;
}

.top-nav a:hover {
    color: #007b8a;
}

.nav-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 47, 145, 0.86);
    border-right-color: rgba(37, 228, 242, 0.86);
    border-bottom-color: rgba(37, 228, 242, 0.86);
    border-radius: 13px;
    box-shadow: 0 0 18px rgba(255, 47, 145, 0.18), 0 0 18px rgba(37, 228, 242, 0.12);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
}

.section-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow);
}

.section-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, rgba(37, 228, 242, 0.78), rgba(255, 47, 145, 0.78), rgba(154, 92, 255, 0.64));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.96;
    z-index: 2;
}

/* Hero ------------------------------------------------------------------ */
.hero {
    min-height: 610px;
    background: #081022;
    isolation: isolate;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(6, 10, 22, 0.88) 0%, rgba(6, 10, 22, 0.78) 30%, rgba(6, 10, 22, 0.30) 56%, rgba(6, 10, 22, 0.04) 100%),
        radial-gradient(circle at 12% 20%, rgba(37, 228, 242, 0.24), transparent 25%),
        radial-gradient(circle at 28% 80%, rgba(255, 47, 145, 0.18), transparent 28%),
        radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.08), transparent 20%);
}

.hero-copy {
    position: relative;
    z-index: 3;
    width: min(520px, 100%);
    padding: clamp(34px, 5vw, 62px);
    color: var(--text);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.44);
}

h1, h2, p {
    margin-top: 0;
}

h1 {
    margin: 0 0 20px;
    font-size: clamp(3.35rem, 7.4vw, 6.05rem);
    line-height: 0.93;
    letter-spacing: -0.075em;
}

.fyp-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    padding: 12px 18px;
    border: 1px solid rgba(37, 228, 242, 0.85);
    border-right-color: rgba(255, 47, 145, 0.92);
    border-bottom-color: rgba(255, 47, 145, 0.92);
    border-radius: 13px;
    background: rgba(7, 15, 31, 0.58);
    box-shadow: var(--glow-cyan), var(--glow-pink);
    font-size: clamp(1.08rem, 1.8vw, 1.38rem);
    backdrop-filter: blur(8px);
}

.fyp-badge span:not(.tt-mark) {
    color: var(--pink);
}

.tt-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35em;
    height: 1.35em;
    color: #fff;
    font-weight: 950;
    line-height: 1;
    text-shadow: 2px 1px 0 var(--cyan), -2px -1px 0 var(--pink);
    filter: drop-shadow(0 0 10px rgba(37, 228, 242, 0.36));
}

.tt-mark.large {
    font-size: 1.35rem;
}

.lead {
    font-size: clamp(1.2rem, 2vw, 1.48rem);
    line-height: 1.42;
    color: #fff;
    margin-bottom: 14px;
}

.hero-copy p:not(.lead) {
    color: #e7edf8;
    font-size: 1.06rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    padding: 17px 27px;
    border-radius: 15px;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 0.01em;
    background: linear-gradient(100deg, #ff3a9b 0%, #b36cff 52%, #32dbff 100%);
    box-shadow: 0 20px 44px rgba(255, 47, 145, 0.24), 0 0 26px rgba(37, 228, 242, 0.24);
}

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

.hero-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-art::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 34%;
    background: linear-gradient(180deg, rgba(8,16,34,0) 0%, rgba(8,16,34,0.18) 100%);
}

.hero-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(1.08) saturate(1.14) contrast(1.04);
}

/* Feature cards --------------------------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 24px;
}

.feature-card {
    min-height: 170px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
    padding: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(246,249,255,0.82));
    backdrop-filter: blur(12px);
    color: #162337;
}

.feature-card h2,
.how-panel h2,
.form-card h2,
.rules-card h2 {
    margin-bottom: 10px;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.feature-card h2 {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.feature-card p,
.how-panel p,
.rules-card li,
.check-row {
    color: #223044;
    line-height: 1.55;
}

.feature-icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), transparent 34%), #162031;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 18px rgba(37, 228, 242, 0.22);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 850;
    flex: 0 0 auto;
}

.target-icon {
    position: relative;
    border: 2px solid rgba(37, 228, 242, 0.78);
}

.target-icon::before,
.target-icon::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 3px solid var(--cyan);
    border-radius: 50%;
    opacity: 0.9;
}

.target-icon::after {
    inset: 36px;
    background: var(--cyan);
    box-shadow: 0 -34px 0 -1px var(--cyan), 0 34px 0 -1px var(--cyan), -34px 0 0 -1px var(--cyan), 34px 0 0 -1px var(--cyan);
}

.shield-icon {
    color: #fff;
    border: 2px solid rgba(255, 47, 145, 0.78);
    box-shadow: 0 0 24px rgba(255, 47, 145, 0.28);
}

.star-icon {
    color: #d8c8ff;
    border: 2px solid rgba(154, 92, 255, 0.78);
    box-shadow: 0 0 24px rgba(154, 92, 255, 0.26);
}

/* How panel ------------------------------------------------------------- */
.how-panel {
    display: grid;
    grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
    gap: 26px;
    align-items: center;
    margin-top: 24px;
    padding: 30px;
    color: #162337;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(246,249,255,0.84));
    backdrop-filter: blur(12px);
}

.eyebrow {
    margin-bottom: 8px;
    color: #008fa0;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.how-panel h2,
.form-card h2,
.rules-card h2 {
    font-size: clamp(1.85rem, 3vw, 2.55rem);
}

.how-panel ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.how-panel li {
    min-height: 122px;
    padding: 20px 18px;
    border: 1px solid rgba(8, 17, 31, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}

.how-panel li span {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--cyan));
    box-shadow: 0 8px 18px rgba(154, 92, 255, 0.22);
}

.how-panel li strong {
    display: block;
    max-width: 13rem;
    font-size: 0.98rem;
    line-height: 1.42;
}

/* Submit --------------------------------------------------------------- */
.submit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
    gap: 24px;
    margin-top: 24px;
}

.form-card,
.rules-card {
    padding: clamp(24px, 3vw, 34px);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    color: #162337;
}

.success-box,
.error-box {
    margin: 0 0 20px;
    padding: 16px 18px;
    border-radius: 16px;
    line-height: 1.5;
}

.success-box {
    border: 1px solid rgba(37, 228, 242, 0.55);
    background: rgba(37, 228, 242, 0.12);
}

.error-box {
    border: 1px solid rgba(255, 47, 145, 0.55);
    background: rgba(255, 47, 145, 0.12);
}

.error-box ul {
    margin-bottom: 0;
}

.hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

label span {
    display: block;
    margin-bottom: 8px;
    color: #1e2b3e;
    font-size: 0.92rem;
    font-weight: 820;
}

label em {
    color: #667287;
    font-style: normal;
    font-weight: 650;
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(8, 17, 31, 0.18);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.72);
    color: #07101d;
    font: inherit;
    padding: 14px 15px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

input:focus,
textarea:focus {
    border-color: rgba(37, 228, 242, 0.9);
    box-shadow: 0 0 0 4px rgba(37, 228, 242, 0.16), inset 0 1px 0 rgba(255,255,255,0.75);
}

textarea {
    resize: vertical;
    min-height: 128px;
}

.message-field {
    grid-row: span 2;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 18px 0 20px;
    font-size: 0.95rem;
}

.check-row input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--pink);
}

.submit-button {
    width: min(100%, 360px);
    min-height: 58px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(100deg, #ff3a9b 0%, #b36cff 52%, #32dbff 100%);
    box-shadow: 0 18px 38px rgba(255, 47, 145, 0.22), 0 0 24px rgba(37, 228, 242, 0.17);
}

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

.rules-card ul {
    margin: 0;
    padding-left: 20px;
}

.rules-card li + li {
    margin-top: 12px;
}

/* Footer --------------------------------------------------------------- */
.site-footer {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid rgba(8, 17, 31, 0.1);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(246,249,255,0.82));
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    color: #25344a;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1;
    letter-spacing: -0.045em;
}

.footer-brand small {
    color: #162337;
    font-size: 0.7em;
}

.footer-brand p {
    margin: 4px 0 0;
    color: #5a6880;
    font-size: 0.94rem;
}

.footer-brand p span {
    color: var(--pink);
    font-weight: 850;
}

.tt-square {
    width: 56px;
    height: 56px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #050913;
    box-shadow: 0 0 0 1px rgba(37, 228, 242, 0.34), 0 0 20px rgba(255, 47, 145, 0.18);
    font-size: 1.8rem;
}

.site-footer nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.site-footer a {
    color: #25344a;
    text-decoration: none;
    font-weight: 750;
}

.site-footer a:hover {
    color: #008fa0;
}

.fine-print {
    margin: 0;
    color: #68768c;
    font-size: 0.92rem;
}

/* Mobile --------------------------------------------------------------- */
@media (max-width: 980px) {
    .page-shell {
        width: min(100% - 26px, 760px);
        padding-top: 14px;
    }

    .site-header {
        padding-bottom: 16px;
    }

    .top-nav {
        gap: 12px;
        font-size: 0.9rem;
    }

    .top-nav a:not(.nav-submit) {
        display: none;
    }

    .nav-submit {
        padding: 10px 13px;
    }

    .hero {
        min-height: clamp(680px, 92svh, 820px);
        background: #081022;
    }

    .hero::after {
        display: none;
    }

    .hero-copy {
        width: min(100%, 560px);
        max-width: 100%;
        padding: 28px 24px 24px;
        background:
            linear-gradient(180deg, rgba(6, 10, 22, 0.86) 0%, rgba(6, 10, 22, 0.70) 76%, rgba(6, 10, 22, 0.0) 100%);
    }

    .hero-copy p:not(.lead) {
        max-width: 35rem;
    }

    .hero-art {
        position: absolute;
        inset: 0;
        height: auto;
        margin-top: 0;
        order: initial;
    }

    .hero-art img {
        object-position: 72% center;
        filter: brightness(1.18) saturate(1.18) contrast(1.03);
    }

    .feature-grid,
    .submit-grid,
    .how-panel {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        gap: 16px;
    }

    .how-panel ol {
        grid-template-columns: 1fr;
    }

    .how-panel li strong {
        max-width: none;
    }

    .submit-grid {
        gap: 16px;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 620px) {
    .page-shell {
        width: min(100% - 18px, 520px);
        padding-bottom: 22px;
    }

    .brand {
        font-size: 1.38rem;
    }

    .nav-submit {
        font-size: 0.86rem;
    }

    .hero,
    .section-card,
    .site-footer {
        border-radius: 20px;
    }

    .hero {
        min-height: clamp(700px, 90svh, 820px);
        background: #081022;
    }

    .hero-copy {
        width: 100%;
        padding: 24px 18px 10px;
        background:
            linear-gradient(180deg, rgba(6, 10, 22, 0.90) 0%, rgba(6, 10, 22, 0.80) 74%, rgba(6, 10, 22, 0.05) 100%);
    }

    h1 {
        font-size: clamp(2.9rem, 15vw, 4.15rem);
        line-height: 0.92;
        margin-bottom: 18px;
    }

    .fyp-badge {
        padding: 10px 13px;
        font-size: 1rem;
        margin-bottom: 18px;
    }

    .lead {
        font-size: 1.02rem;
        margin-bottom: 10px;
    }

    .hero-copy p:not(.lead) {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-cta {
        width: 100%;
        min-height: 58px;
        margin-top: 20px;
        margin-bottom: 0;
    }

    .hero-art {
        inset: auto 0 0 0;
        top: 46%;
    }

    .hero-art::after {
        display: none;
    }

    .hero-art img {
        object-fit: cover;
        object-position: 64% 22%;
        filter: brightness(1.24) saturate(1.20) contrast(1.03);
    }

    .feature-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 22px;
        min-height: 0;
    }

    .feature-icon {
        width: 68px;
        height: 68px;
        font-size: 2rem;
    }

    .how-panel,
    .form-card,
    .rules-card {
        padding: 22px;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .message-field {
        grid-row: auto;
    }

    .submit-button {
        width: 100%;
    }

    .footer-brand {
        align-items: flex-start;
    }

    .site-footer nav {
        gap: 14px;
    }
}

@media (max-width: 390px) {
    .top-nav {
        display: none;
    }

    .site-header {
        justify-content: center;
    }

    .hero {
        min-height: 680px;
    }

    h1 {
        font-size: 2.72rem;
    }

    .fyp-badge {
        font-size: 0.94rem;
    }

    .hero-art {
        top: 48%;
    }

    .hero-art img {
        object-position: 66% 24%;
        filter: brightness(1.26) saturate(1.20) contrast(1.03);
    }
}
