/* ==========================================================================
   TALLEX-AI — Executive LegalTech Design System & Stylesheet
   Theme: Deep Midnight Slate (#0a0e17) & Clean Slate Cards (#121824)
   Accents: Muted Legal Gold (#c5a059), Subtle Slate Borders (#1e293b)
   ========================================================================== */

:root {
    /* Executive Color Palette */
    --bg-dark: #0a0e17;
    --bg-surface: #0f1420;
    --bg-card: #121824;
    --bg-card-hover: #182030;
    --bg-input: #0f1420;
    
    --accent-gold: #c5a059;
    --accent-gold-light: #d4af37;
    --accent-gold-dark: #a38241;
    --accent-gold-subtle: rgba(197, 160, 89, 0.12);
    
    --slate-border: #1e293b;
    --slate-border-light: #334155;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-emerald: #10b981;
    --accent-emerald-subtle: rgba(16, 185, 129, 0.12);

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-arabic: 'Amiri', 'Cairo', serif;
    
    /* Shadows & Micro Glows */
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --shadow-modal: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
    --glow-gold: 0 0 20px rgba(197, 160, 89, 0.15);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --transition-fast: 0.18s ease-in-out;
    --transition-normal: 0.28s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* BiDi & Text Direction Handling */
[dir="auto"] {
    text-align: start;
}

[dir="ltr"] {
    text-align: left;
    direction: ltr;
}

[dir="rtl"] {
    text-align: right;
    direction: rtl;
}

/* Ambient Background Glow */
.glow-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
}

.glow-1 {
    top: -15%;
    left: 25%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
}

.glow-2 {
    top: 40%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, #1e293b 0%, transparent 70%);
}

.glow-3 {
    bottom: -15%;
    left: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--accent-gold-dark) 0%, transparent 70%);
}

/* Top Announcement Bar */
.announcement-bar {
    background: #0f1420;
    border-bottom: 1px solid var(--slate-border);
    padding: 0.5rem 0;
    font-size: 0.85rem;
    text-align: center;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge-new {
    background: var(--accent-gold);
    color: #0a0e17;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.announcement-link {
    color: var(--accent-gold-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.announcement-link:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* Navigation Header */
.navbar-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--slate-border);
    padding: 0.85rem 0;
    transition: var(--transition-normal);
}

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

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0e17;
    font-size: 1.2rem;
    box-shadow: var(--glow-gold);
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.accent-gold {
    color: var(--accent-gold);
}

.logo-subtitle {
    display: block;
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: -3px;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--accent-gold-light);
}

.highlight-link {
    color: var(--accent-gold-light);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-emerald-subtle);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    color: var(--accent-emerald);
    font-weight: 600;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--accent-gold);
    color: #0a0e17;
    box-shadow: var(--glow-gold);
}

.btn-primary:hover {
    background: var(--accent-gold-light);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--slate-border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--slate-border-light);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.8rem 1.6rem;
    font-size: 0.98rem;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

/* Glass & Card Components */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--slate-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--slate-border-light);
}

/* Hero Section */
.hero-section {
    padding: 4.5rem 0 5rem 0;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-gold-subtle);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 0.38rem 0.95rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--accent-gold-light);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
}

.text-gradient {
    color: var(--accent-gold-light);
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* Hero Stats Grid */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    border-top: 1px solid var(--slate-border);
    padding-top: 2rem;
}

.stat-card {
    text-align: left;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-unit {
    font-size: 0.95rem;
    color: var(--accent-gold);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Preview Card */
.hero-preview-wrapper {
    perspective: 1000px;
}

.hero-preview-card {
    overflow: hidden;
    border-color: rgba(197, 160, 89, 0.3);
    box-shadow: var(--shadow-card), var(--glow-gold);
    transition: var(--transition-normal);
}

.card-header-bar {
    background: #0f1420;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--slate-border);
}

.window-controls {
    display: flex;
    gap: 0.4rem;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: var(--accent-gold); }
.dot-green { background: var(--accent-emerald); }

.window-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.window-status {
    font-size: 0.75rem;
    color: var(--accent-emerald);
    font-weight: 600;
}

.preview-body {
    padding: 1.25rem;
}

.search-sim-bar {
    background: #0a0e17;
    border: 1px solid var(--slate-border);
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.text-gold { color: var(--accent-gold); }

.sim-query {
    font-family: var(--font-body);
    color: var(--text-primary);
    font-weight: 600;
    flex: 1;
}

.sim-tag {
    font-size: 0.68rem;
    background: var(--accent-gold-subtle);
    color: var(--accent-gold-light);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
}

.result-sim-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.result-sim-item {
    background: #0f1420;
    border: 1px solid var(--slate-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

.result-sim-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
}

.res-badge {
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.res-statute { background: var(--accent-gold-subtle); color: var(--accent-gold-light); }
.res-court { background: rgba(255, 255, 255, 0.06); color: var(--text-secondary); }

.res-title-ar {
    font-family: var(--font-arabic);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.draft-sim-button {
    background: var(--accent-gold-subtle);
    border: 1px dashed var(--accent-gold);
    color: var(--accent-gold-light);
    text-align: center;
    padding: 0.6rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 600;
}

/* Sections Setup */
.section-padding {
    padding: 5rem 0;
}

.bg-surface {
    background-color: var(--bg-surface);
}

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

.section-badge {
    display: inline-block;
    color: var(--accent-gold);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}

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

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.feature-card {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-3px);
    background: var(--bg-card-hover);
    border-color: var(--slate-border-light);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    background: var(--accent-gold-subtle);
    color: var(--accent-gold);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.feature-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Interactive Playground Section */
.playground-wrapper {
    padding: 2rem;
}

.playground-tabs {
    display: flex;
    gap: 0.75rem;
    border-bottom: 1px solid var(--slate-border);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.pg-tab {
    background: none;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.pg-tab:hover {
    color: var(--text-primary);
}

.pg-tab.active {
    background: var(--accent-gold-subtle);
    color: var(--accent-gold-light);
    border-color: rgba(197, 160, 89, 0.3);
}

.pg-tab-content {
    display: none;
}

.pg-tab-content.active {
    display: block;
}

/* Search Playground Tab */
.search-bar-inner {
    display: flex;
    align-items: center;
    background: #0f1420;
    border: 1px solid var(--slate-border);
    border-radius: var(--radius-md);
    padding: 0.35rem 0.5rem 0.35rem 1.25rem;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.search-icon {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

#searchInput {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.98rem;
    padding: 0.5rem 0;
}

.query-chips {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.chip-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.chip {
    background: var(--bg-surface);
    border: 1px solid var(--slate-border);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chip:hover {
    background: var(--accent-gold-subtle);
    color: var(--accent-gold-light);
    border-color: var(--accent-gold);
}

.results-container {
    background: #0f1420;
    border: 1px solid var(--slate-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--slate-border);
    padding-bottom: 0.5rem;
}

.latency-badge {
    color: var(--accent-emerald);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--slate-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: var(--transition-fast);
}

.result-card:hover {
    border-color: var(--accent-gold);
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.result-type-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.type-statute { background: var(--accent-gold-subtle); color: var(--accent-gold-light); }
.type-decision { background: rgba(255, 255, 255, 0.08); color: var(--text-primary); }

.result-body-ar {
    font-family: var(--font-arabic);
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.result-footer {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Draft Playground Tab */
.draft-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.half { flex: 1; }

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-input, .form-textarea {
    width: 100%;
    background: #0f1420;
    border: 1px solid var(--slate-border);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.85rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--accent-gold);
}

.radio-card-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.radio-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #0f1420;
    border: 1px solid var(--slate-border);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.radio-card:hover {
    border-color: var(--slate-border-light);
}

.radio-info strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.radio-info span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.draft-output-col {
    background: #0f1420;
    border: 1px solid var(--slate-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--slate-border);
    font-size: 0.85rem;
    font-weight: 600;
}

.draft-paper {
    font-family: var(--font-arabic);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap;
    background: var(--bg-dark);
    padding: 1rem;
    border-radius: var(--radius-sm);
    flex: 1;
    max-height: 450px;
    overflow-y: auto;
    border: 1px solid var(--slate-border);
}

/* Architecture Diagram */
.arch-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.arch-step {
    flex: 1;
    min-width: 180px;
    background: #0f1420;
    border: 1px solid var(--slate-border);
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.arch-step h4 {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    margin: 0.75rem 0 0.35rem 0;
}

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

.arch-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-gold-subtle);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.1rem;
}

.arch-arrow {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.highlight-step {
    border-color: var(--accent-gold);
    background: var(--accent-gold-subtle);
}

/* Benchmark Table */
.table-responsive {
    overflow-x: auto;
}

.benchmark-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.benchmark-table th, .benchmark-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--slate-border);
}

.benchmark-table th {
    background: #0f1420;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.badge-pass {
    background: var(--accent-emerald-subtle);
    color: var(--accent-emerald);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.badge-fail {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.highlight-row {
    background: var(--accent-gold-subtle);
}

/* Word Banner */
.word-banner {
    padding: 3rem;
    background: #121824;
    border-color: rgba(197, 160, 89, 0.3);
    position: relative;
    overflow: hidden;
}

.word-title {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    margin: 0.5rem 0 1rem 0;
}

.word-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 650px;
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #0f1420;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-border);
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #0a0e17;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
}

code {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--accent-gold-light);
    font-family: monospace;
    font-size: 0.88rem;
}

.word-bg-icon {
    position: absolute;
    right: -20px;
    bottom: -40px;
    font-size: 18rem;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing-card {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.featured-plan {
    border-color: var(--accent-gold);
    background: #151d2e;
    box-shadow: var(--shadow-card), var(--glow-gold);
    transform: scale(1.02);
}

.featured-tag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: #0a0e17;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.2rem 0.85rem;
    border-radius: var(--radius-full);
}

.plan-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.plan-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.plan-features li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.text-emerald { color: var(--accent-emerald); }

/* Chat Interface Container */
.chat-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 580px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--slate-border);
    box-shadow: var(--shadow-card);
}

.chat-sidebar {
    background: #0f1420;
    border-right: 1px solid var(--slate-border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--slate-border);
    padding-bottom: 1rem;
}

.chat-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

.chat-status-tag {
    background: var(--accent-emerald-subtle);
    color: var(--accent-emerald);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

.chat-setting-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.style-toggle-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.style-btn {
    background: var(--bg-card);
    border: 1px solid var(--slate-border);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-primary);
}

.style-btn strong {
    display: block;
    font-size: 0.88rem;
}

.style-btn span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.style-btn.active {
    background: var(--accent-gold-subtle);
    border-color: var(--accent-gold);
    color: var(--accent-gold-light);
}

.chat-prompt-chips {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-prompt-btn {
    background: var(--bg-card);
    border: 1px solid var(--slate-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-prompt-btn:hover {
    background: var(--accent-gold-subtle);
    border-color: var(--accent-gold);
    color: var(--text-primary);
}

.chat-privacy-note {
    margin-top: auto;
    background: var(--accent-emerald-subtle);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    color: var(--accent-emerald);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.4;
}

/* Chat Main Area */
.chat-main {
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
}

.chat-header-bar {
    background: #0f1420;
    border-bottom: 1px solid var(--slate-border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.active-agent-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #0a0e17;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--glow-gold);
}

.agent-name {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 700;
}

.agent-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chat-messages-area {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 480px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.chat-message {
    display: flex;
    gap: 0.85rem;
    max-width: 88%;
}

.msg-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-assistant {
    align-self: flex-start;
}

.msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--slate-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.msg-user .msg-avatar {
    background: var(--slate-border-light);
    color: var(--text-primary);
}

.msg-content {
    background: #121824;
    border: 1px solid var(--slate-border);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
    font-size: 0.92rem;
    line-height: 1.6;
}

.msg-user .msg-content {
    background: #1a2334;
    border-color: var(--slate-border-light);
    color: #ffffff;
}

.msg-author {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.3rem;
}

.msg-body {
    white-space: pre-wrap;
    font-family: var(--font-body);
}

.msg-body h4.msg-heading, .msg-body h3.msg-heading {
    color: var(--accent-gold-light);
    font-size: 0.98rem;
    margin: 0.6rem 0 0.3rem 0;
}

.msg-meta {
    margin-top: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.75rem;
}

/* Chat Input Bar */
.chat-input-area {
    background: #0f1420;
    border-top: 1px solid var(--slate-border);
    padding: 1rem 1.5rem;
}

.chat-form {
    display: flex;
    gap: 0.75rem;
}

.chat-input-field {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--slate-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    font-size: 0.92rem;
    outline: none;
    transition: var(--transition-fast);
}

.chat-input-field:focus {
    border-color: var(--accent-gold);
}

.chat-send-btn {
    padding: 0.75rem 1.5rem;
}

/* Auth Modal */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-modal-overlay.active {
    display: flex;
}

.auth-modal-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 2.25rem;
    background: var(--bg-card);
    border: 1px solid var(--slate-border-light);
    box-shadow: var(--shadow-modal), var(--glow-gold);
}

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.auth-modal-close:hover {
    color: var(--text-primary);
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.social-oauth-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-border);
    background: #0f1420;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.oauth-btn:hover {
    border-color: var(--accent-gold);
    background: var(--accent-gold-subtle);
    transform: translateY(-1px);
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 1.25rem 0;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 32%;
    height: 1px;
    background: var(--slate-border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-tabs {
    display: flex;
    background: #0f1420;
    border-radius: var(--radius-md);
    padding: 0.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--slate-border);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.auth-tab.active {
    background: var(--accent-gold);
    color: #0a0e17;
    font-weight: 700;
}

.internal-domain-alert {
    background: var(--accent-gold-subtle);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.78rem;
    color: var(--accent-gold-light);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1.4;
}

/* Footer Styling */
.site-footer {
    background: #080b12;
    border-top: 1px solid var(--slate-border);
    padding: 4rem 0 0 0;
}

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

.footer-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 1rem 0;
}

.footer-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid var(--slate-border);
    padding: 1.25rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Ecosystem Section */
.ecosystem-section {
    padding: 5rem 0;
    background: #0f1420;
    border-top: 1px solid var(--slate-border);
    border-bottom: 1px solid var(--slate-border);
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.venture-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-border);
    background: var(--bg-card);
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    .hero-preview-wrapper {
        margin-top: 2rem;
    }
    .features-grid, .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .chat-container {
        grid-template-columns: 1fr;
    }
    .chat-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--slate-border);
    }
    .arch-flow {
        flex-direction: column;
    }
    .arch-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    .draft-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
