@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-white: #FFFFFF;
    --text-main: #111827;
    --text-muted: #4B5563;
    --accent-teal: #06B6D4;
    --accent-blue: #3B82F6;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: rgba(0, 0, 0, 0.05);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
    --gradient-soft: radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.05) 0%, rgba(59, 130, 246, 0.05) 90.2%);

    /* Sizing */
    --header-height: 80px;
    --container-max-width: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    background-image: var(--gradient-soft);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo-text {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Glassmorphism Utilities --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
}

/* --- Buttons --- */
.btn {
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s ease;
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* --- Logo Animation CSS --- */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-svg {
    width: 48px;
    height: 48px;
}

.logo-pill {
    fill: #fff;
    stroke: var(--glass-border);
    stroke-width: 0.5;
    opacity: 0;
    transform: translateX(0);
}

.logo-core {
    fill: var(--accent-blue);
    opacity: 0;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(4px);
}

/* Animation Keyframes */
@keyframes entranceFade {
    to {
        opacity: 1;
    }
}

@keyframes pillSeparateLeft {
    from {
        transform: translateX(12px);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes pillSeparateRight {
    from {
        transform: translateX(-12px);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes flowPass {
    0% {
        fill: var(--accent-blue);
        filter: brightness(1);
    }

    50% {
        fill: var(--accent-teal);
        filter: brightness(1.2);
    }

    100% {
        fill: var(--accent-blue);
        filter: brightness(1);
    }
}

.animate-entrance {
    animation: entranceFade 0.8s ease forwards;
}

.animate-pill-1 {
    animation: entranceFade 0.8s ease forwards, pillSeparateLeft 0.6s cubic-bezier(0.2, 0, 0.3, 1) 0.2s forwards;
}

.animate-pill-3 {
    animation: entranceFade 0.8s ease forwards, pillSeparateRight 0.6s cubic-bezier(0.2, 0, 0.3, 1) 0.2s forwards;
}

.animate-pill-2 {
    animation: entranceFade 0.8s ease forwards;
}

.animate-flow {
    animation: entranceFade 0.4s ease forwards, flowPass 1.5s ease-in-out 0.8s;
}

.animate-text {
    animation: entranceFade 0.5s ease forwards, textReveal 0.5s ease forwards 1.1s;
}

@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 0.05em;
    }
}

/* --- Hero Section --- */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Floating Visual Placeholder */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-hub {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    position: relative;
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.visual-node {
    position: absolute;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* --- Solutions Grid --- */
.solutions {
    padding: 6rem 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.solution-card {
    padding: 2.5rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.solution-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 3rem;
    }
}