
/* ============================================================
   BJEX Language — index-css.css
   Single stylesheet for: index, about, contact, document,
   download pages. login/register use their own separate files.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --accent:         #3adecb;
    --accent-dark:    #28b3a9;
    --accent-subtle:  rgba(58, 222, 203, 0.08);
    --accent-glow:    rgba(58, 222, 203, 0.18);
    --bg-base:        #0d0d0d;
    --bg-card:        #161616;
    --bg-header:      #111111;
    --text-primary:   #e8e8e8;
    --text-secondary: #aaaaaa;
    --text-muted:     #555555;
    --text-code:      #b0f7f1;
    --border:         rgba(58, 222, 203, 0.12);
    --border-hover:   rgba(58, 222, 203, 0.35);
    --danger:         #ff5555;
    --success:        #50fa7b;
    --warning:        #ffb86c;
    --radius-sm:      5px;
    --radius-md:      10px;
    --radius-lg:      16px;
    --font-mono:      'Fira Code', Consolas, monospace;
    --font-sans:      'Space Grotesk', sans-serif;
    --transition:     all 0.25s ease;
    --shadow-glow:    0 0 20px rgba(58, 222, 203, 0.15);
}

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

/* ── Base ──────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Subtle scanline overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 0;
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

main.container {
    margin-top: 3rem;
    margin-bottom: 4rem;
}

/* ── Header ────────────────────────────────────────────────── */
header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 2rem;
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(12px);
}

.header-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    height: 44px;
    filter: drop-shadow(0 0 4px rgba(58, 222, 203, 0.4));
    transition: var(--transition);
}
.logo:hover {
    filter: drop-shadow(0 0 10px rgba(58, 222, 203, 0.7));
}

nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

nav a {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: #3adecb;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

nav a:hover {
    background: rgba(58, 222, 203, 0.12);
    border-color: var(--border);
}

nav a.active {
    background: rgba(58, 222, 203, 0.15);
    border-color: var(--border-hover);
    color: var(--accent);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 0.02em;
    user-select: none;
}

.btn-primary {
    background: var(--accent);
    color: #0d0d0d;
    border: 1px solid var(--accent);
}
.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(58, 222, 203, 0.3);
    text-decoration: none;
    color: #0d0d0d;
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--border-hover);
}
.btn-secondary:hover {
    background: var(--accent-subtle);
    border-color: var(--accent);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--accent);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    color: var(--accent);
    border-color: var(--border-hover);
    background: var(--accent-subtle);
    text-decoration: none;
}

/* nav-level btn overrides (no border on nav links) */
nav a.btn-primary {
    background: var(--accent);
    color: #0d0d0d;
    border-color: var(--accent);
}
nav a.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

nav a.btn-secondary {
    color: var(--accent);
    border-color: var(--border-hover);
}
nav a.btn-secondary:hover {
    background: var(--accent-subtle);
}

nav a.btn-ghost {
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
nav a.btn-ghost:hover {
    color: var(--accent);
    background: var(--accent-subtle);
    border-color: var(--border-hover);
}

/* ── Typography ────────────────────────────────────────────── */
h1 {
    font-family: var(--font-mono);
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 6px rgba(58, 222, 203, 0.35);
}

h2 {
    font-family: var(--font-mono);
    font-size: clamp(1.15rem, 3vw, 1.6rem);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    text-shadow: 0 0 4px rgba(58, 222, 203, 0.2);
}

h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.highlight { color: var(--text-primary); text-shadow: none; }

.subtitle {
    color: #b0f7f1;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

section {
    margin-bottom: 3rem;
}

/* ── Code & Pre ────────────────────────────────────────────── */
pre, code {
    font-family: var(--font-mono);
}

pre {
    background: #111;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.5rem;
    overflow-x: auto;
    font-size: 0.9rem;
    color: var(--text-code);
    line-height: 1.7;
    margin: 1rem 0 1.5rem;
    box-shadow: inset 0 0 8px rgba(0, 255, 255, 0.04);
}

code {
    background: rgba(58, 222, 203, 0.08);
    color: var(--accent);
    padding: 0.15em 0.45em;
    border-radius: 4px;
    font-size: 0.875em;
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    transition: var(--transition);
}
.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

/* ── Features List (shared) ────────────────────────────────── */
.features-list {
    list-style: none;
    margin-left: 0.5rem;
    margin-bottom: 2rem;
    display: grid;
    gap: 0.65rem;
    color: #9bded9;
}
.features-list li {
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--accent-subtle);
    border: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}
.features-list li:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* ── Notice ────────────────────────────────────────────────── */
.notice {
    font-style: italic;
    color: var(--warning);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* ── Alerts ────────────────────────────────────────────────── */
.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--danger);
    background: rgba(255, 85, 85, 0.1);
    color: #ff8080;
}
.success {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--success);
    background: rgba(80, 250, 123, 0.1);
    color: #80ffaa;
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
    background: var(--bg-header);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 1.5rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: auto;
    user-select: none;
    position: relative;
    z-index: 1;
}
footer strong { color: var(--text-secondary); }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Animations ────────────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeIn 0.75s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s;  }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s;  }

@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.cursor::after {
    content: '_';
    animation: blink 1s step-start infinite;
    color: var(--accent);
}
@keyframes blink { 50% { opacity: 0; } }


/* ════════════════════════════════════════════════════════════
   INDEX PAGE
════════════════════════════════════════════════════════════ */

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 0 2.5rem;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(58, 222, 203, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(58, 222, 203, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 1.1rem;
    color: #999;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-block;
    background: var(--accent);
    color: #121212;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2.2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(58, 222, 203, 0.35);
    transition: var(--transition);
}
.btn-hero-primary:hover {
    background: var(--accent-dark);
    box-shadow: 0 6px 24px rgba(58, 222, 203, 0.55);
    transform: translateY(-2px);
    text-decoration: none;
    color: #121212;
}

.btn-hero-secondary {
    display: inline-block;
    background: transparent;
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 2.2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: 1.5px solid var(--accent);
    transition: var(--transition);
}
.btn-hero-secondary:hover {
    background: rgba(58, 222, 203, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--accent);
}

/* Stats Row */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent);
    display: block;
}
.stat-label {
    font-size: 0.78rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Pipeline (Index + About shared) */
.pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 1.8rem 0;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}
.pipe-step {
    background: #1e1e1e;
    border: 1px solid #333;
    color: var(--accent);
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    white-space: nowrap;
    transition: border-color 0.25s;
}
.pipe-step:hover { border-color: var(--accent); }
.pipe-arrow {
    color: #444;
    padding: 0 0.4rem;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Index Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
    margin: 1.5rem 0 3rem;
}
.feature-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(58, 222, 203, 0.1);
}
.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    display: block;
}
.feature-card h3 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.87rem;
    color: #777;
    margin: 0;
    line-height: 1.55;
}

/* Code Demo (Mac-window style) */
.code-demo-wrap {
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    overflow: hidden;
    margin: 2rem 0 3rem;
}
.code-demo-header {
    background: #1e1e1e;
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #2a2a2a;
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.code-filename {
    margin-left: 0.8rem;
    color: #555;
    font-size: 0.82rem;
    font-family: var(--font-mono);
}
/* Suppress the default pre border/label inside the code demo */
.code-demo-wrap pre {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 1.5rem;
}
.code-demo-wrap pre::before { display: none; }

/* Learn Strip */
.learn-strip {
    background: #161616;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}
.learn-strip h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.5rem;
}
.learn-strip pre { margin-bottom: 0; }
.learn-strip pre::before { display: none; }


/* ════════════════════════════════════════════════════════════
   ABOUT PAGE
════════════════════════════════════════════════════════════ */

.about-hero {
    text-align: center;
    padding: 4rem 0 3rem;
}
.about-badge {
    display: inline-block;
    padding: 7px 18px;
    border: 1px solid var(--accent);
    border-radius: 30px;
    color: var(--accent);
    background: rgba(58, 222, 203, 0.07);
    margin-bottom: 24px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.about-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.18;
    margin-bottom: 20px;
    text-shadow: 0 0 6px rgba(58, 222, 203, 0.35);
}
.about-sub {
    max-width: 680px;
    margin: 0 auto;
    color: #999;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Creator card */
.owner-card {
    margin-top: 4rem;
    background: #141414;
    border: 1px solid #252525;
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.owner-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 32px rgba(58, 222, 203, 0.1);
}
.owner-image {
    width: 210px;
    height: 210px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid var(--accent);
    box-shadow: 0 0 28px rgba(58, 222, 203, 0.2);
    flex-shrink: 0;
}
.owner-info h2 {
    font-size: 1.75rem;
    margin-bottom: 6px;
    border-bottom: none;
    padding-bottom: 0;
}
.owner-role {
    color: var(--accent);
    font-size: 0.82rem;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 600;
}
.owner-info p {
    color: #aaa;
    line-height: 1.75;
    margin-bottom: 12px;
}
.owner-info p:last-child { margin-bottom: 0; }

/* Vision quote */
.vision-block {
    margin-top: 3.5rem;
    padding: 2.2rem 2.5rem;
    background: linear-gradient(135deg, #131f1e, #0f0f0f);
    border: 1px solid rgba(58, 222, 203, 0.18);
    border-left: 3px solid var(--accent);
    border-radius: 14px;
}
.vision-block blockquote {
    margin: 0;
    font-size: 1.15rem;
    color: #ddd;
    line-height: 1.8;
    font-style: italic;
}
.vision-block cite {
    display: block;
    margin-top: 14px;
    color: var(--accent);
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* Section titles (About / Contact) */
.section-title {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
    border-bottom: none;
    padding-bottom: 0;
}
.section-sub {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Philosophy grid */
.philosophy-section { margin-top: 4rem; }
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.phil-card {
    background: #161616;
    border: 1px solid #242424;
    border-radius: 14px;
    padding: 1.8rem;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.phil-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(58, 222, 203, 0.1);
}
.phil-icon {
    font-size: 1.6rem;
    margin-bottom: 14px;
    display: block;
}
.phil-card h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
}
.phil-card p {
    color: #888;
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
}

/* About Features section */
.features-section { margin-top: 4rem; }
.feat-card {
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 1.3rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.feat-card:hover {
    border-color: rgba(58, 222, 203, 0.45);
    box-shadow: 0 0 16px rgba(58, 222, 203, 0.07);
}
.feat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 6px;
    flex-shrink: 0;
}
.feat-card p {
    color: #777;
    font-size: 0.83rem;
    line-height: 1.55;
    margin: 0;
}

/* About pipeline (boxed style) */
.arch-section { margin-top: 4rem; }
.pipe-step .pipe-label {
    display: block;
    color: var(--accent);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}
.pipe-step .pipe-desc {
    color: #888;
    font-size: 0.76rem;
}
/* About page pipeline layout differs: boxes take equal width */
.arch-section .pipeline .pipe-step {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 0.9rem 0.8rem;
    background: #161616;
    border-color: #2a2a2a;
    border-radius: 10px;
}
.arch-section .pipeline .pipe-arrow {
    color: var(--accent);
    padding: 0 4px;
    flex-shrink: 0;
}

/* Data types */
.types-section { margin-top: 4rem; }
.type-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.type-chip {
    padding: 0.5rem 1.1rem;
    background: #191919;
    border: 1px solid #2d2d2d;
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}
.type-chip:hover {
    background: rgba(58, 222, 203, 0.1);
    border-color: var(--accent);
}

/* Tech stack */
.tech-stack { margin-top: 4rem; }
.stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.5rem;
}
.stack span {
    padding: 0.6rem 1.2rem;
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.83rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}
.stack span:hover {
    background: rgba(58, 222, 203, 0.08);
    border-color: var(--accent);
}

/* Education grid */
.edu-section { margin-top: 4rem; }
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.1rem;
    margin-top: 1.5rem;
}
.edu-card {
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 1.4rem;
    transition: border-color 0.25s, transform 0.25s;
}
.edu-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}
.edu-icon {
    font-size: 1.4rem;
    margin-bottom: 10px;
    display: block;
}
.edu-card h4 {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* Future scope */
.future-section { margin-top: 4rem; }
.future-list {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}
.future-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #141414;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    transition: border-color 0.25s;
}
.future-item:hover { border-color: rgba(58, 222, 203, 0.5); }
.fi-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.future-item span {
    color: #bbb;
    font-size: 0.87rem;
}

/* Closing quote (About + Contact shared) */
.closing-quote {
    margin: 4rem 0 2rem;
    padding: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, #161f1e, #0f0f0f);
    border: 1px solid rgba(58, 222, 203, 0.18);
    border-radius: 18px;
}
.closing-quote p {
    font-size: 1.1rem;
    color: #ddd;
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto 16px;
}
.author {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
}


/* ════════════════════════════════════════════════════════════
   CONTACT PAGE
════════════════════════════════════════════════════════════ */

.contact-links {
    margin-top: 4rem;
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.contact-card {
    background: #161616;
    border: 1px solid #252525;
    border-radius: 18px;
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 0 25px rgba(58, 222, 203, 0.12);
}
.contact-card i {
    display: block;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 18px;
}
.contact-card h3 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 12px;
    font-weight: 600;
}
.contact-card p {
    color: #888;
    line-height: 1.7;
    margin-bottom: 16px;
}
.contact-card a {
    color: var(--accent);
    text-decoration: none;
    word-break: break-word;
    font-weight: 600;
    transition: color 0.2s;
}
.contact-card a:hover { text-decoration: underline; }

/* Community section */
.community-section {
    margin: 5rem 0;
}
.community-title {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3rem;
}
.community-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin: 18px 0;
    border-bottom: none;
    padding-bottom: 0;
}
.community-title p {
    color: #999;
    line-height: 1.8;
}
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
}
.community-card {
    background: #161616;
    border: 1px solid #252525;
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.community-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(58, 222, 203, 0.08);
}
.community-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    display: block;
}
.community-card h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.05rem;
}
.community-card span {
    color: #888;
    line-height: 1.6;
    font-size: 0.9rem;
}
.community-note {
    margin-top: 3rem;
    text-align: center;
    color: var(--accent);
    font-size: 1rem;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}
.contact-info { margin-top: 4rem; }


/* ════════════════════════════════════════════════════════════
   DOCUMENT PAGE
════════════════════════════════════════════════════════════ */

.doc-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.doc-section:hover { border-color: var(--border-hover); }
.doc-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Syntax table */
.syntax-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.86rem;
    margin-top: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.syntax-table th {
    text-align: left;
    padding: 0.65rem 1rem;
    background: rgba(58, 222, 203, 0.08);
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    letter-spacing: 0.05em;
}
.syntax-table td {
    padding: 0.55rem 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: top;
}
.syntax-table tr:hover td {
    background: var(--accent-subtle);
    color: var(--text-primary);
}
.syntax-table td code { font-size: 0.83em; }


/* ════════════════════════════════════════════════════════════
   DOWNLOAD PAGE
════════════════════════════════════════════════════════════ */

.page-hero {
    text-align: center;
    padding: 3rem 0 1.5rem;
}
.version-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    background: var(--accent-subtle);
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.25rem 0.85rem;
    margin-bottom: 1rem;
    letter-spacing: 0.06em;
}

/* Download cards grid */
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}
.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
/* Coloured top accent bar per platform */
.download-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}
.download-card.windows::before { background: linear-gradient(90deg, #0078d4, #00b4ff); }
.download-card.macos::before   { background: linear-gradient(90deg, #636363, #999); }
.download-card.linux::before   { background: linear-gradient(90deg, #f5a623, #ffcf78); }
.download-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.os-icon { font-size: 3rem; line-height: 1; }
.download-card h3 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-primary);
}
.ext-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 0.18rem 0.55rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}
.download-card p {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Platform download buttons */
.btn-dl {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.25s ease;
    margin-top: 0.5rem;
}
.btn-dl.win {
    background: linear-gradient(135deg, #0078d4, #004fa3);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 120, 212, 0.3);
}
.btn-dl.win:hover {
    box-shadow: 0 6px 22px rgba(0, 120, 212, 0.55);
    text-decoration: none;
    color: #fff;
    transform: translateY(-2px);
}
.btn-dl.mac {
    background: linear-gradient(135deg, #555, #222);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.btn-dl.mac:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
    text-decoration: none;
    color: #fff;
    transform: translateY(-2px);
}
.btn-dl.linux {
    background: linear-gradient(135deg, #e69500, #b37200);
    color: #1a1a1a;
    box-shadow: 0 4px 14px rgba(230, 149, 0, 0.3);
}
.btn-dl.linux:hover {
    box-shadow: 0 6px 22px rgba(230, 149, 0, 0.5);
    text-decoration: none;
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* Info box (install instructions) */
.info-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}
.info-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.75rem;
}
.info-box li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

/* Login notice (shown when not logged in on download page) */
.login-notice {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}
.login-notice p { margin: 0 0 1.25rem; }


/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-content { flex-wrap: wrap; gap: 0.75rem; }
    nav { gap: 0.15rem; }
    nav a { font-size: 0.78rem; padding: 0.35rem 0.65rem; }

    .owner-card { flex-direction: column; align-items: center; text-align: center; }
    .owner-image { width: 170px; height: 170px; }
    .about-hero h1 { font-size: 2rem; }

    .arch-section .pipeline { flex-direction: column; align-items: stretch; }
    .arch-section .pipeline .pipe-arrow { transform: rotate(90deg); margin: 0 auto; }

    .stats-row { gap: 1.5rem; }
    .hero h1 { font-size: 2rem; }

    .community-title h2 { font-size: 1.8rem; }
    .contact-card { text-align: center; }
}

@media (max-width: 600px) {
    .container { padding: 0 1rem; }
    nav a { font-size: 0.76rem; margin-left: 0.5rem; padding: 0.35rem 0.6rem; }
    h1 { font-size: 1.75rem; }
    main.container { margin-top: 1.5rem; }
    pre { font-size: 0.82rem; padding: 1rem; }
    .pipeline { gap: 0.3rem; }
}