html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #9B6FD8 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
}

main {
    flex: 1;
}

main.scratch-main {
    padding-top: 80px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(135deg, #855CD6 0%, #A67FE8 100%) !important;
    border-bottom: 4px solid #FF8C1A !important;
}

header nav a {
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

header nav a:hover {
    background-color: rgba(255, 140, 26, 0.2) !important;
    color: #FFD500 !important;
}

header nav a.active {
    background-color: #FF8C1A !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

header nav a.active::after {
    background-color: #FFD500 !important;
}

.scratch-main {
    padding-top: 80px;
}

.scratch-hero {
    background: linear-gradient(135deg, #855CD6 0%, #9B6FD8 50%, #B08ADE 100%);
    padding: 60px 60px 60px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
    margin: 0 !important;
}

.scratch-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    color: #FFFFFF;
}

.hero-badge {
    display: inline-block;
    background-color: #FF8C1A;
    color: #FFFFFF;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.scratch-hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #FFFFFF;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: #FFD500;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: #FFFFFF;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.but-primary {
    display: inline-block;
    background-color: #FF8C1A;
    color: #FFFFFF;
    padding: 20px 60px;
    border-radius: 35px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 140, 26, 0.5);
}

.but-primary:hover {
    background-color: #FF7700;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 26, 0.6);
}

.but-secondary {
    display: inline-block;
    background-color: transparent;
    color: #FFFFFF;
    border: 3px solid #FFFFFF;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.but-secondary:hover {
    background-color: #FFFFFF;
    color: #855CD6;
}

.hero-image {
    flex: 1;
    max-width: 550px;
    flex-shrink: 0;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: rotate(0deg) scale(1.05);
}

footer {
    background: linear-gradient(135deg, #5A3D9E 0%, #7B52C4 100%) !important;
    border-top: 4px solid #FF8C1A !important;
    width: 100%;
    margin: 0 !important;
    padding: 30px 20px !important;
    flex-shrink: 0;
}

footer nav a {
    color: #FFFFFF !important;
}

footer nav a:hover {
    background-color: rgba(255, 140, 26, 0.2) !important;
    color: #FFD500 !important;
}

footer nav a.active {
    background-color: #FF8C1A !important;
    color: #FFFFFF !important;
}

footer p {
    color: #E9D8FF !important;
}

@media (max-width: 1024px) {
    .scratch-hero {
        padding: 50px 40px;
        gap: 40px;
    }
    
    .scratch-hero-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-image {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .scratch-hero h1 {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    main.scratch-main {
        padding-top: 70px !important;
    }
    
    .scratch-hero {
        padding: 40px 20px;
    }
    
    .scratch-hero h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .but-primary, .but-secondary {
        font-size: 16px;
        padding: 14px 30px;
        width: 100%;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .scratch-hero h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .scratch-hero {
        padding: 30px 15px;
    }
}