:root {
    --font-serif: 'Cormorant Garamond', serif; --font-sans: 'Inter', sans-serif;
    --c-bg: #12101a; --c-surface: #1c1a27; --c-text: #e2e1e9; --c-text-muted: #8a8899;
    --c-border: #3a384a; --c-primary: #c5a47e; --c-accent: #8a6c4c;
    --shadow: 0 5px 30px rgba(0,0,0,0.1);
    --gradient-primary: linear-gradient(135deg, var(--c-primary), var(--c-accent));
}
body {
    font-family: var(--font-sans); margin: 0; line-height: 1.8; color: var(--c-text); font-size: 17px; font-weight: 300;
    background: linear-gradient(-45deg, #0d0c14, #1a1829, #12101a, #0f0f14);
    background-size: 400% 400%;
    animation: animated-gradient 35s ease infinite;
}
.container { max-width: 960px; margin: 40px auto; padding: 0 15px; }
.card { 
    background: var(--c-surface); box-shadow: var(--shadow); border-radius: 12px; 
    border: 1px solid var(--c-border);
    margin-bottom: 30px;
}
.card-header { padding: 30px; text-align: center; border-bottom: 1px solid var(--c-border); position: relative; background: var(--gradient-primary); color: white; border-radius: 12px 12px 0 0;}
.card-content { padding: 40px; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; margin-top: 0; }
h1.main-title { background: linear-gradient(135deg, #fff, #f0f0f0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 3.5rem; margin-bottom: 30px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); line-height: 1.2; }
h2.section-title { font-size: 2.5rem; margin-bottom: 35px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 15px; color: var(--c-primary); }
h3.feature-title { font-size: 1.5rem; margin-bottom: 18px; color: var(--c-primary); }
h4 { font-size: 1.2rem; color: var(--c-accent); margin-bottom: 12px; }

.logo {
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-serif); font-size: 1.8rem; color: var(--c-text); font-weight: 700;
}
.logo img {
    height: 90px;
    vertical-align: middle;
    filter: invert(1);
}


.header { padding: 20px 0; text-align: center; }

.hero-section { text-align: center; padding: 60px 0 80px; }
.hero-section .logo {
    margin-bottom: 40px;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px; /* Создаем 3D-пространство */
}

.hero-content {
    flex: 1;
    text-align: left;
}

.phone-mockup {
    position: relative;
    width: 300px; /* Adjust based on your image aspect ratio */
    height: 612px; /* Adjust based on your image aspect ratio */
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotateY(-15deg) rotateX(5deg); /* Начальный наклон */
    transform-style: preserve-3d;
    transition: transform 0.4s ease;
}

.phone-mockup:hover {
    transform: rotateY(-14deg) rotateX(4deg) scale(1.02); /* Эффект при наведении */
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--c-accent), var(--c-primary), #5e2a72);
    background-size: 200% 200%;
    transform: scale(1.25);
    filter: blur(50px);
    opacity: 0.2; /* Увеличил прозрачность */
    z-index: -1; /* Помещаем свечение за телефон */
    animation: glow-shimmer 12s ease infinite;
}

.phone-mockup video {
    position: absolute;
    top: 1.8%;
    left: 4.5%;
    width: 91%;
    height: 96.5%;
    object-fit: cover;
    border-radius: 28px; /* Match phone screen radius */
    z-index: 1;
}

.phone-mockup .phone-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none; /* Allows clicking through the frame to the video if needed */
}

.tagline { font-size: 1.2rem; color: var(--c-text-muted); margin-bottom: 80px;}
.cta-button { 
    display: inline-block; padding: 15px 35px; cursor: pointer; background: var(--gradient-primary); 
    border: none; border-radius: 30px; font-size: 1.1rem; color: white; 
    transition: all 0.3s; font-weight: 500; text-decoration: none; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.25); 
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 6px 25px rgba(0,0,0,0.3); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.feature-card { 
    text-align: center; padding: 30px; border-radius: 12px; 
    background: rgba(255,255,255,0.02); border: 1px solid var(--c-border); 
    transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.04); border-color: var(--c-accent);}
.feature-icon { font-size: 2.5rem; color: var(--c-primary); margin-bottom: 20px; }
.feature-description { color: var(--c-text-muted); }

.how-it-works-steps { display: flex; justify-content: space-around; text-align: center; gap: 30px; flex-wrap: wrap; }
.step { max-width: 250px; }
.step-number { width: 50px; height: 50px; border-radius: 50%; background: var(--gradient-primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 20px; font-weight: 700; }
.step-title { font-family: var(--font-serif); font-size: 1.4rem; color: var(--c-primary); }

.footer { text-align: center; padding: 30px; font-size: 0.95rem; color: var(--c-text-muted); background: var(--c-surface); border-top: 1px solid var(--c-border); margin-top: 50px; }

@media (max-width: 768px) { 
    h1.main-title { font-size: 2.5rem; line-height: 1.2; } 
    h2.section-title { font-size: 2rem; }
    .container { margin: 20px auto; }
    .hero-layout {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }
}

@keyframes glow-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes animated-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
