/* Custom Styling for Aphantos Website */

/* Reset & Variables */
:root {
    --bg-dark: #070a13;
    --bg-card: rgba(13, 19, 35, 0.65);
    --bg-card-highlight: rgba(22, 28, 48, 0.75);
    --border-color: rgba(255, 255, 255, 0.07);
    --border-color-hover: rgba(139, 92, 246, 0.3);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --color-violet: #8b5cf6;
    --color-cyan: #06b6d4;
    --color-emerald: #10b981;
    --color-blue: #3b82f6;
    --color-yellow: #f59e0b;
    --color-red: #ef4444;

    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --container-width: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.75;
}

/* Background Glow Elements */
.glow-bg {
    position: absolute;
    width: 100vw;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -2;
    pointer-events: none;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    mix-blend-mode: screen;
}

.glow-sphere-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-violet) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: floatGlow 15s infinite alternate;
}

.glow-sphere-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
    top: 300px;
    left: -200px;
    animation: floatGlow 18s infinite alternate-reverse;
}

.glow-sphere-3 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--color-emerald) 0%, transparent 70%);
    bottom: 10%;
    right: -150px;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.1); }
}

/* Typography & Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.bg-card-dark {
    background-color: rgba(9, 13, 24, 0.4);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-title.text-left {
    text-align: left;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-violet) 0%, var(--color-cyan) 50%, var(--color-emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mono {
    font-family: var(--font-mono);
}

.hidden {
    display: none !important;
}

/* Header & Navigation */
.header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 10, 19, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-violet) 0%, var(--color-cyan) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    padding: calc(var(--header-height) + 80px) 0 80px 0;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.hero-container {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 99px;
    color: #c084fc;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Interactive Graph Showcase */
.graph-showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.graph-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: rgba(9, 13, 24, 0.5);
}

.graph-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-right: 1px solid var(--border-color);
}

.graph-tab:last-child {
    border-right: none;
}

.graph-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.graph-tab.active {
    color: var(--text-primary);
    background: var(--bg-dark);
    box-shadow: inset 0 -2px 0 var(--color-violet);
}

.graph-workspace {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    height: 480px;
}

.graph-viewport {
    background: #090c15;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graph-svg {
    width: 100%;
    height: 100%;
}

.graph-status-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(7, 10, 19, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

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

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

/* Graph Nodes Styling */
.node {
    cursor: pointer;
}

.node circle {
    transition: r 0.25s cubic-bezier(0.4, 0, 0.2, 1), stroke-width 0.2s ease;
}

.node:hover circle {
    r: 28; /* scale up circle from 24 */
}

.node text {
    pointer-events: none;
    user-select: none;
}

.node-label {
    font-family: var(--font-body);
    font-weight: 500;
    pointer-events: none;
}

.edge {
    stroke-dasharray: 4;
    animation: dash 30s linear infinite;
}

@keyframes dash {
    to { stroke-dashoffset: -1000; }
}

/* Sidebar Inspector */
.graph-details-sidebar {
    border-left: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    flex-direction: column;
    background: rgba(13, 19, 35, 0.4);
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.inspector-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
}

.inspector-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 16px;
}

.inspector-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.inspector-header {
    margin-bottom: 20px;
}

.inspector-tag {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    font-weight: 600;
    margin-bottom: 8px;
}

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

.inspector-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.inspector-field {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.inspector-field.flex-col {
    flex-direction: column;
    gap: 6px;
    border-bottom: none;
}

.field-label {
    color: var(--text-secondary);
}

.field-value {
    font-weight: 500;
}

.field-value.mono {
    font-family: var(--font-mono);
    color: #e5e7eb;
}

.badge-risk {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.risk-low { background: rgba(16, 185, 129, 0.1); color: var(--color-emerald); }
.risk-medium { background: rgba(245, 158, 11, 0.1); color: var(--color-yellow); }
.risk-high { background: rgba(239, 68, 68, 0.1); color: var(--color-red); }

.badge-verify {
    color: var(--color-emerald);
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-verify svg {
    width: 14px;
    height: 14px;
}

/* Product Cards Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.08);
}

.product-card.highlight {
    background: var(--bg-card-highlight);
    border-color: rgba(6, 182, 212, 0.2);
}

.product-card.highlight:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.08);
}

.product-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

.product-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.bg-violet { background: rgba(139, 92, 246, 0.2); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.bg-cyan { background: rgba(6, 182, 212, 0.2); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.bg-emerald { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.bg-blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.bg-yellow { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.bg-gradient { background: linear-gradient(135deg, var(--color-cyan), var(--color-emerald)); border: none; }

.product-category {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-cyan);
    margin-bottom: 12px;
    display: inline-block;
}
.product-category.module {
    color: var(--color-blue);
}
.product-category.engine {
    color: var(--color-emerald);
}

.product-card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.product-card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-card-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.product-card-features svg {
    width: 16px;
    height: 16px;
    color: var(--color-emerald);
}

/* Cryptography Section Grid */
.cryptography-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge-tech {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.crypto-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.crypto-feature {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.crypto-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.1);
    color: #c084fc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.crypto-feature-icon svg {
    width: 18px;
    height: 18px;
}

.crypto-feature h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.crypto-feature p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* Cryptography Prover Terminal */
.crypto-terminal {
    background: #07090e;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    height: 380px;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: #0d0f15;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    flex: 1;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    overflow-y: auto;
    color: #a7f3d0;
}

.terminal-body .line {
    margin-bottom: 6px;
    white-space: pre-wrap;
}

.terminal-body .line.comment {
    color: #4b5563;
}

.terminal-body .line .prompt {
    color: var(--color-cyan);
}

.terminal-body .line .typed {
    color: var(--text-primary);
}

.terminal-body .text-cyan { color: var(--color-cyan); }
.terminal-body .text-emerald { color: var(--color-emerald); }
.terminal-body .text-violet { color: #a78bfa; }

.terminal-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: #090b10;
    display: flex;
    justify-content: flex-end;
}

/* AQL Playground */
.aql-playground {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.aql-controls {
    display: flex;
    background: rgba(9, 13, 24, 0.6);
    border-bottom: 1px solid var(--border-color);
}

.aql-query-btn {
    flex: 1;
    padding: 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-right: 1px solid var(--border-color);
}

.aql-query-btn:last-child {
    border-right: none;
}

.aql-query-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.aql-query-btn.active {
    color: var(--text-primary);
    background: var(--bg-dark);
    box-shadow: inset 0 -2px 0 var(--color-cyan);
}

.aql-panels {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    height: 320px;
}

.aql-panel-editor {
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.aql-panel-results {
    display: flex;
    flex-direction: column;
    background: #090c14;
}

.panel-header {
    background: rgba(9, 13, 24, 0.4);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 18px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.panel-body {
    flex: 1;
    padding: 18px;
    overflow: auto;
}

.panel-body pre {
    margin: 0;
}

.panel-body code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.language-aql {
    color: #a78bfa;
}

.language-json {
    color: #67e8f9;
}

/* Academic Paper Card */
.paper-card {
    background: linear-gradient(135deg, rgba(22, 28, 48, 0.8) 0%, rgba(9, 13, 24, 0.9) 100%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.paper-glow {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.paper-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 99px;
    color: #c084fc;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.paper-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.paper-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* LaTeX Page Container */
.latex-container {
    background: #ffffff;
    color: #111827;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    max-width: 650px;
    margin: 0 auto 40px auto;
    padding: 40px;
    text-align: left;
    font-family: 'Times New Roman', Times, serif;
    position: relative;
}

.latex-header {
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 8px;
    margin-bottom: 24px;
    text-align: center;
}

.latex-doc-type {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #6b7280;
    font-weight: 700;
}

.latex-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.2;
}

.latex-authors {
    text-align: center;
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 24px;
    color: #374151;
}

.latex-abstract {
    font-size: 0.88rem;
    line-height: 1.5;
    text-align: justify;
    margin-bottom: 24px;
    color: #1f2937;
}

.latex-formula {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: bold;
    padding-left: 20px;
}

.math-eq {
    flex: 1;
    text-align: center;
}

.math-label {
    font-size: 0.9rem;
    font-weight: normal;
    color: #4b5563;
}

.paper-actions {
    display: flex;
    justify-content: center;
}

/* Benchmarks Section Styling */
.benchmarks-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.benchmark-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.benchmark-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
}

.benchmark-highlights {
    display: flex;
    gap: 20px;
    margin-top: 32px;
}

.b-highlight-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.b-h-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.b-h-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.benchmark-chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
}

.chart-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.chart-container {
    width: 100%;
}

.benchmark-svg {
    width: 100%;
    height: auto;
}

.chart-bar {
    transform-origin: left;
    transition: transform 1s ease-out;
}

.benchmark-note {
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    border-top: 1px dashed var(--border-color);
    padding-top: 1rem;
}

/* CTA & Footer */
.cta-section {
    padding: 120px 0;
    text-align: center;
}

.cta-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 60px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-subtext {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.footer {
    background: #05060b;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column: span 2;
    gap: 40px;
}

.links-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links-column h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-meta {
    font-family: var(--font-mono);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.2rem; }
    .graph-workspace { grid-template-columns: 1.8fr 1fr; }
    .cryptography-grid { grid-template-columns: 1fr; gap: 40px; }
    .benchmarks-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .footer-links { grid-column: span 1; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .hero-title { font-size: 2.6rem; }
    .graph-workspace { grid-template-columns: 1fr; height: auto; }
    .graph-viewport { height: 320px; }
    .graph-details-sidebar { border-left: none; border-top: 1px solid var(--border-color); }
    .aql-panels { grid-template-columns: 1fr; height: auto; }
    .aql-panel-editor { border-right: none; border-bottom: 1px solid var(--border-color); height: 200px; }
    .aql-panel-results { height: 200px; }
    .paper-card { padding: 40px 20px; }
    .latex-container { padding: 20px; }
    .footer-container { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr; }
    .footer-bottom-container { flex-direction: column; gap: 12px; text-align: center; }
}
