/* ============================================
   HYPERFORZA – GLOBAL STYLES
   Shared variables, reset, body defaults,
   and the animated CTA .button component.
   ============================================ */

/* ---- VARIABLES ---- */
:root {
    --red: #fe0000;
    --red-dark: #cc0000;
    --red-glow: rgba(254, 0, 0, 0.25);
    --red-mid: rgba(254, 0, 0, 0.6);
    --red-soft: rgba(254, 0, 0, 0.4);
    --red-subtle: rgba(254, 0, 0, 0.08);
    --bg: #0a0a0a;
    --bg-card: #111111;
    --white: #f5f5f5;
    --white-90: rgba(255, 255, 255, 0.9);
    --white-80: rgba(255, 255, 255, 0.8);
    --white-70: rgba(245, 245, 245, 0.7);
    --white-60: rgba(255, 255, 255, 0.6);
    --white-50: rgba(245, 245, 245, 0.5);
    --white-40: rgba(255, 255, 255, 0.4);
    --white-30: rgba(245, 245, 245, 0.3);
    --white-10: rgba(245, 245, 245, 0.1);
    --white-05: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --text-secondary: #999999;
    --text-muted: #666666;
    --border: #222222;
}

/* ---- RESET ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---- UTILITY ---- */
.text-red {
    color: var(--red);
}

/* ============================================
   ANIMATED CTA BUTTON (.button)
   ============================================ */
.button {
    --black-700: hsla(0 0% 12% / 1);
    --border_radius: 8px;
    --transtion: 0.3s ease-in-out;
    --offset: 2px;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transform-origin: center;
    padding: 1rem 2rem;
    background-color: transparent;
    border: none;
    border-radius: var(--border_radius);
    transform: scale(calc(1 + (var(--active, 0) * 0.1)));
    transition: transform var(--transtion);
    text-decoration: none;
}

.button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: var(--black-700);
    border-radius: var(--border_radius);
    box-shadow: inset 0 0.5px hsl(0, 0%, 100%), inset 0 -1px 2px 0 hsl(0, 0%, 0%), 0px 4px 10px -4px hsla(0 0% 0% / calc(1 - var(--active, 0))), 0 0 0 calc(var(--active, 0) * 0.375rem) hsl(260 97% 50% / 0.75);
    transition: all var(--transtion);
    z-index: -1;
}

.button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: rgba(254, 0, 0, 0.75);
    background-image: radial-gradient(at 51% 89%, #ff3333 0px, transparent 50%), radial-gradient(at 100% 100%, #fe0000 0px, transparent 50%), radial-gradient(at 22% 91%, #fe0000 0px, transparent 50%);
    background-position: top;
    opacity: var(--active, 0);
    border-radius: var(--border_radius);
    transition: opacity var(--transtion);
    z-index: 2;
}

.button:is(:hover, :focus-visible) {
    --active: 1;
}

.button:active {
    transform: scale(1);
}

.button .dots_border {
    --size_border: calc(100% + 2px);
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--size_border);
    height: var(--size_border);
    background-color: transparent;
    border-radius: var(--border_radius);
    z-index: -10;
}

.button .dots_border::before {
    content: "";
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: left;
    transform: rotate(0deg);
    width: 100%;
    height: 2rem;
    background-color: var(--white);
    mask: linear-gradient(transparent 0%, white 120%);
    -webkit-mask: linear-gradient(transparent 0%, white 120%);
    animation: button-rotate 2s linear infinite;
}

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

.button .sparkle {
    position: relative;
    z-index: 10;
    width: 1.75rem;
}

.button .sparkle .path {
    fill: currentColor;
    stroke: currentColor;
    transform-origin: center;
    color: hsl(0, 0%, 100%);
}

.button:is(:hover, :focus) .sparkle .path {
    animation: button-path 1.5s linear 0.5s infinite;
}

.button .sparkle .path:nth-child(1) {
    --scale_path_1: 1.2;
}

.button .sparkle .path:nth-child(2) {
    --scale_path_2: 1.2;
}

.button .sparkle .path:nth-child(3) {
    --scale_path_3: 1.2;
}

@keyframes button-path {

    0%,
    34%,
    71%,
    100% {
        transform: scale(1);
    }

    17% {
        transform: scale(var(--scale_path_1, 1));
    }

    49% {
        transform: scale(var(--scale_path_2, 1));
    }

    83% {
        transform: scale(var(--scale_path_3, 1));
    }
}

.button .text_button {
    position: relative;
    z-index: 10;
    background-image: linear-gradient(90deg, hsla(0 0% 100% / 1) 0%, hsla(0 0% 100% / var(--active, 0)) 120%);
    background-clip: text;
    -webkit-background-clip: text;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .button {
        padding: 0.8rem 1.6rem;
    }
}