/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --foreground: #0f172a;
    --muted-foreground: #64748b;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-50: #ecfdf5;
    --blue-100: #dbeafe;
    --blue-600: #2563eb;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: var(--foreground);
    background-color: var(--white);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    padding-top: 0;
    overflow: hidden;
}

/* Grid Pattern */
.grid-pattern {
    position: absolute;
    inset: 0;
    opacity: 1;
}

.grid-lines {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, var(--primary) 1.5px, transparent 1.5px),
        linear-gradient(to bottom, var(--primary) 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    opacity: 0.08;
    /* Маска для плавного затухания снизу */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
}

.grid-fade {
    position: absolute;
    inset-x: 0;
    bottom: 0;
    height: 300px;
    background: linear-gradient(to top, var(--white) 0%, rgba(255, 255, 255, 0.95) 30%, rgba(255, 255, 255, 0.5) 60%, transparent 100%);
    pointer-events: none;
}

/* Floating Elements */
.parallax {
    position: absolute;
    border-radius: 50%;
}

.parallax-1 {
    top: 128px;
    left: 10%;
    width: 8px;
    height: 8px;
    background-color: rgba(16, 185, 129, 0.4);
}

.parallax-2 {
    top: 192px;
    right: 15%;
    width: 8px;
    height: 8px;
    background-color: rgba(52, 211, 153, 0.5);
}

.parallax-3 {
    bottom: 160px;
    left: 27%;
    width: 10px;
    height: 10px;
    background-color: rgba(16, 185, 129, 0.3);
}

.parallax-4 {
    top: 60%;
    right: 50%;
    width: 8px;
    height: 8px;
    background-color: rgba(110, 231, 183, 0.4);
}

/* Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
}

.orb-1 {
    top: 80px;
    right: 0;
    width: 600px;
    height: 600px;
    background: linear-gradient(to bottom right, rgba(209, 250, 229, 0.4), transparent);
}

.orb-2 {
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: linear-gradient(to top right, rgba(236, 253, 245, 0.6), transparent);
}

/* Container */
.container {
    width: 100%;
    padding: 24px 16px 24px 16px;
}

@media (min-width: 640px) {
    .container {
        padding: 24px 24px 24px 24px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 24px 48px 24px 48px;
    }
}

@media (min-width: 1280px) {
    .container {
        padding: 24px 80px 24px 80px;
    }
}

/* Hero Content */
.hero-content {
    display: grid;
    gap: 48px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 64px;
        align-items: center;
    }
}

/* Left Content */
.left-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    background-color: rgba(209, 250, 229, 0.8);
    border: 1px solid rgba(167, 243, 208, 0.5);
    align-self: flex-start;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.badge-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}

/* Heading */
.heading {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.heading h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0;
}

@media (min-width: 640px) {
    .heading h1 {
        font-size: 36px;
    }
}

@media (min-width: 1024px) {
    .heading h1 {
        font-size: 44px;
    }
}

@media (min-width: 1280px) {
    .heading h1 {
        font-size: 52px;
    }
}

.text-foreground {
    color: var(--foreground);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description {
    font-size: 18px;
    color: var(--muted-foreground);
    max-width: 448px;
    line-height: 1.75;
    margin: 0;
}

@media (min-width: 1024px) {
    .description {
        font-size: 20px;
    }
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.25), 0 8px 10px -6px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
    background-color: rgba(16, 185, 129, 0.9);
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.4), 0 8px 10px -6px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 2px solid var(--emerald-200);
}

.btn-outline:hover {
    background-color: rgba(236, 253, 245, 0.5);
    transform: translateY(-2px);
}

/* Stats */
.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    padding-top: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 30px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 1024px) {
    .stat-value {
        font-size: 36px;
    }
}

.stat-label {
    font-size: 14px;
    color: var(--muted-foreground);
}

/* Right Content */
.right-content {
    position: relative;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 1024px) {
    .right-content {
        height: auto;
        min-height: 600px;
    }
}

/* Image Container */
.image-container {
    position: relative;
    width: 100%;
    max-width: 512px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.image-container:hover {
    transform: translateY(-10px);
}

.image-container:first-child {
    padding: 24px;
}

/* Glow Effect */
.glow-effect {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.2));
    /* background-color: #0f172a; */
    border-radius: 24px;
    filter: blur(32px);
    transform: scale(0.9);
}

/* Image Wrapper */
.image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: visible;
    background-color: var(--white);
    box-shadow: 0 25px 50px -12px rgba(6, 78, 59, 0.1);
    /* border: 1px solid rgba(209, 250, 229, 0.5); */
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 175px;
    border-radius: 24px;
    display: block;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(209, 250, 229, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    transition: transform 0.3s ease;
}

.card-1 {
    bottom: 8px;
    left: 8px;
}

.card-2 {
    top: 8px;
    right: 8px;
}

.image-container:hover .card-1 {
    transform: translate(-5px, 5px);
}

.image-container:hover .card-2 {
    transform: translate(5px, -5px);
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.card-1 .card-icon {
    background-color: var(--blue-100);
    color: var(--blue-600);
}

.card-2 .card-icon {
    background-color: var(--emerald-100);
    color: var(--primary);
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-label {
    font-size: 12px;
    color: var(--muted-foreground);
}

.card-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted-foreground);
}

.scroll-text {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border-radius: 9999px;
    border: 2px solid var(--emerald-200);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8px;
}

.scroll-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}
