/* ═══════════════════════════════════════════════════════
   NARRA DIGILABS — Forest Floor Design System v2.0
   Global stylesheet for www.narra.work
   ═══════════════════════════════════════════════════════ */

/* ─── Design Tokens ────────────────────────────────── */
:root {
    --ff-bg: #020503; /* Rich obsidian space-black with dark green hint */
    --ff-bg-subtle: #060e07;
    --ff-card: rgba(8, 16, 10, 0.65);
    --ff-card-hover: rgba(12, 24, 15, 0.8);
    --ff-border: rgba(16, 185, 129, 0.15); /* Sleek translucent neon emerald */
    --ff-border-hover: rgba(16, 185, 129, 0.35);
    --ff-border-subtle: rgba(255, 255, 255, 0.04);
    --ff-text: #f3f4f6; /* High-contrast white */
    --ff-text-muted: #9ca3af;
    --ff-accent: #10b981; /* Bright emerald green */
    --ff-accent-cyan: #06b6d4; /* Cyn/Blue accent for gradients */
    --ff-accent-dim: rgba(16, 185, 129, 0.08);
    --ff-accent-glow: rgba(16, 185, 129, 0.25);
    --ff-danger: #f43f5e;
    --ff-warning: #fbbf24;
    --ff-font-ui: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    --ff-font-heading: 'Outfit', sans-serif;
    --ff-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --ff-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --ff-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    --ff-radius: 12px;
    --ff-radius-sm: 8px;

    /* Legacy CSS Variable Fallbacks */
    --electric-leaf: var(--ff-accent);
    --text-primary: var(--ff-text);
    --text-muted: var(--ff-text-muted);
    --glass-bg: var(--ff-card);
    --glass-border: var(--ff-border);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    background-color: var(--ff-bg);
    background-image: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.06) 0%, transparent 65%);
    color: var(--ff-text);
    font-family: var(--ff-font-ui);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; cursor: pointer; transition: var(--ff-transition); }
button { cursor: pointer; font-family: var(--ff-font-ui); }
img { max-width: 100%; height: auto; display: block; }

.hidden { display: none !important; }

/* ─── Typography ───────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--ff-font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }

h1 span, h2 span { 
    background: linear-gradient(135deg, var(--ff-accent) 30%, var(--ff-accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mono {
    font-family: var(--ff-font-mono);
    font-variant-numeric: tabular-nums;
}

/* ─── Layout ───────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    position: relative;
}

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

.page-main {
    padding-top: 10rem !important;
}

/* ─── Glass Card ───────────────────────────────────── */
.glass-card, .glass.exp-card, .glass {
    background: var(--ff-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius);
    padding: 2rem;
    transition: var(--ff-transition);
    display: block;
}

.glass-card:hover, .glass.exp-card:hover, .glass:hover {
    border-color: rgba(16, 185, 129, 0.25);
    background: var(--ff-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* ─── Buttons ──────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--ff-radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    outline: none;
    transition: var(--ff-transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--ff-accent);
    color: var(--ff-bg);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:hover {
    box-shadow: 0 0 24px var(--ff-accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--ff-accent);
    color: var(--ff-accent);
}

.btn-secondary:hover {
    background: var(--ff-accent-dim);
    transform: translateY(-1px);
}

.btn-ghost {
    background: var(--ff-card);
    color: var(--ff-text-muted);
    border: 1px solid var(--ff-border-subtle);
}

.btn-ghost:hover {
    border-color: var(--ff-border);
    color: var(--ff-text);
    background: var(--ff-card-hover);
}

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

/* ─── Header ───────────────────────────────────────── */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--ff-transition);
}

header.scrolled {
    padding: 0.5rem 0;
    background: rgba(2, 5, 3, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--ff-border-subtle);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.logo img {
    height: 36px;
    width: 36px;
    filter: drop-shadow(0 0 8px var(--ff-accent-glow));
    transition: var(--ff-transition);
}

.logo:hover img {
    filter: drop-shadow(0 0 14px var(--ff-accent));
    transform: scale(1.05);
}

.nav-container {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0 auto;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--ff-text-muted);
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--ff-accent);
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown-content {
    position: absolute;
    top: 100%;
    left: -1rem;
    background: rgba(2, 5, 3, 0.95);
    min-width: 220px;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-sm);
    backdrop-filter: blur(20px);
    z-index: 1050;
    padding: 0.5rem 0;
    list-style: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.88rem;
    color: var(--ff-text-muted);
}

.dropdown-content a:hover {
    background: var(--ff-accent-dim);
    color: var(--ff-accent);
}

/* Social links */
.social-links {
    display: flex;
    gap: 1.25rem;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--ff-border-subtle);
}

.social-links a {
    font-size: 1.1rem;
    color: var(--ff-text-muted);
}

.social-links a:hover {
    color: var(--ff-accent);
    transform: translateY(-2px);
}

/* Nav portal button */
.nav-portal-btn {
    display: inline-block;
    margin-left: 1.5rem;
    padding: 0.5rem 1rem;
    background: var(--ff-accent-dim);
    color: var(--ff-accent);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-portal-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--ff-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--ff-accent-glow);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    z-index: 1100;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ff-accent);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-overlay.active { display: block; opacity: 1; pointer-events: auto; }

/* ─── Status Badge ─────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: var(--ff-accent-dim);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 0.82rem;
    color: var(--ff-accent);
    margin-bottom: 2rem;
    background-image: none !important;
    -webkit-text-fill-color: currentColor !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--ff-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--ff-accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ─── Hero ─────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.03), transparent 70%);
}

.hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    width: 100%;
    animation: fadeUp 0.8s ease both;
}

.hero-content h1 { animation: fadeUp 0.8s 0.15s ease both; }
.hero-content p {
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    color: var(--ff-text-muted);
    animation: fadeUp 0.8s 0.3s ease both;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeUp 0.8s 0.45s ease both;
}

/* Hero divider */
.hero-divider {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-divider span {
    font-size: 0.72rem;
    color: var(--ff-text-muted);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.hero-divider::before,
.hero-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ff-border);
}

/* Service chips */
.services-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    animation: fadeIn 1s 0.6s ease both;
}

.service-chip {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--ff-card);
    border: 1px solid var(--ff-border-subtle);
    border-radius: var(--ff-radius-sm);
    padding: 1.25rem;
    text-align: center;
    transition: var(--ff-transition);
    min-height: 100px;
}

.service-chip:hover {
    border-color: var(--ff-accent);
    transform: translateY(-3px);
    background: var(--ff-accent-dim);
}

.service-chip .chip-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.service-chip strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.service-chip p {
    font-size: 0.75rem;
    color: var(--ff-text-muted);
    margin: 0;
}

/* ─── Background Trees ─────────────────────────────── */
.narra-bg-tree {
    position: absolute;
    background-image: url('assets/logo.svg?v=31');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
    filter: grayscale(1) brightness(2);
    will-change: transform;
    contain: strict;
}

.tree-1 { top: 50%; right: -5%; width: 500px; height: 500px; transform: translateY(-50%); }
.tree-2 { top: 20%; left: -8%; width: 350px; height: 350px; opacity: 0.02; }
.tree-3 { bottom: -10%; right: 20%; width: 300px; height: 300px; opacity: 0.015; }

/* ─── CTA Section ──────────────────────────────────── */
.cta-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 3.5rem;
    text-align: center;
    border: 1px solid rgba(16, 185, 129, 0.2);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
}

.cta-section h2 { margin-bottom: 1.25rem; }
.cta-section p {
    color: var(--ff-text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Official Footer ───────────────────────────────────────── */
.official-footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--ff-border-subtle);
    background-color: var(--ff-bg-alt, rgba(0,0,0,0.2));
    font-size: 0.88rem;
    color: var(--ff-text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

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

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-col.brand-col .footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px var(--ff-accent-glow));
}

.footer-col h3 {
    color: var(--ff-text);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--ff-text-muted);
    text-decoration: none;
    transition: var(--ff-transition);
}

.footer-col a:hover {
    color: var(--ff-accent);
}

.seal-container {
    background: #ffffff;
    padding: 0.8rem;
    border-radius: 6px;
    display: inline-block;
    width: 100%;
    max-width: 320px;
}

.seal-container img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    color: var(--ff-text-muted);
    font-size: 1.2rem;
}

.footer-social a:hover {
    color: var(--ff-accent);
    transform: scale(1.1);
}

/* ─── Skeleton Shimmer ─────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg,
        rgba(8, 16, 10, 0.3) 25%,
        rgba(8, 16, 10, 0.5) 50%,
        rgba(8, 16, 10, 0.3) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--ff-radius-sm);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ─── Animations ───────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ─── Profile Dropdown (shared by hub) ─────────────── */
.profile-dropdown { position: relative; display: none; z-index: 9999; }
.profile-toggle { background: transparent; border: none; outline: none; display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem; color: var(--ff-text); cursor: pointer; }
.profile-avatar { width: 40px; height: 40px; font-size: 1rem; background: var(--ff-accent-dim); color: var(--ff-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.profile-menu { position: absolute; right: 0; top: 120%; background: rgba(2, 5, 3, 0.95); backdrop-filter: blur(20px); border: 1px solid var(--ff-border); border-radius: var(--ff-radius-sm); min-width: 200px; list-style: none; padding: 0.5rem 0; box-shadow: var(--ff-shadow); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: all 0.25s ease; }
.profile-menu.active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.profile-menu .profile-name { padding: 0.7rem 1.2rem; border-bottom: 1px solid var(--ff-border-subtle); margin-bottom: 0.4rem; font-weight: 700; font-size: 0.82rem; color: var(--ff-accent); }
.profile-menu a { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1.2rem; font-size: 0.82rem; color: var(--ff-text); }
.profile-menu a:hover { background: var(--ff-accent-dim); }

/* ─── Select Options ───────────────────────────────── */
select option {
    background-color: var(--ff-bg);
    color: var(--ff-text);
}

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 968px) {
    .section { padding: 5rem 0; }
    .menu-toggle { display: flex; }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 380px;
        height: 100vh;
        background: rgba(2, 5, 3, 0.97);
        backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        padding: 3rem 2rem;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--ff-border-subtle);
        z-index: 1001;
    }

    .nav-container.active { right: 0; }

    .nav-links {
        flex-direction: column;
        gap: 1.75rem;
        align-items: flex-start;
        margin-bottom: 2.5rem;
    }

    .nav-links a { font-size: 1.3rem; }

    .dropdown-content {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        border: none;
        border-left: 2px solid var(--ff-border-subtle);
        background: transparent;
        backdrop-filter: none;
        padding: 0.75rem 0 0.5rem 1.25rem;
        margin-top: 0.75rem;
        border-radius: 0;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        box-shadow: none;
    }

    .dropdown-content a { font-size: 1.1rem; padding: 0; }

    .social-links {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        gap: 1.5rem;
    }

    .social-links a { font-size: 1.5rem; }

    .hero-inner { padding: 6rem 1.5rem 3rem; }
    .hero { text-align: center; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; text-align: center; justify-content: center; }

    .services-preview { grid-template-columns: repeat(2, 1fr) !important; }
    .hero-divider { margin-top: 2rem; }
    .page-main { padding-top: 8rem !important; }
}

@media (max-width: 600px) {
    .container { padding: 0 1.25rem; }
    .hero-inner { padding: 5.5rem 1rem 2.5rem; }
    .page-main { padding-top: 6.5rem !important; }
}

@media (max-width: 480px) {
    .services-preview { grid-template-columns: 1fr !important; }
    .glass-card { padding: 1.5rem; }
    .cta-section { padding: 2.5rem 1.5rem; }
}

/* ─── Added Design Revamp Elements ─────────────────── */

.hero {
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(16, 185, 129, 0.07) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    pointer-events: none;
    opacity: 0.65;
    z-index: 0; /* Behind hero-inner which has z-index: 1 */
}

@media (min-width: 969px) {
    .hero-grid {
        display: grid;
        grid-template-columns: 1.15fr 0.85fr;
        gap: 4rem;
        align-items: center;
    }
}

/* Mock Terminal Styling */
.mock-terminal {
    background: #050a06;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--ff-radius);
    font-family: var(--ff-font-mono);
    font-size: 0.8rem;
    color: #a7f3d0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 30px rgba(16, 185, 129, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 330px;
    width: 100%;
    text-align: left;
    margin-top: 2rem;
    z-index: 10;
    position: relative;
}

@media (min-width: 969px) {
    .mock-terminal {
        margin-top: 0;
    }
}

.terminal-header {
    background: rgba(8, 16, 10, 0.6);
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.terminal-title {
    margin-left: 0.75rem;
    font-size: 0.75rem;
    color: var(--ff-text-muted);
    font-weight: 500;
}

.terminal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
    line-height: 1.8;
}

.terminal-line {
    opacity: 0;
    margin-bottom: 0.6rem;
    animation: terminal-fade-in 0.4s ease forwards;
}

.terminal-prompt {
    color: var(--ff-accent);
}

.terminal-system {
    color: var(--ff-text-muted);
}

.terminal-success {
    color: #10b981;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.terminal-cursor::after {
    content: '▋';
    animation: blink 1.2s step-end infinite;
    color: var(--ff-accent);
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes terminal-fade-in {
    to { opacity: 1; }
}

/* Sizer Simulator Styling */
.sizer-card {
    max-width: 900px;
    margin: 5rem auto 0;
}

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

@media (max-width: 768px) {
    .sizer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.sizer-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
}

.sizer-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sizer-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-family: var(--ff-font-mono);
}

.sizer-label-title {
    color: var(--ff-text-muted);
}

.sizer-label-val {
    color: var(--ff-accent);
    font-weight: bold;
}

.sizer-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    transition: background 0.3s;
}

.sizer-slider:hover {
    background: rgba(255, 255, 255, 0.15);
}

.sizer-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ff-accent);
    cursor: pointer;
    box-shadow: 0 0 10px var(--ff-accent-glow);
    transition: transform 0.1s;
}

.sizer-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--ff-accent);
}

.sizer-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ff-accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px var(--ff-accent-glow);
    transition: transform 0.1s;
}

.sizer-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--ff-accent);
}

.sizer-display {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius);
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 240px;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.sizer-plan-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ff-text);
}

.sizer-plan-title span {
    color: var(--ff-accent);
}

.sizer-price-box {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ff-text);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem;
}

.sizer-price-period {
    font-size: 0.95rem;
    color: var(--ff-text-muted);
    font-weight: normal;
}

.sizer-code-output {
    font-family: var(--ff-font-mono);
    font-size: 0.78rem;
    color: #86efac;
    background: #050a06;
    border: 1px solid rgba(16, 185, 129, 0.12);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-all;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}

/* ─── Narra Node Visualizer ────────────────────────── */
.node-visualizer {
    background: rgba(8, 16, 10, 0.65);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--ff-radius);
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(16, 185, 129, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 969px) {
    .node-visualizer {
        margin-top: 0;
    }
}

.node-visualizer-header {
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.node-visualizer-header h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    color: var(--ff-text);
}

.node-visualizer-header p {
    font-size: 0.78rem;
    color: var(--ff-text-muted);
}

.node-map-stage {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    height: 140px;
    position: relative;
    padding: 43px 1rem 0;
}

/* SVG Line Stream */
.node-svg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.stream-path {
    fill: none;
    stroke-width: 2px;
    stroke-dasharray: 6, 6;
    animation: flow-dash 1.5s linear infinite;
    transition: stroke 0.3s ease;
}

.stream-path.secure {
    stroke: var(--ff-accent);
}

.stream-path.exposed {
    stroke: var(--ff-danger);
}

@keyframes flow-dash {
    to {
        stroke-dashoffset: -20;
    }
}

/* Nodes */
.node-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    width: 80px;
}

.node-bubble {
    width: 54px;
    height: 54px;
    background: rgba(2, 5, 3, 0.85); /* Translucent background to let lines sit behind it */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ff-text-muted);
    font-size: 1.25rem;
    transition: var(--ff-transition);
}

.node-item.active .node-bubble {
    color: var(--ff-accent);
    border-color: var(--ff-accent);
    background: rgba(4, 20, 11, 0.85); /* Translucent active green */
    box-shadow: 0 0 15px var(--ff-accent-glow);
}

.node-bubble.shared {
    border-color: var(--ff-danger);
    color: var(--ff-danger);
    background: rgba(24, 4, 8, 0.85); /* Translucent shared red */
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.15);
}

.node-bubble.atomic {
    border-color: var(--ff-accent);
    color: var(--ff-accent);
    background: rgba(4, 20, 11, 0.85); /* Translucent atomic green */
    box-shadow: 0 0 15px var(--ff-accent-glow);
}

.node-label {
    font-size: 0.68rem;
    font-family: var(--ff-font-mono);
    color: var(--ff-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Cyber Switches */
.node-map-switches {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
    text-align: left;
}

.cyber-switch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cyber-switch-label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cyber-switch-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ff-text);
}

.cyber-switch-desc {
    font-size: 0.7rem;
    color: var(--ff-text-muted);
}

/* Switch styling */
.cyber-switch-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0.35rem 0.8rem;
    font-family: var(--ff-font-mono);
    font-size: 0.68rem;
    font-weight: bold;
    color: var(--ff-text-muted);
    transition: var(--ff-transition);
}

.cyber-switch-btn.active {
    border-color: var(--ff-accent);
    color: var(--ff-accent);
    background: var(--ff-accent-dim);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

