@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,600;0,14..32,800;0,14..32,900;1,14..32,300&family=Outfit:wght@300;400;600;800;900&display=swap');

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    --bg: #020408;
    --bg-2: #070d14;
    --primary: #FF6B00;
    --primary-dim: rgba(255, 107, 0, 0.15);
    --primary-glow: rgba(255, 107, 0, 0.4);
    --cyan: #00E5FF;
    --cyan-dim: rgba(0, 229, 255, 0.08);
    --text-1: #F0F4FF;
    --text-2: #8B99B5;
    --text-3: #4A5568;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-hover: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 107, 0, 0.15);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text-1);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

/* ============================================
   CANVAS BACKGROUND (Three.js / tsParticles target)
   ============================================ */
#neuro-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* ============================================
   LAYOUT
   ============================================ */
.page-wrapper {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
}

section {
    padding: clamp(60px, 10vw, 120px) 0;
    position: relative;
}

/* Subtle horizontal glow line between sections */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 0;
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(2, 4, 8, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: border-color 0.3s var(--ease);
}

nav.scrolled {
    border-bottom-color: rgba(255, 107, 0, 0.2);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.55rem;
    color: var(--text-1);
    text-decoration: none;
    letter-spacing: -0.5px;
    position: relative;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    margin-right: 4px;
}

.logo-n {
    font-family: 'Outfit', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.5px;
}

.logo-text {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    font-weight: 800;
}

.logo span.ai {
    color: var(--primary);
    margin-left: 2px;
    font-weight: 800;
    font-size: 1.55rem;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 0.4rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.25s var(--ease);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: transform 0.25s var(--ease);
}

.nav-links a:hover {
    color: var(--text-1);
    background: var(--glass-bg);
}

.nav-links a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Mobile nav hamburger (hidden on desktop) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-1);
    cursor: pointer;
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

/* ============================================
   HERO  (ШИНЖИЛ)
   ============================================ */
.hero {
    text-align: center;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 6rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-dim);
    color: var(--primary);
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255, 107, 0, 0.35);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    animation: fade-up 0.8s var(--ease-out) both;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.8rem, 8vw, 6.5rem);
    line-height: 1.05;
    margin-bottom: 1.8rem;
    font-weight: 900;
    letter-spacing: -2px;
    animation: fade-up 0.9s 0.1s var(--ease-out) both;
}

h1 .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, #FF9D00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

h1 .highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

.hero-subtext {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-2);
    max-width: 650px;
    margin: 0 auto 3rem;
    animation: fade-up 1s 0.2s var(--ease-out) both;
}

.hero-stat {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
}

/* CTA Buttons */
.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fade-up 1s 0.3s var(--ease-out) both;
}

.btn {
    padding: 0.9rem 2.2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    border: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B00, #FF9D00);
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.4), 0 0 0 0 rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(255, 107, 0, 0.5), 0 0 30px rgba(255, 107, 0, 0.2);
}

.btn-outline {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-1);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: rgba(255, 107, 0, 0.5);
    background: var(--primary-dim);
    transform: translateY(-3px);
}

/* ============================================
   SLIDER (Comparison)
   ============================================ */
.comparison-container {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 3rem auto;
    animation: fade-up 1s 0.35s var(--ease-out) both;
}

.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 210/297;
    background: #0a0e14;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--glass-border),
        0 0 60px rgba(255, 107, 0, 0.05);
}

@media (max-width: 600px) {
    .comparison-slider {
        aspect-ratio: 210/297;
    }
}

.image-before,
.image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.image-before {
    background-image: url('assets/img/mbank_original.jpg');
    z-index: 1;
}

.image-after {
    background-image: url('assets/img/mbank_heatmap.jpg');
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
    transition: none;
}

/* Swipe top hint */
.swipe-top-hint {
    text-align: center;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 0.6rem 1rem;
    background: rgba(255, 107, 0, 0.08);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    animation: pulse-hint 2.5s ease-in-out infinite;
}

@keyframes pulse-hint {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.55;
    }
}

/* iPhone Style Swipe Hint */
.swipe-hint-iphone {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.5s var(--ease);
    width: 280px;
}

.iphone-bar {
    position: relative;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.iphone-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    background-size: 80% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 2.5s infinite;
}

.iphone-handle {
    position: absolute;
    left: 5px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: left 0.1s linear;
}

.iphone-handle svg {
    width: 24px;
    height: 24px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Range input */
input[type="range"].slider-control {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    z-index: 10;
    cursor: col-resize;
    margin: 0;
}

input[type="range"].slider-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 4px;
    height: 2000px;
    background: var(--primary);
    cursor: col-resize;
    box-shadow: 0 0 10px var(--primary);
}

input[type="range"].slider-control::-moz-range-thumb {
    width: 4px;
    height: 2000px;
    background: var(--primary);
    cursor: col-resize;
    border: none;
    box-shadow: 0 0 10px var(--primary);
}

/* ============================================
   SECTION LABELS
   ============================================ */
.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.section-label-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--glass-border), transparent);
}

.section-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
}

/* ============================================
   STAT CARDS (Predictive section)
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease);
    backdrop-filter: blur(10px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.stat-card:hover {
    border-color: var(--card-border);
    transform: translateY(-6px);
    background: var(--glass-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 107, 0, 0.05);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-dim);
    border: 1px solid rgba(255, 107, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.stat-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-1);
}

.stat-card p {
    color: var(--text-2);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-heading {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.section-heading span {
    background: linear-gradient(135deg, var(--primary), #FF9D00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-sub {
    color: var(--text-2);
    font-size: 1rem;
    max-width: 540px;
    margin-bottom: 4rem;
}

/* ============================================
   COURSE CARDS (СУДАЛ)
   ============================================ */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.course-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s var(--ease);
    position: relative;
}

.course-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px var(--glass-border);
    pointer-events: none;
    transition: box-shadow 0.4s;
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 107, 0, 0.07);
}

.course-card:hover::after {
    box-shadow: inset 0 0 0 1px rgba(255, 107, 0, 0.25);
}

.course-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.course-body {
    padding: 2rem;
}

.course-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.course-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: var(--text-1);
}

.course-body p {
    color: var(--text-2);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.08) 0%, rgba(0, 229, 255, 0.04) 100%);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 3.5rem);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

@media (min-width: 768px) {
    .cta-banner {
        flex-direction: row;
        align-items: center;
    }
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 200, 83, 0.12);
    color: #00C853;
    border: 1px solid rgba(0, 200, 83, 0.25);
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.cta-banner h3 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    font-weight: 700;
    max-width: 500px;
}

.cta-banner p {
    color: var(--text-2);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ============================================
   BLOG CARDS (ХОЛБОГД)
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.blog-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s var(--ease);
    position: relative;
}

.blog-card:hover {
    border-color: var(--card-border);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 107, 0, 0.06);
}

.blog-img-wrap {
    overflow: hidden;
    aspect-ratio: 16/9;
}

.blog-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
    display: block;
}

.blog-card:hover .blog-img-wrap img {
    transform: scale(1.05);
}

.blog-body {
    padding: 1.8rem;
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-dim);
    border: 1px solid rgba(255, 107, 0, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.blog-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-1);
}

.blog-body p {
    color: var(--text-2);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================
   EMAIL (Subscribe)
   ============================================ */
.subscribe-box {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 1rem;
}

.subscribe-box h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.subscribe-box h2 span {
    color: var(--primary);
}

.subscribe-box p {
    color: var(--text-2);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 500px) {
    .subscribe-form {
        flex-direction: row;
    }
}

.subscribe-form input {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: var(--text-1);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s;
}

.subscribe-form input::placeholder {
    color: var(--text-3);
}

.subscribe-form input:focus {
    outline: none;
    border-color: rgba(255, 107, 0, 0.5);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

footer p {
    color: var(--text-3);
    font-size: 0.82rem;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}