/* ===== BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #050509;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
}

/* Theme modifiers */
body.theme-blue {
    --accent: #0d6efd;
    --accent-soft: rgba(13, 110, 253, 0.3);
    --gradient-main: linear-gradient(135deg, #0d6efd, #00e0ff);
}

body.theme-purple {
    --accent: #a855f7;
    --accent-soft: rgba(168, 85, 247, 0.3);
    --gradient-main: linear-gradient(135deg, #a855f7, #22d3ee);
}

/* Defaults */
:root {
    --accent: #0d6efd;
    --accent-soft: rgba(13, 110, 253, 0.3);
    --gradient-main: linear-gradient(135deg, #0d6efd, #00e0ff);
}

/* ===== LOADER ===== */
#loader {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, #111, #000);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #222;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

#loader p {
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

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

/* ===== NAVBAR ===== */
.glass-nav {
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar-brand .logo-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--gradient-main);
    box-shadow: 0 0 10px var(--accent-soft);
}

.nav-link {
    font-size: 0.95rem;
    color: #ffffff !important;
}

.nav-link:hover {
    text-decoration: underline;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    position: relative;
    padding-top: 96px;
    padding-bottom: 64px;
    color: #ffffff;
}

/* Parallax background */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* затемняем фон сильнее примерно на 10% */
    background: radial-gradient(circle at top, rgba(0,0,0,0.35), rgba(0,0,0,0.97));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

/* HERO text: всё белое и жирное */
.hero-content .eyebrow,
.hero-content h1,
.hero-content .lead,
.hero-content .hero-meta span,
.hero-content .btn {
    color: #ffffff;
    font-weight: 700;
}

/* Typo */
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

/* Typing effect */
.typing-text {
    border-right: 2px solid #ffffff;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 4s steps(40, end) 0.5s forwards, blink 0.7s step-end infinite;
    max-width: 0;
}

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

@keyframes blink {
    50% { border-color: transparent; }
}

/* Gradient text overridden to white */
.gradient-text {
    color: #ffffff !important;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
}

.hero .lead {
    color: #ffffff;
}

.hero-meta span {
    font-size: 0.9rem;
    color: #ffffff;
    margin: 0 8px;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== SECTIONS ===== */
.section-padding {
    padding: 80px 0;
}

.bg-dark-2 {
    background: radial-gradient(circle at top, #10101a, #050509);
}

.section-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffffff;
}

.section-subtitle {
    color: #ffffff;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.card-dark {
    background: rgba(12, 12, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
    color: #ffffff;
}

.card-dark .card-title {
    color: #ffffff;
}

.icon-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    color: #ffffff;
}

.icon-list i {
    color: var(--accent);
    margin-top: 3px;
}

/* Photos */
.photo-card img {
    display: block;
    width: 100%;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Parallax small layers */
.parallax-layer-small {
    will-change: transform;
}

/* Features */
.feature-card {
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    color: #ffffff;
}

.feature-icon i {
    background: radial-gradient(circle, var(--accent), transparent 60%);
    padding: 16px;
    border-radius: 999px;
}

/* CTA */
.bg-gradient-blue {
    background: var(--gradient-main);
    color: #ffffff;
}

/* Contact form */
.form-control {
    background: rgba(9, 9, 16, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 12px;
}

.form-control::placeholder {
    color: #b3b3b3;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
    background: #090914;
    color: #ffffff;
}

.form-label {
    color: #ffffff;
}

.telegram-link {
    color: var(--accent);
    font-weight: 600;
}

.telegram-link:hover {
    color: #ffffff;
}

/* Accordion overrides */
.accordion-item {
    border: none;
}

.accordion-button {
    background: transparent;
    color: #ffffff;
    border-radius: 18px 18px 0 0 !important;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    box-shadow: none;
}

.accordion-body {
    color: #ffffff;
}

/* Footer */
footer {
    background: #050509;
    color: #ffffff;
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding-top: 80px;
        padding-bottom: 56px;
    }

    .hero-meta span {
        display: block;
        margin: 4px 0;
    }

    .section-padding {
        padding: 60px 0;
    }

    .card-dark {
        padding: 16px;
    }
}
