/* ----- Base & Variables ----- */
:root {
    --bg-color: #FFFFFF;
    --surface-color: #F8F9FA;
    --primary: #000000;
    --secondary: #111111;
    --accent: #000000;
    --text-primary: #000000;
    --text-secondary: #4B5563;
    --border-color: #E5E7EB;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section-padding {
    padding: 8rem 0;
}

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

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

/* ----- Typography ----- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 2rem;
}

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

h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.accent-text {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

/* ----- Logo ----- */
.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: -0.05em;
    color: var(--primary);
}

.logo-large {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -0.05em;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.tagline {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    letter-spacing: 0.3em;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.tagline-sm {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-top: 0.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* ----- Components ----- */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
}

.btn-primary:hover {
    background: #fff;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    background: #fff;
}

.btn-primary.lg, .btn-secondary.lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.mt-4 { margin-top: 2rem; }

/* ----- Navigation ----- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.nav-links a:not(.btn-primary) {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    transition: 0.3s;
}

/* ----- Hero Section ----- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
    opacity: 0.7;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.4) 100%);
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 800px;
}

.hero-text .title {
    font-weight: 700;
    color: var(--text-secondary);
}
.hero-text .title span {
    color: var(--primary);
    font-weight: 900;
}

.description {
    max-width: 600px;
    font-size: 1.25rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    top: 6px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* ----- Tech Stack Banner ----- */
.tech-stack {
    padding: 4rem 0;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.section-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.logo-cloud {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.logo-cloud:hover {
    opacity: 1;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    filter: grayscale(100%);
    transition: filter 0.3s, transform 0.3s;
}

.tech-item:hover {
    filter: grayscale(0%);
    transform: translateY(-2px);
}

.tech-item img {
    height: 32px;
    width: auto;
}

.tech-item span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    letter-spacing: -0.02em;
}

/* ----- Services Section ----- */
.section-header {
    text-align: left;
    max-width: 700px;
    margin-bottom: 5rem;
}

.section-header.text-center {
    margin: 0 auto 5rem;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 8px;
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.icon-web::after { content: '</>' ; font-family: monospace; font-weight: bold; font-size: 1.2rem; }
.icon-mobile::after { content: '📱'; font-size: 1.2rem; }
.icon-erp::after { content: '⚙️'; font-size: 1.2rem; }

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ----- Methodology Section ----- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
}

.step {
    position: relative;
    padding-top: 2rem;
    border-top: 3px solid var(--border-color);
    transition: border-color 0.3s;
}

.step:hover {
    border-top-color: var(--primary);
}

.step-num {
    position: absolute;
    top: -16px;
    left: 0;
    background: var(--surface-color);
    padding-right: 15px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary);
}

.step h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* ----- Intelligence Section ----- */
.intelligence {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.feature-list li span {
    color: #fff;
    background: var(--primary);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.clean-image-wrapper {
    position: relative;
    border-radius: 8px;
    padding: 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.floating-img {
    width: 100%;
    border-radius: 4px;
    position: relative;
    z-index: 2;
}

/* Metrics section removed based on updated intelligence focus. */

/* ----- CTA Section ----- */
.clean-panel {
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    padding: 5rem 3rem;
    text-align: center;
}

.clean-panel h2 {
    color: #fff;
}

.clean-panel p {
    color: #A1A1AA;
}

.contact-form {
    max-width: 550px;
    margin: 3rem auto 0;
}

.form-group {
    display: flex;
    gap: 1rem;
}

.form-group input {
    flex: 1;
    background: #fff;
    border: 1px solid transparent;
    padding: 0 1.5rem;
    color: var(--primary);
    font-size: 1rem;
    outline: none;
    font-family: var(--font-body);
    border-radius: 4px;
}

.form-group input::placeholder {
    color: #9CA3AF;
}

.form-group button.btn-primary {
    background: #fff;
    color: var(--primary);
    white-space: nowrap;
}

.form-group button.btn-primary:hover {
    background: #F3F4F6;
    color: var(--primary);
}

/* ----- Footer ----- */
footer {
    background: var(--bg-color);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.link-group h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.link-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ----- Animations & Reveal ----- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ----- Responsive ----- */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    
    .image-side {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    .form-group {
        flex-direction: column;
    }

    .form-group input {
        width: 100%;
        padding: 1rem 1.5rem;
        margin-bottom: 1rem;
    }

    .form-group button {
        width: 100%;
    }
    
    .section-padding {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .services-grid, .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .clean-panel {
        padding: 3rem 1.5rem;
    }

    .footer-content, .footer-links {
        gap: 2.5rem;
        flex-direction: column;
    }

    .logo-cloud {
        gap: 1.5rem;
        justify-content: flex-start;
    }

    .tech-item {
        width: calc(50% - 1.5rem);
        justify-content: flex-start;
    }

    .tech-item span {
        font-size: 1rem;
    }
}
