@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Bebas+Neue&family=Rajdhani:wght@300;400;600;700&display=swap');

:root {
    --bg: #020812;
    --surface: rgba(255, 255, 255, 0.03);
    --accent: #00c8ff;
    --text: #e0f4ff;
    --muted: #4a7a9b;
    /* page accent (a = colour, ar = same colour as r,g,b) */
    --a: #ff8a3d;
    --ar: 255, 138, 61;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* scanlines + moving grid + noise */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.2) 2px, rgba(0, 0, 0, 0.2) 4px);
    pointer-events: none;
    z-index: 100;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(var(--ar), 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--ar), 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridMove {
    to {
        transform: translateY(40px);
    }
}

.noise {
    position: fixed;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 99;
}

/* orbs + corners */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.glow-orb.o1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--ar), 0.08) 0%, transparent 70%);
    top: -100px;
    left: -150px;
    animation: orbFloat 14s ease-in-out infinite;
}

.glow-orb.o2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.06) 0%, transparent 70%);
    bottom: 80px;
    right: -80px;
    animation: orbFloat 17s ease-in-out infinite reverse;
}

.glow-orb.o3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 45, 120, 0.05) 0%, transparent 70%);
    top: 40%;
    left: 60%;
    animation: orbFloat 20s ease-in-out infinite;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(40px, 60px);
    }
}

.corner-deco {
    position: fixed;
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 2;
    --c: rgba(var(--ar), 0.25);
}

.corner-deco.tl {
    top: 16px;
    left: 16px;
    border-top: 1px solid var(--c);
    border-left: 1px solid var(--c);
}

.corner-deco.tr {
    top: 16px;
    right: 16px;
    border-top: 1px solid var(--c);
    border-right: 1px solid var(--c);
}

.corner-deco.bl {
    bottom: 16px;
    left: 16px;
    border-bottom: 1px solid var(--c);
    border-left: 1px solid var(--c);
}

.corner-deco.br {
    bottom: 16px;
    right: 16px;
    border-bottom: 1px solid var(--c);
    border-right: 1px solid var(--c);
}

/* layout */
.wrapper {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 64px 28px 90px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* hero */
.hero {
    text-align: center;
    animation: fadeUp 0.7s ease both;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(var(--ar), 0.35);
    background: linear-gradient(135deg, #071323, #0d1f3c);
    overflow: hidden;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #fff 30%, var(--a) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 11vw, 5.5rem);
    letter-spacing: 0.1em;
    line-height: 1;
    background: linear-gradient(135deg, #fff 30%, var(--a) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(var(--ar), 0.3));
    margin-bottom: 12px;
}

.page-sub {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.page-sub::before {
    content: '// ';
    color: rgba(var(--ar), 0.5);
}

/* section label */
.section-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    color: var(--a);
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::before {
    content: '';
    width: 16px;
    height: 1px;
    background: var(--a);
    opacity: 0.6;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--ar), 0.2), transparent);
}

/* back link */
.back a {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: rgba(var(--ar), 0.6);
    text-decoration: none;
    text-transform: uppercase;
    display: inline-flex;
    gap: 8px;
    padding: 8px 0;
    transition: color 0.2s;
}

.back a::before {
    content: '>';
    transition: transform 0.2s;
}

.back a:hover {
    color: var(--a);
}

.back a:hover::before {
    transform: translateX(4px);
}

.back a:focus-visible {
    outline: 2px solid var(--a);
    outline-offset: 4px;
}

/* cursor (driven by Scripts/main.js) */
#cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--a);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 16px rgba(var(--ar), 0.9);
    mix-blend-mode: screen;
}

#cursorRing {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(var(--ar), 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease;
}

@media (pointer: fine) {

    body,
    a,
    button {
        cursor: none;
    }
}

@media (max-width: 600px) {
    .wrapper {
        padding: 40px 18px 70px;
        gap: 26px;
    }

    .corner-deco {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ── GOALS ── */
.goal-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: fadeUp 0.6s ease 0.15s both;
}

.goal-card {
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid rgba(var(--ar), 0.12);
    border-left: 3px solid rgba(var(--ar), 0.5);
    border-radius: 4px;
}

.goal-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.goal-icon {
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    color: var(--a);
    background: rgba(var(--ar), 0.1);
    border: 1px solid rgba(var(--ar), 0.35);
}

.goal-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.9rem;
    letter-spacing: 0.08em;
    line-height: 1;
}

.goal-note {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--muted);
    text-transform: uppercase;
    margin-top: 4px;
}

.goal-count {
    margin-left: auto;
    text-align: right;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 0.05em;
    line-height: 1;
}

.goal-count b {
    color: var(--a);
    font-weight: 400;
}

.goal-count span {
    color: var(--muted);
    font-size: 1.4rem;
}

.goal-bar {
    position: relative;
    height: 12px;
    background: rgba(var(--ar), 0.08);
    border: 1px solid rgba(var(--ar), 0.3);
}

.goal-fill {
    height: 100%;
    width: 0;
    background: var(--a);
    box-shadow: 0 0 14px rgba(var(--ar), 0.7);
    transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.goal-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0 28px, rgba(2, 8, 18, 0.9) 28px 30px);
}

.goal-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: var(--muted);
    text-transform: uppercase;
}

.goal-meta .pct {
    color: var(--a);
}

.goal-card.done {
    border-left-color: var(--a);
    box-shadow: 0 0 24px rgba(var(--ar), 0.12);
}

@media (max-width: 600px) {
    .goal-top {
        flex-wrap: wrap;
    }

    .goal-count {
        font-size: 1.8rem;
    }
}