/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    /* Brand palette — violet → blue */
    --bg: #070711;
    --bg-elevated: #0d0d1a;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    --text: #f5f5fa;
    --text-secondary: #a1a1b3;
    --text-muted: #6b6b7d;

    --accent-1: #8b5cf6;
    --accent-2: #3b82f6;
    --accent-1-soft: rgba(139, 92, 246, 0.15);
    --accent-2-soft: rgba(59, 130, 246, 0.15);
    --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --glow: rgba(139, 92, 246, 0.4);

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* === Видео — подстройте под форму устройства в ролике === */
    --video-outer-radius: 55px;   /* скругление внешней рамки */
    --video-inner-radius: 55px;   /* скругление самого видео  */
    --video-padding: 6px;         /* толщина рамки вокруг видео */
    --video-max-width: 360px;     /* максимальная ширина       */
    --video-border-opacity: 0.6;  /* яркость градиентной рамки */

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100dvh;
}

/* ===== Ambient background — violet/blue gradient orbs ===== */
.bg-orbs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bg-orbs::before,
.bg-orbs::after {
    content: '';
    position: absolute;
    width: 640px;
    height: 640px;
    max-width: 80vw;
    max-height: 80vw;
    border-radius: 50%;
    filter: blur(120px);
    animation: float 16s ease-in-out infinite;
}

.bg-orbs::before {
    background: var(--accent-1);
    opacity: 0.32;
    top: -240px;
    left: -160px;
}

.bg-orbs::after {
    background: var(--accent-2);
    opacity: 0.22;
    top: 28%;
    right: -220px;
    animation-delay: -8s;
}

.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 0%, transparent 80%);
}

/* ===== Layout ===== */
.container {
    position: relative;
    z-index: 2;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(7, 7, 17, 0.6);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
}

.logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--gradient);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 6px 20px -6px var(--glow);
}

.nav-cta {
    width: auto;
    padding: 0 18px;
    min-height: 40px;
    font-size: 14px;
}

/* ===== Hero ===== */
.hero {
    min-height: calc(100dvh - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 0 56px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 10px #34d399;
    animation: pulse 2.2s infinite ease-in-out;
}

.hero-avatar {
    width: 124px;
    height: 124px;
    margin-bottom: 36px;
    border-radius: 50%;
    padding: 3px;
    background: var(--gradient);
    position: relative;
    animation: rotateLeftRight 7s infinite ease-in-out;
}

.hero-avatar::after {
    content: '';
    position: absolute;
    inset: -26px;
    border-radius: 50%;
    background: var(--accent-1);
    opacity: 0.22;
    filter: blur(36px);
    z-index: -1;
}

.hero-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg) url('img/head.webp') center/cover no-repeat;
}

.hero h1 {
    font-size: clamp(2.75rem, 9vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #d8d8e8 45%, var(--accent-1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.hero .subtitle {
    font-size: clamp(1rem, 2.3vw, 1.175rem);
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.55;
}

/* ===== Button system — equal widths guaranteed via grid ===== */
.btn-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
}

@media (min-width: 560px) {
    .btn-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 520px;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    min-height: 52px;
    width: 100%;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    isolation: isolate;
    transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease),
                background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:focus-visible {
    outline: 2px solid var(--accent-1);
    outline-offset: 3px;
}

.btn-primary {
    background: var(--gradient);
    box-shadow:
        0 10px 28px -10px rgba(139, 92, 246, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 36px -12px rgba(139, 92, 246, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.btn-ghost {
    background: var(--surface);
    border-color: var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-ghost:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.btn-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    object-fit: contain;
}

/* ===== Section ===== */
.section {
    padding: 96px 0;
    position: relative;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
    line-height: 1.1;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Video ===== */
.video-wrapper {
    max-width: var(--video-max-width);
    margin: 0 auto;
    padding: var(--video-padding);
    border-radius: var(--video-outer-radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow:
        0 32px 72px -24px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(139, 92, 246, 0.06);
    position: relative;
    overflow: hidden;
}

.video-wrapper::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), transparent 40%, rgba(59, 130, 246, 0.5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: var(--video-border-opacity);
    pointer-events: none;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--video-inner-radius);
}


/* ===== Features ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}


.feature-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 22px;
    overflow: hidden;
    transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.feature-card:hover {
    background: var(--surface-hover);
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-4px);
}

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

.feature-card-image {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-sm);
    background:
        radial-gradient(circle at 50% 120%, rgba(139, 92, 246, 0.18), transparent 60%),
        rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s var(--ease);
}

.feature-card:hover .feature-card-image img {
    transform: scale(1.04);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ===== CTA ===== */
.cta-card {
    position: relative;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: var(--radius-xl);
    padding: 64px 32px;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
}

.cta-card::before,
.cta-card::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.cta-card::before {
    background: var(--accent-1);
    opacity: 0.18;
    top: -180px;
    left: -120px;
}

.cta-card::after {
    background: var(--accent-2);
    opacity: 0.14;
    bottom: -180px;
    right: -120px;
}

.cta-card > * { position: relative; z-index: 1; }

.cta-card h2 {
    font-size: clamp(1.75rem, 4.2vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
    line-height: 1.15;
}

.cta-card > p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 36px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Footer ===== */
.site-footer {
    padding: 40px 0 48px;
    margin-top: 48px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px 18px;
    flex-wrap: wrap;
    font-size: 13px;
}

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

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

.footer-separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ===== Animations ===== */
@keyframes rotateLeftRight {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-12deg); }
    75% { transform: rotate(12deg); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -40px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.9); }
}

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

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.7s var(--ease) forwards;
}

.fade-in:nth-child(1) { animation-delay: 0s; }
.fade-in:nth-child(2) { animation-delay: 0.08s; }
.fade-in:nth-child(3) { animation-delay: 0.16s; }
.fade-in:nth-child(4) { animation-delay: 0.24s; }
.fade-in:nth-child(5) { animation-delay: 0.32s; }

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .section { padding: 72px 0; }
    .section-head { margin-bottom: 40px; }
    .features-grid { gap: 14px; }
}

@media (max-width: 640px) {
    .container { padding: 0 18px; }

    .site-header { padding: 12px 0; }
    .nav-cta { display: none; }

    .hero { padding: 48px 0 40px; min-height: auto; }
    .hero-avatar { width: 104px; height: 104px; margin-bottom: 28px; }
    .hero .subtitle { margin-bottom: 32px; }

    .features-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 22px; gap: 18px; }
    .feature-card-image { aspect-ratio: 16 / 9; }

    .cta-card { padding: 44px 22px; border-radius: 24px; }
}

@media (max-width: 380px) {
    .btn { font-size: 14px; padding: 0 14px; gap: 8px; }
    .btn-icon { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
