:root {
    --bg-main: #FFFFFF;
    --bg-secondary: #F4F6F8;
    --text-primary: #1A1D20;
    --text-muted: #68737D;
    --accent-silver: #A0AAB5;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
    --card-border: rgba(0,0,0,0.02);
    --btn-primary-bg: linear-gradient(135deg, #1A1D20 0%, #3A4148 100%);
    --btn-primary-text: #FFFFFF;
    --btn-sec-border: #A0AAB5;
    --btn-sec-bg: #FFFFFF;
    --radius: 16px;
}

html.dark-mode {
    --bg-main: #0D0F12;
    --bg-secondary: #16191D;
    --text-primary: #FFFFFF;
    --text-muted: #A0AAB5;
    --accent-silver: #4A525A;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.8);
    --card-border: rgba(255,255,255,0.05);
    --btn-primary-bg: linear-gradient(135deg, #FFFFFF 0%, #E0E0E0 100%);
    --btn-primary-text: #1A1D20;
    --btn-sec-border: #68737D;
    --btn-sec-bg: #16191D;
}

body {
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

main {
    flex: 1;
}

.hero-section {
    position: relative;
    padding: 80px 20px;
    background: var(--bg-main);
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.hero-bg-accent {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(160, 170, 181, 0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 500px;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(160, 170, 181, 0.15);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(160, 170, 181, 0.3);
    transition: color 0.3s ease;
}

.hero-text h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin: 0 0 20px 0;
    letter-spacing: -1px;
    transition: color 0.3s ease;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 35px;
    transition: color 0.3s ease;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-main, .btn-sec {
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-main {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.btn-sec {
    background: var(--btn-sec-bg);
    color: var(--text-primary);
    border: 2px solid var(--btn-sec-border);
}

.btn-sec:hover {
    border-color: var(--text-primary);
    background: var(--bg-secondary);
}

.hero-visual {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
}

.hero-logo-large {
    width: 100%;
    max-width: 450px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s ease, filter 0.3s ease;
}

html.dark-mode .hero-logo-large {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)) brightness(1.1);
}

.hero-logo-large:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.services-section {
    background-color: var(--bg-secondary);
    padding: 80px 20px;
    border-top: 1px solid var(--card-border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2rem);
    color: var(--text-primary);
    margin-bottom: 50px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-main);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--btn-primary-bg);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
    background: var(--text-primary);
    color: var(--bg-main);
}

.service-card h4 {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s ease;
}

.reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-left { opacity: 0; transform: translateX(40px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-up.active, .reveal-left.active { opacity: 1; transform: translate(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@media (max-width: 992px) {
    .hero-container { 
        flex-direction: column; 
        text-align: center; 
    }
    .hero-actions { 
        justify-content: center; 
    }
}

@media (max-width: 576px) {
    .hero-section, .services-section {
        padding: 50px 15px;
    }
    .hero-actions { 
        flex-direction: column; 
        width: 100%;
    }
    .btn-main, .btn-sec { 
        width: 100%;
        box-sizing: border-box;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
}