/* LexRefine Platform Page Styles - Self Contained */

:root {
    --llm-bg: #050505;
    --llm-sidebar: rgba(10, 10, 10, 0.8);
    --llm-text-primary: #ffffff;
    --llm-text-secondary: #a1a1aa;
    --llm-accent: #a855f7; /* Purple for LexRefine */
    --llm-accent-gradient: linear-gradient(135deg, #a855f7 0%, #d946ef 100%);
    --llm-font-primary: 'Nunito', sans-serif;
    --llm-font-mono: 'Space Mono', monospace;
    
    /* Variables for Feature Cards (from apple theme) */
    --apple-card-bg: #1c1c1e;
    --apple-card-border: rgba(255, 255, 255, 0.1);
    --apple-text-primary: #f5f5f7;
    --apple-text-secondary: #86868b;
}

body.lexrefine-page {
    background-color: var(--llm-bg);
    overflow-x: hidden;
    font-family: var(--llm-font-primary);
    margin: 0;
}

.lexrefine-page nav {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    position: absolute;
    width: 100%;
    z-index: 50;
}

/* --- Layout Grid --- */
.llm-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    padding-top: 80px;
    position: relative;
    z-index: 5;
}

/* --- Hero / Header Area --- */
.llm-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
    width: 100%;
}

.llm-greeting-wrapper {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 20px;
}

.llm-icon-logo {
    font-size: 3.5rem;
    background: var(--llm-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.3));
}

.llm-greeting {
    font-family: var(--llm-font-primary);
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0 0 1rem 0;
}

/* --- Platform Interface Mockup Styles --- */
.refine-hero-container {
    width: 95%;
    max-width: 1200px;
    height: 600px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    background: rgba(10,10,12,0.8);
    backdrop-filter: blur(20px);
    display: flex;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8);
    position: relative;
}

/* Graph Panel Sidebar */
.graph-sidebar {
    width: 250px;
    background: rgba(20,20,25,0.9);
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
}

.ontology-node {
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #d8b4fe;
    font-size: 0.85rem;
    font-family: var(--llm-font-mono);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ontology-node:hover, .ontology-node.active {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    color: #fff;
}

.prop-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.prop-label { color: #888; }
.prop-val { color: #ccc; font-family: var(--llm-font-mono); }

/* Graph Main Area */
.graph-main {
    flex-grow: 1;
    position: relative;
    background: radial-gradient(circle at center, #1a1a20 0%, #050505 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.v-node {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid #a855f7;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    background: #000;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
    z-index: 2;
    flex-direction: column;
    text-align: center;
}

.v-node img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0.6;
}

.v-node span {
    position: absolute;
    z-index: 3;
    font-weight: 700;
    text-shadow: 0 2px 4px #000;
}

.v-child {
    width: 80px;
    height: 80px;
    border: 1px solid #fff;
    border-radius: 50%;
    position: absolute;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #aaa;
    z-index: 2;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.connector {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #fff);
    z-index: 1;
    transform-origin: left center;
}

/* --- Features Section (Bento Grid) --- */
.features-container-dark {
    background-color: #0a0a0a;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.la-feature-card {
    background: var(--apple-card-bg);
    border: 1px solid transparent;
    padding: 40px 30px;
    border-radius: 30px;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), background-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.la-feature-card:hover {
    transform: scale(1.02);
    background-color: #2c2c2e;
    border-color: rgba(255, 255, 255, 0.1);
}

.la-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.la-feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--apple-text-primary);
}

.la-feature-card p {
    font-size: 17px;
    line-height: 1.5;
    color: var(--apple-text-secondary);
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .refine-hero-container {
        height: auto;
        flex-direction: column;
    }
    .graph-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .graph-main {
        height: 400px;
    }
}