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

@keyframes windSweep {
    0% {
        transform: translate3d(-6vw, 0, 0) scale(0.8);
        opacity: 0;
    }
    12% {
        opacity: 0.55;
    }
    65% {
        opacity: 0.25;
    }
    100% {
        transform: translate3d(108vw, var(--dy, -40px), 0) scale(1.25);
        opacity: 0;
    }
}

@keyframes heroTextButterflyCircleFlight {
    0% {
        transform: translate(-50%, -50%) translate(0, var(--offset-y, 0px)) rotate(var(--orbit-angle-from, 0deg)) translateX(var(--orbit-radius, 140px));
    }
    100% {
        transform: translate(-50%, -50%) translate(0, var(--offset-y, 0px)) rotate(var(--orbit-angle-to, 360deg)) translateX(var(--orbit-radius, 140px));
    }
}

@keyframes butterflyFlight {
    0% {
        opacity: 0;
        transform: translate3d(var(--x0, -14vw), var(--y0, 0px), 0) scale(var(--scale, 1)) rotate(var(--r0, -6deg));
    }
    8% {
        opacity: 0.95;
    }
    50% {
        transform: translate3d(var(--x1, 48vw), var(--y1, -18px), 0) scale(calc(var(--scale, 1) * 1.05)) rotate(var(--r1, 6deg));
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--x2, 112vw), var(--y2, -30px), 0) scale(var(--scale, 1)) rotate(var(--r2, -4deg));
    }
}

@keyframes butterflyFlap {
    0%,
    100% {
        transform: scaleX(var(--mirror, 1)) rotate(2deg) scale(1);
    }
    50% {
        transform: scaleX(var(--mirror, 1)) rotate(-2deg) scale(0.94);
    }
}

@keyframes wingFlapLeft {
    0%,
    100% {
        transform: rotate(18deg) scaleX(1);
    }
    50% {
        transform: rotate(-16deg) scaleX(0.84);
    }
}

@keyframes wingFlapRight {
    0%,
    100% {
        transform: rotate(-18deg) scaleX(1);
    }
    50% {
        transform: rotate(16deg) scaleX(0.84);
    }
}

@keyframes flowerLife {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.9);
    }
    15% {
        opacity: 0.85;
    }
    72% {
        opacity: 0.85;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-8px) scale(1.04);
    }
}

@keyframes stemGrow {
    0%,
    10% {
        transform: translateX(-50%) scaleY(0);
    }
    34%,
    100% {
        transform: translateX(-50%) scaleY(1);
    }
}

@keyframes flowerBloom {
    0%,
    30% {
        transform: translateX(-50%) scale(0);
    }
    46% {
        transform: translateX(-50%) scale(1.1);
    }
    72% {
        transform: translateX(-50%) scale(1);
    }
    100% {
        transform: translateX(-50%) scale(0.78);
    }
}

@keyframes flowerSway {
    0%,
    100% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(2.5deg);
    }
}

@keyframes orbFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    35% {
        transform: translate3d(22px, -28px, 0) scale(1.05);
    }
    70% {
        transform: translate3d(-18px, 26px, 0) scale(0.95);
    }
}

:root {
    --primary-green: #2f6b4f;
    --dark-green: #1f4f39;
    --light-green: #b9cfbc;
    --bg-primary: #f5efe3;
    --bg-secondary: #ece3d2;
    --bg-alt: #e2d6c2;
    --text-primary: #2f2a24;
    --text-secondary: #5f5347;
    --text-tertiary: #8c7d6d;
    --border-color: #d4c5ae;
    --border-hover: #bca88a;
    --shadow-sm: 0 1px 3px rgba(55, 40, 24, 0.08);
    --shadow-md: 0 6px 14px rgba(55, 40, 24, 0.12);
    --shadow-lg: 0 14px 30px rgba(55, 40, 24, 0.16);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
    font-family: 'Söhne', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: #eadfcd;
    font-weight: 400;
    font-size: 16px;
    position: relative;
    isolation: isolate;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 15% 10%, rgba(47, 107, 79, 0.07), transparent 38%),
        radial-gradient(circle at 85% 0%, rgba(139, 115, 85, 0.06), transparent 34%),
        radial-gradient(circle at 50% 100%, rgba(201, 169, 97, 0.06), transparent 45%),
        repeating-linear-gradient(
            45deg,
            rgba(255, 248, 235, 0.03) 0,
            rgba(255, 248, 235, 0.03) 1px,
            transparent 1px,
            transparent 6px
        );
}

body > * {
    position: relative;
    z-index: 1;
}

.day-night-indicator {
    position: relative;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.sky-orbit {
    width: 40px;
    height: 40px;
    position: relative;
}

.celestial {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transition: opacity 2.2s ease, transform 2.2s var(--ease-smooth), filter 2.2s ease;
}

.celestial-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
    filter: brightness(0) saturate(100%) opacity(0.86);
    transition: filter 2.2s var(--ease-smooth);
}

.sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon {
    opacity: 0;
    transform: rotate(18deg) scale(0.75);
}

.sun .celestial-icon {
    filter: brightness(0) saturate(100%) opacity(0.82);
}

.moon .celestial-icon {
    filter: brightness(0) saturate(100%) opacity(0.88);
}

.moscow-time {
    min-width: 78px;
    padding: 4px 8px;
    border-radius: 999px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #5a4632;
    background: rgba(245, 229, 198, 0.88);
    border: 1px solid rgba(188, 168, 138, 0.7);
    box-shadow: 0 4px 10px rgba(102, 77, 41, 0.22);
    transition: background 2.2s ease, color 2.2s ease, border-color 2.2s ease, box-shadow 2.2s ease;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    background: radial-gradient(circle at 50% 30%, rgba(255, 170, 92, 0.18), rgba(255, 111, 70, 0.14) 52%, transparent 74%);
    transition: opacity 3.2s ease, background 3.2s ease;
}

body,
.header,
.hero,
.features,
.privacy,
.download,
.footer,
.feature-card,
.privacy-item,
.download-btn,
.phone-mockup,
.demo-chat-app,
.demo-chat-input,
.demo-chat-header,
.demo-chat-input-row,
.modal-content {
    transition:
        background 2.2s var(--ease-smooth),
        color 2.2s var(--ease-smooth),
        border-color 2.2s var(--ease-smooth),
        box-shadow 2.2s var(--ease-smooth);
}

body.theme-transition-sunset::after {
    opacity: 0.48;
    background: radial-gradient(circle at 50% 30%, rgba(255, 192, 116, 0.24), rgba(234, 127, 82, 0.22) 54%, rgba(89, 67, 102, 0.14) 78%);
}

body.theme-transition-dawn::after {
    opacity: 0.42;
    background: radial-gradient(circle at 50% 34%, rgba(255, 214, 153, 0.24), rgba(246, 156, 106, 0.2) 52%, rgba(157, 162, 201, 0.12) 78%);
}

.global-atmosphere {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

body.theme-night {
    --primary-green: #8cc98f;
    --dark-green: #6fae73;
    --light-green: #9abf9b;
    --bg-primary: #1f2a21;
    --bg-secondary: #172018;
    --bg-alt: #242f25;
    --text-primary: #ecf2df;
    --text-secondary: #c1cfb7;
    --text-tertiary: #92a08d;
    --border-color: #3e523f;
    --border-hover: #5f7b61;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.34);
    --shadow-md: 0 8px 18px rgba(0, 0, 0, 0.38);
    --shadow-lg: 0 16px 34px rgba(0, 0, 0, 0.42);
    background: #121810;
}

body.theme-night .sun {
    opacity: 0;
    transform: rotate(-24deg) scale(0.72);
}

body.theme-night .moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

body.theme-night .sun .celestial-icon,
body.theme-night .moon .celestial-icon {
    filter: brightness(0) saturate(100%) invert(94%) sepia(19%) saturate(316%) hue-rotate(332deg) brightness(102%) contrast(97%);
}

body.theme-transition-sunset .sun .celestial-icon {
    filter: brightness(0) saturate(100%) invert(70%) sepia(48%) saturate(492%) hue-rotate(338deg) brightness(102%) contrast(96%);
}

body.theme-transition-dawn .sun .celestial-icon {
    filter: brightness(0) saturate(100%) invert(86%) sepia(40%) saturate(251%) hue-rotate(336deg) brightness(102%) contrast(96%);
}

body.theme-night .moscow-time {
    color: #dce7d5;
    background: rgba(38, 51, 69, 0.82);
    border-color: rgba(133, 159, 210, 0.45);
    box-shadow: 0 6px 12px rgba(22, 30, 52, 0.35);
}

body.theme-night::before {
    background:
        radial-gradient(circle at 15% 10%, rgba(120, 147, 104, 0.12), transparent 40%),
        radial-gradient(circle at 80% 0%, rgba(109, 131, 171, 0.12), transparent 36%),
        radial-gradient(circle at 45% 100%, rgba(93, 110, 132, 0.1), transparent 48%),
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.02) 0,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px,
            transparent 7px
        );
}

body.theme-night .header {
    background: rgba(25, 33, 26, 0.92);
}

body.theme-night .hero {
    background: linear-gradient(135deg, #273628 0%, #1f2b21 48%, #182118 100%);
}

body.theme-night .hero::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(122, 175, 126, 0.24), transparent 46%),
        radial-gradient(circle at 80% 15%, rgba(109, 131, 171, 0.2), transparent 42%);
}

body.theme-night .features {
    background: linear-gradient(180deg, #1c261d 0%, #151e16 100%);
}

body.theme-night .privacy {
    background: #192319;
}

body.theme-night .download {
    background: linear-gradient(180deg, #1d271e 0%, #151e17 100%);
}

body.theme-night .footer {
    background: #182119;
}

body.theme-night .feature-card,
body.theme-night .download-btn {
    background: #243125;
}

body.theme-night .privacy-item {
    background: #202b21;
}

body.theme-night .privacy-item:hover {
    background: #28352a;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.38);
}

body.theme-night .phone-mockup {
    background: linear-gradient(145deg, #263128 0%, #1b241d 100%);
}

body.theme-night .demo-chat-app {
    background: linear-gradient(180deg, rgba(38, 52, 41, 0.94), rgba(28, 40, 31, 0.96));
    border-color: rgba(109, 132, 105, 0.45);
}

body.theme-night .demo-chat-header {
    background: rgba(122, 175, 126, 0.16);
    border-bottom-color: rgba(109, 132, 105, 0.45);
}

body.theme-night .demo-bubble.incoming {
    background: rgba(43, 59, 45, 0.86);
    border-color: rgba(109, 132, 105, 0.5);
    color: #e3ebda;
}

body.theme-night .demo-bubble.outgoing {
    background: rgba(126, 182, 130, 0.92);
    border-color: rgba(95, 146, 98, 0.95);
    color: #1e2a1f;
}

body.theme-night .demo-chat-input-row {
    background: rgba(27, 38, 29, 0.9);
    border-top-color: rgba(109, 132, 105, 0.45);
}

body.theme-night .demo-chat-input {
    background: rgba(38, 54, 41, 0.94);
    border-color: rgba(109, 132, 105, 0.55);
    color: #d5e1ca;
}

body.theme-night .demo-caret {
    background: rgba(168, 216, 173, 0.95);
}

body.theme-night .feature-icon img,
body.theme-night .privacy-icon img,
body.theme-night .download-icon img {
    filter: brightness(0) saturate(100%) invert(95%) sepia(24%) saturate(286%) hue-rotate(336deg) brightness(102%) contrast(96%);
}

body.theme-night .feature-card:hover .feature-icon img,
body.theme-night .privacy-item:hover .privacy-icon img,
body.theme-night .download-btn:hover .download-icon img {
    filter: brightness(0) saturate(100%) invert(95%) sepia(24%) saturate(286%) hue-rotate(336deg) brightness(102%) contrast(96%) drop-shadow(0 0 8px rgba(255, 233, 196, 0.42));
}

body.theme-night .glow-orb {
    background: radial-gradient(circle, rgba(125, 163, 132, 0.26) 0%, rgba(79, 103, 137, 0.14) 38%, transparent 72%);
}

body.theme-night .wind-particle {
    background: radial-gradient(circle, rgba(139, 184, 145, 0.58), rgba(122, 145, 178, 0.08));
}

.glow-orb {
    position: absolute;
    width: var(--size, 220px);
    height: var(--size, 220px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 107, 79, 0.24) 0%, rgba(139, 115, 85, 0.1) 38%, transparent 72%);
    filter: blur(18px);
    opacity: 0.6;
    animation: orbFloat var(--dur, 16s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.wind-particle {
    position: absolute;
    width: var(--w, 8px);
    height: var(--h, 8px);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(47, 107, 79, 0.55), rgba(201, 169, 97, 0.02));
    opacity: 0;
    animation: windSweep var(--dur, 12s) linear infinite;
    animation-delay: var(--delay, 0s);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    background: rgba(245, 239, 227, 0.92);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-mark {
    width: clamp(24px, 3vw, 32px);
    height: clamp(24px, 3vw, 32px);
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* ===== HERO ===== */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #d8e0cd 0%, #c9d2b8 45%, #bec8aa 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero::before {
    content: '';
    position: absolute;
    inset: -20% -10% auto;
    height: 420px;
    background:
        radial-gradient(circle at 20% 30%, rgba(47, 107, 79, 0.2), transparent 46%),
        radial-gradient(circle at 80% 15%, rgba(139, 115, 85, 0.14), transparent 42%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.hero-text > * {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-green);
    color: white;
}

.btn-primary:hover {
    background: var(--dark-green);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #e6dece 0%, #d8ceb9 100%);
    border-radius: 32px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
    animation: mockupFloat 6s ease-in-out infinite;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.demo-chat-app {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(245, 236, 222, 0.95));
    border-radius: 18px;
    border: 1px solid rgba(188, 168, 138, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.demo-chat-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    background: rgba(47, 107, 79, 0.14);
    border-bottom: 1px solid rgba(188, 168, 138, 0.55);
}

.demo-avatar {
    width: clamp(26px, 3.2vw, 34px);
    height: clamp(26px, 3.2vw, 34px);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(47, 107, 79, 0.18);
    overflow: hidden;
}

.demo-avatar-mark {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.demo-chat-title {
    font-size: 0.72rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-primary);
}

.demo-chat-status {
    font-size: 0.58rem;
    color: #2f6b4f;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.demo-chat-messages {
    flex: 1;
    padding: 0.85rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    overflow: auto;
    scrollbar-width: none;
}

.demo-chat-messages::-webkit-scrollbar {
    display: none;
}

.demo-bubble {
    max-width: 88%;
    font-size: 0.62rem;
    line-height: 1.35;
    padding: 0.45rem 0.55rem;
    border-radius: 0.7rem;
    animation: bubbleIn 320ms var(--ease-smooth) both;
}

.demo-bubble.incoming {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(188, 168, 138, 0.42);
    color: var(--text-primary);
}

.demo-bubble.outgoing {
    align-self: flex-end;
    background: rgba(47, 107, 79, 0.9);
    border: 1px solid rgba(31, 79, 57, 0.95);
    color: #f8f3e8;
}

.demo-bubble.typing {
    min-width: 44px;
    color: transparent;
    position: relative;
}

.demo-bubble.typing::before,
.demo-bubble.typing::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(95, 83, 71, 0.65);
    transform: translateY(-50%);
    animation: typingPulse 1s ease-in-out infinite;
}

.demo-bubble.typing::before {
    left: 12px;
}

.demo-bubble.typing::after {
    left: 22px;
    animation-delay: 0.2s;
}

.demo-chat-input-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.62rem;
    border-top: 1px solid rgba(188, 168, 138, 0.45);
    background: rgba(251, 245, 235, 0.86);
}

.demo-chat-input {
    flex: 1;
    min-height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(188, 168, 138, 0.65);
    background: rgba(255, 255, 255, 0.78);
    color: var(--text-secondary);
    font-size: 0.58rem;
    display: flex;
    align-items: center;
    padding: 0 0.52rem;
    gap: 0.1rem;
}

.demo-caret {
    width: 1px;
    height: 11px;
    background: rgba(47, 107, 79, 0.9);
    animation: caretBlink 0.9s steps(1, end) infinite;
}

.demo-send-btn {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(180deg, #3a7558, #2a5d44);
    color: #f7efe0;
    font-size: 0.65rem;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 8px rgba(31, 79, 57, 0.24);
    transform: scale(1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.demo-send-btn.is-active {
    transform: scale(1.08);
    box-shadow: 0 6px 14px rgba(31, 79, 57, 0.36);
    filter: brightness(1.06);
}

@keyframes bubbleIn {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes typingPulse {
    0%,
    80%,
    100% {
        opacity: 0.35;
        transform: translateY(-50%) scale(0.75);
    }
    40% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

@keyframes caretBlink {
    0%,
    45% {
        opacity: 1;
    }
    46%,
    100% {
        opacity: 0;
    }
}

/* ===== FEATURES ===== */
.features {
    padding: 5rem 0;
    background: linear-gradient(180deg, #efe7d8 0%, #ebe2d1 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.features .container {
    position: relative;
    z-index: 1;
}

.features-garden {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.88;
}

.grow-flower {
    position: absolute;
    bottom: -34px;
    left: 0;
    width: var(--size, 16px);
    height: 92px;
    opacity: 0;
    transform-origin: center bottom;
    animation:
        flowerLife var(--dur, 9s) ease-in-out infinite,
        flowerSway 3.8s ease-in-out infinite;
    animation-delay: var(--delay, 0s), var(--delay, 0s);
}

.flower-stem {
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 2.5px;
    height: 54px;
    border-radius: 2px;
    background: linear-gradient(180deg, #87a56d 0%, #4f7449 54%, #395a3c 100%);
    transform-origin: center bottom;
    transform: translateX(-50%) scaleY(0);
    animation: stemGrow var(--dur, 9s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.flower-bloom {
    position: absolute;
    left: 50%;
    bottom: 56px;
    width: calc(var(--size, 16px) * 1.35);
    height: calc(var(--size, 16px) * 1.35);
    transform: translateX(-50%) scale(0);
    transform-origin: center center;
    border-radius: 50%;
    animation: flowerBloom var(--dur, 9s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.flower-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: rotate(var(--twist, 0deg));
    filter: drop-shadow(0 2px 5px rgba(57, 39, 24, 0.2));
}

.flower-core {
    position: absolute;
    left: 50%;
    bottom: calc(56px + (var(--size, 16px) * 0.42));
    width: calc(var(--size, 16px) * 0.32);
    height: calc(var(--size, 16px) * 0.32);
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
    animation: flowerBloom var(--dur, 9s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    z-index: 1;
}

.grow-flower.variant-poppy .flower-bloom {
    background: none;
}

.grow-flower.variant-poppy .flower-core {
    background: radial-gradient(circle, #3e3a36 0%, #1e1a18 74%);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.28);
}

.grow-flower .flower-core::after {
    content: '';
    position: absolute;
    inset: 24%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.site-grass-edge {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(56px, 9vw, 98px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.95;
    background:
        linear-gradient(180deg, rgba(214, 229, 198, 0) 0%, rgba(173, 198, 143, 0.5) 52%, rgba(128, 158, 103, 0.74) 100%),
        url('assets/grass-leaf-plant-2-svgrepo-com.svg') 0 100% / auto 100% repeat-x,
        url('assets/grass-leaf-plant-svgrepo-com.svg') 80px 100% / auto 88% repeat-x,
        url('assets/grass-leaf-plant-6-svgrepo-com.svg') 40px 100% / auto 92% repeat-x;
    filter: saturate(1.14) hue-rotate(-24deg) brightness(0.95) contrast(1.06);
}

body.theme-night .site-grass-edge {
    opacity: 0.9;
    background:
        linear-gradient(180deg, rgba(35, 42, 58, 0) 0%, rgba(28, 39, 52, 0.62) 50%, rgba(22, 31, 43, 0.86) 100%),
        url('assets/grass-leaf-plant-2-svgrepo-com.svg') 0 100% / auto 100% repeat-x,
        url('assets/grass-leaf-plant-svgrepo-com.svg') 80px 100% / auto 88% repeat-x,
        url('assets/grass-leaf-plant-6-svgrepo-com.svg') 40px 100% / auto 92% repeat-x;
    filter: saturate(0.86) hue-rotate(10deg) brightness(0.78) contrast(1.22);
}

body.theme-transition-sunset .site-grass-edge {
    background:
        linear-gradient(180deg, rgba(70, 64, 80, 0) 0%, rgba(74, 64, 74, 0.5) 52%, rgba(56, 46, 50, 0.72) 100%),
        url('assets/grass-leaf-plant-2-svgrepo-com.svg') 0 100% / auto 100% repeat-x,
        url('assets/grass-leaf-plant-svgrepo-com.svg') 80px 100% / auto 88% repeat-x,
        url('assets/grass-leaf-plant-6-svgrepo-com.svg') 40px 100% / auto 92% repeat-x;
    filter: saturate(0.88) hue-rotate(2deg) brightness(0.84) contrast(1.14);
}

body.theme-transition-dawn .site-grass-edge {
    background:
        linear-gradient(180deg, rgba(224, 203, 180, 0) 0%, rgba(205, 178, 147, 0.48) 52%, rgba(176, 146, 118, 0.68) 100%),
        url('assets/grass-leaf-plant-2-svgrepo-com.svg') 0 100% / auto 100% repeat-x,
        url('assets/grass-leaf-plant-svgrepo-com.svg') 80px 100% / auto 88% repeat-x,
        url('assets/grass-leaf-plant-6-svgrepo-com.svg') 40px 100% / auto 92% repeat-x;
    filter: saturate(0.92) hue-rotate(-4deg) brightness(0.9) contrast(1.08);
}

.features::before,
.privacy::before,
.download::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 24px;
    background:
        radial-gradient(70% 220% at 0% 0%, rgba(13, 127, 101, 0.08), transparent 60%),
        radial-gradient(70% 220% at 100% 0%, rgba(13, 127, 101, 0.06), transparent 58%);
    pointer-events: none;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #f8f2e7;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth), border-color 0.25s ease;
    box-shadow: var(--shadow-sm);
    transform-origin: center;
}

.feature-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 14px 30px rgba(13, 127, 101, 0.14);
    transform: translateY(-6px) scale(1.01);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--primary-green);
}

.feature-icon img,
.privacy-icon img,
.download-icon img {
    transition: transform 0.35s var(--ease-smooth), filter 0.35s var(--ease-smooth);
    transform-origin: center;
}

.feature-card:hover .feature-icon img,
.privacy-item:hover .privacy-icon img {
    transform: translateY(-2px) scale(1.08) rotate(-4deg);
    filter: drop-shadow(0 8px 12px rgba(13, 127, 101, 0.18));
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

/* ===== PRIVACY SECTION ===== */
.privacy {
    padding: 5rem 0;
    background: #f3ebde;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.privacy-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth), background-color 0.25s ease;
}

.privacy-item:hover {
    transform: translateY(-5px);
    background: #e3d6c1;
    box-shadow: 0 12px 24px rgba(55, 40, 24, 0.14);
}

.privacy-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.privacy-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.privacy-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== DOWNLOAD ===== */
.download {
    padding: 5rem 0;
    background: linear-gradient(180deg, #e9dfcd 0%, #dfd2bd 100%);
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth), border-color 0.25s ease;
    min-width: 200px;
    box-shadow: var(--shadow-sm);
}

.download-btn:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 24px rgba(47, 107, 79, 0.18);
    transform: translateY(-4px);
}

.download-btn:hover .download-icon img {
    transform: scale(1.1) rotate(-6deg);
    filter: drop-shadow(0 6px 10px rgba(47, 107, 79, 0.22));
}

.download-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.download-text {
    text-align: left;
}

.download-store {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.download-action {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== FOOTER ===== */
.footer {
    background: #efe5d3;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-mark {
    width: clamp(24px, 3vw, 32px);
    height: clamp(24px, 3vw, 32px);
    object-fit: contain;
    display: block;
}

.footer-text {
    color: var(--text-secondary);
    text-align: center;
}

.footer p {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .day-night-indicator {
        transform: scale(0.92);
        transform-origin: top right;
        margin-left: 0;
    }

    .nav {
        justify-content: flex-start;
        gap: 0.6rem;
    }

    .logo {
        margin-right: auto;
    }

    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .privacy-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .day-night-indicator {
        transform: scale(0.84);
    }

    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mockupFloat {
    0%,
    100% {
        transform: perspective(1000px) rotateY(-5deg) translateY(0);
    }
    50% {
        transform: perspective(1000px) rotateY(-2deg) translateY(-8px);
    }
}

@keyframes particleDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(0.9);
        opacity: 0;
    }
    20% {
        opacity: 0.45;
    }
    100% {
        transform: translate3d(var(--dx, 40px), var(--dy, -80px), 0) scale(1.15);
        opacity: 0;
    }
}

.ambient-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ambient-particle {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 107, 79, 0.82), rgba(201, 169, 97, 0.1) 46%, rgba(47, 107, 79, 0));
    animation: particleDrift var(--dur, 7s) linear infinite;
    animation-delay: var(--delay, 0s);
    box-shadow: 0 0 10px rgba(47, 107, 79, 0.34);
}

.butterfly-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.tenor-butterfly-layer {
    position: absolute;
    inset: 0;
}

.hero-text-orbit-layer {
    position: absolute;
    inset: -110px -140px -90px;
    z-index: 0;
}

.tenor-butterfly-item {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--size, 88px);
    transform: translate(-50%, -50%) translate(var(--from-x, -120px), var(--offset-y, 0px));
    animation: heroTextButterflySideFlight var(--dur, 10s) ease-in-out infinite alternate;
    animation-delay: var(--delay, 0s);
}

.tenor-butterfly-item.classic-circular-flight {
    transform: translate(-50%, -50%) translate(0, var(--offset-y, 0px)) rotate(var(--orbit-angle-from, 0deg)) translateX(var(--orbit-radius, 140px));
    animation: heroTextButterflyCircleFlight var(--dur, 10s) linear infinite;
}

.hero-butterfly-gif {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.82;
    transform-origin: center;
    --flight-rotation: 0deg;
    animation: butterflyWings 1.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 10px rgba(57, 39, 24, 0.16));
}

@keyframes heroTextButterflySideFlight {
    0% {
        transform: translate(-50%, -50%) translate(var(--from-x, -120px), var(--offset-y, 0px));
    }
    100% {
        transform: translate(-50%, -50%) translate(var(--to-x, 120px), var(--offset-y, 0px));
    }
}

@keyframes butterflyWings {
    0%,
    100% {
        transform: rotate(calc(var(--flight-rotation, 0deg) - 3deg)) scale(1);
    }
    50% {
        transform: rotate(calc(var(--flight-rotation, 0deg) + 3deg)) scale(1.06);
    }
}

body.theme-night .hero-butterfly-gif {
    opacity: 0.78;
    filter: drop-shadow(0 6px 14px rgba(15, 18, 26, 0.34)) brightness(0.9);
}

.butterfly {
    position: absolute;
    left: -16vw;
    top: var(--top, 50%);
    width: 44px;
    height: 26px;
    transform-origin: center;
    animation: butterflyFlight var(--dur, 18s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    filter: drop-shadow(0 2px 6px rgba(52, 72, 47, 0.25));
}

.butterfly-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center;
    animation: butterflyFlap var(--flap, 0.8s) ease-in-out infinite;
    filter: var(--bf-day, brightness(0) saturate(100%) sepia(16%) hue-rotate(34deg) brightness(95%) contrast(92%));
}

.butterfly.variant-1 {
    --bf-day: brightness(0) saturate(100%) sepia(17%) hue-rotate(38deg) brightness(91%) contrast(96%);
    --bf-night: brightness(0) saturate(100%) invert(92%) sepia(12%) saturate(453%) hue-rotate(333deg) brightness(104%) contrast(97%);
    --bf-sunset: brightness(0) saturate(100%) invert(69%) sepia(37%) saturate(592%) hue-rotate(337deg) brightness(99%) contrast(93%);
    --bf-dawn: brightness(0) saturate(100%) invert(82%) sepia(24%) saturate(436%) hue-rotate(338deg) brightness(102%) contrast(95%);
}

.butterfly.variant-2 {
    --bf-day: brightness(0) saturate(100%) sepia(11%) hue-rotate(6deg) brightness(86%) contrast(102%);
    --bf-night: brightness(0) saturate(100%) invert(86%) sepia(8%) saturate(787%) hue-rotate(349deg) brightness(107%) contrast(96%);
    --bf-sunset: brightness(0) saturate(100%) invert(62%) sepia(53%) saturate(683%) hue-rotate(340deg) brightness(99%) contrast(95%);
    --bf-dawn: brightness(0) saturate(100%) invert(77%) sepia(20%) saturate(512%) hue-rotate(350deg) brightness(103%) contrast(95%);
}

.butterfly.variant-3 {
    --bf-day: brightness(0) saturate(100%) sepia(30%) hue-rotate(66deg) brightness(88%) contrast(96%);
    --bf-night: brightness(0) saturate(100%) invert(88%) sepia(17%) saturate(507%) hue-rotate(318deg) brightness(104%) contrast(96%);
    --bf-sunset: brightness(0) saturate(100%) invert(72%) sepia(30%) saturate(731%) hue-rotate(10deg) brightness(100%) contrast(93%);
    --bf-dawn: brightness(0) saturate(100%) invert(80%) sepia(18%) saturate(554%) hue-rotate(27deg) brightness(102%) contrast(95%);
}

.butterfly.variant-4 {
    --bf-day: brightness(0) saturate(100%) sepia(22%) hue-rotate(128deg) brightness(83%) contrast(98%);
    --bf-night: brightness(0) saturate(100%) invert(90%) sepia(14%) saturate(633%) hue-rotate(165deg) brightness(104%) contrast(95%);
    --bf-sunset: brightness(0) saturate(100%) invert(66%) sepia(44%) saturate(642%) hue-rotate(24deg) brightness(99%) contrast(95%);
    --bf-dawn: brightness(0) saturate(100%) invert(79%) sepia(18%) saturate(615%) hue-rotate(178deg) brightness(102%) contrast(94%);
}

body.theme-night .butterfly {
    filter: drop-shadow(0 2px 8px rgba(146, 170, 206, 0.28));
}

body.theme-night .butterfly-svg {
    filter: var(--bf-night, brightness(0) saturate(100%) invert(91%) sepia(14%) saturate(383%) hue-rotate(331deg) brightness(103%) contrast(96%));
}

body.theme-transition-sunset .butterfly-svg {
    filter: var(--bf-sunset, brightness(0) saturate(100%) invert(69%) sepia(35%) saturate(563%) hue-rotate(337deg) brightness(100%) contrast(93%));
}

body.theme-transition-dawn .butterfly-svg {
    filter: var(--bf-dawn, brightness(0) saturate(100%) invert(80%) sepia(20%) saturate(430%) hue-rotate(339deg) brightness(102%) contrast(94%));
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

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

.hero-title,
.hero-subtitle,
.hero-buttons {
    animation: fadeInUp 0.75s ease both;
}

.hero-subtitle {
    animation-delay: 0.1s;
}

.hero-buttons {
    animation-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
    .phone-mockup,
    .ambient-particle,
    .butterfly,
    .butterfly-svg,
    .tenor-butterfly-item,
    .hero-butterfly-gif,
    .grow-flower,
    .grow-flower::before,
    .grow-flower::after,
    .glow-orb,
    .wind-particle,
    .hero-title,
    .hero-subtitle,
    .hero-buttons {
        animation: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== MOBILE MENU (если нужно) ===== */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100vh;
    background: var(--bg-primary);
    padding: 5rem 2rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.nav-links.active li {
    margin: 1rem 0;
}

.nav-links.active a {
    font-size: 1.2rem;
}

/* ===== DOWNLOAD MODAL (оставлен как есть, только цвета приведены в порядок) ===== */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.download-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}