@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&family=Orbitron:wght@700;900&display=swap');

:root {
    --bg: #07070a;
    --bg-soft: #0b0b10;
    --surface: #121119;
    --surface-2: #191822;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --ink: #f5f3f8;
    --ink-dim: #a5a1b1;
    --ink-faint: #6c6879;
    --violet: #8a2be2;
    --violet-light: #c9a6f7;
    --magenta: #ec4899;
    --gradient: linear-gradient(135deg, var(--violet) 0%, var(--magenta) 100%);
    --gradient-soft: linear-gradient(135deg, rgba(138, 43, 226, 0.16), rgba(236, 72, 153, 0.08));
    --danger: #ff3b5c;
    --glow: 0 0 30px rgba(138, 43, 226, 0.35);
    --radius-lg: 26px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mark: 'Orbitron', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --header-h: 84px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
    background: var(--violet);
    color: #fff;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2833; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--violet); }

a { color: inherit; }

img { max-width: 100%; display: block; }

:focus-visible {
    outline: 2px solid var(--violet-light);
    outline-offset: 3px;
}

@media (pointer: fine) {
    * {
        cursor: none !important;
    }
}

@media (pointer: fine) and (prefers-reduced-motion: reduce) {
    /* JS skips the custom cursor for reduced-motion users, so restore the native one here */
    * {
        cursor: auto !important;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container#about {
    margin-top: 60px;
}

.divider {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 100px 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    margin: 0 0 15px;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    line-height: 1.15;
}

h3 { font-size: 1.2rem; line-height: 1.3; }

p { margin: 0 0 15px; }

.accent-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.description {
    color: var(--ink-dim);
    font-size: 1.08rem;
    max-width: 480px;
}

.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.boot-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.boot-overlay.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot-mark {
    font-family: var(--font-mark);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--ink);
}

.boot-status {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: var(--violet-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.boot-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 10px var(--danger);
    animation: recBlink 1s steps(1) infinite;
}

.boot-bar {
    width: 220px;
    height: 2px;
    background: var(--line);
    overflow: hidden;
    border-radius: 2px;
}

.boot-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 40%;
    background: var(--gradient);
    animation: bootSweep 0.9s var(--ease) infinite;
}

@keyframes bootSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

@keyframes recBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.15; }
}

#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.14) 0%, rgba(0, 0, 0, 0) 68%);
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    will-change: transform;
}

#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ink);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: transform;
}

#cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s ease;
    border: 1px solid rgba(245, 243, 248, 0.55);
    border-radius: 50%;
    will-change: transform;
}

#cursor-ring::before, #cursor-ring::after {
    content: '';
    position: absolute;
    background: rgba(245, 243, 248, 0.55);
}

#cursor-ring::before {
    top: 50%; left: -7px;
    width: 6px; height: 1px;
    transform: translateY(-50%);
}

#cursor-ring::after {
    top: 50%; right: -7px;
    width: 6px; height: 1px;
    transform: translateY(-50%);
}

#cursor-ring.is-hover {
    width: 54px;
    height: 54px;
    border-color: var(--violet-light);
}

@media (pointer: coarse) {
    #cursor-glow, #cursor-dot, #cursor-ring { display: none; }
    a, button, select, input, .faq-question, .frame, .sos-toggle, .lang-select { cursor: auto; }
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--gradient);
    z-index: 10001;
    box-shadow: 0 0 12px rgba(138, 43, 226, 0.6);
}

.btn-primary, .btn-secondary {
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
    will-change: transform;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    border: none;
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.35);
}

.btn-primary::after, .btn-primary-sos::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    z-index: 1;
}

.btn-primary:hover, .btn-primary-sos:hover {
    box-shadow: 0 10px 32px rgba(138, 43, 226, 0.5);
    transform: translateY(-2px);
}

.btn-primary:hover::after, .btn-primary-sos:hover::after {
    left: 130%;
}

.btn-secondary {
    border: 1px solid var(--line-strong);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(6px);
}

.btn-secondary:hover {
    border-color: var(--violet-light);
    background: rgba(138, 43, 226, 0.1);
    transform: translateY(-2px);
}

header {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1180px, 92%);
    height: 68px;
    display: flex;
    align-items: center;
    padding: 0 10px 0 22px;
    background: rgba(15, 14, 20, 0.55);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 999px;
    z-index: 1000;
    transition: background 0.4s ease, border-color 0.4s ease, top 0.4s ease;
}

header.scrolled {
    top: 12px;
    background: rgba(8, 8, 12, 0.82);
    border-color: var(--line-strong);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.logo {
    width: 42px;
    height: 42px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-mark);
    font-size: 13px;
    letter-spacing: 0.5px;
    color: white;
    flex-shrink: 0;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(138, 43, 226, 0.4);
}

header nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 8px;
}

nav a {
    color: var(--ink-dim);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.25s ease, background 0.25s ease;
}

nav a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.05);
}

nav a.nav_main {
    color: var(--ink);
    background: rgba(138, 43, 226, 0.16);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.auth-icon-btn {
    width: 40px;
    height: 40px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.auth-icon-btn svg { width: 18px; height: 18px; }

.auth-icon-btn:hover {
    border-color: var(--violet-light);
    color: var(--violet-light);
}

.lang-select {
    background-color: var(--surface-2);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 30px 9px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23a5a1b1" height="9" viewBox="0 0 24 24" width="9" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.25s ease;
}

.lang-select:hover { border-color: var(--violet-light); }

.lang-select option {
    background-color: var(--surface);
    color: var(--ink);
}

.burger-menu {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.burger-menu span {
    width: 16px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-menu.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.frame {
    position: relative;
    background-color: transparent;
    background-image:
        linear-gradient(var(--violet-light), var(--violet-light)),
        linear-gradient(var(--violet-light), var(--violet-light)),
        linear-gradient(var(--violet-light), var(--violet-light)),
        linear-gradient(var(--violet-light), var(--violet-light)),
        linear-gradient(var(--violet-light), var(--violet-light)),
        linear-gradient(var(--violet-light), var(--violet-light)),
        linear-gradient(var(--violet-light), var(--violet-light)),
        linear-gradient(var(--violet-light), var(--violet-light));
    background-repeat: no-repeat;
    background-size: 22px 2px, 2px 22px, 22px 2px, 2px 22px, 22px 2px, 2px 22px, 22px 2px, 2px 22px;
    background-position:
        top 14px left 14px, top 14px left 14px,
        top 14px right 14px, top 14px right 14px,
        bottom 14px left 14px, bottom 14px left 14px,
        bottom 14px right 14px, bottom 14px right 14px;
}

.frame-inner {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.frame:hover .frame-inner {
    border-color: rgba(138, 43, 226, 0.4);
}

.frame-inner img {
    border-radius: var(--radius-sm);
    width: 100%;
    object-fit: cover;
}

.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 140px 20px 60px;
}

.video-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 7, 10, 0.55) 0%, rgba(7, 7, 10, 0.75) 55%, var(--bg) 100%);
}

.hero-frame {
    position: absolute;
    inset: 16px;
    pointer-events: none;
    z-index: 1;
    background-color: transparent;
    background-image:
        linear-gradient(var(--line-strong), var(--line-strong)),
        linear-gradient(var(--line-strong), var(--line-strong)),
        linear-gradient(var(--line-strong), var(--line-strong)),
        linear-gradient(var(--line-strong), var(--line-strong)),
        linear-gradient(var(--line-strong), var(--line-strong)),
        linear-gradient(var(--line-strong), var(--line-strong)),
        linear-gradient(var(--line-strong), var(--line-strong)),
        linear-gradient(var(--line-strong), var(--line-strong));
    background-repeat: no-repeat;
    background-size: 30px 1.5px, 1.5px 30px, 30px 1.5px, 1.5px 30px, 30px 1.5px, 1.5px 30px, 30px 1.5px, 1.5px 30px;
    background-position:
        top left, top left,
        top right, top right,
        bottom left, bottom left,
        bottom right, bottom right;
}

.hero-hud {
    position: absolute;
    top: 110px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 clamp(20px, 6vw, 90px);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--ink-dim);
    pointer-events: none;
}

.hud-rec {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffb3c1;
}

.hud-rec .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
    animation: recBlink 1.1s steps(1) infinite;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 20px;
    max-width: 900px;
}

.hero-title {
    font-family: var(--font-mark);
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    font-weight: 900;
    margin-bottom: 14px;
    letter-spacing: 3px;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    color: var(--ink-dim);
    margin-bottom: 34px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.compat-strip {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 26px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
    overflow: hidden;
}

.compat-track {
    display: flex;
    gap: 46px;
    flex-shrink: 0;
    animation: compatScroll 18s linear infinite;
}

.compat-track span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink-faint);
    white-space: nowrap;
    letter-spacing: 0.04em;
}

@keyframes compatScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.scroll-down {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid var(--line-strong);
    border-radius: 20px;
    z-index: 1;
}

.scroll-down::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--violet);
    border-radius: 2px;
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--violet);
    animation: scrollDot 1.8s ease infinite;
}

@keyframes scrollDot {
    0% { top: 8px; opacity: 1; }
    70% { top: 22px; opacity: 0; }
    100% { top: 22px; opacity: 0; }
}

.section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 130px;
    gap: 60px;
}

.section.reverse { flex-direction: row-reverse; }

.content-block { flex: 1; }

.image-placeholder {
    flex: 1;
    min-height: 360px;
    box-sizing: border-box;
    display: flex;
}

.lock-img-common { height: 250px; }

.sos-lock-anim {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sos-lock-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.55) 0%, rgba(138, 43, 226, 0) 70%);
    filter: blur(2px);
    animation: sosLockGlow 6s ease-in-out infinite;
    pointer-events: none;
}

.sos-lock-svg {
    position: relative;
    width: 230px;
    height: 280px;
    overflow: visible;
}

.sos-lock-shackle {
    transform-box: view-box;
    transform-origin: 70px 102px;
    animation: sosLockShackle 6s cubic-bezier(.45, .05, .25, 1) infinite;
    filter: drop-shadow(0 0 6px rgba(138, 43, 226, 0.6));
}

.sos-lock-body {
    transform-box: view-box;
    transform-origin: 100px 145px;
    animation: sosLockBody 6s ease-in-out infinite;
}

.sos-lock-keyhole {
    transform-box: view-box;
    transform-origin: 100px 132px;
    animation: sosLockKeyhole 6s ease-in-out infinite;
}

.sos-lock-ring {
    fill: none;
    stroke: var(--violet);
    stroke-width: 2;
    opacity: 0;
    transform-box: view-box;
    transform-origin: 100px 132px;
    animation: sosLockRing 6s ease-out infinite;
}

.sos-lock-ring-2 { animation-delay: 0.35s; }

.sos-spark {
    fill: var(--violet-light);
    opacity: 0;
    transform-box: view-box;
    transform-origin: 100px 97px;
    animation-duration: 6s;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
}

.sos-spark-1 { animation-name: sosSpark1; }
.sos-spark-2 { animation-name: sosSpark2; }
.sos-spark-3 { animation-name: sosSpark3; }
.sos-spark-4 { animation-name: sosSpark4; }
.sos-spark-5 { animation-name: sosSpark5; }
.sos-spark-6 { animation-name: sosSpark6; }

@keyframes sosLockShackle {
    0%, 12% { transform: rotate(0deg); }
    28% { transform: rotate(-42deg); }
    48% { transform: rotate(-42deg); }
    62% { transform: rotate(8deg); }
    68% { transform: rotate(-5deg); }
    74% { transform: rotate(2deg); }
    80%, 100% { transform: rotate(0deg); }
}

@keyframes sosLockBody {
    0%, 60% { transform: translateY(0) scale(1); }
    63% { transform: translateY(3px) scale(1.02, 0.98); }
    68% { transform: translateY(-1px) scale(1); }
    73%, 100% { transform: translateY(0) scale(1); }
}

@keyframes sosLockKeyhole {
    0%, 12% { opacity: 1; filter: drop-shadow(0 0 5px #8A2BE2); }
    28%, 48% { opacity: 0.2; filter: drop-shadow(0 0 0 transparent); }
    64% { opacity: 1; filter: drop-shadow(0 0 12px #8A2BE2); }
    80%, 100% { opacity: 1; filter: drop-shadow(0 0 5px #8A2BE2); }
}

@keyframes sosLockGlow {
    0%, 12% { opacity: 0.55; transform: scale(1); }
    28%, 48% { opacity: 0.22; transform: scale(0.9); }
    64% { opacity: 0.9; transform: scale(1.12); }
    100% { opacity: 0.55; transform: scale(1); }
}

@keyframes sosLockRing {
    0%, 60% { r: 50; opacity: 0; stroke-width: 3; }
    64% { opacity: 0.9; }
    88% { r: 95; opacity: 0; stroke-width: 1; }
    100% { r: 95; opacity: 0; }
}

@keyframes sosSpark1 {
    0%, 59% { opacity: 0; transform: translate(0, 0) scale(1); }
    62% { opacity: 1; }
    75% { opacity: 0; transform: translate(-26px, -22px) scale(0.3); }
    100% { opacity: 0; }
}
@keyframes sosSpark2 {
    0%, 59% { opacity: 0; transform: translate(0, 0) scale(1); }
    62% { opacity: 1; }
    75% { opacity: 0; transform: translate(-12px, -32px) scale(0.3); }
    100% { opacity: 0; }
}
@keyframes sosSpark3 {
    0%, 60% { opacity: 0; transform: translate(0, 0) scale(1); }
    63% { opacity: 1; }
    76% { opacity: 0; transform: translate(4px, -34px) scale(0.3); }
    100% { opacity: 0; }
}
@keyframes sosSpark4 {
    0%, 60% { opacity: 0; transform: translate(0, 0) scale(1); }
    63% { opacity: 1; }
    76% { opacity: 0; transform: translate(20px, -26px) scale(0.3); }
    100% { opacity: 0; }
}
@keyframes sosSpark5 {
    0%, 61% { opacity: 0; transform: translate(0, 0) scale(1); }
    64% { opacity: 1; }
    77% { opacity: 0; transform: translate(30px, -10px) scale(0.3); }
    100% { opacity: 0; }
}
@keyframes sosSpark6 {
    0%, 61% { opacity: 0; transform: translate(0, 0) scale(1); }
    64% { opacity: 1; }
    77% { opacity: 0; transform: translate(-30px, -8px) scale(0.3); }
    100% { opacity: 0; }
}

@media (max-width: 900px) {
    .sos-lock-anim { width: 170px; height: 170px; }
    .sos-lock-svg { width: 150px; height: 165px; }
    .sos-lock-glow { width: 140px; height: 140px; }
}

.projects-title { text-align: center; }

.stats-section { padding: 40px 0; margin-bottom: 90px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    text-align: center;
}

.stat-item {
    padding: 34px 20px;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    transition: border-color 0.3s ease, transform 0.3s var(--ease), background 0.3s ease;
}

.stat-item:hover {
    border-color: var(--violet-light);
    transform: translateY(-6px);
    background: rgba(138, 43, 226, 0.06);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 6px;
}

.stat-text {
    font-size: 0.95rem;
    color: var(--ink-dim);
    letter-spacing: 0.04em;
}

.download-section {
    text-align: center;
    padding: 30px 0 70px;
}

.download-note {
    color: var(--ink-dim);
    font-size: 0.92rem;
    margin-top: 22px;
}

.btn-primary-sos {
    padding: 22px 46px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.35rem;
    cursor: pointer;
    background: var(--gradient);
    color: #fff;
    border: none;
    box-shadow: 0 14px 40px rgba(138, 43, 226, 0.4);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.faq-container {
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover { border-color: rgba(138, 43, 226, 0.4); }

.faq-question {
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 1.05rem;
    user-select: none;
}

.faq-icon {
    font-size: 1.4rem;
    color: var(--violet-light);
    transition: transform 0.4s ease;
    flex-shrink: 0;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s var(--ease);
    background: rgba(0, 0, 0, 0.2);
}

.faq-answer > div { overflow: hidden; }

.faq-answer p {
    padding: 0 26px 22px;
    color: var(--ink-dim);
    margin: 0;
}

.faq-item.active .faq-answer { grid-template-rows: 1fr; }

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--danger);
}

.roadmap-container {
    position: relative;
    max-width: 1100px;
    margin: 60px auto;
    padding: 40px 0;
}

.roadmap-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    top: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, var(--violet), transparent);
    z-index: 1;
}

.roadmap-item {
    position: relative;
    width: 50%;
    margin-bottom: 40px;
    z-index: 2;
}

.roadmap-item.left { left: 0; padding-right: 50px; text-align: right; box-sizing: border-box; }
.roadmap-item.right { left: 50%; padding-left: 50px; text-align: left; box-sizing: border-box; }

.roadmap-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--bg);
    border: 3px solid var(--violet);
    border-radius: 50%;
    top: 30px;
    z-index: 10;
    box-shadow: 0 0 15px var(--violet);
}

.left .roadmap-dot { right: -7px; }
.right .roadmap-dot { left: -7px; }

.roadmap-content {
    background: var(--surface);
    padding: 26px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    display: inline-block;
    transition: border-color 0.3s ease, transform 0.3s var(--ease);
    max-width: 440px;
}

.roadmap-date {
    color: var(--violet-light);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
}

.roadmap-content h3 { margin-top: 10px; }
.roadmap-content p { color: var(--ink-dim); margin-bottom: 0; }

.roadmap-item:hover .roadmap-content {
    border-color: var(--violet-light);
    transform: translateY(-5px);
}

.socials-section { padding: 60px 0; text-align: center; }

.socials-subtitle { color: var(--ink-dim); margin-bottom: 40px; }

.socials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 26px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--line);
    transition: transform 0.3s var(--ease), border-color 0.3s ease, background 0.3s ease;
    min-width: 180px;
}

.social-item:hover {
    transform: translateY(-5px);
    border-color: var(--violet-light);
    background: rgba(138, 43, 226, 0.08);
}

.social-icon { font-size: 1.4rem; }
.social-item span { font-weight: 600; font-size: 0.98rem; font-family: var(--font-display); }

.footer {
    background: linear-gradient(to top, #0a0a0e, var(--bg));
    padding: 80px 0 30px;
    border-top: 1px solid var(--line);
    margin-top: 100px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-brand .logo { margin-bottom: 20px; }
.footer-desc { color: var(--ink-dim); max-width: 300px; }

.footer h4 {
    color: var(--violet-light);
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    margin-bottom: 22px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 12px; }

.footer ul a, .footer-links > a {
    color: var(--ink-dim);
    text-decoration: none;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer ul a:hover, .footer-links > a:hover {
    color: var(--violet-light);
    padding-left: 4px;
}

.footer-contact p { color: var(--ink-dim); margin-bottom: 10px; }
.footer-contact a { color: var(--ink); text-decoration: none; }
.footer-bottom { text-align: center; margin-top: 50px; }
.footer-bottom .divider { margin: 30px 0; opacity: 0.5; }
.footer-bottom p { color: var(--ink-faint); font-size: 0.85rem; }

.privacy-link {
    color: var(--ink-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s ease;
}

.privacy-link:hover { color: var(--violet-light); }

.support-container { max-width: 1100px; margin-top: 190px; }

.support-header { text-align: center; max-width: 680px; margin: 0 auto 60px; }

.support-header h1 {
    font-family: var(--font-mark);
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.support-subtitle { color: var(--ink-dim); font-size: 1.1rem; }

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-bottom: 50px;
}

.support-card {
    --card-accent: var(--violet);
    --card-shadow: rgba(138, 43, 226, 0.35);
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 22px;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.support-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--card-accent), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.support-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-accent);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px var(--card-shadow);
}

.support-card:hover::before { opacity: 0.1; }

.support-card-icon {
    position: relative;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: var(--card-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 6px 18px var(--card-shadow);
}

.support-card-icon::before {
    content: attr(data-badge);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

.support-card-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.support-card-body { flex: 1; min-width: 0; }
.support-card-body h3 { margin: 0 0 4px; font-size: 1.1rem; }
.support-card-body p { margin: 0; color: var(--ink-dim); font-size: 0.9rem; }

.support-card-arrow { flex-shrink: 0; font-size: 1.2rem; color: var(--ink-dim); transition: color 0.25s ease, transform 0.25s ease; }
.support-card:hover .support-card-arrow { color: var(--card-accent); transform: translateX(4px); }

.support-card.kofi { --card-accent: #FF5E5B; --card-shadow: rgba(255, 94, 91, 0.35); }
.support-card.donationalerts { --card-accent: #FF4B15; --card-shadow: rgba(255, 75, 21, 0.35); }
.support-card.donatepay { --card-accent: #7B3FE4; --card-shadow: rgba(123, 63, 228, 0.35); }
.support-card.donatex { --card-accent: #2F81FF; --card-shadow: rgba(47, 129, 255, 0.35); }
.support-card.patreon { --card-accent: #FF424D; --card-shadow: rgba(255, 66, 77, 0.35); }
.support-card.patreon .support-card-icon { background: #101010; }
.support-card.boosty { --card-accent: #FF6C2C; --card-shadow: rgba(255, 108, 44, 0.35); }

.support-footnote { text-align: center; color: var(--ink-dim); font-size: 0.92rem; max-width: 600px; margin: 0 auto; }

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 54px;
    height: 54px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.3s ease;
    z-index: 9990;
}

.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--violet-light); }

.back-to-top svg { position: absolute; inset: 0; transform: rotate(-90deg); }

.back-to-top circle.track { fill: none; stroke: var(--line); stroke-width: 2; }
.back-to-top circle.progress {
    fill: none;
    stroke: url(#backToTopGrad);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 150.8;
    stroke-dashoffset: 150.8;
    transition: stroke-dashoffset 0.1s linear;
}

.back-to-top .arrow { position: relative; z-index: 1; }

.toast-notification {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--surface);
    border: 1px solid var(--violet);
    color: var(--ink);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(138, 43, 226, 0.3);
    z-index: 9998;
    max-width: 300px;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
}

@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(10px); } }

body.horror-mode {
    --violet: #ff0000;
    --magenta: #8b0000;
    --violet-light: #ff5050;
}

body.horror-mode::after {
    content: '';
    position: fixed;
    inset: 0;
    box-shadow: inset 0 0 200px rgba(255, 0, 0, 0.5);
    pointer-events: none;
    z-index: 10000;
    animation: pulseRed 2s infinite;
}

.horror-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff0000;
    font-family: var(--font-mark);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    text-shadow: 0 0 30px #ff0000, 0 0 10px #8b0000;
    z-index: 10001;
    pointer-events: none;
    animation: fadeInOut 4s forwards;
    letter-spacing: 10px;
    text-align: center;
    padding: 0 20px;
}

@keyframes pulseRed {
    0% { box-shadow: inset 0 0 150px rgba(255, 0, 0, 0.4); }
    50% { box-shadow: inset 0 0 250px rgba(255, 0, 0, 0.7); }
    100% { box-shadow: inset 0 0 150px rgba(255, 0, 0, 0.4); }
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -40%); }
    20% { opacity: 1; transform: translate(-50%, -50%); }
    80% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -60%); }
}

.sos-widget-demo {
    background-color: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 22px;
    width: 100%;
    max-width: 360px;
    text-align: left;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    font-family: var(--font-body);
    color: var(--ink);
    box-sizing: border-box;
}

.sos-widget-demo.small { max-width: 380px; }

.sos-demo-disclaimer {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-faint);
    text-align: center;
    margin-top: 20px;
    border-top: 1px dashed var(--line);
    padding-top: 10px;
}

.sos-setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.sos-setting-text { display: flex; flex-direction: column; }
.sos-setting-text strong { font-size: 14px; margin-bottom: 2px; }
.sos-setting-text span { font-size: 11px; color: var(--ink-faint); }

.sos-toggle {
    width: 44px;
    height: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.sos-toggle.active { background: var(--gradient); border-color: transparent; }

.sos-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 1px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sos-toggle.active .sos-thumb { transform: translateX(20px); }

.sos-select, .sos-interval-inputs input, .sos-single-input {
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    outline: none;
}

.sos-input-group strong { font-size: 13px; display: block; margin-bottom: 8px; }
.sos-interval-inputs { display: flex; align-items: center; gap: 10px; }
.sos-interval-inputs input { width: 60px; text-align: center; }
.sos-dash { color: var(--ink-faint); }
.sos-single-input { width: 80px; }
.sos-recommendation-text { font-size: 11px; color: var(--ink-faint); margin-top: 12px; line-height: 1.4; }

.sos-obs-guide strong { font-size: 13px; display: block; margin-bottom: 10px; }
.sos-obs-guide ol { padding-left: 0; list-style: none; margin: 0 0 15px; font-size: 12px; color: var(--ink-dim); counter-reset: my-counter; }
.sos-obs-guide ol li { margin-bottom: 6px; counter-increment: my-counter; }
.sos-obs-guide ol li::before { content: counter(my-counter) ". "; color: var(--violet-light); font-weight: bold; }
.purple-text { color: var(--violet-light); }

.sos-copy-box { display: flex; gap: 5px; margin-bottom: 12px; }
.sos-copy-box input { flex: 1; background: var(--bg); border: 1px solid var(--line); color: var(--ink-dim); padding: 8px; border-radius: 6px; font-size: 11px; }
.sos-copy-btn { background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 6px; width: 35px; cursor: pointer; transition: border-color 0.2s; }
.sos-copy-btn:hover { border-color: var(--violet-light); }
.sos-warning { font-size: 11px; color: #eab308; line-height: 1.4; }

.sos-volume-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sos-volume-header strong { font-size: 14px; }
.sos-volume-value { font-size: 13px; font-weight: 700; color: var(--violet-light); min-width: 42px; text-align: right; font-family: var(--font-mono); }

.sos-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 4px;
    outline: none;
    margin: 4px 0 16px;
    background: linear-gradient(to right, var(--violet) 0%, var(--magenta) 100%, var(--line) 100%, var(--line) 100%);
}

.sos-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.35), 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.2s, transform 0.2s;
}

.sos-volume-slider::-webkit-slider-thumb:hover { box-shadow: 0 0 0 6px rgba(138, 43, 226, 0.45), 0 2px 6px rgba(0, 0, 0, 0.5); transform: scale(1.05); }
.sos-volume-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: none; box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.35); }
.sos-volume-slider::-moz-range-progress { background: var(--gradient); height: 6px; border-radius: 4px; }
.sos-volume-slider::-moz-range-track { background: var(--line); height: 6px; border-radius: 4px; }

.sos-arrow { color: var(--ink-faint); font-size: 16px; }
.sos-conn-text { display: flex; flex-direction: column; }
.sos-conn-text strong { font-size: 13px; }
.sos-conn-text span { font-size: 11px; color: var(--ink-faint); }

.sos-btn-outline {
    background: transparent;
    border: 1px solid var(--violet-light);
    color: var(--violet-light);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.2s;
}

.sos-btn-outline:hover { background: rgba(138, 43, 226, 0.15); }

.sos-conn-screen { display: none; }
.sos-conn-screen.active { display: block; animation: sosFadeIn 0.3s; }

.sos-conn-title { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; color: var(--ink-faint); text-transform: uppercase; margin-bottom: 14px; }
.sos-conn-list { display: flex; flex-direction: column; }
.sos-conn-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 8px; transition: background 0.2s; }
.sos-conn-row:hover { background: rgba(255, 255, 255, 0.02); }
.sos-conn-row:last-child { border-bottom: none; }
.sos-conn-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sos-conn-avatar { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0; }
.sos-avatar-twitch { background: var(--violet); }
.sos-avatar-tiktok { background: #050505; border: 1px solid var(--line); }
.sos-avatar-youtube { background: #ff0000; }
.sos-avatar-kick { background: #22c55e; color: #06210f; }

.sos-conn-connect-btn { flex-shrink: 0; padding: 7px 16px; }
.sos-conn-status.is-connected { color: var(--violet-light); }

.sos-conn-screen-form { position: relative; text-align: center; padding-top: 4px; }
.sos-conn-close-btn { position: absolute; top: -6px; right: -6px; background: none; border: none; color: var(--ink-faint); font-size: 20px; line-height: 1; cursor: pointer; padding: 6px; transition: color 0.2s; }
.sos-conn-close-btn:hover { color: var(--ink); }
.sos-conn-modal-avatar { width: 48px; height: 48px; border-radius: 12px; font-size: 15px; margin: 0 auto 14px; }
.sos-conn-modal-title { font-size: 16px; font-weight: 700; margin: 0 0 6px; font-family: var(--font-display); }
.sos-conn-modal-subtitle { font-size: 12px; color: var(--ink-faint); margin: 0 0 20px; }
.sos-conn-screen-form .sos-input-group { text-align: left; margin-bottom: 18px; }

.sos-conn-modal-input {
    width: 100%;
    box-sizing: border-box;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    outline: none;
    margin-top: 8px;
    transition: border-color 0.2s;
}

.sos-conn-modal-input:focus { border-color: var(--violet-light); }

.sos-conn-modal-submit {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-display);
    color: #fff;
    background: var(--gradient);
    cursor: pointer;
    transition: filter 0.2s, transform 0.2s;
}

.sos-conn-modal-submit:hover { filter: brightness(1.1); transform: translateY(-1px); }

@keyframes sosFadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
    .toast-notification { left: 20px; right: 20px; bottom: 90px; max-width: none; }
}