/* ==================================
   CLAIRVOYIS WEBSITE STYLES
   Premium Consulting Firm Design
   ================================== */

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

:root {
    --primary-dark: #000000;
    --primary-navy: #001E3C;
    --accent-blue: #0066FF;
    --text-primary: #000000;
    --text-secondary: #4A4A4A;
    --text-tertiary: #787878;
    --background: #FFFFFF;
    --surface: #F8F9FA;
    --border: #E8E8E8;
    --grid-color: #ECECEC;
}

body {
    font-family: 'Newsreader', Georgia, serif;
    color: var(--text-primary);
    background: var(--background);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
.display {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 300;
    letter-spacing: -0.03em;
}

.mono {
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0;
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.grid-line {
    position: absolute;
    background: var(--grid-color);
}

.grid-line-v {
    width: 1px;
    height: 100%;
    top: 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

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

.logo {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--primary-dark);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 3.5rem;
    align-items: center;
    font-size: 0.875rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

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

.nav-cta {
    background: var(--primary-dark);
    color: var(--background) !important;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--primary-dark);
}

.nav-cta:hover {
    background: transparent !important;
    color: var(--primary-dark) !important;
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    padding: 0 4rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 8rem;
    align-items: center;
}

.hero-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 3rem;
    font-weight: 600;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.05;
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: -0.03em;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero h1 strong {
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 650px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.hero-metric {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-metric:nth-child(1) { animation-delay: 0.8s; }
.hero-metric:nth-child(2) { animation-delay: 0.9s; }
.hero-metric:nth-child(3) { animation-delay: 1s; }

.metric-value {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    line-height: 1.5;
    font-weight: 500;
}

.hero-visual {
    position: relative;
    height: 600px;
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

.data-viz {
    position: absolute;
    width: 100%;
    height: 100%;
}

.viz-bar {
    position: absolute;
    background: var(--accent-blue);
    opacity: 0;
    animation: growBar 1.2s ease forwards;
}

.viz-bar:nth-child(1) {
    bottom: 0;
    left: 5%;
    width: 12%;
    height: 45%;
    animation-delay: 1s;
}

.viz-bar:nth-child(2) {
    bottom: 0;
    left: 22%;
    width: 12%;
    height: 75%;
    animation-delay: 1.1s;
    background: var(--primary-navy);
}

.viz-bar:nth-child(3) {
    bottom: 0;
    left: 39%;
    width: 12%;
    height: 60%;
    animation-delay: 1.2s;
}

.viz-bar:nth-child(4) {
    bottom: 0;
    left: 56%;
    width: 12%;
    height: 90%;
    animation-delay: 1.3s;
    background: var(--primary-navy);
}

.viz-bar:nth-child(5) {
    bottom: 0;
    left: 73%;
    width: 12%;
    height: 55%;
    animation-delay: 1.4s;
}

.viz-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--accent-blue);
    opacity: 0;
    animation: drawLine 1s ease 1.5s forwards;
}

/* Statement Section */
.statement-section {
    background: var(--primary-dark);
    color: var(--background);
    padding: 12rem 4rem;
    position: relative;
    overflow: hidden;
}

.statement-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.statement-section h2 {
    font-size: 4rem;
    line-height: 1.2;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
}

.statement-section p {
    font-size: 1.5rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 900px;
    margin: 0 auto;
}

.statement-number {
    position: absolute;
    font-size: 20rem;
    font-weight: 300;
    opacity: 0.03;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Section Containers */
.section-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 10rem 4rem;
}

.section-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: end;
    margin-bottom: 6rem;
}

.section-number {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.section-cta {
    text-align: center;
    margin-top: 5rem;
}

/* Capabilities */
.capabilities-preview {
    background: var(--surface);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.capability-card {
    background: var(--background);
    padding: 4rem 3rem;
    position: relative;
    transition: all 0.3s ease;
}

.capability-card:hover {
    background: var(--primary-dark);
    color: var(--background);
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.capability-card:hover .capability-number,
.capability-card:hover .capability-title,
.capability-card:hover .capability-description,
.capability-card:hover .capability-link {
    color: var(--background);
}

.capability-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
    display: block;
    transition: color 0.3s ease;
}

.capability-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.capability-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.capability-link {
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease, color 0.3s ease;
}

.capability-link:hover {
    gap: 1rem;
}

/* Case Studies */
.featured-case {
    background: var(--background);
}

.case-study-feature {
    display: grid;
    grid-template-columns: 0.4fr 1.6fr;
    gap: 6rem;
    align-items: start;
    margin-top: 4rem;
}

.case-metadata {
    position: sticky;
    top: 120px;
}

.case-industry {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.case-metric-display {
    font-size: 6rem;
    font-weight: 300;
    line-height: 0.9;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.case-metric-label {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 500;
}

.case-content h3 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.case-challenge {
    background: var(--surface);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border-left: 3px solid var(--accent-blue);
}

.case-challenge-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.case-challenge p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

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

.case-outcomes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.outcome-item {
    display: flex;
    flex-direction: column;
}

.outcome-value {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.outcome-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Insights */
.insights-preview {
    background: var(--surface);
    padding: 10rem 4rem;
}

.insights-container {
    max-width: 1600px;
    margin: 0 auto;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    margin-top: 4rem;
    border: 1px solid var(--border);
}

.insight-card {
    background: var(--background);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.insight-category {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.insight-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.insight-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.insight-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Buttons */
.btn-primary {
    background: var(--primary-dark);
    color: var(--background);
    padding: 1.25rem 3rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--primary-dark);
    display: inline-block;
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-dark);
    padding: 1.25rem 3rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--primary-dark);
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--background);
}

.btn-text {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.btn-text:hover {
    gap: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 12rem 4rem;
    background: var(--background);
    text-align: center;
}

.cta-container {
    max-width: 1000px;
    margin: 0 auto;
}

.cta-container h2 {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.cta-container p {
    font-size: 1.375rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 6rem 4rem 3rem;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 6rem;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--background);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-section h4 {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

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

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--background);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes growBar {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes drawLine {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-visual {
        height: 400px;
    }

    .section-header {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-study-feature {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero,
    .section-container,
    .insights-preview,
    .cta-section,
    footer {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

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

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .capabilities-grid,
    .insights-grid {
        grid-template-columns: 1fr;
    }

    .case-outcomes {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}
