/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Цвета в стиле Apple */
    --primary-color: #0071e3;
    --primary-light: #2997ff;
    --primary-dark: #0056b3;
    --secondary-color: #54aeff;
    --accent-color: #ff2d55;
    --background-color: #ffffff;
    --card-background: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --border-color: #d2d2d7;
    --success-color: #34c759;
    --warning-color: #ffcc00;
    --danger-color: #ff3b30;
    
    /* Тени */
    --shadow-smooth: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-elevated: 0 10px 30px rgba(0, 0, 0, 0.1);
    
    /* Шрифты */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    
    /* Размеры */
    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 16px;
    --container-width: 1200px;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.login-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-menu a.login-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Главный раздел */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 113, 227, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.crypto-animation {
    position: relative;
    width: 300px;
    height: 300px;
}

.coin {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotate 6s linear infinite;
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.3);
}

.coin::before {
    content: 'T';
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation: particleAnimation 3s infinite 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation: particleAnimation 3s infinite 0.5s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 20%;
    animation: particleAnimation 3s infinite 1s;
}

.particle:nth-child(4) {
    top: 30%;
    left: 70%;
    animation: particleAnimation 3s infinite 1.5s;
}

/* Раздел "О проекте" */
.about {
    padding: 100px 0;
    background-color: var(--background-color);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 700;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--card-background);
    padding: 40px 30px;
    border-radius: var(--radius-large);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-elevated);
    background: white;
}

.about-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-card p {
    color: var(--text-secondary);
}

/* Раздел "Возможности" */
.features {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-large);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-elevated);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Раздел "Реферальная программа" */
.referral {
    padding: 100px 0;
    background-color: var(--background-color);
}

.referral h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 700;
}

.referral-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.referral-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.referral-info p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.referral-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tier {
    flex: 1;
    min-width: 200px;
    background: var(--card-background);
    padding: 25px;
    border-radius: var(--radius-medium);
    text-align: center;
    border: 1px solid var(--border-color);
}

.tier h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.tier p:last-child {
    font-weight: 700;
    color: var(--success-color);
    font-size: 1.2rem;
}

.referral-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.referral-graphic {
    width: 100%;
    max-width: 400px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.referral-tree {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.referral-node {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
    position: absolute;
}

.main {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    top: 0;
}

.referral-node.referral {
    background: linear-gradient(135deg, var(--success-color) 0%, #5cd98e 100%);
}

.referral-branches {
    position: absolute;
    top: 100px;
    display: flex;
    gap: 80px;
}

/* Раздел "Дорожная карта" */
.roadmap {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
}

.roadmap h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 700;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 50px 0;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding: 0 0 50px 40px;
}

.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary-color);
    top: 10px;
    left: calc(50% - 10px);
    z-index: 1;
}

.timeline-item.completed .timeline-marker {
    background: var(--success-color);
    border-color: var(--success-color);
}

.timeline-item.current .timeline-marker {
    background: var(--warning-color);
    border-color: var(--warning-color);
    animation: pulse 2s infinite;
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-smooth);
    border: 1px solid var(--border-color);
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-secondary);
}

/* Форма регистрации */
.signup {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.signup h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.signup p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.signup-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.signup-form .btn {
    margin-top: 10px;
}

/* Футер */
.footer {
    background-color: var(--card-background);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.footer-section h4 {
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--background-color);
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Анимации */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes particleAnimation {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    50% {
        transform: translate(var(--tx, 0), var(--ty, 0));
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--tx, 0), var(--ty, 0));
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 204, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0);
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .referral-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
        left: 0 !important;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .timeline-content {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .referral-tiers {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}