/* Прелоадер */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 150px;
    height: auto;
    animation: preloaderSpin 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes preloaderSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

:root {
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --yellow-400: #facc15;
    
    --bg-light: #f5f5f7;
    --surface-light: #ffffff;
    --text-light: #171717;
    --text-secondary-light: #525252;
    --border-light: rgba(0, 0, 0, 0.08);

    --bg-dark: #0A0A0A;
    --surface-dark: #171717;
    --text-dark: #f5f5f5;
    --text-secondary-dark: #a3a3a3;
    --border-dark: rgba(255, 255, 255, 0.1);
    
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-medium: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html[data-theme='light'] {
    --bg-color: var(--bg-light);
    --surface-color: var(--surface-light);
    --text-color: var(--text-light);
    --text-secondary-color: var(--text-secondary-light);
    --border-color: var(--border-light);
}

html[data-theme='dark'] {
    --bg-color: var(--bg-dark);
    --surface-color: var(--surface-dark);
    --text-color: var(--text-dark);
    --text-secondary-color: var(--text-secondary-dark);
    --border-color: var(--border-dark);
}

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

::selection {
    background-color: var(--orange-500);
    color: white;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    transition: background-color var(--transition-medium), color var(--transition-medium);
}



body::-webkit-scrollbar {
    width: 8px;
}
body::-webkit-scrollbar-track {
    background: var(--surface-dark);
}
body::-webkit-scrollbar-thumb {
    background-color: var(--orange-500);
    border-radius: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--yellow-400), var(--orange-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    overflow: hidden;
    white-space: nowrap;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.section-title.typing {
    animation: typing 1.5s steps(30) forwards, blink-caret 0.75s step-end 6, remove-caret 0s 4.5s forwards;
    border-right: 3px solid var(--orange-500);
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--orange-500); }
}

@keyframes remove-caret {
    to { border-right: none; }
}

.blurry-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.blurry-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}
.blob1 {
    width: 400px;
    height: 400px;
    background: var(--orange-600);
    top: 10%;
    left: 10%;
    transition: transform 0.1s ease-out;
}
.blob2 {
    width: 300px;
    height: 300px;
    background: var(--yellow-400);
    bottom: 5%;
    right: 15%;
    transition: transform 0.1s ease-out;
}

.beta-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--orange-500);
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1002;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.beta-banner.hidden {
    transform: translateY(-100%);
}

.main-header {
    position: fixed;
    top: 2rem;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1001;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: top 0.3s ease, background-color var(--transition-medium), backdrop-filter var(--transition-medium), border-color var(--transition-medium);
}

.main-header.scrolled {
    top: 0;
}

.main-header.scrolled {
    background-color: rgba(23, 23, 23, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

html[data-theme='light'] .main-header.scrolled {
    background-color: rgba(245, 245, 247, 0.6);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo-container {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.main-header.scrolled .header-logo-container {
    opacity: 1;
    transform: translateX(0);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    opacity: 1;
    transform: translateX(0);
    transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
}
.theme-switch-wrapper input {
    display: none;
}
.theme-switch {
    width: 100px;
    height: 40px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.theme-switch:hover {
    border-color: var(--orange-500);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
}

.theme-switch::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--orange-500), var(--yellow-400));
    border-radius: 50%;
    transition: left 0.3s ease;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.theme-switch-wrapper input:checked + .theme-switch::before {
    left: 64px;
}

.theme-switch svg {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.theme-switch .moon-icon {
    color: #171717;
}

.theme-switch .sun-icon {
    color: #f5f5f5;
}

.theme-switch .moon-icon {
    left: 11px;
}

.theme-switch .sun-icon {
    right: 8px;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo-img:hover {
    transform: rotate(360deg);
}

.main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links-wrapper {
    background-color: rgba(23, 23, 23, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    transition: background-color var(--transition-medium), border-color var(--transition-medium);
    overflow: hidden;
}

html[data-theme='light'] .nav-links-wrapper {
    background-color: rgba(245, 245, 247, 0.6);
}

.nav-links-wrapper ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
}

.nav-links-wrapper ul li {
    position: relative;
}

.nav-links-wrapper ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 12px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links-wrapper ul li a::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: transparent;
    border-radius: 12px;
    transition: background-color 0.3s ease;
    z-index: -1;
}

.nav-links-wrapper ul li a svg {
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.nav-links-wrapper ul li a:hover:not(.active) {
    color: var(--text-color);
}

.nav-links-wrapper ul li a.active {
    color: var(--text-color);
    padding: 0.75rem 1.2rem;
    z-index: 10;
}

.nav-links-wrapper ul li a.active::before {
    background: linear-gradient(135deg, var(--orange-500), var(--yellow-400));
    border-radius: 8px;
}

.nav-links-wrapper ul li a.active svg {
    transform: scale(1.1);
}

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

#hero-logo-container {
    display: flex;
    justify-content: center;
}

#hero-logo-container img {
    max-width: 280px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(249, 115, 22, 0.5));
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    background: linear-gradient(45deg, var(--yellow-400), var(--orange-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-tagline {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary-color);
    margin-bottom: 0;
}

.disclaimer-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    cursor: pointer;
    user-select: none;
}

.disclaimer-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--orange-500);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn {
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-medium);
    display: inline-flex;
    border: none;
    cursor: pointer;
    width: fit-content;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange-500), var(--yellow-400));
    color: white;
    box-shadow: 0 0 15px 0 rgba(249, 115, 22, 0);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
}

.btn-primary:hover {
    box-shadow: 0 10px 20px -10px rgba(249, 115, 22, 0.6), 0 0 25px 5px rgba(249, 115, 22, 0.4);
}

.btn-primary.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    right: 1rem;
    margin-top: -8px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

.btn-primary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-primary svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    text-align: left;
}

.btn-main {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.btn-sub {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
    line-height: 1;
}

.quick-start-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.quick-start-step {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: inset 0 0 0 1px transparent;
    transition: transform 0.4s ease, box-shadow 0.6s ease;
}

.quick-start-step:hover {
    box-shadow: inset 0 0 0 1px var(--orange-500);
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
}

.step-icon {
    color: var(--orange-500);
    margin-bottom: 1rem;
}

.quick-start-step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.quick-start-step p {
    color: var(--text-secondary-color);
    font-size: 0.95rem;
}

.quick-start-arrow {
    font-size: 2rem;
    color: var(--orange-500);
    font-weight: 700;
    opacity: 1;
    transform: none;
}

#reviews {
    background-color: transparent;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.review-message {
    width: 100%;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: inset 0 0 0 1px transparent;
    transition: background 0.4s ease, box-shadow 0.6s ease;
}

.review-message:hover {
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.3);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.review-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.review-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color);
}

.review-stars {
    display: flex;
    gap: 0.2rem;
    color: var(--yellow-400);
}

.review-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary-color);
    margin: 0;
    white-space: pre-line;
}

.review-text-hidden {
    display: none;
}

.expandable-review.expanded .review-text-hidden {
    display: inline;
}

.review-read-more {
    color: var(--orange-500);
    font-style: italic;
    margin-left: 0.3rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.review-read-more:hover {
    color: var(--orange-600);
    text-decoration: underline;
}

.expandable-review.expanded .review-read-more {
    display: none;
}



.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    perspective: 1500px;
    position: relative;
}

.feature-card {
    position: relative;
    transform-style: preserve-3d;
    transition: transform var(--transition-slow);
    z-index: 2;
}

.feature-card-inner {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--orange-500), var(--yellow-400));
    transition: width 0.4s ease, left 0.4s ease;
}

.feature-card:hover .feature-card-inner::before {
    width: 100%;
    left: 0;
}

.feature-icon {
    margin-bottom: 1rem;
    transform: translateZ(40px);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-500), var(--yellow-400));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    transform: translateZ(20px);
}

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

#faq .container {
    max-width: 800px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    text-align: left;
}

.faq-arrow {
    color: var(--text-secondary-color);
    transition: transform var(--transition-medium);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary-color);
}

.faq-answer a {
    color: var(--orange-500);
    text-decoration: none;
}
.faq-answer a:hover {
    text-decoration: underline;
}

.main-footer {
    background-color: var(--surface-color);
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    text-align: left;
}

.footer-right {
    text-align: right;
    max-width: 450px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-img {
    height: 48px;
    width: auto;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--yellow-400), var(--orange-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.copyright-text {
    font-size: 0.9rem;
    color: var(--text-secondary-dark);
}

.footer-socials {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: #737373;
    line-height: 1.6;
}

.footer-socials a {
    color: var(--text-secondary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.footer-socials a:hover {
    color: var(--orange-500);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: transform var(--transition-fast);
}
.modal-close:hover {
    transform: scale(1.2);
}

#modal-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

#modal-caption {
    color: white;
    margin-top: 1rem;
    font-size: 1.2rem;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Кнопка наверх */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--orange-500), var(--yellow-400));
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-medium);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.6);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-right {
        align-items: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    
    .main-nav {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-start-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .quick-start-arrow {
        transform: rotate(90deg);
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-left, .footer-right {
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .footer-socials {
        justify-content: center;
    }
}
