/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --bg-header: #0d0d14;
    --text-primary: #e8e8f0;
    --text-secondary: #9898a8;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --border: #2a2a3a;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --color-p: #d4ff00;
    --color-g: #ff3b3b;
    --color-dash: #6b7280;
    --color-s: #3b82f6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 70px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    background: rgba(13, 13, 20, 0.98);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

.letter {
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.letter-p {
    color: var(--color-p);
    text-shadow: 0 0 8px rgba(212, 255, 0, 0.3);
}

.letter-g {
    color: var(--color-g);
    text-shadow: 0 0 8px rgba(255, 59, 59, 0.3);
}

.letter-dash {
    color: var(--color-dash);
    margin: 0 1px;
}

.letter-s {
    color: var(--color-s);
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.brand-hidden {
    display: inline-block;
    color: var(--text-primary);
    font-weight: 500;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-link:hover .letter-p { transform: translateX(-2px); }
.brand-link:hover .letter-g { transform: translateX(-1px); }
.brand-link:hover .letter-s { transform: translateX(1px); }
.brand-link:hover .brand-hidden-1 { max-width: 50px; opacity: 1; margin-right: 2px; }
.brand-link:hover .brand-hidden-2 { max-width: 55px; opacity: 1; margin-right: 2px; }
.brand-link:hover .brand-hidden-3 { max-width: 55px; opacity: 1; }

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.back-btn {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 120px 0 100px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--accent);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.hero-badge.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-icon {
    margin-bottom: 24px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-icon.animate-in {
    opacity: 1;
    transform: scale(1);
}

.hero-image {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    border-radius: 12px;
}

.hero-emoji {
    font-size: 80px;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.hero-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.hero-subtitle.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-dev {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.hero-dev.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.dev-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.dev-name {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.hero-buttons.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

.btn-full {
    width: 100%;
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }
.feature-card:nth-child(5) { transition-delay: 0.5s; }
.feature-card:nth-child(6) { transition-delay: 0.6s; }

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stat {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--border));
    opacity: 0.5;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    background: var(--bg-card);
    padding: 24px;
    padding-left: 80px;
    border-radius: 12px;
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.timeline-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }
.timeline-item:nth-child(4) { transition-delay: 0.4s; }
.timeline-item:nth-child(5) { transition-delay: 0.5s; }
.timeline-item:nth-child(6) { transition-delay: 0.6s; }

.timeline-marker {
    position: absolute;
    left: 16px;
    top: 24px;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 0 0 4px var(--bg-card);
    z-index: 1;
}

.timeline-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* ===== COMMANDS ===== */
.commands-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.command-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.command-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.command-item:nth-child(1) { transition-delay: 0.1s; }
.command-item:nth-child(2) { transition-delay: 0.15s; }
.command-item:nth-child(3) { transition-delay: 0.2s; }
.command-item:nth-child(4) { transition-delay: 0.25s; }
.command-item:nth-child(5) { transition-delay: 0.3s; }
.command-item:nth-child(6) { transition-delay: 0.35s; }

.command-item:hover {
    border-color: var(--accent);
}

.command-code {
    background: var(--bg-primary);
    padding: 6px 14px;
    border-radius: 6px;
    color: var(--accent);
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.command-desc {
    flex-grow: 1;
    color: var(--text-secondary);
    font-size: 14px;
}

.command-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.command-badge.dev {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.command-badge.mod {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.command-badge.all {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-card {
    background: var(--bg-card);
    padding: 40px 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.stat-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:nth-child(1) { transition-delay: 0.1s; }
.stat-card:nth-child(2) { transition-delay: 0.2s; }
.stat-card:nth-child(3) { transition-delay: 0.3s; }
.stat-card:nth-child(4) { transition-delay: 0.4s; }

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== FEEDBACK ===== */
.feedback-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.feedback-info, .feedback-form {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.feedback-info h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feedback-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    font-size: 24px;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 13px;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
}

.rating {
    display: flex;
    gap: 8px;
}

.star {
    font-size: 24px;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.2s;
}

.star:hover,
.star.active {
    opacity: 1;
}

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 400px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid var(--success);
}

.notification-error {
    border-left: 4px solid var(--danger);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    font-size: 24px;
}

.notification-text {
    font-size: 14px;
    color: var(--text-primary);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-header);
    border-top: 1px solid var(--border);
    padding: 60px 0 40px;
    text-align: center;
}

.footer-content {
    max-width: 500px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 40px;
    margin-bottom: 16px;
}

.footer-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-dev, .footer-contacts {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--accent-hover);
}

.footer-copy {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    body { padding-top: 60px; }
    .site-header { height: 60px; }
    .brand-hidden { display: none !important; }
    .main-nav { display: none; }
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 16px; }
    .section-title { font-size: 24px; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .feedback-wrapper { grid-template-columns: 1fr; }
    .command-item { flex-direction: column; align-items: flex-start; gap: 12px; }
    
    /* Timeline mobile */
    .timeline { padding-left: 20px; }
    .timeline::before { left: 16px; }
    .timeline-item { padding-left: 60px; }
    .timeline-marker { left: 0; }
}