/* ============================================
   DESIGN TOKENS & RESET
   ============================================ */

:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.15);

    /* Text */
    --text-primary: #f0f0f5;
    --text-secondary: rgba(240, 240, 245, 0.6);
    --text-muted: rgba(240, 240, 245, 0.35);

    /* Accent */
    --accent-blue: #4d7cff;
    --accent-purple: #8b5cf6;
    --accent-cyan: #22d3ee;
    --accent-green: #34d399;
    --accent-gradient: linear-gradient(135deg, #4d7cff, #8b5cf6, #22d3ee);
    --accent-gradient-text: linear-gradient(135deg, #4d7cff 0%, #8b5cf6 50%, #22d3ee 100%);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Effects */
    --blur-glass: 20px;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-glow: 0 0 60px rgba(77, 124, 255, 0.15);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: hidden; /* JS enables auto later */
    min-height: 100vh;
    min-height: 100dvh; /* Mobile viewport fix */
    width: 100%;
    max-width: 100%;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

/* ============================================
   VIDEO BACKGROUND
   ============================================ */

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 0;
    overflow: hidden;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(2px);
}

/* ============================================
   PARTICLE CANVAS
   ============================================ */

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ============================================
   NAVIGATION DOTS
   ============================================ */

.nav-dots {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-spring);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.3);
}

.nav-dot.active {
    width: 14px;
    height: 14px;
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(77, 124, 255, 0.5);
}

.dot-label {
    position: absolute;
    right: 28px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-base);
    pointer-events: none;
    text-transform: uppercase;
}

.nav-dot:hover .dot-label {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 1s ease 2s both;
    transition: opacity 0.5s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-indicator span {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { opacity: 1; top: 6px; }
    50% { opacity: 0.3; top: 18px; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================
   SLIDES BASE
   ============================================ */

.slide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: none;
}

.slide--active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    padding: 0 var(--space-xl);
}

/* ============================================
   TRANSITION OVERLAY
   ============================================ */

.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: none;
    background: var(--bg-primary);
    opacity: 0;
}

/* ============================================
   SLIDE 1: WELCOME
   ============================================ */

.slide1-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.welcome-text {
    margin-bottom: var(--space-xl);
}

.welcome-line {
    display: flex;
    justify-content: center;
    gap: 2px;
    line-height: 1;
}

.welcome-word {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) rotateX(40deg);
    animation: letterReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--delay) * 0.06s + 0.3s);
}

.footer-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

@keyframes letterReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.welcome-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 1px;
    min-height: 1.5em;
    font-family: var(--font-mono);
}

.cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: var(--accent-blue);
    font-weight: 300;
}

@keyframes blink {
    50% { opacity: 0; }
}

.welcome-cta {
    margin-top: var(--space-2xl);
    opacity: 0;
    animation: fadeInUp2 0.8s ease 2.5s both;
}

@keyframes fadeInUp2 {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 60px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-explore::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: inherit;
}

.btn-explore:hover {
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-explore:hover::before {
    opacity: 1;
}

.btn-explore span,
.btn-explore svg {
    position: relative;
    z-index: 1;
}

.btn-explore:hover svg {
    transform: translate(3px, -3px);
    transition: transform var(--transition-base);
}

/* ============================================
   SLIDE 2: ABOUT
   ============================================ */

.slide2-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
}

.slide2-content::-webkit-scrollbar {
    display: none;
}

.about-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.about-name {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.about-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.about-location svg {
    color: var(--accent-cyan);
}

.about-role {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: var(--text-secondary);
    font-weight: 400;
}

.experience-badge {
    margin-top: var(--space-md);
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 12px 28px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 60px;
    backdrop-filter: blur(var(--blur-glass));
}

.exp-number {
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.exp-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Stack sections */
.stacks-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    width: 100%;
}

.stack-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.stack-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stack-header h2 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.stack-arrow {
    color: var(--accent-blue);
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.stack-card {
    padding: 18px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    transition: all var(--transition-spring);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.stack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stack-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glass-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stack-card:hover::before {
    opacity: 1;
}

.stack-card__icon {
    font-size: 1.8rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stack-card__icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
}

.stack-card__name {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.stack-card__level {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    padding: 2px 8px;
    background: rgba(34, 211, 238, 0.1);
    border-radius: 20px;
}

/* ============================================
   SLIDE 3: CONTACTS
   ============================================ */

.slide3-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    text-align: center;
}

.contact-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.contact-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.phone-number {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 500;
    color: var(--text-secondary);
    padding: 10px 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 40px;
    backdrop-filter: blur(var(--blur-glass));
    transition: all var(--transition-base);
    display: inline-block;
}

.phone-number:hover {
    color: var(--accent-cyan);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.1);
}

/* Contact cards grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 600px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    transition: all var(--transition-spring);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.contact-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.contact-card:hover::after {
    opacity: 1;
}

.contact-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glass-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(77, 124, 255, 0.12);
    color: var(--accent-blue);
    flex-shrink: 0;
}

.contact-card__icon--yt {
    background: rgba(255, 0, 0, 0.12);
    color: #ff4444;
}

.contact-card__icon--gh {
    background: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
}

.contact-card__icon--email {
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-purple);
}

.contact-card__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.contact-card__name {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.contact-card__desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.contact-card__arrow {
    color: var(--text-muted);
    transition: all var(--transition-base);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.contact-card:hover .contact-card__arrow {
    color: var(--accent-blue);
    transform: translate(3px, -3px);
}

/* About me section */
.about-me-section {
    max-width: 500px;
    text-align: center;
}

.about-me-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.about-me-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ============================================
   SLIDE TRANSITION ANIMATIONS
   ============================================ */

/* Entering from below */
.slide--enter-up .slide__content {
    animation: slideEnterUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Entering from above */
.slide--enter-down .slide__content {
    animation: slideEnterDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Exiting up */
.slide--exit-up .slide__content {
    animation: slideExitUp 0.5s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

/* Exiting down */
.slide--exit-down .slide__content {
    animation: slideExitDown 0.5s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes slideEnterUp {
    from {
        opacity: 0;
        transform: translateY(80px) scale(0.95);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes slideEnterDown {
    from {
        opacity: 0;
        transform: translateY(-80px) scale(0.95);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes slideExitUp {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
    to {
        opacity: 0;
        transform: translateY(-60px) scale(0.97);
        filter: blur(6px);
    }
}

@keyframes slideExitDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
    to {
        opacity: 0;
        transform: translateY(60px) scale(0.97);
        filter: blur(6px);
    }
}

/* ============================================
   STAGGERED ENTRANCE FOR SLIDE ELEMENTS
   ============================================ */

.slide--active .about-header { animation: contentReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.slide--active .stacks-container { animation: contentReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both; }
.slide--active .contact-header { animation: contentReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.slide--active .contact-grid { animation: contentReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.slide--active .about-me-section { animation: contentReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }

@keyframes contentReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .nav-dots {
        right: 16px;
        gap: 16px;
    }

    .slide__content {
        padding: 0 var(--space-lg);
    }

    .stacks-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

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

    .stack-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .welcome-line {
        gap: 1px;
    }

    .experience-badge {
        padding: 10px 22px;
    }

    .exp-number {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-dots {
        right: 12px;
    }

    .dot-label {
        display: none;
    }
}

/* ============================================
   HELLO SCREEN INTRO
   ============================================ */
.hidden-content {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    filter: blur(10px);
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 2s cubic-bezier(0.4, 0, 0.2, 1),
                filter 2s cubic-bezier(0.4, 0, 0.2, 1);
}
.hidden-content.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    filter: blur(0px);
}

.fade-out-text {
    animation: helloSeqOut 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

@keyframes helloSeqOut {
    0% { opacity: 1; filter: blur(0px); transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; filter: blur(15px); transform: translate(-50%, -60%) scale(1.05); }
}

.hello-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 9999;
    background-color: #000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 1;
    transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
    animation: fadeBlack 2s ease-in-out forwards;
}

@keyframes fadeBlack {
    0% { background-color: #000; }
    100% { background-color: transparent; }
}

.hello-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.hello-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    padding: 0 20px; /* Side padding for mobile */
    min-height: 250px; /* Use min-height instead of fixed height */
}

.hello-text {
    font-family: var(--font-main);
    color: #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    width: 100%;
    animation: helloSeq 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hello-text-1 { 
    font-size: clamp(1.8rem, 6vw, 4rem); 
    font-weight: 800; 
    letter-spacing: 2px; 
    animation-delay: 1s; 
}

/* Seacode Logo */
.hello-text-logo {
    animation: helloSeq 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 1.3s;
    top: 65% !important;
    max-width: 95%;
    width: clamp(500px, 90vw, 1400px); /* Сделал еще больше */
    height: auto;
    object-fit: contain;
}
.hello-text-2 { 
    font-size: clamp(1.4rem, 5vw, 3rem); 
    font-weight: 600; 
    animation-delay: 3.5s; 
}
.hello-text-3 { 
    font-size: clamp(1.1rem, 4vw, 2.2rem); 
    font-weight: 500; 
    color: #ffffff;
    animation: helloSeqStay 1s ease-in-out 6s forwards;
    line-height: 1.5;
    word-wrap: break-word; /* Ensure long words don't overflow */
}

.hello-cursor {
    display: inline-block;
    color: #4E5BE4;
    font-weight: 800;
    margin-left: 2px;
    animation: blinkCursor 1s step-end infinite;
}

@keyframes helloSeq {
    0% { opacity: 0; filter: blur(15px); transform: translate(-50%, -40%) scale(0.95); }
    20% { opacity: 1; filter: blur(0px); transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; filter: blur(0px); transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; filter: blur(15px); transform: translate(-50%, -60%) scale(1.05); }
}

@keyframes helloSeqStay {
    0% { opacity: 0; filter: blur(15px); transform: translate(-50%, -45%); }
    100% { opacity: 1; filter: blur(0px); transform: translate(-50%, -50%); }
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ============================================
   MAIN CONTENT BLOCK STYLES
   ============================================ */

/* Top Toolbar */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 150;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    background: rgba(10, 10, 15, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

#main-content.visible .main-header {
    opacity: 1;
    transform: translateY(0);
}

.main-header-logo {
    width: clamp(200px, 20vw, 350px);
    height: auto;
    object-fit: contain;
    opacity: 0.95;
    margin-left: -50px;
    flex-shrink: 0;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-family: 'Inter', var(--font-main);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.nav-cta {
    color: #fff;
    text-decoration: none;
    font-family: 'Inter', var(--font-main);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 24px;
    border-radius: 12px;
    background: #4E5BE4;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 12px;
}

.nav-cta:hover {
    background: #6C75F7;
    transform: translateY(-1px);
}

/* Sound Toggle Button */
.sound-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255,255,255,0.7);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.sound-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sound-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   SECTIONS
   ============================================ */
.site-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px 80px;
}

.section-label {
    font-family: 'Inter', var(--font-main);
    font-weight: 700;
    font-size: 0.8rem;
    color: #4E5BE4;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Inter', var(--font-main);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #FFF0E2;
    line-height: 1.15;
    margin-bottom: 48px;
    letter-spacing: -0.03em;
}

/* HERO */
.hero-section {
    min-height: 100vh;
    padding-top: 80px;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    justify-content: space-between;
}

.hero-text-block {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

@keyframes floatBadge {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.hero-badge {
    display: inline-block;
    font-family: 'Inter', var(--font-main);
    font-weight: 600;
    font-size: 0.82rem;
    color: #4E5BE4;
    background: rgba(78, 91, 228, 0.12);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
    animation: floatBadge 3s ease-in-out infinite;
}

.hero-title {
    font-family: 'Inter', var(--font-main);
    font-weight: 800;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    color: #FFF0E2;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-accent {
    background: linear-gradient(270deg, #3E47AF, #636FF2, #3E47AF);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShimmer 8s ease-in-out infinite;
}

@keyframes gradientShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-family: 'Inter', var(--font-main);
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: rgba(255,240,226,0.55);
    line-height: 1.7;
    max-width: 680px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* VIDEO PLACEHOLDERS */

.video-placeholder:hover {
    border-color: rgba(78,91,228,0.5);
    background: rgba(78,91,228,0.05);
}

.video-play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4E5BE4;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding-left: 5px; /* Center the play triangle */
}

.hero-video-block {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    max-width: 500px;
    width: 100%;
}

/* IPHONE FRAME */
.iphone-frame {
    width: 320px;
    height: 650px;
    background-color: #000;
    border-radius: 46px;
    box-shadow: 
        0px 0px 0px 11px #1f1f1f, 
        0px 0px 0px 13px #191919, 
        0px 0px 0px 18px #111,
        0 40px 60px rgba(0,0,0,0.6);
    position: relative;
    margin: 0 auto;
}

.iphone-frame::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 60px;
    background: #2a2a2a;
    left: -20px;
    top: 120px;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 75px 0 #2a2a2a;
}

.iphone-frame::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 90px;
    background: #2a2a2a;
    right: -20px;
    top: 150px;
    border-radius: 0 4px 4px 0;
}

.iphone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 26px;
    background-color: #000;
    border-radius: 20px;
    z-index: 50;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 8px;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.iphone-notch::before {
    display: none;
}
.iphone-notch::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #111;
    box-shadow: inset 0 0 2px rgba(255,255,255,0.4);
}

.iphone-screen {
    width: 100%;
    height: 100%;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #0A1931, #150E56, #5AC8FA);
}

/* HELLO SCREEN */

.ios-hello-screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, #112d4e, #3f72af, #8ea1b0, #d9e2ec);
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
    cursor: pointer;
}

.ios-hello-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.hello-text {
    font-family: 'Caveat', cursive;
    font-size: 5rem;
    color: #fff;
    font-weight: 600;
    margin: 0;
    margin-top: -60px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hello-swipe-text {
    position: absolute;
    bottom: 40px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    opacity: 0.9;
    line-height: 1.4;
    animation: bounceSwipe 2s infinite;
}

.hello-swipe-text::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes bounceSwipe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* IOS HOME */
.ios-home {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.ios-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    padding: 0 10px;
    margin-top: 10px;
}

.ios-icons {
    display: flex;
    gap: 4px;
}

.ios-apps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 12px;
}

.ios-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.1s;
}

.ios-app:active {
    transform: scale(0.9);
}

.app-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.seacode-app {
    background: #fff;
}

.seacode-app img {
    width: 32px;
    height: 32px;
}

.fake-app { background: linear-gradient(135deg, #444, #222); }
.bg-blue { background: linear-gradient(135deg, #4da1ff, #0056b3); }
.bg-green { background: linear-gradient(135deg, #34c759, #248a3d); }
.bg-yellow { background: linear-gradient(135deg, #ffcc00, #b38f00); }
.bg-dark-blue { background: linear-gradient(135deg, #5856d6, #3d3b99); }
.bg-orange { background: linear-gradient(135deg, #ff9500, #b36800); }
.bg-light-green { background: linear-gradient(135deg, #30d158, #22993e); }
.bg-pink { background: linear-gradient(135deg, #ff2d55, #b31d39); }

.app-name {
    color: #fff;
    font-size: 0.65rem;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.ios-dock {
    margin-top: auto;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 12px 10px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ios-dock .ios-app .app-name {
    display: none;
}

/* VIDEO APP SCREEN */
.ios-video-app {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000;
    z-index: 20;
    transform: scale(0);
    opacity: 0;
    transform-origin: 15% 20%;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.ios-video-app.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

.close-app-btn {
    position: absolute;
    top: 40px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
}
.close-app-btn::before, .close-app-btn::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background: #fff;
}
.close-app-btn::before { transform: rotate(45deg); }
.close-app-btn::after { transform: rotate(-45deg); }

/* Buttons */
@keyframes pulsePrimary {
    0% { box-shadow: 0 0 0 0 rgba(78,91,228,0.6); }
    70% { box-shadow: 0 0 0 15px rgba(78,91,228,0); }
    100% { box-shadow: 0 0 0 0 rgba(78,91,228,0); }
}

.btn-primary {
    display: inline-block;
    font-family: 'Inter', var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background: #4E5BE4;
    padding: 14px 32px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulsePrimary 2s infinite;
}

.btn-primary:hover {
    background: #6C75F7;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(78,91,228,0.3);
}

.github-header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.github-header-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.btn-primary.btn-lg {
    padding: 18px 42px;
    font-size: 1.1rem;
    border-radius: 16px;
}

.btn-ghost {
    display: inline-block;
    font-family: 'Inter', var(--font-main);
    font-weight: 500;
    font-size: 1rem;
    color: rgba(255,240,226,0.7);
    padding: 14px 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    color: #FFF0E2;
}

/* BENEFITS */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.benefit-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 36px 32px;
    transition: all 0.4s ease;
}

.benefit-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(78,91,228,0.3);
    transform: translateY(-4px);
}

.benefit-icon {
    font-size: 2.2rem;
    font-family: 'Inter', var(--font-main);
    font-weight: 800;
    color: #4E5BE4;
    margin-bottom: 18px;
    opacity: 0.9;
}

.benefit-card h3 {
    font-family: 'Inter', var(--font-main);
    font-weight: 700;
    font-size: 1.2rem;
    color: #FFF0E2;
    margin-bottom: 12px;
}

.benefit-card p {
    font-family: 'Inter', var(--font-main);
    font-weight: 400;
    font-size: 0.95rem;
    color: rgba(255,240,226,0.5);
    line-height: 1.6;
}

/* HISTORY */
.history-content {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 40px;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
}

.history-content p {
    margin-bottom: 20px;
}

.history-content p:last-child {
    margin-bottom: 0;
}

.history-content strong {
    color: #fff;
    font-weight: 600;
}

/* STACK */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stack-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: all 0.4s ease;
}

.stack-item:hover {
    background: rgba(78,91,228,0.08);
    border-color: rgba(78,91,228,0.2);
    transform: translateY(-4px);
}

.stack-item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.stack-item span {
    font-family: 'Inter', var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    color: #FFF0E2;
}

/* REVIEWS */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.review-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.4s ease;
}

.review-card:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-4px);
}

.review-video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.review-video-placeholder .video-play-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    padding-left: 3px;
}
.review-video-placeholder:hover {
    background: rgba(255,255,255,0.1);
}

.review-stars {
    color: #E8A037;
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.review-text {
    font-family: 'Inter', var(--font-main);
    font-weight: 400;
    font-size: 0.95rem;
    color: rgba(255,240,226,0.7);
    line-height: 1.65;
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    font-family: 'Inter', var(--font-main);
    font-weight: 600;
    font-size: 0.82rem;
    color: rgba(255,240,226,0.4);
}

/* FOOTER / CONTACT */
.site-footer {
    background: #0A0A0F;
    padding: 80px 40px 40px;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* LEGAL SECTION */
.legal-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    transition: all 0.4s ease;
}

.legal-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(78,91,228,0.3);
}

.legal-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: rgba(78,91,228,0.1);
    color: #4E5BE4;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-icon svg {
    width: 32px;
    height: 32px;
}

.legal-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.legal-info p {
    font-size: 0.95rem;
    color: rgba(255,240,226,0.7);
    line-height: 1.6;
    margin: 0;
}

.legal-info strong {
    color: #FFF0E2;
}

@media (max-width: 768px) {
    .legal-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.footer-title {
    font-family: 'Inter', var(--font-main);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

.footer-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 60px;
}

.footer-actions-small {
    margin-bottom: 30px;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-actions-small .footer-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 8px;
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease;
}

.footer-btn:hover {
    transform: translateY(-2px);
}

.footer-btn svg,
.footer-btn img {
    width: 20px;
    height: 20px;
    border-radius: 4px; /* Slight rounding for jpgs */
    object-fit: cover;
}

.btn-tg { background: #3B82F6; }
.btn-vk { background: #0077FF; }
.btn-phone { background: #10B981; }

.footer-actions-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    max-width: 200px;
}

.footer-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0 auto 40px;
    max-width: 800px;
}



.footer-payments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.payment-logo {
    padding: 8px 16px;
    background: #fff;
    border-radius: 8px;
    font-weight: 800;
    color: #000;
    font-size: 0.8rem;
}
.logo-1c { color: #E53935; }
.logo-yookassa { background: #8531E6; color: #fff; }
.logo-tbank { background: #FFDD2D; color: #000; }
.logo-sbp { color: #fff; background: linear-gradient(135deg, #1A237E 0%, #3949AB 100%); }

.footer-location {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-location .city {
    display: inline-flex;
    align-items: center;
}

.footer-map-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    margin-right: 6px;
    vertical-align: middle;
}

.loc-pin { color: #4E5BE4; }
.loc-region { color: rgba(255,255,255,0.4); margin-left: 10px; }

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* ============================================
   MODERN COLORFUL NOTIFY CARDS
   ============================================ */
.notify-popup {
    position: fixed;
    z-index: 200;
    width: clamp(300px, 24vw, 400px);
    border-radius: 18px;
    padding: 20px 22px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.notify-popup.show { opacity: 1; transform: translateX(0); }
.notify-popup.hide { opacity: 0; transform: translateX(100px); }

.notify-blue  { background: linear-gradient(135deg, #4E5BE4 0%, #6C75F7 100%); }
.notify-coral  { background: linear-gradient(135deg, #E85D75 0%, #FF7E95 100%); }
.notify-amber  { background: linear-gradient(135deg, #E8A037 0%, #F5BF5E 100%); }
.notify-teal   { background: linear-gradient(135deg, #2EC4B6 0%, #4FD1C5 100%); }

.notify-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
}
.notify-icon img { width: 26px; height: 26px; object-fit: contain; filter: brightness(0) invert(1); }
.notify-text { flex: 1; min-width: 0; }
.notify-title { font-family: 'Inter'; font-weight: 800; font-size: 0.95rem; color: #fff; margin-bottom: 3px; }
.notify-body { font-family: 'Inter'; font-weight: 400; font-size: 0.82rem; color: rgba(255,255,255,0.8); }
.notify-time { font-family: 'Inter'; font-size: 0.72rem; font-weight: 500; color: rgba(255,255,255,0.6); flex-shrink: 0; align-self: flex-start; }
.notify-progress {
    position: absolute; bottom: 0; left: 0; height: 3px;
    background: rgba(255,255,255,0.4); border-radius: 0 0 18px 18px;
    width: 100%; animation: notifyProgress linear forwards;
}
@keyframes notifyProgress { 0% { width: 100%; } 100% { width: 0%; } }

/* ============================================
   DEMO BLOCK
   ============================================ */
.demo-block {
    margin-top: 60px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.demo-label {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(78,91,228,0.2);
    color: #6C75F7;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.demo-text h3 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: #fff;
    font-family: 'Inter', var(--font-main);
    font-weight: 800;
}

.demo-text p {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
    line-height: 1.6;
}

.demo-text strong {
    color: #fff;
    font-weight: 600;
}

.demo-highlight {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-weight: 600 !important;
    color: #6C75F7 !important;
}

.demo-visuals {
    display: flex;
    gap: 20px;
}

.demo-img-wrapper {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.demo-img-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.demo-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 9/16;
    object-fit: cover;
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 768px) {
    .header-container { padding: 0 16px; }
    .main-header-logo { width: 160px; margin-left: -30px; }
    .main-nav { display: none; }
    .nav-cta { display: none; }
    .main-header { height: 60px; }

    .hero-content-wrapper { flex-direction: column; gap: 40px; }
    .hero-text-block { text-align: center; }
    .hero-inner { padding: 0 20px; }
    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; gap: 12px; justify-content: center; }

    .section-inner { padding: 100px 20px 60px; }
    .section-title { font-size: 1.8rem; margin-bottom: 32px; }

    .benefits-grid { grid-template-columns: 1fr; }
    .stack-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: 1fr; }

    .footer-actions { flex-direction: column; gap: 16px; }
    .history-content {
        padding: 24px;
        font-size: 1rem;
    }

    .footer-title { font-size: 2rem; }
    .footer-subtitle { font-size: 1rem; }

    .demo-block {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 30px;
    }

    .notify-popup { width: clamp(260px, 80vw, 340px); padding: 16px 18px; gap: 12px; }
    .notify-icon { width: 38px; height: 38px; }
    .notify-icon img { width: 22px; height: 22px; }
}
