/* DESIGN TOKENS */
:root {
    /* Colors */
    --color-primary: #0f62fe;
    /* Trustworthy Tech Blue */
    --color-primary-dark: #0043ce;
    --color-primary-light: #edf5ff;
    --color-secondary: #00e676;
    /* Vibrant Accent / Growth */
    --color-secondary-dark: #00c853;

    --color-text-main: #161616;
    --color-text-muted: #525252;
    --color-text-light: #f4f4f4;

    --color-bg-main: #ffffff;
    --color-bg-alt: #f4f4f4;
    --color-bg-dark: #161616;
    --color-bg-darker: #000000;

    /* Typography */
    --font-family-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-base: 16px;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-xxl: 8rem;

    /* Shadows & Radii */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.2, 0, 0.38, 0.9);
    --transition-normal: 300ms cubic-bezier(0.2, 0, 0.38, 0.9);
    --transition-slow: 500ms cubic-bezier(0.2, 0, 0.38, 0.9);
}

/* RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    font-size: var(--font-size-base);
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    margin-bottom: var(--spacing-sm);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
}

/* LAYOUT */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-padding {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-inline: auto;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(15, 98, 254, 0.39);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(15, 98, 254, 0.49);
    color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
}

/* HEADER & NAVIGATION */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
    background-color: rgba(255, 255, 255, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--color-primary);
}

.nav-list {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-list a {
    font-weight: 500;
    color: var(--color-text-muted);
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--color-text-main);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    position: absolute;
    transition: all var(--transition-normal);
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-btn span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-btn.open span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* HERO SECTION */
.hero {
    position: relative;
    padding: var(--spacing-xl) 0 calc(var(--spacing-xl) * 1.5);
    background-color: var(--color-bg-main);
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 70vh;
}

.hero-content {
    max-width: 800px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Background Accents */
.hero-bg-accent {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary-light) 0%, rgba(255, 255, 255, 0) 70%);
}

.shape-2 {
    bottom: 0;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
}

/* FOOTER */
.footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: var(--spacing-xxl) 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-col.brand-col .logo {
    color: #ffffff;
    display: inline-block;
    margin-bottom: var(--spacing-sm);
}

.footer-col h3 {
    color: #ffffff;
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.footer-col ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-col a {
    color: var(--color-text-muted);
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-col p,
.footer-col address {
    color: var(--color-text-muted);
    font-style: normal;
}

.footer-phone {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff !important;
}

.social-links {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.social-links a:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md) 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-bg-main);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: var(--spacing-xl);
        transition: transform var(--transition-normal);
        transform: translateY(-150%);
        z-index: 99;
        opacity: 0;
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        margin-bottom: var(--spacing-lg);
    }

    .nav-list a {
        font-size: 1.5rem;
    }

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

    .hero-container {
        min-height: 60vh;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-padding {
        padding: var(--spacing-xl) 0;
    }
}

/* === NEW HOMEPAGE SECTIONS === */

/* Helpers */
.bg-alt {
    background-color: var(--color-bg-alt);
}

.bg-dark {
    background-color: var(--color-bg-darker);
}

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

.mt-md {
    margin-top: var(--spacing-md);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--color-bg-main);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 98, 254, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    transition: transform var(--transition-fast);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-list {
    margin-bottom: var(--spacing-md);
}

.service-list li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-list .check {
    color: var(--color-secondary-dark);
    font-weight: bold;
}

.service-link {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link .arrow {
    transition: transform var(--transition-fast);
}

.service-link:hover .arrow {
    transform: translateX(5px);
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
}

.feature-list li {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--color-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.feature-text h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.feature-text p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Mockup CSS Art Placeholder */
.glass-mockup {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    background: rgba(0, 0, 0, 0.03);
    padding: 1rem;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.mockup-body {
    flex: 1;
    padding: 1rem;
    background: #fafafa;
}

.mockup-hero {
    height: 40%;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-bg-main));
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.mockup-cards {
    display: flex;
    gap: 1rem;
    height: 30%;
}

.mockup-cards span {
    flex: 1;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 900px) {
    .process-steps::after {
        content: '';
        position: absolute;
        top: 30px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: rgba(255, 255, 255, 0.1);
        z-index: 1;
    }
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm) auto;
    position: relative;
    box-shadow: 0 0 0 10px rgba(15, 98, 254, 0.2);
}

.step h3 {
    font-size: 1.25rem;
    color: white;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.stars {
    color: #ffb400;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-main);
    margin-bottom: var(--spacing-md);
}

.client-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: var(--spacing-sm);
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.client-info strong {
    display: block;
}

.client-info span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-content h2 {
    color: white;
    margin-bottom: var(--spacing-xs);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    background: white;
    color: var(--color-primary);
    box-shadow: none;
}

.btn-lg:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary-dark);
    transform: scale(1.05);
}