:root {
    --primary-red: #ff3b30;
    --primary-red-deep: #8f1711;
    --primary-red-soft: rgba(255, 59, 48, 0.18);
    --bg-black: #040404;
    --bg-panel: rgba(11, 11, 11, 0.74);
    --bg-panel-strong: rgba(16, 16, 16, 0.9);
    --text-main: #f7f1ed;
    --text-muted: #b8aba4;
    --text-faint: #7f6d66;
    --stroke: rgba(255, 255, 255, 0.08);
    --stroke-strong: rgba(255, 59, 48, 0.26);
    --glow: 0 0 28px rgba(255, 59, 48, 0.34);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    --transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 59, 48, 0.14), transparent 28%),
        radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.04), transparent 20%),
        radial-gradient(circle at bottom, rgba(143, 23, 17, 0.22), transparent 34%),
        linear-gradient(180deg, #090909 0%, #040404 45%, #070707 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 90%);
    opacity: 0.25;
}

#particles-js {
    position: fixed;
    inset: 0;
    z-index: -3;
}

.ambient {
    position: fixed;
    inset: auto;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.6;
    pointer-events: none;
    z-index: -2;
}

.ambient-one {
    top: 6%;
    left: -10%;
    width: 22rem;
    height: 22rem;
    background: rgba(255, 59, 48, 0.18);
    animation: floatGlow 13s ease-in-out infinite;
}

.ambient-two {
    right: -6%;
    bottom: 8%;
    width: 20rem;
    height: 20rem;
    background: rgba(143, 23, 17, 0.28);
    animation: floatGlow 16s ease-in-out infinite reverse;
}

.shell {
    position: relative;
    min-height: 100vh;
    padding: 28px;
    display: grid;
    place-items: center;
}

.container {
    width: min(1080px, 100%);
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.phase {
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.phase.active {
    display: block;
    opacity: 1;
    animation: phaseReveal 0.7s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 9px 16px;
    border: 1px solid var(--stroke-strong);
    border-radius: 999px;
    background: rgba(255, 59, 48, 0.08);
    color: #ff9189;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.72rem;
}

h1 {
    margin-bottom: 22px;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 7vw, 5.4rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff5f3;
    text-shadow: 0 0 30px rgba(255, 59, 48, 0.35);
}

.intro-box,
.about-layout {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--stroke);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%),
        var(--bg-panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.intro-box::before,
.about-layout::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.12), transparent 35%, transparent 65%, rgba(255, 255, 255, 0.03));
}

.intro-box {
    width: min(860px, 100%);
    margin: 0 auto 34px;
    padding: 34px;
    border-radius: 28px;
    text-align: left;
}

.intro-box p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1rem;
}

.intro-box p:last-child {
    margin-bottom: 0;
}

.intro-box strong {
    color: var(--text-main);
}

.intro-box-narrow {
    max-width: 640px;
    text-align: center;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-main) !important;
}

.disclaimer {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-faint) !important;
    font-size: 0.88rem !important;
    font-style: italic;
}

.cta-stack {
    display: grid;
    justify-items: center;
    gap: 20px;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.main-btn,
.secondary-btn,
.back-link {
    transition: var(--transition);
}

.main-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

.main-btn {
    min-width: 240px;
    padding: 16px 34px;
    border: 1px solid rgba(255, 97, 87, 0.7);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 59, 48, 0.16), rgba(143, 23, 17, 0.08)),
        rgba(0, 0, 0, 0.18);
    box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #fff6f4;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.main-btn:hover,
.main-btn:focus-visible {
    transform: translateY(-3px);
    background:
        linear-gradient(135deg, rgba(255, 59, 48, 0.92), rgba(143, 23, 17, 0.7)),
        rgba(0, 0, 0, 0.18);
    box-shadow: 0 18px 45px rgba(255, 59, 48, 0.28);
}

.main-btn-large {
    padding: 18px 48px;
    font-size: 1.2rem;
}

.secondary-btn {
    padding: 13px 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 59, 48, 0.42);
    background: rgba(255, 59, 48, 0.12);
    box-shadow: 0 10px 28px rgba(255, 59, 48, 0.16);
}

.secondary-btn-wide {
    min-width: 200px;
    padding-inline: 36px;
}

.aux-link-wrap {
    margin-top: -2px;
}

.back-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--text-faint);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.back-link:hover,
.back-link:focus-visible {
    color: #ff968f;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    width: 100%;
    min-height: 470px;
    border-radius: 30px;
    text-align: left;
}

.tabs-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
        rgba(0, 0, 0, 0.24);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-link {
    padding: 16px 18px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: transparent;
    color: var(--text-main);
    text-align: left;
    font: inherit;
    font-size: 0.96rem;
    cursor: pointer;
    transition: var(--transition);
}

.tab-link:hover,
.tab-link.active-tab {
    color: #fff4f2;
    border-color: rgba(255, 59, 48, 0.22);
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.16), rgba(255, 255, 255, 0.02));
    box-shadow: inset 3px 0 0 var(--primary-red);
}

.tab-panel {
    padding: 34px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active-content {
    display: block;
}

.tab-content h2 {
    margin-bottom: 18px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.85rem;
    color: #fff2ef;
}

.tab-content p {
    margin-bottom: 15px;
    color: var(--text-muted);
    line-height: 1.8;
}

.social-btn {
    width: 100%;
    margin-bottom: 12px;
}

.social-btn:last-child {
    margin-bottom: 0;
}

.copy-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.45);
}

.copy-box code {
    width: 80%;
    overflow-x: auto;
    white-space: nowrap;
    color: #9bffae;
    font-size: 0.85rem;
    font-family: monospace;
}

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

@keyframes phaseReveal {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatGlow {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(18px, -16px, 0) scale(1.08);
    }
}

@media (max-width: 900px) {
    .shell {
        padding: 18px;
    }

    .container {
        min-height: calc(100vh - 36px);
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .tabs-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .tab-link {
        flex: 1 1 calc(50% - 8px);
    }
}

@media (max-width: 640px) {
    body::before {
        opacity: 0.14;
    }

    .shell {
        padding: 14px;
    }

    h1 {
        letter-spacing: 0.08em;
    }

    .intro-box,
    .tab-panel {
        padding: 24px;
    }

    .intro-box {
        border-radius: 24px;
        text-align: left;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group a,
    .secondary-btn-wide,
    .main-btn {
        width: 100%;
    }

    .about-layout {
        border-radius: 24px;
    }

    .tabs-sidebar {
        padding: 14px;
    }

    .tab-link {
        flex: 1 1 100%;
    }
}
