/* =========================================
   ЦИФРОХОД — Custom Styles v3
   ========================================= */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #111111;
    --accent-gold: #d4af37;
    --accent-gold-dim: rgba(212, 175, 55, 0.3);
    --accent-gold-glow: rgba(212, 175, 55, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --border: rgba(212, 175, 55, 0.25);
    --radius: 16px;
    --gap: 24px;
    --max-width: 1200px;
    --font-display: "Oswald", "Montserrat", sans-serif;
    --font-heading: "Montserrat", "Inter", sans-serif;
    --font-body: "Inter", "Roboto", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: none;
    opacity: 0;
    animation: pageReveal 2s ease forwards;
    animation-delay: 0.2s;
}

@keyframes pageReveal {
    to {
        opacity: 1;
    }
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--accent-gold),
        #fff,
        var(--accent-gold)
    );
    background-size: 200% 100%;
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--accent-gold-dim);
}

/* Custom cursor */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--accent-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition:
        width 0.3s ease,
        height 0.3s ease,
        background 0.3s ease;
    transform: translate(-50%, -50%);
}

.cursor.hover {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 2px solid var(--accent-gold);
}

/* Typography */
h1,
h2,
h3,
.display {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 0.5em;
}

h1,
.display-xl {
    font-size: clamp(64px, 12vw, 140px);
}

h2,
.display-lg {
    font-size: clamp(40px, 6vw, 80px);
}

h3,
.display-md {
    font-size: clamp(24px, 3vw, 40px);
}

.accent-gold {
    color: var(--accent-gold);
}

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

.text-muted {
    color: var(--text-muted);
}

/* Shimmer effect */
.shimmer {
    background: linear-gradient(
        90deg,
        var(--accent-gold) 0%,
        #fff 50%,
        var(--accent-gold) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

.section {
    position: relative;
    padding: clamp(60px, 10vh, 120px) 0;
}

.section-dark {
    background: var(--bg-primary);
}

.section-card {
    background: var(--bg-secondary);
}

/* Divider */
.divider {
    width: 60px;
    height: 2px;
    background: var(--accent-gold);
    margin: 24px 0;
}

.divider-center {
    margin-left: auto;
    margin-right: auto;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(
        ellipse at center,
        rgba(59, 130, 246, 0.05) 0%,
        transparent 70%
    );
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='1' fill='%23D4AF37' opacity='0.3'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    animation: particles 20s linear infinite;
    pointer-events: none;
}

@keyframes particles {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100px);
    }
}

.hero__subtitle {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(14px, 2vw, 20px);
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.hero__date {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 72px);
    color: var(--accent-gold);
    margin-top: 8px;
    animation: pulse-gold 3s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
}

.hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 40px;
}

.tag {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.tag:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    text-align: center;
}

.stat__number {
    font-family: var(--font-display);
    font-size: clamp(80px, 15vw, 160px);
    line-height: 1;
    color: var(--accent-gold);
    display: block;
    text-shadow: 0 0 60px rgba(212, 175, 55, 0.2);
}

.stat__label {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 280px;
    margin: 16px auto 0;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline__line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--accent-gold) 20%,
        var(--accent-gold) 80%,
        transparent 100%
    );
    transform: translateX(-50%);
}

.timeline__line-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: #fff;
    box-shadow: 0 0 10px var(--accent-gold);
    transition: height 0.1s linear;
}

.timeline__item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 40px);
    position: relative;
    margin-bottom: 48px;
    opacity: 0.3;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

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

.timeline__item--right {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 40px);
}

.timeline__dot {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--accent-gold);
    border-radius: 50%;
    transform: translateX(-50%) scale(0.8);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.timeline__item.visible .timeline__dot {
    transform: translateX(-50%) scale(1);
    box-shadow:
        0 0 20px rgba(212, 175, 55, 0.5),
        0 0 0 6px rgba(212, 175, 55, 0.1);
}

.timeline__time {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--accent-gold);
    margin-bottom: 4px;
}

.timeline__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.timeline__desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 48px);
    transition:
        border-color 0.4s ease,
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.card:hover {
    border-color: var(--accent-gold-dim);
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px var(--accent-gold-glow);
}

/* Media rows */
.media-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.media-row--reverse {
    direction: rtl;
}

.media-row--reverse > * {
    direction: ltr;
}

.media-row__image {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.media-row__image::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.1);
    pointer-events: none;
    transition: box-shadow 0.4s ease;
}

.media-row__image:hover::after {
    box-shadow:
        inset 0 0 0 1px rgba(212, 175, 55, 0.3),
        0 0 40px rgba(212, 175, 55, 0.1);
}

.media-row__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.media-row__image:hover img {
    transform: scale(1.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    background: transparent;
    border: 2px solid var(--accent-gold);
    padding: 20px 48px;
    border-radius: 50px;
    cursor: none;
    text-decoration: none;
    transition: color 0.8s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.btn:hover {
    color: var(--bg-primary);
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn--fill {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.btn--fill::before {
    background: var(--text-primary);
}

.btn--fill:hover {
    color: var(--bg-primary);
}

/* Magnetic button effect wrapper */
.magnetic-wrap {
    display: inline-block;
    position: relative;
}

/* Form */
.form-section {
    background: radial-gradient(
        ellipse at center,
        rgba(212, 175, 55, 0.08) 0%,
        transparent 60%
    );
}

.form-card {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(145deg, var(--bg-card), rgba(20, 20, 20, 0.8));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(32px, 5vw, 64px);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.03) 0%,
        transparent 70%
    );
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

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

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.form-group:focus-within label {
    color: var(--accent-gold);
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px 20px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.03);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 32px;
    cursor: none;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-gold);
    margin-top: 2px;
    cursor: none;
}

.form-checkbox span {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.form-checkbox a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.form-checkbox a:hover {
    color: var(--accent-gold);
}

/* CTA Section */
.cta {
    text-align: center;
    padding: clamp(80px, 15vh, 160px) 0;
    background: radial-gradient(
        ellipse at center,
        rgba(212, 175, 55, 0.08) 0%,
        transparent 60%
    );
}

.cta h2 {
    margin-bottom: 40px;
}

/* Scroll animations — SLOWER */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition:
        opacity 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition:
        opacity 1.2s ease,
        transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition:
        opacity 1.2s ease,
        transform 1.2s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition:
        opacity 1.2s ease,
        transform 1.2s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}
.reveal-delay-2 {
    transition-delay: 0.2s;
}
.reveal-delay-3 {
    transition-delay: 0.3s;
}
.reveal-delay-4 {
    transition-delay: 0.4s;
}
.reveal-delay-5 {
    transition-delay: 0.5s;
}

/* Keyframes */
@keyframes pulse-gold {
    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
    }
    50% {
        opacity: 0.75;
        text-shadow: 0 0 60px rgba(212, 175, 55, 0.5);
    }
}

/* Glow orb decoration */
.glow-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.12) 0%,
        transparent 70%
    );
    filter: blur(60px);
    pointer-events: none;
    animation: orbFloat 10s ease-in-out infinite;
}

@keyframes orbFloat {
    0%,
    100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(30px, -30px);
    }
    66% {
        transform: translate(-20px, 20px);
    }
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: var(--text-muted);
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--accent-gold);
}

/* =========================================
   Hero Waves — BLUE & BIGGER
   ========================================= */

.hero__waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero__waves svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
}

.wave-1 {
    animation: waveMove 14s linear infinite;
}
.wave-2 {
    animation: waveMove 22s linear infinite reverse;
}
.wave-3 {
    animation: waveMove 30s linear infinite;
}

@keyframes waveMove {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* =========================================
   Partners Carousel with Arrows
   ========================================= */

.partners-carousel {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.partners-track-wrap {
    overflow: hidden;
}

.partners-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.partner-card {
    min-width: 100%;
    padding: 0 12px;
    text-align: center;
}

.partner-logo {
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.partner-logo:hover {
    border-color: var(--accent-gold-dim);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
}

.partner-desc {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto;
}

.partners__arrow {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--accent-gold);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    z-index: 2;
    transition: all 0.4s ease;
    padding: 0;
}

.partners__arrow:hover {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.partners__arrow--prev {
    left: -64px;
}
.partners__arrow--next {
    right: -64px;
}

.partners-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.partner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    padding: 0;
    cursor: none;
    transition: all 0.3s ease;
}

.partner-dot.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

@media (max-width: 768px) {
    .partners__arrow {
        display: none;
    }
    .partner-logo {
        width: 120px;
        height: 120px;
        font-size: 18px;
    }
    .partner-dot {
        cursor: pointer;
    }
}

/* =========================================
   Wave Timeline with Ship (desktop)
   ========================================= */

@media (min-width: 769px) {
    .timeline__line {
        display: none;
    }
}

.timeline__wave-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    .cursor {
        display: none;
    }
    .btn {
        cursor: pointer;
    }
    .form-checkbox {
        cursor: auto;
    }
    .form-checkbox input {
        cursor: pointer;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .timeline__line {
        left: 20px;
    }

    .timeline__item,
    .timeline__item--right {
        padding-left: 56px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline__dot {
        left: 20px;
    }

    .media-row {
        grid-template-columns: 1fr;
    }

    .media-row--reverse {
        direction: ltr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    body {
        opacity: 1;
        animation: none;
    }
    .cursor {
        display: none;
    }
}
