/* ==============================
   DESIGN TOKENS & VARIABLES
   ============================== */
:root {
    /* Brand Colors based on "SL" blue & green */
    --color-bg: #FFFFFF; /* Pure White */
    --color-bg-alt: #F8FAFC; /* Light Slate / Off-white */
    --color-primary: #1F6EB8; /* SL Blue */
    --color-secondary: #00B176; /* SL Green */
    
    --color-text-main: #0F172A; /* Deep Slate */
    --color-text-muted: #475569; /* Medium Slate */
    --color-white: #FFFFFF;
    
    /* Gradients (Slightly adjusted for light mode contrast) */
    --grad-main: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --grad-blue: linear-gradient(135deg, #3B82F6, var(--color-primary));
    --grad-green: linear-gradient(135deg, #10B981, var(--color-secondary));
    --grad-text: linear-gradient(to right, #2563EB, #059669);
    
    /* Glassmorphism (Light Theme) */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1), 0 4px 10px -5px rgba(0, 0, 0, 0.05);
    
    /* Spacing & Layout */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --container-width: 1200px;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==============================
   RESET & BASE STYLES
   ============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg);
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-alt);
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #0F172A;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-sm);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

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

a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: var(--transition-base);
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 1;
}

.center {
    text-align: center;
}

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

.section-badge {
    display: inline-block;
    padding: 0.35rem 1.25rem;
    border-radius: 50px;
    background: rgba(31, 110, 184, 0.08);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--space-sm);
    border: 1px solid rgba(31, 110, 184, 0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    font-size: 1rem;
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--grad-main);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(31, 110, 184, 0.2), 0 2px 4px -1px rgba(31, 110, 184, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(31, 110, 184, 0.3);
}

.btn-secondary, .outline-btn {
    background: white;
    border: 1px solid #E2E8F0;
    color: var(--color-text-main);
}

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

.btn-block {
    width: 100%;
}

.glow-btn {
    position: relative;
}
.glow-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--grad-main);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
    border-radius: inherit;
}
.glow-btn:hover::after {
    opacity: 0.4;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* ==============================
   NAVIGATION
   ============================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 0;
    transition: var(--transition-base);
    background: transparent;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.85rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-main);
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    /* This helps remove the white background from the logo JPEG when on white/light backgrounds */
    mix-blend-mode: multiply;
}
.logo-img.small {
    height: 32px;
}

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

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

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-main);
    transition: var(--transition-base);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav a {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-main);
}

/* ==============================
   HERO SECTION
   ============================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    background: radial-gradient(circle at 100% 0%, rgba(31, 110, 184, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 0% 100%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-subtitle {
    margin: 1.5rem 0 3rem;
    font-size: 1.35rem;
    line-height: 1.5;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

/* Background Elements */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
}
.orb-green {
    width: 600px;
    height: 600px;
    background: var(--color-secondary);
    top: -200px;
    right: -100px;
}
.orb-blue {
    width: 700px;
    height: 700px;
    background: var(--color-primary);
    bottom: -300px;
    left: -200px;
}

/* Hero Graphics */
.hero-graphic {
    position: relative;
    height: 450px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 1.75rem;
    backdrop-filter: blur(12px);
    position: absolute;
}

.main-card {
    width: 340px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.dot-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-btn.red { background: #F87171; }
.dot-btn.yellow { background: #FBBF24; }
.dot-btn.green { background: #34D399; }

.stat-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.stat-icon {
    font-size: 2.25rem;
    background: #F1F5F9;
    padding: 0.6rem;
    border-radius: 12px;
}

.stat-title {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.stat-val {
    display: block;
    font-weight: 800;
    font-size: 1.5rem;
    color: #10B981;
}

.chart-line {
    height: 70px;
    width: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg preserveAspectRatio="none" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0,100 L20,60 L40,80 L60,30 L80,50 L100,10" stroke="%2310B981" stroke-width="3" fill="none"/></svg>');
    background-size: 100% 100%;
}

.sub-card-1 {
    top: 5%;
    right: -10%;
    z-index: 3;
    padding: 1.25rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

.user-match {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--grad-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
}

.name { font-weight: 700; font-size: 1rem; color: #0F172A; }
.role { font-size: 0.8rem; color: var(--color-text-muted); }

.sub-card-2 {
    bottom: 5%;
    left: -5%;
    z-index: 1;
    padding: 1rem 1.5rem;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
}

.icon-pulse {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-primary);
}

/* Animations (Modified for light mode float values) */
@keyframes float {
    0% { transform: translateY(0px) translate(-50%, -50%); }
    50% { transform: translateY(-15px) translate(-50%, -50%); }
    100% { transform: translateY(0px) translate(-50%, -50%); }
}

@keyframes floatNormal {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.main-card {
    animation: float 7s ease-in-out infinite;
}
.sub-card-1 {
    animation: floatNormal 6s ease-in-out infinite 1s;
}
.sub-card-2 {
    animation: floatNormal 8s ease-in-out infinite 0.5s;
}

/* ==============================
   ABOUT SECTION
   ============================== */
.about {
    background-color: var(--color-bg-alt);
}

.section-description {
    max-width: 700px;
    margin: 0 auto 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.about-card {
    padding: 3rem;
    background: white;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.1);
}

.card-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: 1px solid #F1F5F9;
}

.card-icon-large {
    font-size: 2rem;
}

/* ==============================
   PROCESS SECTION
   ============================== */
.process {
    background: white;
}

.process-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 4rem 0;
    gap: 1.5rem;
}

.process-step {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-card {
    padding: 2.5rem 2rem;
    background: white;
    text-align: center;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    border: 1px solid #E2E8F0;
}

.step-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

.step-blob {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(31, 110, 184, 0.05);
    filter: blur(25px);
    top: -30px;
    right: -30px;
    border-radius: 50%;
    z-index: 0;
}

.active-blob {
    background: rgba(16, 185, 129, 0.05);
}

.step-icon-box {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.step-card h4 {
    color: #0F172A;
    margin-bottom: 0.75rem;
}

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

.step-connector {
    color: #CBD5E1;
    font-size: 1.5rem;
    padding: 0 1rem;
    margin-top: 3rem;
}

/* Advantage Section */
.advantage-container {
    padding: 3.5rem;
    margin-top: 5rem;
    background: var(--color-bg-alt);
    border-radius: 24px;
    text-align: center;
}

.advantage-title {
    color: var(--color-text-muted);
    letter-spacing: 2.5px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 3rem;
}

.advantage-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.adv-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.adv-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.bg-blue-grad { background: var(--grad-blue); }
.bg-green-grad { background: var(--grad-green); }

.adv-item span {
    font-weight: 600;
    font-size: 1.15rem;
    color: #1E293B;
}

/* ==============================
   SOLUTIONS SECTION
   ============================== */
.solutions {
    background-color: var(--color-bg-alt);
}

.solutions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.solutions-text {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.solution-features {
    list-style: none;
    margin-top: 2.5rem;
}

.solution-features li {
    padding: 1.25rem;
    background: white;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-weight: 600;
    color: #1E293B;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: var(--transition-fast);
}

.solution-features li:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.check-icon {
    color: var(--color-secondary);
    font-weight: 800;
}

/* Orbit Graphic (Light Mode adjustments) */
.solutions-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-graphic {
    width: 320px;
    height: 320px;
    border: 1px dashed #CBD5E1;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    position: relative;
    animation: rotate 30s linear infinite;
}

.inner-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    background: var(--grad-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    font-style: italic;
    color: white;
    box-shadow: 0 20px 40px -10px rgba(31, 110, 184, 0.4);
    animation: rotate-reverse 30s linear infinite;
}

.orbit-node {
    position: absolute;
    width: 55px;
    height: 55px;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
    animation: rotate-reverse 30s linear infinite;
}

.node-1 { top: -27px; left: 50%; margin-left: -27px; }
.node-2 { bottom: 27px; right: -12px; }
.node-3 { bottom: 27px; left: -12px; }

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* Specific rotation logic for nodes to keep them upright */
.orbit-node.node-1, .orbit-node.node-2, .orbit-node.node-3 {
    animation: orbit-counter 30s linear infinite;
}

@keyframes orbit-counter {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* ==============================
   CONTACT SECTION
   ============================== */
.contact {
    background: white;
}

.contact-orb {
    opacity: 0.08;
    filter: blur(150px);
}

.contact-box {
    grid-template-columns: 1fr 1.2fr;
    padding: 4rem;
    background: white;
    border: 1px solid #F1F5F9;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.contact-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    color: #64748B;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.form-group input {
    width: 100%;
    padding: 1.125rem 1.25rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    color: #0F172A;
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-base);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-group input:focus {
    outline: none;
    background: white;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(31, 110, 184, 0.1), inset 0 2px 4px rgba(0,0,0,0.02);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: #94A3B8;
}

.form-group input:hover {
    border-color: #CBD5E1;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
    background: #FFFFFF;
    padding: 5rem 0 3rem;
    border-top: 1px solid #E2E8F0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand .logo {
    justify-content: flex-start;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 400px;
}

.footer-nav-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0F172A;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

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

.footer-nav a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

.footer-bottom {
    grid-column: 1 / -1;
    padding-top: 3rem;
    margin-top: 2rem;
    border-top: 1px solid #F1F5F9;
    text-align: left;
}

.copyright {
    font-size: 0.875rem;
    color: #94A3B8;
}

/* ==============================
   ANIMATIONS / REVEAL
   ============================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ==============================
   MEDIA QUERIES
   ============================== */
@media (max-width: 992px) {
    .hero-container, .about-grid, .solutions-grid, .contact-box {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .process-flow {
        flex-direction: column;
        align-items: center;
    }
    
    .step-connector {
        transform: rotate(90deg);
        margin: 1.5rem 0;
    }
    
    .advantage-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .contact-box {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .section {
        padding: 5rem 0;
    }
}
