:root {
    --text-color: #ffffff;
    --header-bg: rgba(15, 5, 25, 0.65); /* Более стеклянный эффект */
    --accent-color: #c77dff;
    --accent-hover: #e0aaff;
    --accent-yellow: #ffde59; /* Желтый акцент */
    --card-bg: rgba(20, 10, 35, 0.4);
    --stroke-color: #5a189a;
    
    /* Темно-фиолетовая iOS wavy палитра */
    --bg-grad-1: #10002b;
    --bg-grad-2: #240046;
    --bg-grad-3: #3c096c;
    --bg-grad-4: #0b0512;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }

body {
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Плавный объемный 3D-градиент */
    background: radial-gradient(circle at 15% 50%, rgba(199, 125, 255, 0.15), transparent 50%),
                radial-gradient(circle at 85% 30%, rgba(255, 222, 89, 0.05), transparent 50%),
                linear-gradient(-45deg, var(--bg-grad-1), var(--bg-grad-2), var(--bg-grad-3), var(--bg-grad-4));
    background-size: 400% 400%, 100% 100%, 100% 100%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    overflow-x: hidden;
}

/* Верхний неон */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-yellow), var(--accent-color));
    box-shadow: 0 0 15px var(--accent-color);
    z-index: 9999;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === PARTICLES === */
.particles-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.particle { position: absolute; width: 6px; height: 6px; background-color: var(--accent-color); border-radius: 50%; opacity: 0.5; animation: floatParticle linear infinite; box-shadow: 0 0 10px var(--accent-color); }

@keyframes floatParticle {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translateY(-100vh) translateX(calc(-50px + Math.random() * 100px)); opacity: 0; }
}

/* === HEADER === */
.header { display: flex; justify-content: space-between; align-items: center; padding: 15px 40px; background: var(--header-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(90, 24, 154, 0.3); z-index: 10; }
.logo-container { display: flex; align-items: center; gap: 15px; }
.logo { width: 55px; height: 55px; border-radius: 16px; box-shadow: 0 0 15px rgba(199, 125, 255, 0.3); }
.logo-container h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: 1px; text-shadow: 0 0 10px rgba(199, 125, 255, 0.5); }

/* === MAIN CONTENT === */
main { flex: 1; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 40px; color: var(--accent-color); text-shadow: 0 0 15px rgba(199, 125, 255, 0.4); }

/* === HERO SECTION === */
.hero { text-align: center; padding: 100px 20px 60px; }
h2 { font-size: 3.2rem; margin-bottom: 15px; }
.highlight { color: var(--accent-color); }
.hero p { font-size: 1.1rem; margin-bottom: 35px; color: #b3b3b3; }

.btn-primary { 
    background: linear-gradient(135deg, var(--accent-color), var(--stroke-color));
    color: white; 
    border: 1px solid var(--accent-hover); 
    padding: 14px 45px; 
    font-size: 1.1rem; 
    border-radius: 12px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: 0.3s; 
    box-shadow: 0 4px 25px rgba(199, 125, 255, 0.4); 
}
.btn-primary:hover { transform: scale(1.05); background: linear-gradient(135deg, var(--accent-hover), var(--accent-color)); border-color: var(--accent-yellow); color: #fff; box-shadow: 0 0 20px rgba(255, 222, 89, 0.4); }
.btn-primary:active { transform: scale(0.95); }
#getStartedBtn { animation: pulseGlow 2.5s infinite; }

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(199, 125, 255, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(199, 125, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(199, 125, 255, 0); }
}

/* === FEATURES SECTION === */
.features-section { padding: 60px 20px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1100px; margin: 0 auto; }
.feature-card { background-color: var(--card-bg); backdrop-filter: blur(10px); border: 1px solid rgba(90, 24, 154, 0.5); border-radius: 20px; padding: 30px; text-align: center; transition: 0.3s; }
.feature-card:hover { transform: translateY(-10px); border-color: var(--accent-hover); box-shadow: 0 10px 30px rgba(199, 125, 255, 0.2); }
.feature-icon { font-size: 3rem; color: var(--accent-yellow); margin-bottom: 20px; text-shadow: 0 0 15px rgba(255, 222, 89, 0.4); }
.feature-card h4 { font-size: 1.5rem; margin-bottom: 15px; }
.feature-card p { color: #aaa; line-height: 1.6; }

/* === SHOWCASE SECTION === */
.showcase-section { padding: 60px 20px; }
.showcase-container { max-width: 900px; margin: 0 auto; perspective: 1000px; }
.showcase-image { width: 100%; border-radius: 24px; border: 2px solid var(--accent-color); box-shadow: 0 20px 50px rgba(0,0,0,0.6); transform: rotateX(15deg) scale(0.95); filter: blur(3px); transition: transform 0.6s ease-out, filter 0.6s ease-out, box-shadow 0.6s; cursor: zoom-in; }
.showcase-container:hover .showcase-image { transform: rotateX(0deg) scale(1); filter: blur(0px); box-shadow: 0 0 40px rgba(199, 125, 255, 0.4); }

/* === SCREENSHOTS GRID SECTION === */
.screenshots-section { padding: 60px 20px; }
.screenshots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; max-width: 1100px; margin: 0 auto; }
.screenshot-item { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 20px; border: 2px solid rgba(90, 24, 154, 0.4); background-color: var(--card-bg); transition: 0.4s; cursor: zoom-in; }
.screenshot-item:hover { border-color: var(--accent-color); transform: translateY(-8px); box-shadow: 0 15px 30px rgba(199, 125, 255, 0.3); }
@media (max-width: 900px) { .screenshots-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .screenshots-grid { grid-template-columns: 1fr; } }

/* === ABOUT US SECTION === */
.about-us-section { padding: 60px 20px 100px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; max-width: 900px; margin: 0 auto; }
.about-card { background-color: var(--card-bg); backdrop-filter: blur(10px); border: 1px solid rgba(90, 24, 154, 0.4); border-radius: 24px; padding: 40px 30px; text-align: center; transition: 0.3s; }
.about-card:hover { transform: translateY(-5px); border-color: var(--accent-color); box-shadow: 0 10px 30px rgba(199, 125, 255, 0.15); }
.about-avatar { width: 120px; height: 120px; border-radius: 35%; border: 3px solid var(--accent-color); margin-bottom: 20px; object-fit: cover; box-shadow: 0 0 20px rgba(199, 125, 255, 0.3); }
.about-card h4 { font-size: 1.6rem; margin-bottom: 15px; }
.about-card p { color: #aaa; margin-bottom: 25px; line-height: 1.6; }
.about-socials a { color: var(--text-color); font-size: 1.8rem; margin: 0 10px; opacity: 0.7; transition: 0.3s; }
.about-socials a:hover { color: var(--accent-yellow); opacity: 1; filter: drop-shadow(0 0 8px rgba(255, 222, 89, 0.5)); }

/* === FOOTER === */
.footer { padding: 30px 20px; text-align: center; border-top: 1px solid rgba(90, 24, 154, 0.3); background: var(--header-bg); backdrop-filter: blur(20px); }
.social-icons { margin-bottom: 10px; }
.social-icons a { color: var(--text-color); font-size: 1.8rem; margin: 0 15px; opacity: 0.7; transition: 0.3s; text-decoration: none; }
.social-icons a:hover { color: var(--accent-color); opacity: 1; filter: drop-shadow(0 0 10px var(--accent-color)); }
.copyright { font-size: 0.9rem; opacity: 0.5; }

/* === MODALS === */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(11, 5, 18, 0.6); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); justify-content: center; align-items: center; animation: modalFadeIn 0.3s ease forwards; }
.modal-content { background-color: var(--bg-grad-1); padding: 35px; border-radius: 24px; width: 550px; border: 1px solid var(--stroke-color); position: relative; box-shadow: 0 20px 60px rgba(10, 0, 25, 0.8), inset 0 0 20px rgba(199, 125, 255, 0.1); animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: scale(0.9) translateY(-20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.close { color: var(--text-color); position: absolute; right: 25px; top: 20px; font-size: 28px; font-weight: bold; cursor: pointer; opacity: 0.5; transition: 0.3s; }
.close:hover { opacity: 1; color: var(--accent-color); }
.code-box { display: flex; justify-content: space-between; align-items: center; background-color: rgba(0,0,0,0.5); padding: 15px; border-radius: 12px; margin-top: 20px; border: 1px solid rgba(199, 125, 255, 0.3); }
code { color: var(--accent-yellow); font-family: 'JetBrains Mono', monospace; font-size: 13px; word-break: break-all; }
.btn-copy { background-color: var(--stroke-color); color: var(--text-color); border: none; padding: 10px 18px; border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.btn-copy:hover { background-color: var(--accent-color); color: white; box-shadow: 0 0 10px rgba(199, 125, 255, 0.5); }

.img-modal { display: none; position: fixed; z-index: 3000; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(5, 2, 10, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.img-modal-content { margin: auto; display: block; max-width: 90%; max-height: 85vh; border-radius: 24px; box-shadow: 0 0 50px rgba(199, 125, 255, 0.3); animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 2px solid rgba(199, 125, 255, 0.2); }
.img-close { position: absolute; top: 20px; right: 40px; color: #fff; font-size: 45px; font-weight: bold; transition: 0.3s; cursor: pointer; opacity: 0.6; }
.img-close:hover { color: var(--accent-color); opacity: 1; text-shadow: 0 0 15px var(--accent-color); }
@keyframes zoomIn { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }