:root {
    --pink: #ff4d9e;
    --pink-light: #ffb8d9;
    --blue: #2d7dff;
    --blue-light: #8fd3fe;
    --green: #00c9a7;
    --yellow: #ffd93d;
    --dark: #1a1a2e;
    --cream: #fff9f0;
    --white: #ffffff;
}

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

body {
    font-family: 'Nunito', sans-serif;
    background: var(--cream);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Visitor counter */
.visitor-counter {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 999;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 160px;
    border: 3px solid var(--pink);
}

.visitor-counter:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 77, 158, 0.25);
}

.counter-main {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.counter-icon {
    font-size: 1.8rem;
    animation: blink 2s infinite;
}

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

.counter-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.counter-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--pink);
}

.counter-label {
    font-size: 0.75rem;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.counter-hover-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
    margin-top: 0;
}

.visitor-counter:hover .counter-hover-panel {
    max-height: 260px;
    opacity: 1;
    margin-top: 0.75rem;
}

.counter-hover-header {
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px dashed var(--pink-light);
}

.counter-hover-panel ul {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.counter-hover-panel li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.82rem;
    white-space: nowrap;
}

.counter-hover-panel li:last-child {
    border-bottom: none;
}

.visitor-flag {
    font-size: 1.1rem;
    margin-right: 0.3rem;
    line-height: 1;
}

.visitor-ip {
    font-weight: 700;
    color: var(--blue);
    font-family: monospace;
}

.visitor-city {
    color: #777;
    font-size: 0.8rem;
    margin-left: 0.15rem;
}

.visitor-time {
    color: #999;
    font-size: 0.72rem;
    margin-left: auto;
    padding-left: 0.5rem;
}

.visitor-empty,
.visitor-loading {
    color: #999;
    font-style: italic;
    justify-content: center !important;
}

/* Scrollbar for visitor list */
.counter-hover-panel ul::-webkit-scrollbar {
    width: 6px;
}

.counter-hover-panel ul::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.counter-hover-panel ul::-webkit-scrollbar-thumb {
    background: var(--pink-light);
    border-radius: 3px;
}

/* Floating sheep rain */
.sheep-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sheep-rain span {
    position: absolute;
    top: -50px;
    font-size: 1.5rem;
    opacity: 0.12;
    animation: fall linear infinite;
}

.sheep-rain span:nth-child(1) { left: 5%; animation-duration: 12s; animation-delay: 0s; }
.sheep-rain span:nth-child(2) { left: 15%; animation-duration: 15s; animation-delay: 2s; }
.sheep-rain span:nth-child(3) { left: 25%; animation-duration: 11s; animation-delay: 4s; }
.sheep-rain span:nth-child(4) { left: 35%; animation-duration: 14s; animation-delay: 1s; }
.sheep-rain span:nth-child(5) { left: 50%; animation-duration: 13s; animation-delay: 3s; }
.sheep-rain span:nth-child(6) { left: 65%; animation-duration: 16s; animation-delay: 5s; }
.sheep-rain span:nth-child(7) { left: 75%; animation-duration: 12s; animation-delay: 2s; }
.sheep-rain span:nth-child(8) { left: 85%; animation-duration: 14s; animation-delay: 4s; }
.sheep-rain span:nth-child(9) { left: 92%; animation-duration: 11s; animation-delay: 1s; }
.sheep-rain span:nth-child(10) { left: 45%; animation-duration: 15s; animation-delay: 6s; }

@keyframes fall {
    0% { transform: translateY(-50px) rotate(0deg); }
    100% { transform: translateY(110vh) rotate(360deg); }
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff9f0 0%, #ffe4f0 50%, #e0f0ff 100%);
    padding: 6rem 1.5rem 4rem;
    text-align: center;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
}

.badge {
    display: inline-block;
    background: var(--yellow);
    color: var(--dark);
    font-weight: 900;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 0 rgba(0,0,0,0.1);
    transform: rotate(-2deg);
    animation: wiggle 2s ease-in-out infinite;
}

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

.hero h1 {
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.hero .highlight {
    background: linear-gradient(90deg, var(--pink), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 2rem;
    color: #444;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 0 rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(90deg, var(--pink), var(--pink-light));
    color: var(--white);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--blue);
    border: 3px solid var(--blue);
}

.btn-secondary:hover {
    background: var(--blue-light);
}

.btn-giant {
    background: linear-gradient(90deg, var(--green), var(--blue));
    color: var(--white);
    font-size: 1.3rem;
    padding: 1.2rem 2.5rem;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-mascot {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: none;
}

.mascot-bubble {
    background: var(--white);
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
    position: relative;
}

.mascot-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--white) transparent transparent transparent;
}

.sheep-hero {
    width: 160px;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    background: var(--white);
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.step:hover {
    transform: translateY(-8px);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* Stories */
.stories {
    background: linear-gradient(180deg, #fff 0%, #f8f0ff 100%);
}

.story-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

.story-card {
    background: var(--white);
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.story-card.adam::before {
    background: linear-gradient(90deg, var(--pink), var(--pink-light));
}

.story-card.ramzan::before {
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.portrait {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--white);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.adam .portrait {
    box-shadow: 0 8px 25px rgba(255, 77, 158, 0.3);
}

.ramzan .portrait {
    box-shadow: 0 8px 25px rgba(45, 125, 255, 0.3);
}

.sheep-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-weight: 900;
    color: var(--white);
}

.sheep-badge svg {
    width: 40px;
    height: 32px;
}

.sheep-badge.pink {
    background: linear-gradient(90deg, var(--pink), var(--pink-light));
}

.sheep-badge.blue {
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
}

blockquote {
    font-size: 1.15rem;
    font-style: italic;
    color: #444;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid #ddd;
}

.adam blockquote {
    border-left-color: var(--pink);
}

.ramzan blockquote {
    border-left-color: var(--blue);
}

.customer-name {
    font-size: 1.3rem;
    font-weight: 900;
}

.customer-title {
    color: #888;
    font-size: 0.95rem;
}

/* Features */
.features {
    background: var(--dark);
    color: var(--white);
}

.features h2 {
    color: var(--white);
}

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

.feature {
    background: rgba(255,255,255,0.08);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    transition: background 0.2s;
}

.feature:hover {
    background: rgba(255,255,255,0.15);
}

.feature-emoji {
    font-size: 2rem;
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--blue-light) 100%);
    text-align: center;
    padding: 5rem 1.5rem;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #333;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 2.5rem 1.5rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer .small {
    font-size: 0.85rem;
    color: #888;
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
}

@media (max-width: 480px) {
    .visitor-counter {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.5rem 0.75rem;
        min-width: auto;
        border-width: 2px;
    }

    .counter-number {
        font-size: 1.2rem;
    }

    .counter-label {
        display: none;
    }

    .counter-icon {
        font-size: 1.4rem;
    }

    .counter-hover-panel ul {
        max-height: 160px;
    }

    .sticky-cta {
        bottom: 0.5rem;
        right: 0.5rem;
    }
}

.btn-sticky {
    background: linear-gradient(90deg, var(--green), #00b894);
    color: var(--white);
    padding: 0.9rem 1.4rem;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
    50% { box-shadow: 0 6px 30px rgba(0, 201, 167, 0.5); }
}

/* Desktop enhancements */
@media (min-width: 768px) {
    .hero {
        text-align: left;
        justify-content: flex-start;
        padding-left: 8%;
    }

    .cta-group {
        justify-content: flex-start;
    }

    .hero-mascot {
        display: block;
        right: 8%;
        bottom: 10%;
    }

    .sheep-hero {
        width: 220px;
    }

    .story-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-header {
        flex-wrap: nowrap;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 5.5rem;
    }

    .sheep-hero {
        width: 280px;
    }
}

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