* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&display=swap');

body {
    font-family: 'JetBrains Mono', monospace;
    background: #0d0d0d;
    color: rgba(20, 143, 72, 0.99);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* --- Анимированный фон --- */
body::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 300%; height: 300%;
    background: conic-gradient(from 0deg at 50% 50%,
    rgba(20, 143, 72, 0.99) 0%,
    #0d0d0d 25%,
    rgba(20, 143, 72, 0.99) 50%,
    #0d0d0d 75%,
    #0a602d 100%);
    animation: rotate 20s linear infinite;
    opacity: 0.1;
    z-index: -2;
}
body::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #0d0d0d 70%);
    z-index: -1;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Контейнер с эффектом стекла (чуть шире) --- */
.container {
    text-align: center;
    max-width: 620px; /* шире чем раньше */
    width: 95%;
    z-index: 1;
    background: rgba(13, 13, 13, 0.35);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(20, 143, 72, 0.2);
    border-radius: 18px;
    padding: 3rem 3.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* --- Заголовок и подзаголовок --- */
.header {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.name {
    font-size: 3.8rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: rgba(20, 143, 72, 0.99);
    margin: 0;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 400;
    color: #bbbbbb;
    letter-spacing: 0.5px;
    margin: 0;
}

/* --- Анимация набора текста --- */
.type-animation span {
    overflow: hidden;
    white-space: nowrap;
    border-right: .15em solid;
    width: 0;
    display: inline-block;
    vertical-align: top;
    animation-fill-mode: forwards;
}

.name.type-animation span {
    animation:
            typing-name 1.5s steps(9, end) forwards,
            blink-caret 0.75s step-end 6,
            remove-caret 0s forwards 2.25s;
}

.tagline.type-animation span {
    border-right-color: #bbbbbb;
    animation:
            typing-tagline 2.2s steps(20, end) forwards,
            blink-caret 0.75s step-end 6,
            remove-caret 0s forwards 2.95s;
}

@keyframes typing-name    { from { width: 0; } to { width: 9ch; } }
@keyframes typing-tagline { from { width: 0; } to { width: 22ch; } }
@keyframes blink-caret    { from, to { border-color: transparent; } 50% { border-color: inherit; } }
@keyframes remove-caret   { to { border-right: none; } }

/* --- Кнопки --- */
.links {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    margin-bottom: 4rem;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    padding: 1rem 2.2rem;
    background: rgba(26, 26, 26, 0.4);
    border: 1px solid rgba(51, 51, 51, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all .3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,.3);
}
.button:hover {
    background: rgba(36, 36, 36, 0.5);
    border-color: rgba(20,143,72,.6);
    color: rgba(20,143,72,1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100,244,172,.2);
}
.icon {
    width: 22px;
    height: 22px;
    fill: #bbbbbb;
    transition: fill .3s;
}
.button:hover .icon {
    fill: rgba(20,143,72,.99);
}

/* --- Подвал --- */
.footer {
    font-size: .85rem;
    color: #666;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    display: inline-block;
}

/* --- Адаптив --- */
@media (max-width: 480px) {
    .container {
        max-width: 95%;
        padding: 2rem;
    }
    .name { font-size: 2.9rem; }
    .tagline { font-size: 1rem; }
    .button { font-size: 1rem; padding: .9rem 1.8rem; gap: .7rem; }
    .icon { width: 19px; height: 19px; }
}
