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

:root {
    --red-primary: #ff006e;
    --red-secondary: #ff4791;
    --red-tertiary: #ff2e7e;
    --black-primary: #09090b;
    --black-secondary: #18181b;
    --black-tertiary: #27272a;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --glow-red: rgba(255, 0, 110, 0.8);
    --gradient-primary: linear-gradient(
        135deg,
        var(--red-primary),
        var(--red-secondary)
    );
}

body {
    font-family:
        "Inter",
        "Segoe UI",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    background-color: var(--black-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    font-feature-settings:
        "liga" 1,
        "calt" 1;
}

/* Анимация падающих долларов (только внизу) */
.dollar-rain {
    position: fixed;
    top: 50vh;
    left: 0;
    width: 100%;
    height: 50vh;
    pointer-events: none;
    z-index: -1;
}

.dollar {
    position: absolute;
    font-size: 24px;
    opacity: 0;
    animation: fall linear infinite;
    color: var(--red-primary);
    text-shadow: 0 0 15px var(--glow-red);
    font-weight: 800;
    font-family: "Courier New", monospace;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.08;
    }
    90% {
        opacity: 0.08;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Анимация созвездия звезд (только вверху) */
.constellation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    pointer-events: none;
    z-index: 0;
}

.constellation-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--red-primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--glow-red);
    opacity: 0.4;
    animation: pulse 3s infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.2;
    }
    100% {
        opacity: 0.5;
    }
}

.constellation-line {
    position: absolute;
    background: rgba(255, 0, 110, 0.12);
    height: 1px;
    transform-origin: left center;
}

/* Graph Visualization - основной фон */
.graph-visualization {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -3;
}

.graph-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--red-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--glow-red);
    opacity: 0.15;
}

.graph-edge {
    position: absolute;
    background: rgba(255, 0, 110, 0.08);
    height: 1px;
    transform-origin: left center;
}

/* OSINT/Research themed elements */
.osint-element {
    position: absolute;
    color: var(--red-primary);
    font-size: 12px;
    opacity: 0.06;
    font-family: "Courier New", monospace;
    font-weight: bold;
    pointer-events: none;
    z-index: -2;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    z-index: 2;
}

/* Размытый фон */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--black-primary) 0%,
        var(--black-secondary) 100%
    );
    z-index: -4;
}

.hero-small {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    z-index: 2;
}

/* Подложка под текст */
.hero-small .container {
    position: relative;
    z-index: 3;
    background: rgba(18, 18, 20, 0.75);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 3.5rem;
    box-shadow:
        0 0 0 1px rgba(255, 0, 110, 0.25),
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 0 30px rgba(255, 0, 110, 0.08);
    max-width: 850px;
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 0, 110, 0.2);
}

.hero-small::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--black-primary) 0%,
        var(--black-secondary) 100%
    );
    z-index: -4;
}

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

h1 {
    font-size: 4.2rem;
    font-weight: 900;
    margin-bottom: 1.8rem;
    line-height: 1.05;
    text-shadow: 0 0 20px var(--glow-red);
    letter-spacing: -1px;
    background: linear-gradient(
        to right,
        var(--text-primary),
        var(--red-primary)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 .red {
    color: var(--red-primary);
    -webkit-text-fill-color: var(--red-primary);
}
h1 .dark {
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
}

p.hero-text {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin: 0 auto 2.8rem;
    opacity: 0.95;
    max-width: 750px;
    font-weight: 400;
    letter-spacing: -0.2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.4rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin: 0.6rem;
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    letter-spacing: 0.8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.7s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    box-shadow: 0 8px 25px rgba(255, 0, 110, 0.4);
    border: 2px solid var(--red-primary);
    font-weight: 700;
}

.btn-primary:hover {
    background: linear-gradient(
        135deg,
        var(--red-secondary),
        var(--red-tertiary)
    );
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 0, 110, 0.6);
}

.btn-outline {
    border: 2px solid var(--red-primary);
    color: var(--red-primary);
    background: transparent;
    font-weight: 600;
}

.btn-outline:hover {
    background: rgba(255, 0, 110, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 0, 110, 0.25);
}

.btn-telegram {
    background: #26a5e4;
    color: white;
    border: 2px solid #26a5e4;
    font-weight: 700;
}

.btn-telegram:hover {
    background: #1e88c1;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(38, 165, 228, 0.4);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 0, 110, 0.15);
    color: var(--red-primary);
    border: 1px solid var(--red-primary);
    margin: 2rem auto 0;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(255, 0, 110, 0.25);
    transform: translateY(-2px);
}

section {
    padding: 7rem 0;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4.5rem;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title .red {
    color: var(--red-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1.2rem auto;
    border-radius: 2px;
    box-shadow: 0 0 15px var(--glow-red);
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-text {
    flex: 1;
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 1.4rem;
    line-height: 1.8;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border-left: 3px solid var(--red-primary);
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.about-text p:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(5px);
}

.about-text p::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 2rem;
    color: var(--red-primary);
    opacity: 0.2;
    font-family: serif;
}

.expertise {
    background: rgba(24, 24, 27, 0.5);
    border: 1px solid rgba(255, 0, 110, 0.2);
    padding: 2.5rem;
    border-radius: 20px;
    flex: 1;
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.expertise:hover {
    border-color: var(--red-primary);
    box-shadow:
        0 0 25px rgba(255, 0, 110, 0.2),
        0 12px 35px rgba(0, 0, 0, 0.35);
    transform: translateY(-5px);
}

.expertise h3 {
    color: var(--red-primary);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.expertise h3 i {
    margin-right: 12px;
    font-size: 1.4rem;
}

.expertise ul {
    list-style: none;
}

.expertise li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    padding-left: 24px;
    position: relative;
    font-size: 1.05rem;
    font-weight: 500;
}

.expertise li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--red-primary);
    box-shadow: 0 0 8px var(--glow-red);
    opacity: 0.6;
}

.featured-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.article-card {
    background: rgba(24, 24, 27, 0.4);
    border: 1px solid #333;
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /*opacity: 0;*/
    transform: translateY(25px);
    backdrop-filter: blur(4px);
}

.article-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.article-card:hover {
    border-color: var(--red-primary);
    transform: translateY(-8px) !important;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 0, 110, 0.3);
    background: rgba(24, 24, 27, 0.6);
}

.article-card h3 {
    color: var(--red-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.article-card h3 i {
    margin-right: 12px;
    font-size: 1.1rem;
}

.article-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
}

footer {
    text-align: center;
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255, 0, 110, 0.08);
    color: var(--text-secondary);
    font-size: 1rem;
}

.terminal-line {
    display: flex;
    margin: 1.8rem 0;
    font-family: "JetBrains Mono", "Courier New", monospace;
    background: rgba(24, 24, 27, 0.4);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 0, 110, 0.15);
    max-width: 700px;
    margin: 1.8rem auto;
    backdrop-filter: blur(6px);
}

.terminal-prompt {
    color: var(--red-primary);
    margin-right: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}

.terminal-command {
    color: var(--text-primary);
    flex: 1;
    font-size: 1.1rem;
    font-weight: 500;
}

.telegram-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-top: 1.5rem;
    font-style: italic;
}
.articles-grid {
    width: 90%;
    max-width: 1300px;
    margin: 4rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}
/* Адаптив */
@media (max-width: 1200px) {
    section {
        padding: 5rem 0;
    }
}

@media (max-width: 768px) {
    .hero .container {
        padding: 2.2rem 1.8rem;
        margin: 0 1rem;
    }

    .hero-small .container {
        padding: 2.2rem 1.8rem;
        margin: 0 1rem;
    }

    h1 {
        font-size: 2.8rem;
        letter-spacing: -0.5px;
    }
    p.hero-text {
        font-size: 1.25rem;
    }
    .about-content {
        flex-direction: column;
        gap: 2.5rem;
    }
    .btn {
        display: block;
        margin: 0.8rem auto;
        max-width: 280px;
        padding: 1rem 2rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .expertise {
        padding: 2rem;
    }
    .about-text p {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.3rem;
    }
    p.hero-text {
        font-size: 1.1rem;
        margin-bottom: 2.2rem;
    }
    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.9rem;
    }
    section {
        padding: 4rem 0;
    }
    .about-text p {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    .telegram-note {
        font-size: 0.8rem;
    }
}
