/* Cornersight - Elevated Stately Design */

:root {
    /* Ultra-Refined Monochrome System */
    --bg-primary: #000000;
    --bg-secondary: #050505;
    --bg-tertiary: #0a0a0a;
    --bg-elevated: #0f0f0f;
    
    /* Sophisticated Accent System */
    --accent-primary: #d4d4d4;   /* Pure light gray */
    --accent-secondary: #a0a0a0; /* Mid gray */
    --accent-tertiary: #606060;  /* Dark gray */
    --accent-muted: #303030;     /* Deep gray */
    --accent-warm: #f5f5f0;      /* Warm white */
    
    /* Refined Text Hierarchy */
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.70);
    --text-tertiary: rgba(255, 255, 255, 0.50);
    --text-muted: rgba(255, 255, 255, 0.35);
    
    /* Precision Borders */
    --border-color: rgba(255, 255, 255, 0.04);
    --border-accent: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.02);
    
    /* Professional Gradients */
    --gradient-subtle: linear-gradient(180deg, rgba(255,255,255,0.015) 0%, transparent 100%);
    --gradient-radial: radial-gradient(ellipse at top, rgba(255,255,255,0.025) 0%, transparent 50%);
    
    /* Type Scale - Major Third (1.25) */
    --type-scale-6: 3.815rem;
    --type-scale-5: 3.052rem;
    --type-scale-4: 2.441rem;
    --type-scale-3: 1.953rem;
    --type-scale-2: 1.563rem;
    --type-scale-1: 1.25rem;
    --type-scale-0: 1rem;
    --type-scale--1: 0.8rem;
    --type-scale--2: 0.64rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.618;
    min-height: 100vh;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'ss01' on, 'ss02' on, 'cv01' on, 'cv11' on, 'calt' on;
    letter-spacing: -0.016em;
    position: relative;
    font-size: 16px;
}

/* Sophisticated texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--gradient-radial);
    pointer-events: none;
    z-index: 1;
}

/* Ultra-subtle noise */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: var(--noise-texture);
    opacity: 0.015;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* Custom Selection */
::selection {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-warm);
    text-shadow: none;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Header */
.header {
    padding: 3rem 4rem;
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 10;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-transform: uppercase;
    opacity: 1;
}

/* Main Content */
.main-content {
    padding: 0 60px;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    padding: 12rem 0 14rem;
    text-align: left;
    position: relative;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(var(--type-scale-4), 5vw, var(--type-scale-6));
    font-weight: 300;
    line-height: 1.0;
    margin-bottom: 2.5rem;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    font-feature-settings: 'ss01' on, 'ss03' on;
}

.hero-subtitle {
    font-size: var(--type-scale-0);
    font-weight: 400;
    color: var(--text-tertiary);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-bottom: 14rem;
    background: var(--border-subtle);
    padding: 1px;
}

.service-card {
    background: var(--bg-primary);
    padding: 4rem;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border: none;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-subtle);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    background: var(--bg-secondary);
}

/* Service Icons - Minimal Geometry */
.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 3rem;
    transition: opacity 0.6s ease;
    opacity: 0.4;
}

.service-icon svg {
    stroke-width: 0.75;
}

.service-icon,
.icon-sanctions,
.icon-diligence,
.icon-intelligence,
.icon-operations {
    color: var(--text-secondary);
}

.service-card:hover .service-icon {
    opacity: 0.6;
}

.service-card h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-size: var(--type-scale-1);
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-tertiary);
    font-size: var(--type-scale--1);
    font-weight: 400;
    line-height: 1.618;
    letter-spacing: 0;
}

/* Info Section */
.info-section {
    margin-bottom: 16rem;
    position: relative;
}

.info-section h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-size: var(--type-scale-3);
    font-weight: 300;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

.description {
    color: var(--text-secondary);
    font-size: var(--type-scale-0);
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 720px;
    letter-spacing: 0;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 8rem;
    position: relative;
}

/* Stats grid lines */
.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 33.333%;
    width: 1px;
    height: 100%;
    background: var(--border-subtle);
}

.stats::after {
    content: '';
    position: absolute;
    top: 0;
    left: 66.666%;
    width: 1px;
    height: 100%;
    background: var(--border-subtle);
}

.stat {
    background: transparent;
    padding: 5rem 3rem;
    text-align: center;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border: none;
}

/* Stat hover indicator */
.stat::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.8s ease;
    pointer-events: none;
}

.stat:hover::before {
    opacity: 1;
    width: 200px;
    height: 200px;
}

.stat:hover .stat-value {
    transform: translateY(-2px);
}

.stat:hover .stat-label {
    opacity: 0.8;
}

.stat-value {
    display: block;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-size: var(--type-scale-4);
    font-weight: 200;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: var(--type-scale--1);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: opacity 0.6s ease;
    opacity: 0.6;
}

/* Contact Section */
.contact-section {
    margin-top: 16rem;
    padding-top: 8rem;
    border-top: 1px solid var(--border-subtle);
    margin-bottom: 8rem;
    position: relative;
}

.contact-section h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-size: var(--type-scale-3);
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.contact-intro {
    color: var(--text-secondary);
    font-size: var(--type-scale-0);
    font-weight: 400;
    margin-bottom: 5rem;
    letter-spacing: 0;
}

/* Contact CTA */
.contact-cta {
    max-width: 600px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    padding: 5rem 4rem;
    transition: all 0.6s ease;
    position: relative;
    overflow: hidden;
}

.contact-cta:hover {
    border-color: var(--border-accent);
}

.cta-text {
    color: var(--text-tertiary);
    font-size: var(--type-scale--1);
    font-weight: 400;
    margin-bottom: 3rem;
    letter-spacing: 0;
}

.email-cta {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-secondary);
    padding: 1.25rem 2.5rem;
    font-size: var(--type-scale--1);
    text-decoration: none;
    transition: all 0.4s ease;
    font-weight: 400;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.email-cta:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.cta-arrow {
    font-size: 1rem;
    transition: transform 0.4s ease;
    opacity: 0.6;
}

.email-cta:hover .cta-arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* Footer */
.footer {
    margin-top: 16rem;
    padding: 6rem 0 4rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    position: relative;
}

.footer p {
    font-size: var(--type-scale--2);
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Professional Animations */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-1 {
    animation: revealUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

.fade-in-2 {
    animation: revealFade 1.2s ease forwards 0.2s;
    opacity: 0;
}

.fade-in-3 {
    animation: revealUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards 0.4s;
    opacity: 0;
}

.fade-in-4 {
    animation: revealUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards 0.5s;
    opacity: 0;
}

.fade-in-5 {
    animation: revealFade 0.8s ease forwards 0.6s;
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        padding: 0 40px;
    }

    .header {
        padding: 32px 40px;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 0 24px;
    }

    .header {
        padding: 24px;
    }

    .hero-section {
        padding: 80px 0 100px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 100px;
    }

    .service-card {
        padding: 36px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-cta {
        padding: 40px 32px;
    }

    .info-section h2,
    .contact-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .service-card {
        padding: 28px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .contact-cta {
        padding: 32px 24px;
    }
}
