/* ========================================
   Neo Cognizant Labs
   Clean. Modern. Human.
======================================== */

:root {
    --white: #ffffff;
    --black: #0a0a0a;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f4;
    --gray-200: #e8eaed;
    --gray-300: #dadce0;
    --gray-400: #9aa0a6;
    --gray-500: #5f6368;
    --gray-600: #3c4043;
    --gray-800: #202124;
    --gray-900: #1a1a1a;
    
    /* Softer, warmer gradient */
    --blue: #1453a3;
    --violet: #ce82ff;
    --rose: #f472b6;
    --teal: #58cc02;
    
    /* Accent color tokens (used for logo blocks and highlights)
       - blue: trust / stability (primary brand)
       - green: growth / innovation (positive actions)
       - red: energy / attention (alerts / highlights)
    */
    --accent-blue-start: #2a6dffff;
    --accent-blue-end: var(--blue);
    --accent-green-start: #58cc02;
    --accent-green-end: #356d00ff;
    --accent-red-start: #ff4b4b;
    --accent-red-end: #ca2525ff;
    
    --gradient-main: linear-gradient(135deg, var(--blue) 0%, var(--violet) 60%, var(--rose) 100%);
    --gradient-soft: linear-gradient(135deg, rgba(66, 133, 244, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
    --gradient-section: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    --gradient-dark: linear-gradient(180deg, var(--gray-100) 0%, var(--gray-200) 50%, var(--gray-100) 100%);
    
    --font: 'Varela Round', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
}

/* Noise overlay - very subtle */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

::selection {
    background: rgba(168, 85, 247, 0.15);
}

/* ========================================
   Header
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    /* Smooth, multi-property transitions so hide/reveal reads as part of the canvas */
    transition: transform 0.45s var(--ease), opacity 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
    border: none;
    box-shadow: none;
    background: transparent;
    will-change: transform, opacity, background, box-shadow, backdrop-filter;
} 

.header.scrolled {
    /* Keep header fully transparent so the page reads as a continuous canvas.
       Only the mark and wordmark remain visible. */
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.header.hidden {
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    /* Remove all visible chrome so the page feels continuous */
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    text-decoration:solid;
    color: var(--gray-800);
}

.logo-icon {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

/* Individual colored blocks for logo letters */
.logo-block {
    position: relative;
    overflow: hidden;
    width: 4px;
    height: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: rgba(255, 255, 255, 1);
    font-weight: 700;
    /* font-size: 16px; */
    /* stronger drop + subtle inset for depth */
    box-shadow: 1px 2px 0px rgba(0,0,0,0.16), inset 0 -4px 10px rgba(0,0,0,0.06);
    /* border: 1px solid rgba(255,255,255,0.04); */
    transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

/* soft glossy overlay and subtle highlight */
.logo-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.22), rgba(255,255,255,0));
    mix-blend-mode: overlay;
    opacity: 0.2;
    pointer-events: none;
    border-radius: inherit;
    transition: opacity 0.25s var(--ease);
} 

/* Richer gradients that blend into the site palette (blue → violet, green → teal, red → rose) */
.logo-block-n { background: linear-gradient(135deg, var(--accent-blue-start) 0%, var(--blue) 100%, rgba(206,130,255,0.12) 100%); }
.logo-block-c { background: linear-gradient(135deg, var(--accent-green-start) 0%, var(--teal) 75%, rgba(88,204,2,0.08) 100%); }
.logo-block-l { background: linear-gradient(135deg, var(--accent-red-start) 0%, var(--rose) 75%, rgba(255,75,75,0.08) 100%); }

.logo:hover .logo-block { transform: translateY(-4px) scale(1.04); box-shadow: 0 18px 44px rgba(0,0,0,0.18);} 

/* Stacked layout: C on top, N and L below */
.logo-stack { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.logo-stack-top .logo-block { width: 44px; height: 44px; border-radius: 10px; font-size: 15px; }
.logo-stack-bottom { display: inline-flex; gap: 4px; }
.logo-stack-bottom .logo-block { width: 32px; height: 32px; border-radius: 8px; font-size: 12px; }

/* Slightly larger stacked mark in the footer for balance */
.footer-logo.logo-stack .logo-stack-top .logo-block { width: 50px; height: 50px; font-size: 16px; }
.footer-logo.logo-stack .logo-stack-bottom .logo-block { width: 36px; height: 36px; font-size: 13px; }

.logo-text {
    font-weight: 700;
    font-size: 24px;
    /* letter-spacing: em; */
}

/* ========================================
   Hero
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 28px 100px;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero-headline {
    font-size: clamp(38px, 7vw, 68px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: 28px;
    color: var(--gray-900);
}

.gradient-text {
    display: block;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(17px, 2.2vw, 21px);
    color: var(--gray-500);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Applings tooltip */
.applings {
    position: relative;
    font-weight: 600;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: help;
    border-bottom: 2px dotted rgba(168, 85, 247, 0.4);
    transition: border-color 0.3s var(--ease);
}

.applings:hover {
    border-bottom-color: rgba(168, 85, 247, 0.8);
}

.applings::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background:white;
    color: var(--white);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    text-shadow: 0 1px 0 rgba(0,0,0,0.6);
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.applings:hover::after,
.applings:focus::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.applings:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(168,85,247,0.12);
    border-bottom-color: rgba(168, 85, 247, 0.9);
}

/* Floating orbs - softer */
.hero-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 25s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    top: -25%;
    right: -15%;
    opacity: 0.12;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--violet), var(--rose));
    bottom: -15%;
    left: -10%;
    opacity: 0.1;
    animation-delay: -8s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--violet);
    top: 35%;
    right: 15%;
    opacity: 0.08;
    animation-delay: -16s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(25px, -25px) scale(1.03); }
    50% { transform: translate(-15px, 15px) scale(0.97); }
    75% { transform: translate(15px, 8px) scale(1.01); }
}

/* ========================================
   Flow Section
======================================== */
.flow {
    padding: 100px 28px 120px;
    background: var(--gray-50);
}

.flow-content {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.flow-text {
    font-size: clamp(23px, 3.8vw, 34px);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.015em;
    color: var(--gray-700);
}

.flow-text .highlight {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ========================================
   Focus Section
======================================== */
.focus {
    padding: 100px 28px 120px;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-50) 100%);
}

.focus-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section-heading {
    font-size: clamp(26px, 3.8vw, 38px);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 56px;
    color: var(--gray-900);
}

.focus-areas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.focus-item {
    padding: 44px 36px;
    background: var(--white);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.5s var(--ease);
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.focus-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
    border-color: var(--gray-100);
}

.focus-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
    background: var(--gradient-soft);
    border-radius: var(--radius-md);
    transition: all 0.5s var(--ease-bounce);
}

.focus-item:hover .focus-icon {
    transform: scale(1.08) rotate(-3deg);
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.12) 0%, rgba(168, 85, 247, 0.12) 100%);
}

.focus-icon svg {
    width: 28px;
    height: 28px;
    color: var(--violet);
    stroke-width: 1.6;
    stroke: currentColor;
}

.focus-item h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    color: var(--gray-900);
}

.focus-item p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.55;
}

@media (max-width: 768px) {
    .focus-areas {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .focus-item {
        padding: 36px 28px;
    }
}

/* ========================================
   Products Section
======================================== */
.products {
    padding: 120px 28px 140px;
    text-align: center;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.products-inner {
    max-width: 580px;
    margin: 0 auto;
}

.products-badge {
    display: inline-block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--violet);
    background: var(--gradient-soft);
    border-radius: var(--radius-xl);
    margin-bottom: 28px;
}

.products-heading {
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    color: var(--gray-900);
}

.products-sub {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.65;
    margin-bottom: 44px;
}

.products-visual {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.product-dot {
    width: 10px;
    height: 10px;
    background: var(--gradient-main);
    border-radius: 50%;
    animation: pulse 2.5s ease-in-out infinite;
}

.product-dot:nth-child(2) {
    animation-delay: 0.4s;
}

.product-dot:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* ========================================
   Philosophy Section - Softer transition
======================================== */
.philosophy {
    padding: 100px 28px 120px;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 30%, var(--gray-200) 50%, var(--gray-100) 70%, var(--white) 100%);
}

.philosophy-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-block {
    margin-bottom: 36px;
}

.philosophy-block:last-child {
    margin-bottom: 0;
}

.philosophy-text {
    font-size: clamp(20px, 3.2vw, 30px);
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: var(--gray-600);
}

.philosophy-text.accent {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ========================================
   Footer
======================================== */
.footer {
    padding: 80px 28px 60px;
    background: var(--white);
}

.footer-inner {
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 36px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    padding: 0;
}

/* slightly larger blocks in footer */
.footer-logo .logo-block { width: 40px; height: 40px; font-size: 14px; border-radius: 10px; }

.footer-name {
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.01em;
    color: var(--gray-800);
}

.footer-contact {
    margin-bottom: 44px;
}

.contact-link {
    display: inline-block;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-800);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all 0.4s var(--ease);
    border: 1px solid var(--gray-200);
}

.contact-link:hover {
    background: var(--gradient-soft);
    border-color: rgba(168, 85, 247, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(168, 85, 247, 0.12);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-founder,
.footer-copy {
    font-size: 14px;
    color: var(--gray-400);
}

/* ========================================
   Scroll Animations
======================================== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: all 0.9s var(--ease-out);
}

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

/* ========================================
   Reduced Motion
======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
