/* ========================================
   LUMINARY ANALYTICS - CORPORATE SITE
   ======================================== */

/* CSS Variables */
:root {
    --color-bg: #0a0f1a;
    --color-bg-elevated: #0f1629;
    --color-bg-card: #141b2d;
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-text-subtle: #64748b;
    
    /* Brand Colors - Teal to Purple Gradient */
    --color-teal: #2dd4bf;
    --color-purple: #8b5cf6;
    --color-accent: #2dd4bf;
    --color-accent-secondary: #8b5cf6;
    --color-accent-dim: #14b8a6;
    --color-accent-glow: rgba(45, 212, 191, 0.15);
    --color-purple-glow: rgba(139, 92, 246, 0.15);
    
    --gradient-brand: linear-gradient(135deg, var(--color-teal), var(--color-purple));
    --gradient-brand-reverse: linear-gradient(135deg, var(--color-purple), var(--color-teal));
    
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-strong: rgba(255, 255, 255, 0.15);
    
    --font-heading: 'Syne', sans-serif;
    --font-serif: 'Instrument Serif', serif;
    --font-body: 'Syne', sans-serif;
    
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    background: linear-gradient(to bottom, var(--color-bg), transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-img {
    height: 140px;
    width: auto;
}

.footer-brand .logo-img {
    height: 160px;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

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

.nav-cta {
    padding: 0.625rem 1.25rem !important;
    background: var(--gradient-brand);
    color: var(--color-bg) !important;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--color-accent-glow), 0 8px 24px var(--color-purple-glow);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black, transparent);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: var(--color-teal);
    top: -200px;
    right: -100px;
    opacity: 0.12;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: var(--color-purple);
    bottom: -150px;
    left: -100px;
    opacity: 0.12;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-strong);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s var(--ease-out) backwards;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--color-teal);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-teal);
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s var(--ease-out) 0.1s backwards;
}

.hero-title .highlight {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s backwards;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s var(--ease-out) 0.3s backwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-brand);
    color: var(--color-bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--color-accent-glow), 0 12px 32px var(--color-purple-glow);
}

.btn-primary svg {
    transition: transform 0.3s var(--ease-out);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-border-strong);
    color: var(--color-text);
}

.btn-secondary:hover {
    background: var(--color-bg-card);
    border-color: var(--color-text-muted);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s backwards;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-subtle);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   TICKER
   ======================================== */
.ticker {
    padding: 1.5rem 0;
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.ticker-content {
    display: flex;
    gap: 3rem;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: 8rem 0;
    background: var(--color-bg);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--color-text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    position: relative;
    padding: 2.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: all 0.4s var(--ease-out);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-strong);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.service-card.featured {
    border-color: var(--color-teal);
    background: linear-gradient(135deg, var(--color-bg-card), rgba(45, 212, 191, 0.05), rgba(139, 92, 246, 0.03));
}

.service-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    padding: 0.375rem 0.875rem;
    background: var(--gradient-brand);
    color: var(--color-bg);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent-glow), var(--color-purple-glow));
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: var(--color-teal);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.service-card > p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-subtle);
}

.service-features li::before {
    content: '→';
    color: var(--color-teal);
    font-weight: 600;
}

/* ========================================
   APPROACH SECTION
   ======================================== */
.approach {
    padding: 8rem 0;
    background: var(--color-bg-elevated);
}

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

.approach-content {
    max-width: 540px;
}

.approach-text {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.approach-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.approach-point {
    display: flex;
    gap: 1.25rem;
}

.point-number {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-top: 0.25rem;
}

.approach-point h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.approach-point p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Approach Visual */
.approach-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 100%;
    max-width: 480px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
}

.visual-header {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
}

.visual-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border-strong);
}

.visual-dot:first-child { background: #ef4444; }
.visual-dot:nth-child(2) { background: #eab308; }
.visual-dot:nth-child(3) { background: #22c55e; }

.visual-content {
    padding: 2rem;
}

.data-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.flow-node {
    padding: 0.625rem 1rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.flow-node.active {
    background: var(--gradient-brand);
    color: var(--color-bg);
    border-color: var(--color-teal);
}

.flow-arrow {
    color: var(--color-text-subtle);
    font-size: 1.25rem;
}

.metrics-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.metric-bar {
    height: 8px;
    background: var(--color-bg-card);
    border-radius: 100px;
    position: relative;
    overflow: hidden;
}

.metric-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--width);
    background: var(--gradient-brand);
    border-radius: 100px;
    animation: growBar 1.5s var(--ease-out) backwards;
    animation-delay: calc(var(--width) * 0.01 * 0.02s);
}

@keyframes growBar {
    from { width: 0; }
}

/* ========================================
   RESULTS SECTION
   ======================================== */
.results {
    padding: 8rem 0;
    background: var(--color-bg);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.result-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: all 0.3s var(--ease-out);
}

.result-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-teal);
}

.result-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ========================================
   TESTIMONIAL
   ======================================== */
.testimonial {
    padding: 6rem 0;
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.testimonial-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-style: italic;
    line-height: 1.5;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2.5rem;
    color: var(--color-text);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    color: var(--color-bg);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 50%;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.author-company {
    color: var(--color-text-subtle);
    font-size: 0.85rem;
}

/* ========================================
   BOOKING SECTION
   ======================================== */
.booking {
    padding: 8rem 0;
    background: var(--color-bg);
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.booking-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.booking-title .highlight {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.booking-text {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.booking-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--color-text-muted);
}

.booking-benefits svg {
    color: var(--color-teal);
    flex-shrink: 0;
}

.booking-calendly {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    min-height: 700px;
}

/* Calendly Widget Override */
.calendly-inline-widget {
    border-radius: 16px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 4rem 0 2rem;
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact a,
.footer-contact p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-contact a:hover {
    color: var(--color-teal);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-bottom p {
    color: var(--color-text-subtle);
    font-size: 0.85rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: var(--color-teal);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .approach-visual {
        order: -1;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .booking-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.service-card,
.result-card,
.approach-point {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s var(--ease-out) forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.2s; }
.result-card:nth-child(3) { animation-delay: 0.3s; }
.result-card:nth-child(4) { animation-delay: 0.4s; }

.approach-point:nth-child(1) { animation-delay: 0.2s; }
.approach-point:nth-child(2) { animation-delay: 0.35s; }

