@font-face {
    font-family: 'Inter';
    src: url('Inter/static/Inter-Regular.woff2') format('woff2'),
        url('Inter/static/Inter-Regular.woff') format('woff'),
        url('Inter/static/Inter-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('Inter/static/Inter-Medium.woff2') format('woff2'),
        url('Inter/static/Inter-Medium.woff') format('woff'),
        url('Inter/static/Inter-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('Inter/static/Inter-SemiBold.woff2') format('woff2'),
        url('Inter/static/Inter-SemiBold.woff') format('woff'),
        url('Inter/static/Inter-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #fafafa;
    --text-primary: #111111;
    --text-secondary: #555555;
    --accent: #00B5FF;
    --accent-glow: rgba(0, 181, 255, 0.15);
    --card-bg: rgba(0, 0, 0, 0.03);
    --card-border: rgba(0, 0, 0, 0.08);
    --font-main: 'Inter', sans-serif;

    --radius-lg: 32px;
    --radius-md: 16px;
    --radius-sm: 8px;

    --spacing-xxl: 120px;
    --spacing-xl: 80px;
    --spacing-lg: 64px;
    --spacing-md: 32px;
    --spacing-sm: 16px;
}

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

html {
    overflow-x: clip;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 500;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(180deg, #111 0%, #666 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p,
ul {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 300;
}

.highlight {
    color: var(--accent);
    font-weight: 400;
}

/* Layout Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, var(--spacing-md));
}

.center-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.padding-sm {
    padding: 24px;
}

/* Ambient Background */
.ambient-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
    will-change: transform;
    contain: strict;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--spacing-xl) + 80px);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, var(--accent-glow) 180deg, transparent 360deg);
    z-index: -1;
    opacity: 0.3;
    will-change: transform;
}

.top-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    backdrop-filter: none;
    background: transparent;
    border-bottom: none;
}

.top-nav-logo {
    font-weight: 600;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    text-decoration: none;
    color: #111;
    text-transform: uppercase;
}

.top-nav-right {
    display: flex;
    gap: 16px;
}

.top-nav-link {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.top-nav-link:hover {
    background-color: rgba(0, 0, 0, 0.06);
    color: #111;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .top-nav {
        height: 56px;
    }

    .top-nav-right {
        gap: 8px;
    }

    .top-nav-link {
        padding-inline: 10px;
    }
}

.logo {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.2em;
}

.logo-text {
    display: inline-block;
    color: #111;
    /* fallback */
    background: linear-gradient(to right, #111, #555);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typewriter-cursor-hero {
    display: inline-block;
    width: 0.08em;
    height: 0.8em;
    background-color: #00B5FF;
    margin-left: 2px;
    vertical-align: baseline;
    animation: blink 1s step-end infinite;
}

.tagline {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    background: none;
    -webkit-text-fill-color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.subtitle {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #111;
    color: #fff;
    padding: 16px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.play-icon {
    width: 24px;
    height: 24px;
}

/* Blocks */
.block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    padding-block: var(--spacing-xxl);
}

.block.reverse .mockup-container {
    order: -1;
}

.block-text {
    width: 100%;
    max-width: 560px;
}

@media (min-width: 901px) {
    .block:not(.reverse) .block-text {
        margin-right: auto;
    }

    .block.reverse .block-text {
        margin-left: auto;
    }
}

@media (max-width: 900px) {
    .block {
        grid-template-columns: 1fr;
        padding-block: var(--spacing-xl);
        text-align: center;
    }

    .block.reverse .mockup-container {
        order: 0;
    }

    .block .block-text {
        max-width: 540px;
        margin: 0 auto;
    }

    .block-text p {
        max-width: 38ch;
        margin-inline: auto;
    }

    .block-text .feature-list {
        text-align: left;
    }
}

.feature-list {
    list-style: none;
    margin-top: var(--spacing-md);
}

.feature-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 18px;
    height: 18px;
    background-image: url('image/chek2.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.mt-ms {
    margin-top: var(--spacing-sm);
}


/* Mockups */
.mockup-container {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    max-width: 100%;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
    will-change: transform;
    contain: layout paint;
    pointer-events: none;
}

.red-glow {
    background: radial-gradient(circle, rgba(255, 80, 80, 0.15) 0%, transparent 70%);
}

.blue-glow {
    background: radial-gradient(circle, rgba(80, 150, 255, 0.15) 0%, transparent 70%);
}

.phone-mockup {
    width: min(300px, 100%);
    height: 600px;
    background: transparent;
    border-radius: 32px;
    padding: 0;
    border: none;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: visible;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

section.block:first-of-type .phone-mockup {
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.12), 0 10px 40px rgba(0, 0, 0, 0.08);
}

.static-mockup {
    transform: none !important;
}

.phone-mockup:hover {
    transform: rotateY(0) rotateX(0) translateY(-10px);
}

.phone-mockup::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-200%) skewX(-20deg);
    animation: shine 6s infinite;
    will-change: transform;
}

@keyframes shine {
    0% {
        transform: translateX(-200%) skewX(-20deg);
    }

    20% {
        transform: translateX(400%) skewX(-20deg);
    }

    100% {
        transform: translateX(400%) skewX(-20deg);
    }
}

.screen {
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: inherit;
    overflow: visible;
    position: relative;
    border: none;
}

/* Mockup Specific Styles */
.phone-mockup.image-border {
    height: auto;
    padding: 0;
    /* Тонкая рамка телефона отключена */
    border-radius: 32px;
}

.image-screen {
    background-color: transparent;
    border: none;
    position: relative;
    height: auto;
    display: flex;
    width: 100%;
    justify-content: center;
    overflow: visible;
}

.mockup-img,
.mockup-video {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    border-radius: 26px;
    /* Закругления скриншота */
}

@media (max-width: 480px) {
    .phone-mockup {
        border-radius: 24px;
    }

    .mockup-img,
    .mockup-video {
        border-radius: 20px;
    }
}

/* Принудительное сглаживание для видео (борьба с елочкой) */
.mockup-video {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    image-rendering: -webkit-optimize-contrast;
}

.blinking-cursor {
    position: absolute;
    top: 10%;
    left: 8%;
    width: 2px;
    height: 3.2%;
    background-color: #00B5FF;
    /* As requested */
    animation: blink 1s step-end infinite;
    z-index: 10;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.mockup-text-placeholder {
    width: 80%;
    height: 12px;
    background: #222;
    border-radius: 6px;
    margin: 24px;
}

.mockup-text-placeholder.short {
    width: 50%;
}

.focus-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80%;
    font-size: 3rem;
    font-weight: 100;
    color: #fff;
}

.progress-bar {
    width: 80%;
    height: 4px;
    background: #333;
    margin: 0 auto;
    border-radius: 2px;
}

.progress {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
}

.shield-icon {
    width: 80px;
    height: 80px;
    color: #ff5555;
}

.md-syntax {
    font-family: monospace;
    margin-bottom: 12px;
    color: #aaa;
}

.md-hash {
    color: #5e6ad2;
}

.md-task {
    color: #4CAF50;
}

.md-link {
    color: #2196F3;
}

.folder-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.folder-icon {
    font-size: 1.2rem;
}

.ml-md {
    margin-left: 24px;
}

.archive {
    opacity: 0.6;
}

.sync-icon {
    width: 80px;
    height: 80px;
    color: #5096ff;
}

/* Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.02);
    padding: 24px 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    margin: calc(var(--spacing-xl) / 2) 0;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    width: max-content;
    will-change: transform;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    font-size: 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 40px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    padding: var(--spacing-xxl) 0 var(--spacing-md);
    text-align: center;
}

.footer-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: var(--spacing-xl);
    background: linear-gradient(90deg, #111, #666);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: calc(var(--spacing-xl) / 2);
    color: #111;
    opacity: 0.5;
}

.mb-lg {
    margin-bottom: calc(var(--spacing-lg) / 2);
}

.footer-links {
    margin-top: calc(var(--spacing-xl) / 2);
    display: flex;
    justify-content: center;
    gap: 16px;
    color: #666;
    font-size: 0.9rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.telegram-icon {
    width: 40px;
    height: 40px;
}

.footer-telegram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

/* Animations Triggered by Observer */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ticker {
        animation: none;
    }

    .phone-mockup::after {
        animation: none;
    }

    .typewriter-cursor-hero,
    .blinking-cursor {
        animation: none;
        opacity: 1;
    }
}