/* ===== Variables ===== */
:root {
    /* Тёплая игровая палитра */
    --primary: #ff6b35;
    --primary-dark: #e85a2a;
    --primary-light: #ff8a5b;
    --secondary: #00d9c0;
    --secondary-dark: #00b8a3;
    --accent: #ffe156;
    --accent-dark: #ffd93d;

    /* Дополнительные акценты */
    --candy-pink: #ff8fab;
    --sky-blue: #4ecdc4;
    --grape: #7b68ee;
    --mint: #98ff98;

    /* Нейтральные */
    --gray-50: #fffaf5;
    --gray-100: #fff5eb;
    --gray-200: #ffe8d6;
    --gray-300: #e8d5c4;
    --gray-400: #b8a898;
    --gray-500: #8b7355;
    --gray-600: #6b5344;
    --gray-700: #4a3728;
    --gray-800: #2d1f14;
    --gray-900: #1a0f08;

    --white: #ffffff;
    --black: #1a0f08;
    --bg-cream: #fff9f0;

    /* Тени и эффекты */
    --shadow-sm: 0 2px 8px rgba(255, 107, 53, 0.08);
    --shadow-md: 0 8px 24px rgba(255, 107, 53, 0.12);
    --shadow-lg: 0 16px 48px rgba(255, 107, 53, 0.16);
    --shadow-glow: 0 0 40px rgba(255, 107, 53, 0.3);

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

/* ===== Fonts ===== */
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Fredoka:wght@400;500;600;700&display=swap");

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Nunito", sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-800);
    background: var(--bg-cream);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: "Fredoka", sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow:
        0 4px 0 var(--primary-dark),
        0 8px 24px rgba(255, 107, 53, 0.35);
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 7px 0 var(--primary-dark),
        0 14px 32px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 var(--primary-dark),
        0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow:
        0 4px 0 var(--gray-300),
        0 8px 24px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow:
        0 7px 0 var(--gray-300),
        0 14px 32px rgba(0, 0, 0, 0.15);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
}

.btn-block {
    width: 100%;
}

/* ===== Section Styles ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 3.5rem;
    font-weight: 500;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(
        145deg,
        var(--primary) 0%,
        var(--primary-light) 40%,
        var(--secondary) 100%
    );
    color: var(--white);
    overflow: hidden;
    padding: 0 1.5rem;
}

/* Паттерн на фоне */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Волна внизу */
.hero::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 100V60C180 100 360 20 540 40C720 60 900 100 1080 60C1260 20 1350 80 1440 60V100H0Z' fill='%23FFF9F0'/%3E%3C/svg%3E")
        no-repeat bottom;
    background-size: cover;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: "Fredoka", sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
}

.logo-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 100;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.hero h1 span {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), #fff176);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.35rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    font-weight: 500;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-hint {
    font-size: 0.95rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-hint::before {
    content: "⚡";
}

.hero-image {
    max-width: 360px;
    margin: 0 auto;
    padding-bottom: 6rem;
    position: relative;
    z-index: 5;
}

.screenshot-placeholder {
    background: rgba(255, 255, 255, 0.12);
    border: 3px dashed rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-xl);
    padding: 5rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.screenshot-placeholder:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
}

.screenshot-placeholder.small {
    padding: 3.5rem 1.5rem;
    background: var(--white);
    border: 3px dashed var(--gray-300);
    color: var(--gray-500);
    backdrop-filter: none;
}

/* Floating coins */
.hero-coins {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-coin {
    position: absolute;
    background: linear-gradient(145deg, var(--accent), var(--accent-dark));
    border-radius: 50%;
    box-shadow:
        inset -3px -3px 8px rgba(0, 0, 0, 0.15),
        inset 3px 3px 8px rgba(255, 255, 255, 0.4),
        0 8px 24px rgba(255, 217, 61, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Fredoka", sans-serif;
    font-weight: 700;
    color: rgba(139, 69, 19, 0.5);
}

.floating-coin::after {
    content: "₵";
    font-size: inherit;
}

.coin-1 {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    top: 18%;
    left: 8%;
    animation: coinFloat 5s ease-in-out infinite;
}
.coin-2 {
    width: 65px;
    height: 65px;
    font-size: 1.8rem;
    top: 28%;
    right: 10%;
    animation: coinFloat 6s ease-in-out infinite 0.5s;
}
.coin-3 {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    bottom: 35%;
    left: 12%;
    animation: coinFloat 5.5s ease-in-out infinite 1s;
}
.coin-4 {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    top: 55%;
    right: 6%;
    animation: coinFloat 4.5s ease-in-out infinite 1.5s;
}
.coin-5 {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
    bottom: 22%;
    right: 18%;
    animation: coinFloat 5s ease-in-out infinite 2s;
}

@keyframes coinFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-25px) rotate(10deg);
        opacity: 1;
    }
}

/* ===== Problem/Solution Section ===== */
.problem-solution {
    padding: 6rem 0;
    background: var(--bg-cream);
    position: relative;
}

.ps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.ps-column {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.ps-column::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.ps-problem::before {
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
}

.ps-solution::before {
    background: linear-gradient(90deg, var(--secondary), #40e0d0);
}

.ps-column h2 {
    font-size: 1.6rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ps-problem h2 {
    color: #e84a4a;
}
.ps-problem h2::before {
    content: "😰";
    font-size: 1.8rem;
}

.ps-solution h2 {
    color: var(--secondary-dark);
}
.ps-solution h2::before {
    content: "🎉";
    font-size: 1.8rem;
}

.ps-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ps-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.1rem;
    line-height: 1.5;
    align-items: center;
}

.ps-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

/* ===== How It Works Section ===== */
.how-it-works {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--white) 100%);
    position: relative;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    position: relative;
}

/* Connecting line for desktop */
@media (min-width: 768px) {
    .steps-grid::before {
        content: "";
        position: absolute;
        top: 45px;
        left: calc(16.67% + 28px);
        right: calc(16.67% + 28px);
        height: 4px;
        background: repeating-linear-gradient(
            90deg,
            var(--primary) 0,
            var(--primary) 12px,
            transparent 12px,
            transparent 24px
        );
        border-radius: 2px;
        z-index: 0;
    }
}

.step-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    z-index: 1;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-card:hover {
    transform: translateY(-8px) rotate(-1deg);
    border-color: var(--primary);
    box-shadow:
        var(--shadow-lg),
        0 0 0 4px rgba(255, 107, 53, 0.1);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    box-shadow:
        0 4px 0 var(--primary-dark),
        0 8px 24px rgba(255, 107, 53, 0.35);
    border: 4px solid var(--white);
    z-index: 2;
}

.step-icon {
    font-size: 3.5rem;
    margin: 1.5rem 0 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

.step-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* ===== Features Section ===== */
.features {
    padding: 6rem 0;
}

.features-kids {
    background: var(--white);
}

.features-parents {
    background: linear-gradient(
        180deg,
        var(--gray-50) 0%,
        var(--bg-cream) 100%
    );
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    border: 2px solid transparent;
    background:
        linear-gradient(var(--white), var(--white)) padding-box,
        linear-gradient(135deg, var(--gray-200), var(--gray-100)) border-box;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(255, 225, 86, 0.5);
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover {
    transform: translateY(-6px) rotate(-0.5deg);
    background:
        linear-gradient(var(--white), var(--white)) padding-box,
        linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scale(1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.feature-card p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== Gallery Section ===== */
.gallery {
    padding: 6rem 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.gallery-item {
    text-align: center;
}

.gallery-item .screenshot-placeholder {
    background: var(--gray-50);
    border-color: var(--gray-200);
    color: var(--gray-400);
    margin-bottom: 1rem;
    padding: 3.5rem 1.5rem;
    transition: all 0.3s ease;
}

.gallery-item:hover .screenshot-placeholder {
    border-color: var(--primary);
    background: var(--gray-100);
}

.gallery-item p {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 600;
}

/* ===== Comparison Section ===== */
.comparison {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--white) 100%);
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    background: var(--white);
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table th {
    background: var(--gray-50);
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    font-size: 1rem;
}

.comparison-table th.highlight {
    background: linear-gradient(
        135deg,
        rgba(255, 107, 53, 0.15),
        rgba(0, 217, 192, 0.1)
    );
    color: var(--primary);
}

.comparison-table td.highlight {
    background: rgba(255, 107, 53, 0.05);
    font-weight: 600;
}

.comparison-table tbody tr {
    transition: background 0.2s;
}

.comparison-table tbody tr:hover {
    background: var(--gray-50);
}

.check {
    color: var(--secondary-dark);
    font-weight: bold;
    font-size: 1.2rem;
}

.cross {
    color: var(--gray-400);
    font-size: 1.2rem;
}

.table-note {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 6rem 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 2px solid var(--gray-100);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.testimonial-avatar {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Fredoka", sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.25);
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.testimonial-author {
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 1rem;
}

/* ===== Pricing Section ===== */
.pricing {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--white) 100%);
}

.pricing-card {
    max-width: 440px;
    margin: 0 auto 2.5rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.pricing-badge {
    position: absolute;
    top: 50px;
    right: -50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--gray-800);
    padding: 0.5rem 3rem;
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pricing-price {
    margin: 2rem 0;
}

.price-old {
    font-size: 1.4rem;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-right: 0.75rem;
}

.price-current {
    font-family: "Fredoka", sans-serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-features {
    text-align: left;
    margin-bottom: 2.5rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    border-bottom: 1px dashed var(--gray-200);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .check {
    font-size: 1.4rem;
    width: 28px;
    height: 28px;
    background: rgba(0, 217, 192, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-note {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    color: var(--gray-500);
}

.pricing-cards-landing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.pricing-card-landing {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card-landing:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.pricing-card-landing.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.pricing-card-landing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-card-landing-name {
    font-family: "Fredoka", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.pricing-card-landing-price {
    font-family: "Fredoka", sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card-landing-period {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.pricing-card-landing-monthly {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

.pricing-future {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.1rem;
}

.pricing-future strong {
    color: var(--primary);
}

.pricing .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* ===== FAQ Section ===== */
.faq {
    padding: 6rem 0;
    background: var(--white);
}

.faq-list {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    border: 2px solid var(--gray-100);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--gray-200);
}

.faq-item.open {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.12);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Fredoka", sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    color: var(--gray-800);
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    width: 36px;
    height: 36px;
    background: var(--gray-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
    max-height: 400px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== Final CTA Section ===== */
.final-cta {
    padding: 6rem 0;
    background: linear-gradient(
        145deg,
        var(--primary) 0%,
        var(--primary-light) 40%,
        var(--secondary) 100%
    );
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

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

.final-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.final-cta > .container > p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
}

.cta-hint {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cta-hint::before {
    content: "🔒";
}

/* ===== Footer ===== */
.footer {
    background: var(--gray-800);
    color: var(--white);
    padding: 3.5rem 0 2rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: "Fredoka", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-logo .logo-icon {
    width: 36px;
    height: 36px;
}

.footer-nav {
    display: flex;
    gap: 2.5rem;
}

.footer-nav a {
    color: var(--gray-400);
    font-weight: 500;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-contacts {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-700);
}

.footer-contacts-title {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.footer-contacts-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-300);
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-contact-link:hover {
    color: var(--white);
}

.footer-contact-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
}

@media (min-width: 640px) {
    .footer-contacts-links {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

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

.hero-content,
.hero-image {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* ===== Media Queries ===== */

/* Tablet */
@media (min-width: 640px) {
    .hero h1 {
        font-size: 3.2rem;
    }

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

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3.8rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Mobile menu */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: -1.5rem;
        right: -1.5rem;
        background: linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.25rem;
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a:not(.btn)::after {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero-content {
        padding: 3rem 0 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .comparison-table {
        font-size: 0.875rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.75rem;
    }

    .pricing-badge {
        right: -40px;
        top: 15px;
        font-size: 0.7rem;
    }

    .pricing-cards-landing {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .pricing-card-landing.popular {
        transform: none;
    }
}

/* ===== Phone Frame ===== */
.phone-frame {
    position: relative;
    display: inline-block;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        inset 0 0 0 2px #333;
}

.phone-frame::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 12px;
    z-index: 10;
}

.phone-frame::after {
    content: "";
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    z-index: 11;
}

.phone-frame img {
    display: block;
    width: 100%;
    border-radius: 28px;
    background: white;
    padding-top: 25px;
}

.phone-frame--small {
    border-radius: 32px;
    padding: 8px;
}

.phone-frame--small::before {
    top: 10px;
    width: 60px;
    height: 18px;
    border-radius: 9px;
}

.phone-frame--small::after {
    top: 14px;
    width: 8px;
    height: 8px;
}

.phone-frame--small img {
    border-radius: 24px;
}

/* ===== Screenshots ===== */
.hero-screenshot {
    width: 100%;
    max-width: 340px;
    cursor: pointer;
}

.step-screenshot {
    width: 100%;
    cursor: pointer;
}

.step-card .phone-frame {
    margin-top: 1rem;
    transition: transform 0.3s ease;
}

.step-card .phone-frame:hover {
    transform: scale(1.03);
}

.gallery-item .phone-frame {
    transition: transform 0.3s ease;
}

.gallery-item .phone-frame:hover {
    transform: scale(1.05);
}

.hero-image .phone-frame {
    transition: transform 0.3s ease;
}

.hero-image .phone-frame:hover {
    transform: scale(1.02);
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

#lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 60px rgba(255, 107, 53, 0.3);
    cursor: default;
    touch-action: none;
    transform-origin: center center;
}

#lightbox-caption {
    color: var(--white);
    margin-top: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
    font-family: "Fredoka", sans-serif;
}

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

@media (min-width: 768px) {
    .lightbox-nav {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .lightbox-prev {
        left: 2rem;
    }

    .lightbox-next {
        right: 2rem;
    }
}

@media (max-width: 480px) {
    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}

/* ===== Demo Modal ===== */
.demo-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.demo-modal.active {
    display: flex;
    opacity: 1;
}

.demo-modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

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

.demo-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--gray-400);
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.demo-modal-close:hover {
    color: var(--gray-700);
}

.demo-modal-content h2 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    text-align: center;
}

.demo-modal-subtitle {
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 1.5rem;
}

.demo-role-select {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-role-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-role-btn:hover {
    border-color: var(--primary);
    background: var(--gray-50);
    transform: translateY(-2px);
}

.demo-role-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.demo-role-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.demo-role-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.demo-kid-select {
    text-align: center;
}

.demo-back-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 1rem;
    padding: 0.5rem;
    transition: opacity 0.2s ease;
}

.demo-back-btn:hover {
    opacity: 0.7;
}

.demo-kid-title {
    color: var(--gray-700);
    margin-bottom: 1rem;
    font-weight: 500;
}

.demo-kids-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.demo-kid-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.demo-kid-btn:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.demo-kid-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.demo-kid-name {
    font-weight: 600;
    color: var(--gray-900);
    flex-grow: 1;
}

.demo-kid-badge {
    font-size: 0.75rem;
    background: var(--success);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}

.demo-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 1rem;
}

.demo-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.demo-loading p {
    color: var(--gray-600);
}

.demo-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.demo-error p {
    color: var(--danger);
    text-align: center;
}

/* Hero CTA adjustments for demo button */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.hero-cta .btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.hero-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.hero-hint {
    width: 100%;
    text-align: center;
}

/* ===== Blog Section ===== */
.blog-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.blog-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.25rem;
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.blog-all-link {
    text-align: center;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
