/* --- Brand Constants & Variables --- */
:root {
    --bg-main: #0B0F13;
    --bg-card: #131A22;
    --border-color: #222F3E;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --accent-cyan: #00FFCC;
    --accent-dim: rgba(0, 255, 204, 0.08);
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* --- Global Reset & Base Layout --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 2rem;
    background-image:
        radial-gradient(circle at top, rgba(0, 255, 204, 0.06), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
}

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

.text-muted {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Header & Navigation --- */
.navbar {
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 19, 0.8);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.1rem;
}

.logo span {
    color: var(--accent-cyan);
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-cyan);
}

/* --- Hero Section --- */
.hero {
    padding: 5rem 0 3rem;
    max-width: 760px;
}

.hero--compact {
    padding-top: 4rem;
}

.badge {
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 255, 204, 0.3);
    background: var(--accent-dim);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 62ch;
}

/* --- Sections Common --- */
.section {
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
}

.text-section {
    max-width: 760px;
}

.text-section p {
    max-width: 58ch;
    color: var(--text-secondary);
    font-size: 1.08rem;
}

h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* --- Table Styles --- */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

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

th, td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.2);
}

.bold-target {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-weight: 700;
}

/* --- Blockquote --- */
.blockquote-section {
    padding: 4rem 0;
}

blockquote {
    border-left: 3px solid var(--accent-cyan);
    background: linear-gradient(90deg, var(--accent-dim), transparent);
    padding: 2.5rem 2rem;
}

.quote-title {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
}

blockquote p {
    font-size: 1.35rem;
    font-style: italic;
    color: var(--text-primary);
}

/* --- Split Layout & FireflAI Swarm Animation --- */
.grid-two-col {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.grid-two-col p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.visual-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.swarm-container {
    position: relative;
    width: 100%;
    height: 180px;
    margin-bottom: 1rem;
}

.crystal-core {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent-cyan);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 15px var(--accent-cyan);
    animation: pulse 3s ease-in-out infinite;
}

.firefly {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    top: var(--top);
    left: var(--left);
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: orbit 4s infinite ease-in-out, blink 2s infinite ease-in-out;
    animation-delay: var(--delay);
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent-cyan);
}

/* --- Interactive Sequence --- */
.sequence-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
}

.sequence-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.seq-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 1.2rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
}

.seq-btn:hover {
    border-color: rgba(0, 255, 204, 0.4);
    background: rgba(255, 255, 255, 0.01);
}

.seq-btn.active {
    border-color: var(--accent-cyan);
    background: var(--accent-dim);
    color: var(--text-primary);
}

.seq-num {
    font-family: var(--font-mono);
    font-weight: bold;
    color: var(--accent-cyan);
}

.seq-label {
    font-weight: 600;
}

.sequence-content {
    padding: 0 1rem;
    display: flex;
    align-items: center;
}

.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.step-panel h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.step-panel p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    background: #06090c;
}

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

/* --- Animations --- */
@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) rotate(45deg) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) rotate(45deg) scale(1.15); opacity: 1; box-shadow: 0 0 25px var(--accent-cyan); }
}

@keyframes blink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

@keyframes orbit {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -20px); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    h1 { font-size: 2.3rem; }
    .grid-two-col { grid-template-columns: 1fr; gap: 3rem; }
    .sequence-container { grid-template-columns: 1fr; padding: 1.5rem; }
    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Homepage shell for the root vision page */
body {
    padding-bottom: 2rem;
}

header {
    max-width: 760px;
    margin: 0 auto;
    padding: 5rem 2rem 2rem;
}

header h1 {
    margin-bottom: 0.75rem;
}

header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.cards-section {
    max-width: none;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 14px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 255, 204, 0.35);
}

.card h3 {
    margin-bottom: 0.75rem;
}

.card a {
    color: var(--text-primary);
    text-decoration: none;
}

.card p {
    color: var(--text-secondary);
}

.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0 0;
    margin-top: 1rem;
}

.site-footer p {
    margin: 0;
    color: var(--text-secondary);
}

/* "Restraint gives form to meaning, and meaning gives discipline to the page." -- Michel G. Combes, BlockSmith 2026 */
