@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-main: #ffffff;
    --bg-secondary: #F4F7FB;
    --text-primary: #0A192F;
    --text-muted: #4B5563;
    --border-color: #E2E8F0;
    --accent: #0B3D91;
    /* Royal Blue accent */
    --hover-bg: #E0E7FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    /* Switched to Inter for that exact premium SaaS look */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

*[id] {
    scroll-margin-top: 170px;
    /* Clears the gigantic overflowing logo naturally */
}

/* Remove Background Ornaments entirely for true minimalism */
.bg-gradient,
.bg-circle {
    display: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    height: 75px; /* Fixed height to keep it as it is now */
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    position: sticky;
    top: 1rem;
    z-index: 100;
    max-width: 1200px;
    margin: 1rem auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.logo {
    display: flex;
    align-items: center;
    height: 0; /* Ensures logo doesn't stretch the navbar */
    overflow: visible;
}

.logo-image {
    max-height: 180px; /* 2x of 90px */
    object-fit: contain;
    transition: opacity 0.1s ease;
}

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

.nav-item {
    position: relative;
    padding: 0.125rem 0;
    /* Cut in half again */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 0.6rem 1rem;
    color: var(--text-muted) !important;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.dropdown-menu a:hover {
    background: var(--hover-bg);
    color: var(--text-primary) !important;
}

/* Button Overrides using Jet Black */
.btn-primary-dark {
    background-color: var(--text-primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary-dark:hover {
    background-color: #1a1a1a;
}

/* Cyan button is now converted to sleek primary black */
.btn-cyan {
    background: var(--text-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

.btn-cyan:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background: #111111;
}

/* Hero Section */
.hero-split {
    display: flex;
    align-items: center;
    padding: 8rem 6% 4rem;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text-col {
    flex: 1;
}

.hero-title {
    font-size: 5.5rem;
    /* Massive contrast */
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    /* Tight tracking */
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 550px;
    font-weight: 400;
}

.hero-image-col {
    flex: 1.1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-3d-graphic {
    width: 100%;
    max-width: 650px;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Perfect on pure white */
    animation: float-3d-graphic 6s ease-in-out infinite alternate;
}

@keyframes float-3d-graphic {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-15px) scale(1.02);
    }
}


/* Minimalist Cards */
.cards-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 6% 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hover-card {
    background: var(--bg-main);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.glow-edge {
    display: none;
    /* Removed heavy gradients */
}

.card-head-icon {
    font-size: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hover-card h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.hover-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hover-card a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}

.hover-card a::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.hover-card:hover a::after {
    transform: translateX(4px);
}


/* Interactive Tabs Section - Stripped Back */
.expertise-section {
    padding: 8rem 6%;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 3rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 4rem;
    font-weight: 400;
}

.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.03);
}

.tab-btn.active {
    color: var(--text-primary);
    background: var(--bg-main);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.tab-content-wrapper {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tab-panel.active {
    display: block;
}

.panel-inner {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.panel-icon {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.panel-text h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.panel-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.panel-text ul {
    list-style-type: none;
}

.panel-text ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.panel-text ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--text-muted);
    font-weight: bold;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .hero-split {
        flex-direction: column;
        text-align: center;
        padding-top: 4rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-desc {
        margin: 0 auto 2.5rem;
    }

    .panel-inner {
        flex-direction: column;
    }
}

/* --- SPLASH SCREEN LOGIC --- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-main);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.splash-logo-container {
    position: relative;
    width: 1250px;
    height: 450px;
    transform-origin: top left;
}

.splash-logo {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.splash-p {
    clip-path: polygon(0 0, 22% 0, 22% 100%, 0 100%);
    animation: slideInP 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.splash-a {
    clip-path: polygon(22% 0, 35% 0, 35% 100%, 22% 100%);
    animation: slideInA 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.splash-text {
    clip-path: polygon(35% 0, 100% 0, 100% 100%, 35% 100%);
    opacity: 0;
    transform: translateY(60px) translateX(-20%);
    animation: popDownText 1s cubic-bezier(0.25, 1, 0.5, 1) 2s forwards;
}

.splash-text.inline-text {
    transform: translateY(0) translateX(0);
    transition: transform 2s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes slideInP {
    0% {
        transform: translateX(-100vw);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes slideInA {
    0% {
        transform: translateX(100vw);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes popDownText {
    0% {
        opacity: 0;
        transform: translateY(60px) translateX(-20%);
    }

    100% {
        opacity: 1;
        transform: translateY(30px) translateX(-20%);
    }
}