/* =========================================
   VARIABLES & GLOBAL STYLES
   ========================================= */
:root {
    /* Lighter, Friendlier Theme */
    --bg-main: #FAFBFC;      /* Soft, clean off-white */
    --bg-card: #FFFFFF;      /* Pure white for cards */
    --bg-card-hover: #F1F5F9;
    
    --text-main: #1E293B;    /* Deep slate for crisp readability */
    --text-muted: #64748B;   /* Softer slate for secondary text */
    
    /* Energetic, friendly brand colors */
    --accent-primary: #2563EB;   /* Trustworthy, vibrant blue */
    --accent-secondary: #0D9488; /* Fresh, modern teal */
    --accent-light: #EFF6FF;     /* Very pale blue for soft backgrounds */
    
    --border-color: #E2E8F0;
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.05), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
}

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

html {
    scroll-behavior: smooth;
}

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

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 650px;
}

.accent {
    color: var(--accent-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   COMPONENTS & UTILITIES
   ========================================= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    border-radius: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-family: var(--font-body);
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--accent-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border-color: var(--text-main);
}

.btn-outline:hover {
    background: var(--text-main);
    color: #FFFFFF;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: var(--accent-light);
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

/* =========================================
   LAYOUT / SECTIONS
   ========================================= */
/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(250, 251, 252, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero p {
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Services */
.services {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-grid {
    display: grid;
    /* Adjusted for 6 items in a symmetrical 3x2 grid on desktop */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

/* Simple, clean SVG icon wrapper */
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.service-card p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* In Action Section */
.action-section {
    padding: 2rem 2rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pipeline-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pipeline {
    padding: 2rem;
    background: #FFFFFF;
    border-radius: 20px;
    overflow-x: auto;
}

.pipeline h4 {
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nodes-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 600px; /* Ensure it scrolls nicely on mobile rather than crushing */
}

.node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.node-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.node:hover .node-icon {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.node span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    max-width: 100px;
    line-height: 1.3;
}

.ai-node .node-icon {
    background: var(--accent-primary);
    color: #FFF;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.end-node .node-icon {
    background: var(--accent-secondary);
    color: #FFF;
    border-color: var(--accent-secondary);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.connector {
    flex-grow: 1;
    height: 2px;
    background: var(--border-color);
    margin: 0 1rem;
    margin-bottom: 2rem; /* offset the text */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.connector svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    background: #FFF; /* block out the line behind it */
    padding: 0 4px;
}

/* CTA Section */
.cta-section {
    padding: 4rem 2rem 8rem;
    max-width: 900px;
    margin: 0 auto;
}

.cta-container {
    padding: 4rem 2rem;
    border-radius: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--accent-light);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.cta-container h2 {
    color: var(--text-main);
}

.cta-container p {
    margin: 1.25rem 0 2.5rem;
    color: var(--text-muted);
}

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

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.footer-bottom p {
    font-size: 0.85rem;
}

/* =========================================
   ANIMATIONS & RESPONSIVE
   ========================================= */
/* Utility Classes for JS Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.5, 0, 0, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding-top: 8rem;
    }
    
    .cta-container {
        padding: 3rem 1.5rem;
    }
}
