/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B6B;
    --secondary: #FF8E53;
    --accent: #FFD93D;
    --bg: #0A0A0F;
    --surface: #1A1A24;
    --text: #FFFFFF;
    --text-dim: #A0A0B8;
    --gradient: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
}

html {
    scroll-behavior: initial;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 10000;
    top: 0;
    left: 0;
}

.cursor-inner {
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 50%;
    transition: transform 0.15s ease;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.progress-bar {
    width: 2px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--gradient);
    transition: height 0.1s ease;
}

.progress-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dim);
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 5%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
    font-size: 24px;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    padding: 12px 28px;
    background: var(--gradient);
    border: none;
    border-radius: 100px;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    cursor: none;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 5%;
}

#gradient-canvas {
    position: absolute;
    inset: 0;
    opacity: 0.4;
}

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

/* Immersive Typography */
.hero-typography {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-word {
    display: flex;
    gap: 4px;
}

.letter {
    font-size: clamp(70px, 10vw, 180px);
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1;
    position: relative;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.letter.outline {
    -webkit-text-stroke: 2px var(--primary);
    background: transparent;
    -webkit-text-fill-color: transparent;
}

.letter.filled {
    -webkit-text-stroke: 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.img-letter {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.letter-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    mix-blend-mode: multiply;
    transition: opacity 0.8s ease;
}

/* 3D Phone */
.hero-phone {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    perspective: 1000px;
}

.phone-3d {
    width: 280px;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.phone-frame {
    padding: 12px;
    background: linear-gradient(145deg, #1a1a24, #25253a);
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.phone-frame img {
    width: 100%;
    border-radius: 28px;
    display: block;
}

.hero-tagline {
    margin-top: 40px;
    font-size: 24px;
    color: var(--text-dim);
    margin-left: 60px;
}

.hero-badge {
    position: absolute;
    bottom: 60px;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 14px;
}

.badge-icon {
    font-size: 20px;
}

/* ===== PROBLEM SECTION (Horizontal Scroll) ===== */
.problem-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.problem-wrapper {
    display: flex;
    height: 100%;
    width: 300vw;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.problem-slide {
    width: 100vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    position: relative;
}

.problem-slide:nth-child(1) {
    background: linear-gradient(135deg, #FF6B6B20 0%, #0A0A0F 100%);
}

.problem-slide:nth-child(2) {
    background: linear-gradient(135deg, #667eea20 0%, #0A0A0F 100%);
}

.problem-slide:nth-child(3) {
    background: linear-gradient(135deg, #f093fb20 0%, #0A0A0F 100%);
}

.problem-number {
    position: absolute;
    font-size: clamp(200px, 30vw, 600px);
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    line-height: 1;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.percent, .hours, .rub {
    font-size: 0.6em;
}

.problem-content {
    max-width: 500px;
    margin-left: auto;
    margin-right: 10%;
}

.problem-content h3 {
    font-size: 48px;
    margin-bottom: 24px;
}

.problem-content p {
    font-size: 18px;
    color: var(--text-dim);
    line-height: 1.8;
}

.problem-dots {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 4px;
}

/* ===== SOLUTION SECTION (Diagonal Split) ===== */
.solution-section {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 60fr 40fr;
    overflow: hidden;
}

.solution-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
    background: var(--surface);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.device-showcase {
    max-width: 450px;
    transform-style: preserve-3d;
}

.device-screen {
    width: 100%;
    border-radius: 32px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.solution-right {
    padding: 120px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.solution-title {
    font-size: clamp(48px, 6vw, 72px);
    margin-bottom: 60px;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card.visible {
    transform: translateX(0);
    opacity: 1;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px) rotateX(2deg);
}

.card-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 15px;
}

.diagonal-line {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    border-left: 1px solid rgba(255, 107, 107, 0.2);
    transform: skewX(-10deg);
    transform-origin: top left;
}

/* ===== AUTHORITY SECTION (Circular Layout) ===== */
.authority-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 5%;
}

.authority-center {
    text-align: center;
    z-index: 2;
}

.rating-number {
    font-size: 180px;
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.rating-stars {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.star {
    width: 30px;
    height: 30px;
    background: var(--gradient);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.rating-label {
    font-size: 18px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.reviews-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 60s linear infinite;
}

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

.review-card {
    position: absolute;
    width: 300px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    left: 50%;
    top: 50%;
    transform-origin: center;
}

.review-stars {
    color: var(--accent);
    font-size: 16px;
    margin-bottom: 12px;
}

.review-card p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.review-author {
    font-size: 13px;
    color: var(--text-dim);
}

/* ===== MENU SECTION (Masonry) ===== */
.menu-section {
    padding: 120px 5%;
    background: var(--bg);
}

.menu-title {
    font-size: clamp(60px, 10vw, 120px);
    font-weight: 900;
    text-align: center;
    margin-bottom: 80px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-item {
    position: relative;
    background: var(--surface);
    border-radius: 24px;
    overflow: hidden;
    transform: rotate(var(--rotation));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: none;
}

.menu-item[data-size="small"] {
    grid-row: span 1;
}

.menu-item[data-size="medium"] {
    grid-row: span 2;
}

.menu-item[data-size="large"] {
    grid-row: span 2;
}

.menu-item:hover {
    transform: rotate(0deg) translateZ(50px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.menu-item-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.menu-item:hover img {
    transform: scale(1.1);
}

.menu-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    backdrop-filter: blur(10px);
}

.menu-item-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.menu-item-price {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== DOWNLOAD SECTION (Immersive Orb) ===== */
.download-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#orb-canvas {
    position: absolute;
    inset: 0;
}

.download-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    max-width: 600px;
}

.download-title {
    font-size: clamp(60px, 8vw, 96px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 48px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    cursor: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.download-badge {
    padding: 12px 24px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 100px;
    font-size: 14px;
    color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
    padding: 80px 5% 40px;
    background: var(--surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 15px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient);
    border-color: transparent;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 14px;
}

/* ===== MAGNETIC ELEMENTS ===== */
.magnetic {
    position: relative;
    transition: transform 0.2s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .hero-phone {
        display: none;
    }

    .solution-section {
        grid-template-columns: 1fr;
    }

    .solution-left {
        clip-path: none;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor {
        display: none;
    }

    .scroll-progress {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .problem-number {
        font-size: 150px;
        left: 5%;
    }

    .problem-content {
        margin-right: 5%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .masonry-grid {
        grid-template-columns: 1fr;
    }
}