:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --card-inner: #282828;
    --text-color: #ffffff;
    --text-muted: #b5b5b5;
    --main-font: 'Poppins', sans-serif;
    --arrow-cursor: url('/assets/arrow.cur'), auto;
    --hand-cursor: url('/assets/hand.cur'), auto;
    --accent: hsl(45, 100%, 72%);
    --accent-text: #000000;
    --border-color: #000000;
    --shadow: 5px 5px 0px #000000;
    --shadow-hover: 8px 8px 0px #000000;
    --shadow-offset: clamp(8px, 1.2vw, 20px);
    --container-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--accent);
    --grid-line-color: rgba(255, 255, 255, 0.07);
}

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

html,
body {
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: var(--arrow-cursor);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--main-font);
    min-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 2vh, 2.5rem) clamp(1rem, 3vw, 3rem);
    position: relative;
    overflow-x: hidden;
}

.bg-grid-slanted {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -2;
    pointer-events: none;
    transform: rotate(-12deg);
    background-image:
        linear-gradient(to right, var(--grid-line-color) 2px, transparent 2px),
        linear-gradient(to bottom, var(--grid-line-color) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: moveGrid 18s linear infinite;
}

@keyframes moveGrid {
    0% {
        transform: rotate(-12deg) translateY(0);
    }

    100% {
        transform: rotate(-12deg) translateY(50px);
    }
}

.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.03;
    background-image: radial-gradient(#ffffff 1px, transparent 0);
    background-size: 4px 4px;
}

/* Base Layout Container */
.container {
    width: 100%;
    max-width: min(92vw, 1400px);
    max-height: 100%;
    overflow-y: auto;
    overflow-x: auto;
    background: var(--card-bg);
    border: clamp(3px, 0.3vw, 5px) solid var(--border-color);
    border-radius: clamp(20px, 2.5vw, 36px);
    padding: clamp(1.25rem, 2.5vw, 2.5rem);
    box-shadow: var(--container-shadow);
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transform: translate(calc(-1 * var(--shadow-offset) / 2), calc(-1 * var(--shadow-offset) / 2));
}

.container::-webkit-scrollbar:horizontal {
    display: none;
    height: 0;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: clamp(1rem, 2vw, 2rem);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.brand-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.brand-title {
    font-family: var(--main-font);
    font-weight: 900;
    font-size: clamp(3rem, 4vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.5px;
    color: var(--text-color);
    text-shadow: 3px 3px 0px #000;
}

/* Reusable Button System */
.btn {
    cursor: var(--hand-cursor);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--main-font);
    font-weight: 800;
    text-decoration: none;
    border: clamp(2px, 0.2vw, 3.5px) solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-hover);
}

.btn:active {
    transform: translate(0px, 0px);
    box-shadow: 2px 2px 0px #000;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--accent-text);
}

.btn-pill {
    border-radius: 50px;
    padding: clamp(0.6rem, 1vw, 1.1rem) clamp(1.25rem, 2vw, 2.25rem);
    font-size: clamp(0.9rem, 1vw, 1.35rem);
}

.btn-block {
    width: 100%;
    border-radius: clamp(12px, 1.2vw, 18px);
    padding: clamp(0.8rem, 1.2vw, 1.2rem);
    font-size: clamp(1rem, 1.2vw, 1.4rem);
}

.btn-icon {
    width: clamp(20px, 1.5vw, 32px);
    height: clamp(20px, 1.5vw, 32px);
    fill: currentColor;
    flex-shrink: 0;
}

/* Content Sections & Headers */
.section {
    margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: clamp(0.8rem, 1.2vw, 1.2rem);
    flex-wrap: wrap;
}

.badge-title {
    font-family: var(--main-font);
    font-size: clamp(1.25rem, 1.8vw, 2.2rem);
    font-weight: 800;
    background: var(--accent);
    color: var(--accent-text);
    padding: clamp(0.2rem, 0.4vw, 0.5rem) clamp(0.75rem, 1vw, 1.25rem);
    border-radius: clamp(10px, 1vw, 16px);
    border: clamp(2px, 0.2vw, 3px) solid var(--border-color);
    box-shadow: 3px 3px 0px #000;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 1.8vw, 2rem);
}

.form-card {
    position: relative;
    background-color: var(--card-inner);
    border: clamp(2px, 0.2vw, 3.5px) solid var(--border-color);
    border-radius: clamp(16px, 1.5vw, 24px);
    padding: clamp(1.5rem, 2vw, 2.5rem);
    box-shadow: var(--shadow);
}

.text-area {
    width: 100%;
    height: 160px;
    background-color: transparent;
    color: var(--text-color);
    border: none;
    font-family: var(--main-font);
    font-size: clamp(1rem, 1.2vw, 1.4rem);
    line-height: 1.5;
    resize: none;
    outline: none;
}

.text-area::placeholder {
    color: var(--text-muted);
    font-weight: 600;
}

.char-counter {
    text-align: right;
    margin-top: 0.5rem;
    font-size: clamp(0.8rem, 0.9vw, 1rem);
    font-weight: 700;
    color: var(--text-muted);
}

.main-footer {
    margin-top: 1rem;
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: clamp(0.8rem, 0.9vw, 1.1rem);
    line-height: 1.6;
    border-top: 2px dashed rgba(255, 255, 255, 0.15);
}

.main-footer a {
    cursor: var(--hand-cursor);
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.main-footer a:hover {
    text-decoration: underline;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    backdrop-filter: blur(4px);
    transition: opacity 0.2s ease;
}

.popup-overlay.hidden {
    display: none;
}

.popup-card {
    background: var(--card-bg);
    border: 4px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 8px 8px 0px var(--accent);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: popupAnimation 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.popup-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent);
}

.popup-message {
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--text-color);
}

@keyframes popupAnimation {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-header,
.section-header,
.form-card,
.btn-submit,
.main-footer {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.main-header {
    animation-delay: 0.05s;
}

.section-header {
    animation-delay: 0.15s;
}

.form-card {
    animation-delay: 0.25s;
}

.btn-submit {
    animation-delay: 0.35s;
}

.main-footer {
    animation-delay: 0.45s;
}